aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-alex
diff options
context:
space:
mode:
authorGabor Pali <pgj@FreeBSD.org>2010-05-12 16:33:59 +0000
committerGabor Pali <pgj@FreeBSD.org>2010-05-12 16:33:59 +0000
commitec29a59ec3d0472e808e9907b2f18dce2e9fe68c (patch)
treebd2ff04188a74e09a51bfecae86236b3684491e5 /devel/hs-alex
parentba00ef6b8cc071eb53bf9287bfbc328da82f7eb8 (diff)
downloadports-ec29a59ec3d0472e808e9907b2f18dce2e9fe68c.tar.gz
ports-ec29a59ec3d0472e808e9907b2f18dce2e9fe68c.zip
Notes
Diffstat (limited to 'devel/hs-alex')
-rw-r--r--devel/hs-alex/Makefile55
-rw-r--r--devel/hs-alex/pkg-plist19
2 files changed, 9 insertions, 65 deletions
diff --git a/devel/hs-alex/Makefile b/devel/hs-alex/Makefile
index a6e193477353..3c0ab1d76d34 100644
--- a/devel/hs-alex/Makefile
+++ b/devel/hs-alex/Makefile
@@ -8,60 +8,19 @@ PORTNAME= alex
PORTVERSION= 2.3.1
PORTREVISION= 3
CATEGORIES= devel haskell
-MASTER_SITES= http://hackage.haskell.org/packages/archive/alex/${PORTVERSION}/
-PKGNAMEPREFIX= hs-
MAINTAINER= haskell@FreeBSD.org
COMMENT= Alex is a tool for generating lexical analysers in Haskell
-BUILD_DEPENDS= ghc>=6.8:${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
-
-USE_GMAKE= yes
+XMLDOCS= doc/alex:html
USE_AUTOTOOLS= autoconf:262:env
-CONFIGURE_ARGS= --ghc --prefix=${PREFIX}
-
-PLIST_SUB+= SUBDIR=share/${PORTNAME}-${PORTVERSION}
-DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
-PORTDOCS= LICENSE html
-EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}-${PORTVERSION}
-PORTEXAMPLES= *
-
-post-patch:
- @${REINPLACE_CMD} -e 's|/usr/local/share/xsl/docbook|${LOCALBASE}/share/xsl/docbook|' \
- ${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= alex
-post-install:
- @${STRIP_CMD} ${PREFIX}/bin/alex
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
- @(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
-.endif
-.if !defined(NOPORTDOCS)
- @(cd ${WRKSRC}/doc && ${CP} -R alex/ ${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-alex/pkg-plist b/devel/hs-alex/pkg-plist
index 59f5fa1f6abb..7b3ba3518ab5 100644
--- a/devel/hs-alex/pkg-plist
+++ b/devel/hs-alex/pkg-plist
@@ -1,19 +1,4 @@
@comment $FreeBSD$
bin/alex
-%%SUBDIR%%/AlexTemplate
-%%SUBDIR%%/AlexTemplate-debug
-%%SUBDIR%%/AlexTemplate-ghc
-%%SUBDIR%%/AlexTemplate-ghc-debug
-%%SUBDIR%%/AlexWrapper-basic
-%%SUBDIR%%/AlexWrapper-basic-bytestring
-%%SUBDIR%%/AlexWrapper-gscan
-%%SUBDIR%%/AlexWrapper-monad
-%%SUBDIR%%/AlexWrapper-monad-bytestring
-%%SUBDIR%%/AlexWrapper-posn
-%%SUBDIR%%/AlexWrapper-posn-bytestring
-%%SUBDIR%%/AlexWrapper-strict-bytestring
-%%SUBDIR%%/AlexWrapper-monadUserState
-%%SUBDIR%%/AlexWrapper-monadUserState-bytestring
-@dirrm %%SUBDIR%%
-%%RMLIC%%%%DOCSDIR%%/LICENSE
-%%RMLIC%%@dirrm %%DOCSDIR%%
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%