Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= pcre-light |
8 |
PORTNAME= pcre-light |
9 |
PORTVERSION= 0.3.1 |
9 |
PORTVERSION= 0.3.1 |
10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 2 |
11 |
CATEGORIES= devel haskell |
11 |
CATEGORIES= devel haskell |
12 |
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ |
12 |
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ |
13 |
PKGNAMEPREFIX= hs- |
13 |
PKGNAMEPREFIX= hs- |
Lines 20-57
Link Here
|
20 |
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre |
20 |
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre |
21 |
RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc |
21 |
RUN_DEPENDS= ghc>=6.8:${PORTSDIR}/lang/ghc |
22 |
|
22 |
|
23 |
GHC_VERSION= 6.8.3 |
23 |
GHC_VERSION= 6.10.4 |
24 |
CABALCMD= ${LOCALBASE}/bin/runghc Setup.lhs |
24 |
PCRELIGHT_VERSION= ${PORTVERSION} |
25 |
CABALDIR= lib/ghc-${GHC_VERSION}/cabal |
|
|
26 |
|
27 |
SUBDIR= lib/${PORTNAME}-${PORTVERSION} |
28 |
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ |
29 |
PORTNAME=${PORTNAME} \ |
30 |
PORTVERSION=${PORTVERSION} \ |
31 |
SUBDIR=${CABALDIR} |
32 |
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION} |
33 |
PORTDOCS= LICENSE html |
34 |
|
25 |
|
35 |
CONFIGURE_ARGS= --ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir='' |
26 |
GHC_CMD= ${LOCALBASE}/bin/ghc |
|
|
27 |
SETUP_CMD= ./setup |
28 |
|
29 |
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} |
30 |
PCRELIGHT_LIBDIR_REL= lib/${DISTNAME} |
31 |
|
32 |
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ |
33 |
PCRELIGHT_VERSION=${PCRELIGHT_VERSION} \ |
34 |
PCRELIGHT_LIBDIR_REL=${PCRELIGHT_LIBDIR_REL} |
35 |
|
36 |
.if defined(NOPORTDOCS) |
37 |
PLIST_SUB+= NOPORTDOCS="" |
38 |
.else |
39 |
PLIST_SUB+= NOPORTDOCS="@comment " |
40 |
.endif |
36 |
|
41 |
|
37 |
.if !defined(NOPORTDOCS) |
42 |
.if !defined(NOPORTDOCS) |
|
|
43 |
|
44 |
PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK) |
45 |
.if !empty(PORT_HADDOCK:M?0) |
38 |
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock |
46 |
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock |
39 |
.else |
|
|
40 |
PLIST_DIRS+= %%DOCSDIR%% |
41 |
PLIST_FILES+= %%DOCSDIR%%/LICENSE |
42 |
.endif |
47 |
.endif |
|
|
48 |
BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour |
49 |
|
50 |
HSCOLOUR_VERSION= 1.13 |
51 |
HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION} |
52 |
|
53 |
PORTDOCS= * |
54 |
.endif |
55 |
|
56 |
.SILENT: |
43 |
|
57 |
|
44 |
do-configure: |
58 |
do-configure: |
45 |
cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS} |
59 |
cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \ |
|
|
60 |
&& ${SETUP_CMD} configure --haddock-options=-w \ |
61 |
--extra-include-dirs=${LOCALBASE}/include \ |
62 |
--extra-lib-dirs=${LOCALBASE}/lib --prefix=${PREFIX} |
46 |
|
63 |
|
47 |
do-build: |
64 |
do-build: |
48 |
cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register |
65 |
cd ${WRKSRC} && ${SETUP_CMD} build \ |
|
|
66 |
&& ${SETUP_CMD} register --gen-script |
67 |
|
49 |
.if !defined(NOPORTDOCS) |
68 |
.if !defined(NOPORTDOCS) |
50 |
cd ${WRKSRC} && ${CABALCMD} haddock |
69 |
cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \ |
|
|
70 |
--hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css |
51 |
.endif |
71 |
.endif |
52 |
|
72 |
|
53 |
do-install: |
73 |
do-install: |
54 |
cd ${WRKSRC} && ${CABALCMD} install |
74 |
cd ${WRKSRC} && ${SETUP_CMD} install \ |
55 |
${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${CABALDIR}/${PORTNAME}-register.sh |
75 |
&& ${INSTALL_SCRIPT} register.sh ${PREFIX}/${PCRELIGHT_LIBDIR_REL}/register.sh |
|
|
76 |
|
77 |
post-install: |
78 |
${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old |
56 |
|
79 |
|
57 |
.include <bsd.port.mk> |
80 |
.include <bsd.port.mk> |