View | Details | Raw Unified | Return to bug 137072
Collapse All | Expand All

(-)hs-digest-ghc/Makefile (-21 / +42 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	digest
8
PORTNAME=	digest
9
PORTVERSION=	0.0.0.5
9
PORTVERSION=	0.0.0.6
10
CATEGORIES=	security haskell
10
CATEGORIES=	security haskell
11
MASTER_SITES=	http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
11
MASTER_SITES=	http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
12
PKGNAMEPREFIX=	hs-
12
PKGNAMEPREFIX=	hs-
Lines 18-55 Link Here
18
BUILD_DEPENDS=	ghc>=6.8:${PORTSDIR}/lang/ghc
18
BUILD_DEPENDS=	ghc>=6.8:${PORTSDIR}/lang/ghc
19
RUN_DEPENDS=	ghc>=6.8:${PORTSDIR}/lang/ghc
19
RUN_DEPENDS=	ghc>=6.8:${PORTSDIR}/lang/ghc
20
20
21
GHC_VERSION=	6.8.3
21
GHC_VERSION=	6.10.4
22
CABALCMD=	${LOCALBASE}/bin/runghc Setup.hs
22
DIGEST_VERSION=	${PORTVERSION}
23
CABALDIR=	lib/ghc-${GHC_VERSION}/cabal
24
25
SUBDIR=		lib/${PORTNAME}-${PORTVERSION}
26
PLIST_SUB=	GHC_VERSION=${GHC_VERSION}		\
27
		PORTNAME=${PORTNAME}			\
28
		PORTVERSION=${PORTVERSION}		\
29
		SUBDIR=${CABALDIR}
30
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
31
PORTDOCS=	LICENSE html
32
23
33
CONFIGURE_ARGS=	--ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir=''
24
GHC_CMD=	${LOCALBASE}/bin/ghc
25
SETUP_CMD=	./setup
26
27
DOCSDIR=	${PREFIX}/share/doc/${DISTNAME}
28
DIGEST_LIBDIR_REL=	lib/${DISTNAME}
29
30
PLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
31
		DIGEST_VERSION=${DIGEST_VERSION} \
32
		DIGEST_LIBDIR_REL=${DIGEST_LIBDIR_REL}
33
34
.if defined(NOPORTDOCS)
35
PLIST_SUB+=		NOPORTDOCS=""
36
.else
37
PLIST_SUB+=		NOPORTDOCS="@comment "
38
.endif
34
39
35
.if !defined(NOPORTDOCS)
40
.if !defined(NOPORTDOCS)
41
42
PORT_HADDOCK!=	(cd  ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
43
.if !empty(PORT_HADDOCK:M?0)
36
BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
44
BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
37
PLIST_SUB+=	RMLIC="@comment "
38
.else
39
PLIST_SUB+=	RMLIC=""
40
.endif
45
.endif
46
BUILD_DEPENDS+=	HsColour:${PORTSDIR}/print/hs-hscolour
47
48
HSCOLOUR_VERSION=	1.13
49
HSCOLOUR_DATADIR=	${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
50
51
PORTDOCS=	*
52
.endif
53
54
.SILENT:
41
55
42
do-configure:
56
do-configure:
43
	cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS}
57
	cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
58
		     && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
44
59
45
do-build:
60
do-build:
46
	cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register
61
	cd ${WRKSRC} && ${SETUP_CMD} build \
62
		     && ${SETUP_CMD} register --gen-script
63
47
.if !defined(NOPORTDOCS)
64
.if !defined(NOPORTDOCS)
48
	cd ${WRKSRC} && ${CABALCMD} haddock
65
	cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
66
					     --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
49
.endif
67
.endif
50
68
51
do-install:
69
do-install:
52
	cd ${WRKSRC} && ${CABALCMD} install
70
	cd ${WRKSRC} && ${SETUP_CMD} install \
53
	${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${CABALDIR}/${PORTNAME}-register.sh
71
		     && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${DIGEST_LIBDIR_REL}/register.sh
72
73
post-install:
74
	${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
54
75
55
.include <bsd.port.mk>
76
.include <bsd.port.mk>
(-)hs-digest-ghc/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (digest-0.0.0.5.tar.gz) = ba60cc9d1ad6d0795ad84390976699d1
1
MD5 (digest-0.0.0.6.tar.gz) = bc75fa0d90cf58973144f9af18b29214
2
SHA256 (digest-0.0.0.5.tar.gz) = dddfcdd325dc7d4fb1ce4772c1f5618cb20504b28dba8a78682011cba1341efd
2
SHA256 (digest-0.0.0.6.tar.gz) = a293da46aa874c5e75f28f4b100b766e42fbc7d6ebcb43c6351dbe3e1ec13752
3
SIZE (digest-0.0.0.5.tar.gz) = 15487
3
SIZE (digest-0.0.0.6.tar.gz) = 15522
(-)hs-digest-ghc/pkg-descr (-1 / +7 lines)
Lines 2-5 Link Here
2
strict and lazy bytestrings for the functional programming language
2
strict and lazy bytestrings for the functional programming language
3
Haskell.
3
Haskell.
4
4
5
WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/digest
5
Author:		Eugene Kirpichov <ekirpichov@gmail.com>
6
Maintainer:	Eugene Kirpichov <ekirpichov@gmail.com>
7
License:	BSD3
8
WWW:		http://hackage.haskell.org/cgi-bin/hackage-scripts/package/digest
9
10
exposed-modules: Data.Digest.CRC32,
11
		 Data.Digest.Adler32
(-)hs-digest-ghc/pkg-plist (-14 / +15 lines)
Lines 1-14 Link Here
1
@comment $FreeBSD: ports/security/hs-digest-ghc/pkg-plist,v 1.2 2009/03/06 19:50:25 pgj Exp $
1
%%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/Adler32.hi
2
%%SUBDIR%%/Data/Digest/Adler32.hi
2
%%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest/CRC32.hi
3
%%SUBDIR%%/Data/Digest/CRC32.hi
3
%%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSdigest-%%DIGEST_VERSION%%.o
4
%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
4
%%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSdigest-%%DIGEST_VERSION%%.a
5
%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
5
%%DIGEST_LIBDIR_REL%%/register.sh
6
%%SUBDIR%%/%%PORTNAME%%-register.sh
6
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
7
%%RMLIC%%%%DOCSDIR%%/LICENSE
7
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
8
%%RMLIC%%@dirrm %%DOCSDIR%%
8
@dirrm %%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Digest
9
@dirrmtry %%SUBDIR%%/Data/Digest
9
@dirrm %%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
10
@dirrmtry %%SUBDIR%%/Data
10
@dirrm %%DIGEST_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
11
@exec sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh
11
@dirrm %%DIGEST_LIBDIR_REL%%
12
@exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
12
@exec /bin/sh %D/%%DIGEST_LIBDIR_REL%%/register.sh
13
@unexec ghc-pkg unregister %%PORTNAME%%
13
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
14
@unexec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
14
@unexec %D/bin/ghc-pkg unregister digest
15
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old

Return to bug 137072