- Update to 2.3.1

- Fix CONFIGURE_ARGS, PORTDOCS, PORTEXAMPLES

Approved by:	gabor
This commit is contained in:
Gabor Pali 2009-01-24 00:16:25 +00:00
parent d028cc551e
commit 3f93e2ea4c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=226752
3 changed files with 37 additions and 41 deletions

View file

@ -5,29 +5,35 @@
# $FreeBSD$
PORTNAME= alex
PORTVERSION= 2.2
PORTVERSION= 2.3.1
CATEGORIES= devel haskell
MASTER_SITES= http://www.haskell.org/alex/dist/${PORTVERSION}/
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:${PORTSDIR}/lang/ghc
BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
.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
USE_AUTOTOOLS= autoconf:262:env
CONFIGURE_ARGS= --ghc --prefix=${PREFIX}
PLIST_SUB= PORTVERSION="${PORTVERSION}"
PORTDOCS= *
PLIST_SUB+= SUBDIR=share/${PORTNAME}-${PORTVERSION}
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
PORTDOCS= LICENSE html
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}-${PORTVERSION}
PORTEXAMPLES= *
do-configure:
cd ${WRKSRC} && runhaskell Setup.lhs configure
cd ${WRKSRC} && runhaskell Setup.lhs configure ${CONFIGURE_ARGS}
cd ${WRKSRC}/doc && ${AUTOCONF} && ./configure --prefix=${PREFIX}
do-build:
@ -42,10 +48,12 @@ do-install:
post-install:
@${STRIP_CMD} ${PREFIX}/bin/alex
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@(cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${EXAMPLESDIR}
${FIND} ${WRKSRC}/examples -type f -exec ${INSTALL_DATA} \{\} ${EXAMPLESDIR} \;
@(cd ${WRKSRC}/doc && ${CP} -R alex ${PREFIX}/share/doc)
@(cd ${WRKSRC}/doc && ${CP} -R alex/ ${DOCSDIR}/html)
.endif
.include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
MD5 (alex-2.2.tar.gz) = 7ef62b2dd2ee7ed7b2a5ca3bfb568347
SHA256 (alex-2.2.tar.gz) = e958d4fc6cfdb1d351dc39a45ea882f23b1b1773a736d43814a52d4939a41ffe
SIZE (alex-2.2.tar.gz) = 85042
MD5 (alex-2.3.1.tar.gz) = a8c26af3370388297cee4b8c767d72d9
SHA256 (alex-2.3.1.tar.gz) = cdd42fd992a72fedeff1f38debc21aa315d90dc070f0945d7819c0bccd549a44
SIZE (alex-2.3.1.tar.gz) = 78951

View file

@ -1,30 +1,18 @@
bin/alex
share/alex-%%PORTVERSION%%/AlexTemplate
share/alex-%%PORTVERSION%%/AlexTemplate-debug
share/alex-%%PORTVERSION%%/AlexTemplate-ghc
share/alex-%%PORTVERSION%%/AlexTemplate-ghc-debug
share/alex-%%PORTVERSION%%/AlexWrapper-basic
share/alex-%%PORTVERSION%%/AlexWrapper-basic-bytestring
share/alex-%%PORTVERSION%%/AlexWrapper-gscan
share/alex-%%PORTVERSION%%/AlexWrapper-monad
share/alex-%%PORTVERSION%%/AlexWrapper-monad-bytestring
share/alex-%%PORTVERSION%%/AlexWrapper-posn
share/alex-%%PORTVERSION%%/AlexWrapper-posn-bytestring
share/doc/alex-%%PORTVERSION%%/LICENSE
%%PORTDOCS%%%%EXAMPLESDIR%%/Makefile
%%PORTDOCS%%%%EXAMPLESDIR%%/Tokens.x
%%PORTDOCS%%%%EXAMPLESDIR%%/Tokens_gscan.x
%%PORTDOCS%%%%EXAMPLESDIR%%/Tokens_posn.x
%%PORTDOCS%%%%EXAMPLESDIR%%/examples.x
%%PORTDOCS%%%%EXAMPLESDIR%%/haskell.x
%%PORTDOCS%%%%EXAMPLESDIR%%/lit.x
%%PORTDOCS%%%%EXAMPLESDIR%%/pp.x
%%PORTDOCS%%%%EXAMPLESDIR%%/state.x
%%PORTDOCS%%%%EXAMPLESDIR%%/tiny.y
%%PORTDOCS%%%%EXAMPLESDIR%%/tkns.hs
%%PORTDOCS%%%%EXAMPLESDIR%%/words.x
%%PORTDOCS%%%%EXAMPLESDIR%%/words_monad.x
%%PORTDOCS%%%%EXAMPLESDIR%%/words_posn.x
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
@dirrm share/doc/alex-2.2
@dirrm share/alex-%%PORTVERSION%%
%%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%%