aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-pcre-light
diff options
context:
space:
mode:
authorGabor Pali <pgj@FreeBSD.org>2008-12-21 11:41:49 +0000
committerGabor Pali <pgj@FreeBSD.org>2008-12-21 11:41:49 +0000
commit247cc9d9d156acbe366fc4822c18dd3944440eb4 (patch)
tree403cef0753c6a7a239bf520ed5eed5d2dda59bff /devel/hs-pcre-light
parent8b64760e5e43630019eefa5b760fb5d9ac61bf7d (diff)
downloadports-247cc9d9d156acbe366fc4822c18dd3944440eb4.tar.gz
ports-247cc9d9d156acbe366fc4822c18dd3944440eb4.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
Notes
Notes: svn path=/head/; revision=224521
Diffstat (limited to 'devel/hs-pcre-light')
-rw-r--r--devel/hs-pcre-light/Makefile52
-rw-r--r--devel/hs-pcre-light/distinfo3
-rw-r--r--devel/hs-pcre-light/pkg-descr7
-rw-r--r--devel/hs-pcre-light/pkg-plist28
4 files changed, 90 insertions, 0 deletions
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