diff options
author | Gabor Pali <pgj@FreeBSD.org> | 2010-05-12 16:33:59 +0000 |
---|---|---|
committer | Gabor Pali <pgj@FreeBSD.org> | 2010-05-12 16:33:59 +0000 |
commit | ec29a59ec3d0472e808e9907b2f18dce2e9fe68c (patch) | |
tree | bd2ff04188a74e09a51bfecae86236b3684491e5 /devel/hs-happy | |
parent | ba00ef6b8cc071eb53bf9287bfbc328da82f7eb8 (diff) | |
download | ports-ec29a59ec3d0472e808e9907b2f18dce2e9fe68c.tar.gz ports-ec29a59ec3d0472e808e9907b2f18dce2e9fe68c.zip |
Notes
Diffstat (limited to 'devel/hs-happy')
-rw-r--r-- | devel/hs-happy/Makefile | 52 | ||||
-rw-r--r-- | devel/hs-happy/pkg-plist | 18 |
2 files changed, 9 insertions, 61 deletions
diff --git a/devel/hs-happy/Makefile b/devel/hs-happy/Makefile index a4e9969b1779..d51ef0670fb4 100644 --- a/devel/hs-happy/Makefile +++ b/devel/hs-happy/Makefile @@ -8,57 +8,19 @@ PORTNAME= happy PORTVERSION= 1.18.4 PORTREVISION= 1 CATEGORIES= devel haskell -MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ -PKGNAMEPREFIX= hs- MAINTAINER= haskell@FreeBSD.org COMMENT= An LALR(1) parser generator for the functional language Haskell -BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc -LIB_DEPENDS= gmp.10:${PORTSDIR}/math/gmp -.if !defined(NOPORTDOCS) -BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/html:${PORTSDIR}/textproc/docbook-xsl \ - ${LOCALBASE}/bin/xsltproc:${PORTSDIR}/textproc/libxslt -PLIST_SUB+= RMLIC="@comment " -.else -PLIST_SUB+= RMLIC="" -.endif - -PLIST_SUB+= SUBDIR=share/${PORTNAME}-${PORTVERSION} -DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} -PORTDOCS= LICENSE html -EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}-${PORTVERSION} -PORTEXAMPLES= * - -USE_GMAKE= yes +XMLDOCS= doc/happy:html USE_AUTOTOOLS= autoconf:262:env -CONFIGURE_ARGS= --ghc --prefix=${PREFIX} - -post-patch: - @${REINPLACE_CMD} -e 's+%%LOCALBASE%%+${LOCALBASE}+' ${WRKSRC}/doc/configure.ac - -do-configure: - cd ${WRKSRC} && runhaskell Setup.lhs configure ${CONFIGURE_ARGS} - cd ${WRKSRC}/doc && ${AUTOCONF} && ./configure --prefix=${PREFIX} - -do-build: - cd ${WRKSRC} && runhaskell Setup.lhs build -.if !defined(NOPORTDOCS) - @(cd ${WRKSRC}/doc && \ - ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} html) -.endif -do-install: - cd ${WRKSRC} && runhaskell Setup.lhs install +STANDALONE= yes +EXECUTABLE= happy -post-install: - @${STRIP_CMD} ${PREFIX}/bin/happy -.if !defined(NOPORTEXAMPLES) - @${MKDIR} ${EXAMPLESDIR} - @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}) -.endif -.if !defined(NOPORTDOCS) - @(cd ${WRKSRC}/doc && ${CP} -R happy/ ${DOCSDIR}/html) -.endif +PORTDATA= * +PORTEXAMPLES= * +INSTALL_PORTEXAMPLES= @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}) +.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk" .include <bsd.port.mk> diff --git a/devel/hs-happy/pkg-plist b/devel/hs-happy/pkg-plist index 702020b2d524..23bafdcccd94 100644 --- a/devel/hs-happy/pkg-plist +++ b/devel/hs-happy/pkg-plist @@ -1,18 +1,4 @@ @comment $FreeBSD$ bin/happy -%%SUBDIR%%/GLR_Base -%%SUBDIR%%/GLR_Lib -%%SUBDIR%%/GLR_Lib-ghc -%%SUBDIR%%/GLR_Lib-ghc-debug -%%SUBDIR%%/HappyTemplate -%%SUBDIR%%/HappyTemplate-arrays -%%SUBDIR%%/HappyTemplate-arrays-coerce -%%SUBDIR%%/HappyTemplate-arrays-coerce-debug -%%SUBDIR%%/HappyTemplate-arrays-debug -%%SUBDIR%%/HappyTemplate-arrays-ghc -%%SUBDIR%%/HappyTemplate-arrays-ghc-debug -%%SUBDIR%%/HappyTemplate-coerce -%%SUBDIR%%/HappyTemplate-ghc -@dirrm %%SUBDIR%% -%%RMLIC%%%%DOCSDIR%%/LICENSE -%%RMLIC%%@dirrm %%DOCSDIR%% +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% |