mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
The zip-archive library provides functions for creating, modifying, and
extracting files from zip archives. WWW: http://johnmacfarlane.net/zip-archive/ PR: ports/129679 Submitted by: pgj Approved by: miwi
This commit is contained in:
parent
6699c8483c
commit
bda678fa1c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=224519
@ -35,6 +35,7 @@
|
||||
SUBDIR += hffzip
|
||||
SUBDIR += hlextract
|
||||
SUBDIR += hpack.non-usa.only
|
||||
SUBDIR += hs-zip-archive-ghc
|
||||
SUBDIR += hs-zlib
|
||||
SUBDIR += javatar
|
||||
SUBDIR += jzip.org
|
||||
|
54
archivers/hs-zip-archive-ghc/Makefile
Normal file
54
archivers/hs-zip-archive-ghc/Makefile
Normal file
@ -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>
|
3
archivers/hs-zip-archive-ghc/distinfo
Normal file
3
archivers/hs-zip-archive-ghc/distinfo
Normal file
@ -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
|
4
archivers/hs-zip-archive-ghc/pkg-descr
Normal file
4
archivers/hs-zip-archive-ghc/pkg-descr
Normal file
@ -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/
|
26
archivers/hs-zip-archive-ghc/pkg-plist
Normal file
26
archivers/hs-zip-archive-ghc/pkg-plist
Normal file
@ -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
|
54
archivers/hs-zip-archive/Makefile
Normal file
54
archivers/hs-zip-archive/Makefile
Normal file
@ -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>
|
3
archivers/hs-zip-archive/distinfo
Normal file
3
archivers/hs-zip-archive/distinfo
Normal file
@ -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
|
4
archivers/hs-zip-archive/pkg-descr
Normal file
4
archivers/hs-zip-archive/pkg-descr
Normal file
@ -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/
|
26
archivers/hs-zip-archive/pkg-plist
Normal file
26
archivers/hs-zip-archive/pkg-plist
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user