ports/129427: New port: textproc/hs-utf8-string
Samy Al Bahra
sbahra at kerneled.org
Fri Dec 5 01:40:03 UTC 2008
>Number: 129427
>Category: ports
>Synopsis: New port: textproc/hs-utf8-string
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Dec 05 01:40:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Samy Al Bahra
>Release:
>Organization:
>Environment:
>Description:
A UTF8 layer for IO, ByteStrings 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://github.com/glguy/utf8-string/
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# hs-utf8-string
# hs-utf8-string/pkg-plist
# hs-utf8-string/pkg-descr
# hs-utf8-string/distinfo
# hs-utf8-string/Makefile
#
echo c - hs-utf8-string
mkdir -p hs-utf8-string > /dev/null 2>&1
echo x - hs-utf8-string/pkg-plist
sed 's/^X//' >hs-utf8-string/pkg-plist << '4e82f870d7b9f2e9db85fe99b69b2578'
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/libHSutf8-string-%%PORTVERSION%%.a
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/HSutf8-string-%%PORTVERSION%%.o
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8/Generic.hi
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8/String.hi
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/System/IO/UTF8.hi
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/Data/ByteString/Lazy/UTF8.hi
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/Data/ByteString/UTF8.hi
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/Data/String/UTF8.hi
X%%SUBDIR%%/register.sh
Xshare/doc/utf8-string-%%PORTVERSION%%/LICENSE
X at dirrm share/doc/utf8-string-%%PORTVERSION%%
X at dirrm lib/utf8-string-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Data/ByteString/Lazy
X at dirrm lib/utf8-string-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Data/ByteString
X at dirrm lib/utf8-string-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Data/String
X at dirrm lib/utf8-string-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Data
X at dirrm lib/utf8-string-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/System/IO
X at dirrm lib/utf8-string-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/System
X at dirrm lib/utf8-string-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Codec/Binary/UTF8
X at dirrm lib/utf8-string-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Codec/Binary
X at dirrm lib/utf8-string-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Codec
X at dirrm lib/utf8-string-%%PORTVERSION%%/ghc-%%GHC_VERSION%%
X at dirrm lib/utf8-string-%%PORTVERSION%%
X at exec /bin/sh %D/%%SUBDIR%%/register.sh
X at exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
X at unexec %D/bin/ghc-pkg unregister utf8-string
X at unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
4e82f870d7b9f2e9db85fe99b69b2578
echo x - hs-utf8-string/pkg-descr
sed 's/^X//' >hs-utf8-string/pkg-descr << 'dc7df5aa96100f4e7ccde0509369113f'
XA UTF8 layer for IO, ByteStrings and Strings. The utf8-string package provides
Xoperations for encoding UTF8 strings to Word8 lists and back, and for reading
Xand writing UTF8 without truncation.
X
XWWW: http://github.com/glguy/utf8-string/
dc7df5aa96100f4e7ccde0509369113f
echo x - hs-utf8-string/distinfo
sed 's/^X//' >hs-utf8-string/distinfo << '10282ed0ce0ac9926dbe5898f2fc9fed'
XMD5 (utf8-string-0.3.3.tar.gz) = f311e85aebccffb272ebf3bd49a28c8f
XSHA256 (utf8-string-0.3.3.tar.gz) = a327daab89cbe9d687f0b612422da0e032f8cb4174abcf058e583a94099b40a5
XSIZE (utf8-string-0.3.3.tar.gz) = 7821
10282ed0ce0ac9926dbe5898f2fc9fed
echo x - hs-utf8-string/Makefile
sed 's/^X//' >hs-utf8-string/Makefile << '82ac40d8eab64df1a06690ac5f36a808'
X# New ports collection makefile for: utf8-string
X# Date created: December 4, 2008
X# Whom: Samy Al Bahra <sbahra at kerneled.org>
X#
X# $FreeBSD$
X
XPORTNAME= utf8-string
XPORTVERSION= 0.3.3
XCATEGORIES= textproc haskell
XMASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \
X http://carte.kerneled.org/mirror/
XPKGNAMEPREFIX= hs-
X
XMAINTAINER= sbahra at kerneled.org
XCOMMENT= Haskell UTF8 layer for IO, ByteStrings and Strings
X
XBUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
XLIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4
X
XCABAL= ${LOCALBASE}/bin/runghc Setup.lhs
XGHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
XSUBDIR= lib/${PORTNAME}-${PORTVERSION}
XPLIST_SUB= GHC_VERSION="${GHC_VERSION}" \
X PORTVERSION=${PORTVERSION} \
X SUBDIR=${SUBDIR}
X
Xdo-configure:
X cd ${WRKSRC} && ${CABAL} configure --prefix=${PREFIX} --ghc
X
Xdo-build:
X cd ${WRKSRC} && ${CABAL} build && ${CABAL} register --gen-script
X
Xdo-install:
X cd ${WRKSRC} && ${CABAL} install
X ${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh
X
X.include <bsd.port.mk>
82ac40d8eab64df1a06690ac5f36a808
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list