forked from Lainports/freebsd-ports
operations for encoding UTF8 strings to Word8 lists and back, and for reading and writing UTF8 without truncation. WWW: http://github.com/glguy/utf8-string/ PR: ports/129427 Submitted by: Samy Al Bahra <sbahra at kerneled.org>
37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
# New ports collection makefile for: utf8-string
|
|
# Date created: December 4, 2008
|
|
# Whom: Samy Al Bahra <sbahra@kerneled.org>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= utf8-string
|
|
PORTVERSION= 0.3.3
|
|
CATEGORIES= textproc haskell
|
|
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \
|
|
http://carte.kerneled.org/mirror/
|
|
PKGNAMEPREFIX= hs-
|
|
|
|
MAINTAINER= sbahra@kerneled.org
|
|
COMMENT= Haskell UTF8 layer for IO, ByteStrings and Strings
|
|
|
|
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
|
|
LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4
|
|
|
|
CABAL= ${LOCALBASE}/bin/runghc Setup.lhs
|
|
GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
|
|
SUBDIR= lib/${PORTNAME}-${PORTVERSION}
|
|
PLIST_SUB= GHC_VERSION="${GHC_VERSION}" \
|
|
PORTVERSION=${PORTVERSION} \
|
|
SUBDIR=${SUBDIR}
|
|
|
|
do-configure:
|
|
cd ${WRKSRC} && ${CABAL} configure --prefix=${PREFIX} --ghc
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${CABAL} build && ${CABAL} register --gen-script
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${CABAL} install
|
|
${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh
|
|
|
|
.include <bsd.port.mk>
|