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> |