1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

This package provides efficient cryptographic hash implementations for

strict and lazy bytestrings for the functional programming language
Haskell.

WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/digest

Reviewed by:	gabor
Approved by:	tabthorpe
This commit is contained in:
Gabor Pali 2009-01-23 23:47:58 +00:00
parent 95f83d9f19
commit da4ace3067
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=226745
9 changed files with 153 additions and 0 deletions

View File

@ -185,6 +185,7 @@
SUBDIR += hmap
SUBDIR += horde-jeta
SUBDIR += hostsentry
SUBDIR += hs-digest-ghc
SUBDIR += httprint
SUBDIR += hunch
SUBDIR += hydra

View File

@ -0,0 +1,55 @@
# New ports collection makefile for: hs-digest-ghc
# Date created: January 22, 2009
# Whom: Gabor Pali <pgj@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= digest
PORTVERSION= 0.0.0.2
CATEGORIES= security haskell
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= Efficient cryptographic hash implementations in Haskell
BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
GHC_VERSION= 6.8.3
CABALCMD= ${LOCALBASE}/bin/runghc Setup.hs
CABALDIR= lib/ghc-${GHC_VERSION}/cabal
SUBDIR= lib/${PORTNAME}-${PORTVERSION}
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
PORTNAME=${PORTNAME} \
PORTVERSION=${PORTVERSION} \
SUBDIR=${CABALDIR}
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
PORTDOCS= LICENSE html
CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir=''
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
PLIST_SUB+= RMLIC="@comment "
.else
PLIST_SUB+= RMLIC=""
.endif
do-configure:
cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS}
do-build:
cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register
.if !defined(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>

View File

@ -0,0 +1,3 @@
MD5 (digest-0.0.0.2.tar.gz) = c093bf8ba6b0e94492e125d2aae710e1
SHA256 (digest-0.0.0.2.tar.gz) = f91066f0f1c3b7b0126e8bbcf774d8a1d3f4fa78cd28693411cda7a37172b8ac
SIZE (digest-0.0.0.2.tar.gz) = 44339

View File

@ -0,0 +1,5 @@
This package provides efficient cryptographic hash implementations for
strict and lazy bytestrings for the functional programming language
Haskell.
WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/digest

View File

@ -0,0 +1,13 @@
%%SUBDIR%%/Data/Digest/Adler32.hi
%%SUBDIR%%/Data/Digest/CRC32.hi
%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
%%SUBDIR%%/%%PORTNAME%%-register.sh
%%RMLIC%%%%DOCSDIR%%/LICENSE
%%RMLIC%%@dirrm %%DOCSDIR%%
@dirrmtry %%SUBDIR%%/Data/Digest
@dirrmtry %%SUBDIR%%/Data
@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

View File

@ -0,0 +1,55 @@
# New ports collection makefile for: hs-digest-ghc
# Date created: January 22, 2009
# Whom: Gabor Pali <pgj@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= digest
PORTVERSION= 0.0.0.2
CATEGORIES= security haskell
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
PKGNAMEPREFIX= hs-
PKGNAMESUFFIX= -ghc
MAINTAINER= haskell@FreeBSD.org
COMMENT= Efficient cryptographic hash implementations in Haskell
BUILD_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc
GHC_VERSION= 6.8.3
CABALCMD= ${LOCALBASE}/bin/runghc Setup.hs
CABALDIR= lib/ghc-${GHC_VERSION}/cabal
SUBDIR= lib/${PORTNAME}-${PORTVERSION}
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
PORTNAME=${PORTNAME} \
PORTVERSION=${PORTVERSION} \
SUBDIR=${CABALDIR}
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
PORTDOCS= LICENSE html
CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir=''
.if !defined(NOPORTDOCS)
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
PLIST_SUB+= RMLIC="@comment "
.else
PLIST_SUB+= RMLIC=""
.endif
do-configure:
cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS}
do-build:
cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register
.if !defined(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>

View File

@ -0,0 +1,3 @@
MD5 (digest-0.0.0.2.tar.gz) = c093bf8ba6b0e94492e125d2aae710e1
SHA256 (digest-0.0.0.2.tar.gz) = f91066f0f1c3b7b0126e8bbcf774d8a1d3f4fa78cd28693411cda7a37172b8ac
SIZE (digest-0.0.0.2.tar.gz) = 44339

View File

@ -0,0 +1,5 @@
This package provides efficient cryptographic hash implementations for
strict and lazy bytestrings for the functional programming language
Haskell.
WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/digest

View File

@ -0,0 +1,13 @@
%%SUBDIR%%/Data/Digest/Adler32.hi
%%SUBDIR%%/Data/Digest/CRC32.hi
%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
%%SUBDIR%%/%%PORTNAME%%-register.sh
%%RMLIC%%%%DOCSDIR%%/LICENSE
%%RMLIC%%@dirrm %%DOCSDIR%%
@dirrmtry %%SUBDIR%%/Data/Digest
@dirrmtry %%SUBDIR%%/Data
@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