diff options
author | pgj <pgj@FreeBSD.org> | 2008-12-21 19:41:49 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2008-12-21 19:41:49 +0800 |
commit | 634448e48b6ccd378ed4ab1d725ca2c8284c7895 (patch) | |
tree | 8baaef4c30b0a42d1f84e747144f871b66a73e1a | |
parent | 22153059172c78b05b3eb04130b3ad19d515a409 (diff) | |
download | freebsd-ports-gnome-634448e48b6ccd378ed4ab1d725ca2c8284c7895.tar.gz freebsd-ports-gnome-634448e48b6ccd378ed4ab1d725ca2c8284c7895.tar.zst freebsd-ports-gnome-634448e48b6ccd378ed4ab1d725ca2c8284c7895.zip |
A small, efficient and portable Haskell regex library for Perl 5
compatible regular expressions.
The PCRE library is a set of functions that implement regular expression
pattern matching using the same syntax and semantics as Perl 5.
WWW: http://code.haskell.org/~dons/code/pcre-light
PR: ports/129683
Submitted by: pgj
Approved by: miwi
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/hs-pcre-light-ghc/Makefile | 52 | ||||
-rw-r--r-- | devel/hs-pcre-light-ghc/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-pcre-light-ghc/pkg-descr | 7 | ||||
-rw-r--r-- | devel/hs-pcre-light-ghc/pkg-plist | 28 | ||||
-rw-r--r-- | devel/hs-pcre-light/Makefile | 52 | ||||
-rw-r--r-- | devel/hs-pcre-light/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-pcre-light/pkg-descr | 7 | ||||
-rw-r--r-- | devel/hs-pcre-light/pkg-plist | 28 |
9 files changed, 181 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index bcc06184c343..db86510b2ef5 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -503,6 +503,7 @@ SUBDIR += hs-hmake SUBDIR += hs-hpl SUBDIR += hs-idoc + SUBDIR += hs-pcre-light-ghc SUBDIR += hs-utf8-string-ghc SUBDIR += hs-uuagc SUBDIR += hs-uulib diff --git a/devel/hs-pcre-light-ghc/Makefile b/devel/hs-pcre-light-ghc/Makefile new file mode 100644 index 000000000000..b10281176dfb --- /dev/null +++ b/devel/hs-pcre-light-ghc/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: pcre-light +# Date created: December 16, 2008 +# Whom: Gabor Pali <pgj@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= pcre-light +PORTVERSION= 0.3.1 +CATEGORIES= devel haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- +PKGNAMESUFFIX= -ghc + +MAINTAINER= haskell@FreeBSD.org +COMMENT= A lightweight Haskell regex library compatible with Perl 5 + +BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc +LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre +RUN_DEPENDS= ${BUILD_DEPENDS} + +GHC_VERSION= 6.8.3 +CABALCMD= ${LOCALBASE}/bin/runghc Setup.lhs +CABALDIR= lib/ghc-${GHC_VERSION}/cabal + +SUBDIR= lib/${PORTNAME}-${PORTVERSION} +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + PORTNAME=${PORTNAME} \ + PORTVERSION=${PORTVERSION} \ + SUBDIR=${CABALDIR} +DOCSDIR= share/doc/${PORTNAME}-${PORTVERSION} + +CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir='' + +.ifndef (NOPORTDOCS) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +.endif + +do-configure: + cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS} + +do-build: + cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register +.ifndef (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> diff --git a/devel/hs-pcre-light-ghc/distinfo b/devel/hs-pcre-light-ghc/distinfo new file mode 100644 index 000000000000..9806c0fb85e1 --- /dev/null +++ b/devel/hs-pcre-light-ghc/distinfo @@ -0,0 +1,3 @@ +MD5 (pcre-light-0.3.1.tar.gz) = 14d8d6e2fd200c385b1d63c888794014 +SHA256 (pcre-light-0.3.1.tar.gz) = 3585c3f0acccf866a958e78bf7192184d021f83e5e6f88e74fa53389b78318c0 +SIZE (pcre-light-0.3.1.tar.gz) = 28824 diff --git a/devel/hs-pcre-light-ghc/pkg-descr b/devel/hs-pcre-light-ghc/pkg-descr new file mode 100644 index 000000000000..7018663a7db1 --- /dev/null +++ b/devel/hs-pcre-light-ghc/pkg-descr @@ -0,0 +1,7 @@ +A small, efficient and portable Haskell regex library for Perl 5 +compatible regular expressions. + +The PCRE library is a set of functions that implement regular expression +pattern matching using the same syntax and semantics as Perl 5. + +WWW: http://code.haskell.org/~dons/code/pcre-light diff --git a/devel/hs-pcre-light-ghc/pkg-plist b/devel/hs-pcre-light-ghc/pkg-plist new file mode 100644 index 000000000000..70be97fc590c --- /dev/null +++ b/devel/hs-pcre-light-ghc/pkg-plist @@ -0,0 +1,28 @@ +%%SUBDIR%%/HSpcre-light-%%PORTVERSION%%.o +%%SUBDIR%%/Text/Regex/PCRE/Light.hi +%%SUBDIR%%/Text/Regex/PCRE/Light/Base.hi +%%SUBDIR%%/Text/Regex/PCRE/Light/Char8.hi +%%SUBDIR%%/libHSpcre-light-%%PORTVERSION%%.a +%%SUBDIR%%/%%PORTNAME%%-register.sh +%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/html/%%PORTNAME%%.haddock +%%PORTDOCS%%%%DOCSDIR%%/html/doc-index.html +%%PORTDOCS%%%%DOCSDIR%%/html/haddock-util.js +%%PORTDOCS%%%%DOCSDIR%%/html/haddock.css +%%PORTDOCS%%%%DOCSDIR%%/html/haskell_icon.gif +%%PORTDOCS%%%%DOCSDIR%%/html/index.html +%%PORTDOCS%%%%DOCSDIR%%/html/minus.gif +%%PORTDOCS%%%%DOCSDIR%%/html/plus.gif +%%PORTDOCS%%%%DOCSDIR%%/html/Text-Regex-PCRE-Light-Base.html +%%PORTDOCS%%%%DOCSDIR%%/html/Text-Regex-PCRE-Light-Char8.html +%%PORTDOCS%%%%DOCSDIR%%/html/Text-Regex-PCRE-Light.html +%%PORTDOCS%%@dirrm %%DOCSDIR%%/html +@dirrm %%DOCSDIR%% +@dirrmtry %%SUBDIR%%/Text/Regex/PCRE/Light +@dirrmtry %%SUBDIR%%/Text/Regex/PCRE +@dirrmtry %%SUBDIR%%/Text/Regex +@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 diff --git a/devel/hs-pcre-light/Makefile b/devel/hs-pcre-light/Makefile new file mode 100644 index 000000000000..b10281176dfb --- /dev/null +++ b/devel/hs-pcre-light/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: pcre-light +# Date created: December 16, 2008 +# Whom: Gabor Pali <pgj@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= pcre-light +PORTVERSION= 0.3.1 +CATEGORIES= devel haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- +PKGNAMESUFFIX= -ghc + +MAINTAINER= haskell@FreeBSD.org +COMMENT= A lightweight Haskell regex library compatible with Perl 5 + +BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc +LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre +RUN_DEPENDS= ${BUILD_DEPENDS} + +GHC_VERSION= 6.8.3 +CABALCMD= ${LOCALBASE}/bin/runghc Setup.lhs +CABALDIR= lib/ghc-${GHC_VERSION}/cabal + +SUBDIR= lib/${PORTNAME}-${PORTVERSION} +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + PORTNAME=${PORTNAME} \ + PORTVERSION=${PORTVERSION} \ + SUBDIR=${CABALDIR} +DOCSDIR= share/doc/${PORTNAME}-${PORTVERSION} + +CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir='' + +.ifndef (NOPORTDOCS) +BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock +.endif + +do-configure: + cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS} + +do-build: + cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register +.ifndef (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> diff --git a/devel/hs-pcre-light/distinfo b/devel/hs-pcre-light/distinfo new file mode 100644 index 000000000000..9806c0fb85e1 --- /dev/null +++ b/devel/hs-pcre-light/distinfo @@ -0,0 +1,3 @@ +MD5 (pcre-light-0.3.1.tar.gz) = 14d8d6e2fd200c385b1d63c888794014 +SHA256 (pcre-light-0.3.1.tar.gz) = 3585c3f0acccf866a958e78bf7192184d021f83e5e6f88e74fa53389b78318c0 +SIZE (pcre-light-0.3.1.tar.gz) = 28824 diff --git a/devel/hs-pcre-light/pkg-descr b/devel/hs-pcre-light/pkg-descr new file mode 100644 index 000000000000..7018663a7db1 --- /dev/null +++ b/devel/hs-pcre-light/pkg-descr @@ -0,0 +1,7 @@ +A small, efficient and portable Haskell regex library for Perl 5 +compatible regular expressions. + +The PCRE library is a set of functions that implement regular expression +pattern matching using the same syntax and semantics as Perl 5. + +WWW: http://code.haskell.org/~dons/code/pcre-light diff --git a/devel/hs-pcre-light/pkg-plist b/devel/hs-pcre-light/pkg-plist new file mode 100644 index 000000000000..70be97fc590c --- /dev/null +++ b/devel/hs-pcre-light/pkg-plist @@ -0,0 +1,28 @@ +%%SUBDIR%%/HSpcre-light-%%PORTVERSION%%.o +%%SUBDIR%%/Text/Regex/PCRE/Light.hi +%%SUBDIR%%/Text/Regex/PCRE/Light/Base.hi +%%SUBDIR%%/Text/Regex/PCRE/Light/Char8.hi +%%SUBDIR%%/libHSpcre-light-%%PORTVERSION%%.a +%%SUBDIR%%/%%PORTNAME%%-register.sh +%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/html/%%PORTNAME%%.haddock +%%PORTDOCS%%%%DOCSDIR%%/html/doc-index.html +%%PORTDOCS%%%%DOCSDIR%%/html/haddock-util.js +%%PORTDOCS%%%%DOCSDIR%%/html/haddock.css +%%PORTDOCS%%%%DOCSDIR%%/html/haskell_icon.gif +%%PORTDOCS%%%%DOCSDIR%%/html/index.html +%%PORTDOCS%%%%DOCSDIR%%/html/minus.gif +%%PORTDOCS%%%%DOCSDIR%%/html/plus.gif +%%PORTDOCS%%%%DOCSDIR%%/html/Text-Regex-PCRE-Light-Base.html +%%PORTDOCS%%%%DOCSDIR%%/html/Text-Regex-PCRE-Light-Char8.html +%%PORTDOCS%%%%DOCSDIR%%/html/Text-Regex-PCRE-Light.html +%%PORTDOCS%%@dirrm %%DOCSDIR%%/html +@dirrm %%DOCSDIR%% +@dirrmtry %%SUBDIR%%/Text/Regex/PCRE/Light +@dirrmtry %%SUBDIR%%/Text/Regex/PCRE +@dirrmtry %%SUBDIR%%/Text/Regex +@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 |