mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
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
This commit is contained in:
parent
da4ace3067
commit
3643bd0963
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=226746
@ -210,6 +210,7 @@
|
||||
SUBDIR += hs-bytestring-csv
|
||||
SUBDIR += hs-haxml
|
||||
SUBDIR += hs-highlighting-kate-ghc
|
||||
SUBDIR += hs-polyparse-ghc
|
||||
SUBDIR += hs-stringsearch
|
||||
SUBDIR += hsb-aspell
|
||||
SUBDIR += htdig
|
||||
|
55
textproc/hs-polyparse-ghc/Makefile
Normal file
55
textproc/hs-polyparse-ghc/Makefile
Normal file
@ -0,0 +1,55 @@
|
||||
# New ports collection makefile for: hs-polyparse-ghc
|
||||
# Date created: January 23, 2009
|
||||
# Whom: Gabor Pali <pgj@FreeBSD.org>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
3
textproc/hs-polyparse-ghc/distinfo
Normal file
3
textproc/hs-polyparse-ghc/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (polyparse-1.1.tar.gz) = 3d01daae5ca692b24729093dc45aa94c
|
||||
SHA256 (polyparse-1.1.tar.gz) = 87eab9c8f2bee72d0c3a00d002e442405da016794e125f6c47c66607e1983957
|
||||
SIZE (polyparse-1.1.tar.gz) = 112884
|
8
textproc/hs-polyparse-ghc/pkg-descr
Normal file
8
textproc/hs-polyparse-ghc/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
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/
|
29
textproc/hs-polyparse-ghc/pkg-plist
Normal file
29
textproc/hs-polyparse-ghc/pkg-plist
Normal file
@ -0,0 +1,29 @@
|
||||
%%SUBDIR%%/Text/Parse.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/HuttonMeijer.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/HuttonMeijerWallace.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/PolyLazy.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/PolyState.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/PolyStateLazy.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/Base.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/Lazy.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/Plain.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/State.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/StateLazy.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/NoLeak/Lazy.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/NoLeak/Plain.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/NoLeak/State.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/NoLeak/StateLazy.hi
|
||||
%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
|
||||
%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
|
||||
%%SUBDIR%%/%%PORTNAME%%-register.sh
|
||||
%%RMLIC%%%%DOCSDIR%%/COPYRIGHT
|
||||
%%RMLIC%%@dirrm %%DOCSDIR%%
|
||||
@dirrmtry %%SUBDIR%%/Text/ParserCombinators/Poly/NoLeak
|
||||
@dirrmtry %%SUBDIR%%/Text/ParserCombinators/Poly
|
||||
@dirrmtry %%SUBDIR%%/Text/ParserCombinators
|
||||
@dirrmtry %%SUBDIR%%/Text
|
||||
@exec sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh
|
||||
@exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
||||
@unexec ghc-pkg unregister %%PORTNAME%%
|
||||
@unexec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
55
textproc/hs-polyparse/Makefile
Normal file
55
textproc/hs-polyparse/Makefile
Normal file
@ -0,0 +1,55 @@
|
||||
# New ports collection makefile for: hs-polyparse-ghc
|
||||
# Date created: January 23, 2009
|
||||
# Whom: Gabor Pali <pgj@FreeBSD.org>
|
||||
#
|
||||
# $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 <bsd.port.mk>
|
3
textproc/hs-polyparse/distinfo
Normal file
3
textproc/hs-polyparse/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (polyparse-1.1.tar.gz) = 3d01daae5ca692b24729093dc45aa94c
|
||||
SHA256 (polyparse-1.1.tar.gz) = 87eab9c8f2bee72d0c3a00d002e442405da016794e125f6c47c66607e1983957
|
||||
SIZE (polyparse-1.1.tar.gz) = 112884
|
8
textproc/hs-polyparse/pkg-descr
Normal file
8
textproc/hs-polyparse/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
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/
|
29
textproc/hs-polyparse/pkg-plist
Normal file
29
textproc/hs-polyparse/pkg-plist
Normal file
@ -0,0 +1,29 @@
|
||||
%%SUBDIR%%/Text/Parse.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/HuttonMeijer.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/HuttonMeijerWallace.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/PolyLazy.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/PolyState.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/PolyStateLazy.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/Base.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/Lazy.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/Plain.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/State.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/StateLazy.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/NoLeak/Lazy.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/NoLeak/Plain.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/NoLeak/State.hi
|
||||
%%SUBDIR%%/Text/ParserCombinators/Poly/NoLeak/StateLazy.hi
|
||||
%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
|
||||
%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
|
||||
%%SUBDIR%%/%%PORTNAME%%-register.sh
|
||||
%%RMLIC%%%%DOCSDIR%%/COPYRIGHT
|
||||
%%RMLIC%%@dirrm %%DOCSDIR%%
|
||||
@dirrmtry %%SUBDIR%%/Text/ParserCombinators/Poly/NoLeak
|
||||
@dirrmtry %%SUBDIR%%/Text/ParserCombinators/Poly
|
||||
@dirrmtry %%SUBDIR%%/Text/ParserCombinators
|
||||
@dirrmtry %%SUBDIR%%/Text
|
||||
@exec sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh
|
||||
@exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
||||
@unexec ghc-pkg unregister %%PORTNAME%%
|
||||
@unexec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
Loading…
Reference in New Issue
Block a user