ports/128552: New port: archivers/hs-zlib
Samy Al Bahra
sbahra at kerneled.org
Mon Nov 3 02:30:02 UTC 2008
>Number: 128552
>Category: ports
>Synopsis: New port: archivers/hs-zlib
>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: Mon Nov 03 02:30:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Samy Al Bahra
>Release:
>Organization:
>Environment:
>Description:
This package provides a pure interface for compressing and decompressing
streams of data represented as lazy ByteStrings. It uses the zlib C
library so it has high performance. It supports the "zlib", "gzip" and
"raw" compression formats. It provides a convenient high level api suitable
for most tasks and for the few cases where more control is needed it provides
access to the full zlib feature set.
>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-zlib
# hs-zlib/pkg-plist
# hs-zlib/pkg-descr
# hs-zlib/distinfo
# hs-zlib/Makefile
#
echo c - hs-zlib
mkdir -p hs-zlib > /dev/null 2>&1
echo x - hs-zlib/pkg-plist
sed 's/^X//' >hs-zlib/pkg-plist << '6c848a66f7372ff26af0b678a5837504'
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/libHSzlib-%%PORTVERSION%%.a
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/HSzlib-%%PORTVERSION%%.o
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/GZip.hi
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib.hi
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Internal.hi
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Raw.hi
X%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Stream.hi
X%%SUBDIR%%/register.sh
Xshare/doc/zlib-%%PORTVERSION%%/LICENSE
X at dirrm share/doc/zlib-%%PORTVERSION%%
X at dirrm lib/zlib-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib
X at dirrm lib/zlib-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Codec/Compression
X at dirrm lib/zlib-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Codec
X at dirrm lib/zlib-%%PORTVERSION%%/ghc-%%GHC_VERSION%%
X at dirrm lib/zlib-%%PORTVERSION%%
X at exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
X at unexec %D/bin/ghc-pkg unregister zlib
X at unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
6c848a66f7372ff26af0b678a5837504
echo x - hs-zlib/pkg-descr
sed 's/^X//' >hs-zlib/pkg-descr << '5d61f60b72ae022a91ae5dd0bd955a67'
XThis package provides a pure interface for compressing and decompressing
Xstreams of data represented as lazy ByteStrings. It uses the zlib C
Xlibrary so it has high performance. It supports the "zlib", "gzip" and
X"raw" compression formats. It provides a convenient high level api suitable
Xfor most tasks and for the few cases where more control is needed it provides
Xaccess to the full zlib feature set.
X
XWWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib
5d61f60b72ae022a91ae5dd0bd955a67
echo x - hs-zlib/distinfo
sed 's/^X//' >hs-zlib/distinfo << '869d895ab5cd6280ae0b7e18fdddad23'
XMD5 (zlib-0.5.0.0.tar.gz) = 22fa6d394c42c8584b234799b923f860
XSHA256 (zlib-0.5.0.0.tar.gz) = 20e067cfbec87ec062ac144875a60e158ea6cf7836aac031ec367fcdd5446891
XSIZE (zlib-0.5.0.0.tar.gz) = 122533
869d895ab5cd6280ae0b7e18fdddad23
echo x - hs-zlib/Makefile
sed 's/^X//' >hs-zlib/Makefile << '3dfd2ff451223919c14b01acb73c64c0'
X# New ports collection makefile for: zlib
X# Date created: November 2, 2008
X# Whom: Samy Al Bahra <sbahra at kerneled.org>
X#
X# $FreeBSD$
X
XPORTNAME= zlib
XPORTVERSION= 0.5.0.0
XCATEGORIES= archivers haskell
XMASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \
X http://kerneled.org/tmp/
XPKGNAMEPREFIX= hs-
X
XMAINTAINER= sbahra at kerneled.org
XCOMMENT= Pure Haskell interface to the C zlib library
X
XBUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
XLIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4
X
XCABAL= ${LOCALBASE}/bin/runghc Setup.hs
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>
3dfd2ff451223919c14b01acb73c64c0
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list