From 3643bd09637f21b16d6ed0fa9278289fa5a36abd Mon Sep 17 00:00:00 2001 From: Gabor Pali Date: Fri, 23 Jan 2009 23:53:56 +0000 Subject: A variety of alternative parser combinator libraries for the functional programming language Haskell, including the original HuttonMeijer set. The Poly sets have features like good error reporting, arbitrary token type, running state, lazy parsing, and so on. Finally, Text.Parse is a proposed replacement for the standard Read class, for better deserialisation of Haskell values from Strings. WWW: http://www.cs.york.ac.uk/fp/polyparse/ Approved by: gabor --- textproc/hs-polyparse/Makefile | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 textproc/hs-polyparse/Makefile (limited to 'textproc/hs-polyparse/Makefile') diff --git a/textproc/hs-polyparse/Makefile b/textproc/hs-polyparse/Makefile new file mode 100644 index 000000000000..478d78867724 --- /dev/null +++ b/textproc/hs-polyparse/Makefile @@ -0,0 +1,55 @@ +# New ports collection makefile for: hs-polyparse-ghc +# Date created: January 23, 2009 +# Whom: Gabor Pali +# +# $FreeBSD$ +# + +PORTNAME= polyparse +PORTVERSION= 1.1 +CATEGORIES= textproc haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- +PKGNAMESUFFIX= -ghc + +MAINTAINER= haskell@FreeBSD.org +COMMENT= Alternative parser combinator libraries for Haskell + +BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc +RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc + +GHC_VERSION= 6.8.3 +CABALCMD= ${LOCALBASE}/bin/runghc Setup.hs +CABALDIR= lib/ghc-${GHC_VERSION}/cabal + +SUBDIR= lib/${PORTNAME}-${PORTVERSION} +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + PORTNAME=${PORTNAME} \ + PORTVERSION=${PORTVERSION} \ + SUBDIR=${CABALDIR} +DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} +PORTDOCS= COPYRIGHT html + +CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir='' + +.if !defined(NOPORTDOCS) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +PLIST_SUB+= RMLIC="@comment " +.else +PLIST_SUB+= RMLIC="" +.endif + +do-configure: + cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS} + +do-build: + cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register +.if !defined(NOPORTDOCS) + cd ${WRKSRC} && ${CABALCMD} haddock +.endif + +do-install: + cd ${WRKSRC} && ${CABALCMD} install + ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${CABALDIR}/${PORTNAME}-register.sh + +.include -- cgit v1.2.3