aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-11-23 16:23:25 +0800
committermiwi <miwi@FreeBSD.org>2008-11-23 16:23:25 +0800
commite9e40786e1f48d9818c855abaedffd27ffdf2fba (patch)
tree24f6739957ece7ebf7d381224d26e0bc236fb90e
parentb1d9253a4eca04eac2fa05ae428bc9eeb14c577a (diff)
downloadfreebsd-ports-gnome-e9e40786e1f48d9818c855abaedffd27ffdf2fba.tar.gz
freebsd-ports-gnome-e9e40786e1f48d9818c855abaedffd27ffdf2fba.tar.zst
freebsd-ports-gnome-e9e40786e1f48d9818c855abaedffd27ffdf2fba.zip
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/ PR: ports/129049 Submitted by: Ashish Shukla <wahjava at gmail.com>
-rw-r--r--devel/Makefile1
-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
-rw-r--r--devel/hs-utf8-string/Makefile50
-rw-r--r--devel/hs-utf8-string/distinfo3
-rw-r--r--devel/hs-utf8-string/pkg-descr5
-rw-r--r--devel/hs-utf8-string/pkg-plist39
9 files changed, 195 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index eea6ca7e867f..997f43cb2991 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -501,6 +501,7 @@
SUBDIR += hs-hpl
SUBDIR += hs-idoc
SUBDIR += hs-tclhaskell-ghc
+ SUBDIR += hs-utf8-string-ghc
SUBDIR += hs-uuagc
SUBDIR += hs-uulib
SUBDIR += hypersrc
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
diff --git a/devel/hs-utf8-string/Makefile b/devel/hs-utf8-string/Makefile
new file mode 100644
index 000000000000..457d51e979b3
--- /dev/null
+++ b/devel/hs-utf8-string/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/distinfo b/devel/hs-utf8-string/distinfo
new file mode 100644
index 000000000000..88e7127fecbe
--- /dev/null
+++ b/devel/hs-utf8-string/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/pkg-descr b/devel/hs-utf8-string/pkg-descr
new file mode 100644
index 000000000000..b1a2492948a1
--- /dev/null
+++ b/devel/hs-utf8-string/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/pkg-plist b/devel/hs-utf8-string/pkg-plist
new file mode 100644
index 000000000000..61151b5e42c4
--- /dev/null
+++ b/devel/hs-utf8-string/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