diff options
author | wxs <wxs@FreeBSD.org> | 2008-11-05 05:24:37 +0800 |
---|---|---|
committer | wxs <wxs@FreeBSD.org> | 2008-11-05 05:24:37 +0800 |
commit | 7f932517111417942e0f4f880a07f17815826c13 (patch) | |
tree | be4644743075d67a7309c61944ac1d653b582117 /archivers | |
parent | 7769cb7dcb4f5f1f4a4fe4596879eb441eaf1a5d (diff) | |
download | freebsd-ports-gnome-7f932517111417942e0f4f880a07f17815826c13.tar.gz freebsd-ports-gnome-7f932517111417942e0f4f880a07f17815826c13.tar.zst freebsd-ports-gnome-7f932517111417942e0f4f880a07f17815826c13.zip |
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.
PR: ports/128552
Submitted by: Samy Al Bahra <sbahra@kerneled.org>
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/Makefile | 1 | ||||
-rw-r--r-- | archivers/hs-zlib/Makefile | 37 | ||||
-rw-r--r-- | archivers/hs-zlib/distinfo | 3 | ||||
-rw-r--r-- | archivers/hs-zlib/pkg-descr | 8 | ||||
-rw-r--r-- | archivers/hs-zlib/pkg-plist | 18 |
5 files changed, 67 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile index 30039506d36d..e64cf8aa29c1 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -35,6 +35,7 @@ SUBDIR += hffzip SUBDIR += hlextract SUBDIR += hpack.non-usa.only + SUBDIR += hs-zlib SUBDIR += javatar SUBDIR += jzip.org SUBDIR += jzlib diff --git a/archivers/hs-zlib/Makefile b/archivers/hs-zlib/Makefile new file mode 100644 index 000000000000..aec9622e197b --- /dev/null +++ b/archivers/hs-zlib/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: zlib +# Date created: November 2, 2008 +# Whom: Samy Al Bahra <sbahra@kerneled.org> +# +# $FreeBSD$ + +PORTNAME= zlib +PORTVERSION= 0.5.0.0 +CATEGORIES= archivers haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \ + http://kerneled.org/tmp/ +PKGNAMEPREFIX= hs- + +MAINTAINER= sbahra@kerneled.org +COMMENT= Pure Haskell interface to the C zlib library + +BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc +LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4 + +CABAL= ${LOCALBASE}/bin/runghc Setup.hs +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> diff --git a/archivers/hs-zlib/distinfo b/archivers/hs-zlib/distinfo new file mode 100644 index 000000000000..32a2ff8fd31f --- /dev/null +++ b/archivers/hs-zlib/distinfo @@ -0,0 +1,3 @@ +MD5 (zlib-0.5.0.0.tar.gz) = 22fa6d394c42c8584b234799b923f860 +SHA256 (zlib-0.5.0.0.tar.gz) = 20e067cfbec87ec062ac144875a60e158ea6cf7836aac031ec367fcdd5446891 +SIZE (zlib-0.5.0.0.tar.gz) = 122533 diff --git a/archivers/hs-zlib/pkg-descr b/archivers/hs-zlib/pkg-descr new file mode 100644 index 000000000000..8d178293cde6 --- /dev/null +++ b/archivers/hs-zlib/pkg-descr @@ -0,0 +1,8 @@ +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. + +WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/zlib diff --git a/archivers/hs-zlib/pkg-plist b/archivers/hs-zlib/pkg-plist new file mode 100644 index 000000000000..34e27c2458d2 --- /dev/null +++ b/archivers/hs-zlib/pkg-plist @@ -0,0 +1,18 @@ +%%SUBDIR%%/ghc-%%GHC_VERSION%%/libHSzlib-%%PORTVERSION%%.a +%%SUBDIR%%/ghc-%%GHC_VERSION%%/HSzlib-%%PORTVERSION%%.o +%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/GZip.hi +%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib.hi +%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Internal.hi +%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Raw.hi +%%SUBDIR%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib/Stream.hi +%%SUBDIR%%/register.sh +share/doc/zlib-%%PORTVERSION%%/LICENSE +@dirrm share/doc/zlib-%%PORTVERSION%% +@dirrm lib/zlib-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Codec/Compression/Zlib +@dirrm lib/zlib-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Codec/Compression +@dirrm lib/zlib-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Codec +@dirrm lib/zlib-%%PORTVERSION%%/ghc-%%GHC_VERSION%% +@dirrm lib/zlib-%%PORTVERSION%% +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister zlib +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |