Import happy-1.19.5 as devel/happy,

packaged for wip by esg.

Happy is a parser generator for Haskell. Given a grammar specification in
BNF, Happy generates Haskell code to parse the grammar. Happy works in a
similar way to the yacc tool for C.
This commit is contained in:
szptvlfn 2015-01-08 11:50:54 +00:00
parent 68f682d510
commit 23d59ed72e
5 changed files with 63 additions and 0 deletions

3
devel/happy/DESCR Normal file
View file

@ -0,0 +1,3 @@
Happy is a parser generator for Haskell. Given a grammar specification in
BNF, Happy generates Haskell code to parse the grammar. Happy works in a
similar way to the yacc tool for C.

23
devel/happy/Makefile Normal file
View file

@ -0,0 +1,23 @@
# $NetBSD: Makefile,v 1.1 2015/01/08 11:50:54 szptvlfn Exp $
DISTNAME= happy-1.19.5
PKGNAME= ${DISTNAME}
CATEGORIES= devel
MAINTAINER= esg@sdf.lonestar.org
COMMENT= Happy is a parser generator for Haskell
LICENSE= modified-bsd
USE_TOOLS+= autoconf
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
pre-configure:
cd ${WRKSRC}/doc && autoconf && ./configure
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/happy.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.include "../../mk/haskell.mk"
.include "../../devel/hs-mtl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

17
devel/happy/PLIST Normal file
View file

@ -0,0 +1,17 @@
@comment $NetBSD: PLIST,v 1.1 2015/01/08 11:50:54 szptvlfn Exp $
bin/happy
man/man1/happy.1
share/doc/${PKGNAME}/LICENSE
share/${PKGNAME}/GLR_Base
share/${PKGNAME}/GLR_Lib
share/${PKGNAME}/GLR_Lib-ghc
share/${PKGNAME}/GLR_Lib-ghc-debug
share/${PKGNAME}/HappyTemplate
share/${PKGNAME}/HappyTemplate-arrays
share/${PKGNAME}/HappyTemplate-arrays-coerce
share/${PKGNAME}/HappyTemplate-arrays-coerce-debug
share/${PKGNAME}/HappyTemplate-arrays-debug
share/${PKGNAME}/HappyTemplate-arrays-ghc
share/${PKGNAME}/HappyTemplate-arrays-ghc-debug
share/${PKGNAME}/HappyTemplate-coerce
share/${PKGNAME}/HappyTemplate-ghc

15
devel/happy/buildlink3.mk Normal file
View file

@ -0,0 +1,15 @@
# $NetBSD: buildlink3.mk,v 1.1 2015/01/08 11:50:54 szptvlfn Exp $
BUILDLINK_TREE+= happy
.if !defined(HAPPY_BUILDLINK3_MK)
HAPPY_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.happy+= happy>=1.19.5
BUILDLINK_ABI_DEPENDS.happy+= happy>=1.19.5
BUILDLINK_PKGSRCDIR.happy?= ../../devel/happy
.include "../../devel/hs-mtl/buildlink3.mk"
.endif # HAPPY_BUILDLINK3_MK
BUILDLINK_TREE+= -happy

5
devel/happy/distinfo Normal file
View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2015/01/08 11:50:54 szptvlfn Exp $
SHA1 (happy-1.19.5.tar.gz) = 60323f24b6c0863393fb02ec0347dfe6f9fb0779
RMD160 (happy-1.19.5.tar.gz) = 31895a6e6bcf1eeae2e5949cc5ca49d84094ae89
Size (happy-1.19.5.tar.gz) = 159280 bytes