aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-utf8-string-ghc
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-11-23 08:23:25 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-11-23 08:23:25 +0000
commitbee59b90bee49e6526dc0526075f36dcfcaec1db (patch)
tree1bd9a2869f9de60ebe07823495ae2349704375b2 /devel/hs-utf8-string-ghc
parent35791b99bf028589a363400c52fc5b4576c7543b (diff)
downloadports-bee59b90bee49e6526dc0526075f36dcfcaec1db.tar.gz
ports-bee59b90bee49e6526dc0526075f36dcfcaec1db.zip
Notes
Diffstat (limited to 'devel/hs-utf8-string-ghc')
-rw-r--r--devel/hs-utf8-string-ghc/Makefile50
-rw-r--r--devel/hs-utf8-string-ghc/distinfo3
-rw-r--r--devel/hs-utf8-string-ghc/pkg-descr5
-rw-r--r--devel/hs-utf8-string-ghc/pkg-plist39
4 files changed, 97 insertions, 0 deletions
diff --git a/devel/hs-utf8-string-ghc/Makefile b/devel/hs-utf8-string-ghc/Makefile
new file mode 100644
index 000000000000..457d51e979b3
--- /dev/null
+++ b/devel/hs-utf8-string-ghc/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: hs-utf8-string-ghc
+# Date created: 2008-10-21
+# Whom: Ashish Shukla <wahjava@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= utf8-string
+PORTVERSION= 0.3.1.1
+CATEGORIES= devel haskell
+MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
+PKGNAMEPREFIX= hs-
+PKGNAMESUFFIX= -ghc
+
+MAINTAINER= wahjava@gmail.com
+COMMENT= Support for reading/writing UTF8 strings for Haskell programs
+
+BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
+RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
+
+CABALCMD= ${LOCALBASE}/bin/runghc Setup.lhs
+CABALDIR= ${PREFIX}/lib/ghc-${GHC_VERSION}/cabal
+GHC_VERSION= 6.8.3
+SUBDIR= lib/${PORTNAME}-${PORTVERSION}
+PLIST_SUB+= GHC_VERSION=${GHC_VERSION} \
+ PORTVERSION=${PORTVERSION} \
+ PORTNAME=${PORTNAME} \
+ SUBDIR=lib/ghc-${GHC_VERSION}/cabal
+DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
+
+CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${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 ${CABALDIR}/${PORTNAME}-register.sh
+
+.include <bsd.port.mk>
diff --git a/devel/hs-utf8-string-ghc/distinfo b/devel/hs-utf8-string-ghc/distinfo
new file mode 100644
index 000000000000..88e7127fecbe
--- /dev/null
+++ b/devel/hs-utf8-string-ghc/distinfo
@@ -0,0 +1,3 @@
+MD5 (utf8-string-0.3.1.1.tar.gz) = 5fdaeff4c501e0d5e70ec9d99ff9931d
+SHA256 (utf8-string-0.3.1.1.tar.gz) = a4f75f409812f1aaa7ecadec4b58e54ee1a343ae3cee75e58e5730ddc5addbb7
+SIZE (utf8-string-0.3.1.1.tar.gz) = 7810
diff --git a/devel/hs-utf8-string-ghc/pkg-descr b/devel/hs-utf8-string-ghc/pkg-descr
new file mode 100644
index 000000000000..b1a2492948a1
--- /dev/null
+++ b/devel/hs-utf8-string-ghc/pkg-descr
@@ -0,0 +1,5 @@
+A UTF8 layer for IO and Strings. The utf8-string package
+provides operations for encoding UTF8 strings to Word8 lists
+and back, and for reading and writing UTF8 without truncation.
+
+WWW: http://code.haskell.org/utf8-string/
diff --git a/devel/hs-utf8-string-ghc/pkg-plist b/devel/hs-utf8-string-ghc/pkg-plist
new file mode 100644
index 000000000000..61151b5e42c4
--- /dev/null
+++ b/devel/hs-utf8-string-ghc/pkg-plist
@@ -0,0 +1,39 @@
+%%SUBDIR%%/Codec/Binary/UTF8/Generic.hi
+%%SUBDIR%%/Codec/Binary/UTF8/String.hi
+%%SUBDIR%%/Data/ByteString/Lazy/UTF8.hi
+%%SUBDIR%%/Data/ByteString/UTF8.hi
+%%SUBDIR%%/Data/String/UTF8.hi
+%%SUBDIR%%/HSutf8-string-0.3.1.1.o
+%%SUBDIR%%/System/IO/UTF8.hi
+%%SUBDIR%%/libHSutf8-string-0.3.1.1.a
+%%SUBDIR%%/utf8-string-register.sh
+%%DOCSDIR%%/LICENSE
+%%PORTDOCS%%%%DOCSDIR%%/html/Codec-Binary-UTF8-Generic.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Codec-Binary-UTF8-String.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Data-ByteString-Lazy-UTF8.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Data-ByteString-UTF8.html
+%%PORTDOCS%%%%DOCSDIR%%/html/Data-String-UTF8.html
+%%PORTDOCS%%%%DOCSDIR%%/html/System-IO-UTF8.html
+%%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/utf8-string.haddock
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/html
+@dirrm %%DOCSDIR%%
+@dirrm %%SUBDIR%%/System/IO
+@dirrm %%SUBDIR%%/System
+@dirrm %%SUBDIR%%/Data/String
+@dirrm %%SUBDIR%%/Data/ByteString/Lazy
+@dirrm %%SUBDIR%%/Data/ByteString
+@dirrm %%SUBDIR%%/Data
+@dirrm %%SUBDIR%%/Codec/Binary/UTF8
+@dirrm %%SUBDIR%%/Codec/Binary
+@dirrm %%SUBDIR%%/Codec
+@exec /bin/sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh
+@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+@unexec %D/bin/ghc-pkg unregister %%PORTNAME%%
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old