diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2008-11-23 08:23:25 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2008-11-23 08:23:25 +0000 |
commit | bee59b90bee49e6526dc0526075f36dcfcaec1db (patch) | |
tree | 1bd9a2869f9de60ebe07823495ae2349704375b2 /devel/hs-utf8-string/Makefile | |
parent | 35791b99bf028589a363400c52fc5b4576c7543b (diff) | |
download | ports-bee59b90bee49e6526dc0526075f36dcfcaec1db.tar.gz ports-bee59b90bee49e6526dc0526075f36dcfcaec1db.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>
Notes
Notes:
svn path=/head/; revision=223228
Diffstat (limited to 'devel/hs-utf8-string/Makefile')
-rw-r--r-- | devel/hs-utf8-string/Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
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> |