diff options
author | Gabor Pali <pgj@FreeBSD.org> | 2008-12-21 11:28:15 +0000 |
---|---|---|
committer | Gabor Pali <pgj@FreeBSD.org> | 2008-12-21 11:28:15 +0000 |
commit | bda678fa1c336c0c60f6541c40ab5d3b11fd7d68 (patch) | |
tree | 279175bcbce6bcfa9724724c22509d498289ecdb /archivers/hs-zip-archive | |
parent | 6699c8483c696794842d1e10b82d39ce4fe6b9b9 (diff) | |
download | ports-bda678fa1c336c0c60f6541c40ab5d3b11fd7d68.tar.gz ports-bda678fa1c336c0c60f6541c40ab5d3b11fd7d68.zip |
Notes
Diffstat (limited to 'archivers/hs-zip-archive')
-rw-r--r-- | archivers/hs-zip-archive/Makefile | 54 | ||||
-rw-r--r-- | archivers/hs-zip-archive/distinfo | 3 | ||||
-rw-r--r-- | archivers/hs-zip-archive/pkg-descr | 4 | ||||
-rw-r--r-- | archivers/hs-zip-archive/pkg-plist | 26 |
4 files changed, 87 insertions, 0 deletions
diff --git a/archivers/hs-zip-archive/Makefile b/archivers/hs-zip-archive/Makefile new file mode 100644 index 000000000000..73fcc2f79664 --- /dev/null +++ b/archivers/hs-zip-archive/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: zip-archive +# Date created: December 15, 2008 +# Whom: Gabor Pali <pgj@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= zip-archive +PORTVERSION= 0.1.1.1 +CATEGORIES= archivers haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- +PKGNAMESUFFIX= -ghc + +MAINTAINER= haskell@FreeBSD.org +COMMENT= A Haskell library for working with zip archives + +BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc \ + hs-zlib>=0.5:${PORTSDIR}/archivers/hs-zlib \ + hs-binary-ghc>=0.4:${PORTSDIR}/devel/hs-binary-ghc \ + hs-utf8-string-ghc>=0.3:${PORTSDIR}/devel/hs-utf8-string-ghc +RUN_DEPENDS= ${BUILD_DEPENDS} + +GHC_VERSION= 6.8.3 +CABALCMD= ${LOCALBASE}/bin/runghc Setup.lhs +CABALDIR= lib/ghc-${GHC_VERSION}/cabal + +SUBDIR= lib/${PORTNAME}-${PORTVERSION} +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + PORTNAME=${PORTNAME} \ + PORTVERSION=${PORTVERSION} \ + SUBDIR=${CABALDIR} +DOCSDIR= share/doc/${PORTNAME}-${PORTVERSION} + +CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${PREFIX}/${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 ${PREFIX}/${CABALDIR}/${PORTNAME}-register.sh + +.include <bsd.port.mk> diff --git a/archivers/hs-zip-archive/distinfo b/archivers/hs-zip-archive/distinfo new file mode 100644 index 000000000000..ef8f143197cc --- /dev/null +++ b/archivers/hs-zip-archive/distinfo @@ -0,0 +1,3 @@ +MD5 (zip-archive-0.1.1.1.tar.gz) = fc7eab8f0cf98b20df4bb97fa7a9674b +SHA256 (zip-archive-0.1.1.1.tar.gz) = f93b21e6f118fbf79d8eaaa2759887c9048fb298b78e48b214cb02a24be9e777 +SIZE (zip-archive-0.1.1.1.tar.gz) = 19175 diff --git a/archivers/hs-zip-archive/pkg-descr b/archivers/hs-zip-archive/pkg-descr new file mode 100644 index 000000000000..8ed682939f39 --- /dev/null +++ b/archivers/hs-zip-archive/pkg-descr @@ -0,0 +1,4 @@ +The zip-archive library provides functions for creating, modifying, and +extracting files from zip archives. + +WWW: http://johnmacfarlane.net/zip-archive/ diff --git a/archivers/hs-zip-archive/pkg-plist b/archivers/hs-zip-archive/pkg-plist new file mode 100644 index 000000000000..c6e5aac83dbd --- /dev/null +++ b/archivers/hs-zip-archive/pkg-plist @@ -0,0 +1,26 @@ +%%SUBDIR%%/Codec/Archive/Zip.hi +%%SUBDIR%%/Data/Hash/CRC32/GZip.hi +%%SUBDIR%%/HSzip-archive-%%PORTVERSION%%.o +%%SUBDIR%%/libHSzip-archive-%%PORTVERSION%%.a +%%SUBDIR%%/%%PORTNAME%%-register.sh +%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/html/%%PORTNAME%%.haddock +%%PORTDOCS%%%%DOCSDIR%%/html/doc-index.html +%%PORTDOCS%%%%DOCSDIR%%/html/haddock-util.js +%%PORTDOCS%%%%DOCSDIR%%/html/haddock.css +%%PORTDOCS%%%%DOCSDIR%%/html/haskell_icon.gif +%%PORTDOCS%%%%DOCSDIR%%/html/index.html +%%PORTDOCS%%%%DOCSDIR%%/html/minus.gif +%%PORTDOCS%%%%DOCSDIR%%/html/plus.gif +%%PORTDOCS%%%%DOCSDIR%%/html/Codec-Archive-Zip.html +%%PORTDOCS%%@dirrm %%DOCSDIR%%/html +@dirrm %%DOCSDIR%% +@dirrmtry %%SUBDIR%%/Data/Hash/CRC32 +@dirrmtry %%SUBDIR%%/Data/Hash +@dirrmtry %%SUBDIR%%/Data +@dirrmtry %%SUBDIR%%/Codec/Archive +@dirrmtry %%SUBDIR%%/Codec +@exec sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh +@exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec ghc-pkg unregister %%PORTNAME%% +@unexec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |