Lines 6-12
Link Here
|
6 |
|
6 |
|
7 |
PORTNAME= stringsearch |
7 |
PORTNAME= stringsearch |
8 |
PORTVERSION= 0.2.1.1 |
8 |
PORTVERSION= 0.2.1.1 |
9 |
PORTREVISION= 2 |
9 |
PORTREVISION= 3 |
10 |
CATEGORIES= textproc haskell |
10 |
CATEGORIES= textproc haskell |
11 |
MASTER_SITES= http://hackage.haskell.org/packages/archive/stringsearch/${PORTVERSION}/ \ |
11 |
MASTER_SITES= http://hackage.haskell.org/packages/archive/stringsearch/${PORTVERSION}/ \ |
12 |
http://kerneled.org/tmp/ |
12 |
http://kerneled.org/tmp/ |
Lines 16-38
Link Here
|
16 |
COMMENT= Boyer-Moore/Knuth-Morris-Pratt string search library |
16 |
COMMENT= Boyer-Moore/Knuth-Morris-Pratt string search library |
17 |
|
17 |
|
18 |
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc |
18 |
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc |
19 |
LIB_DEPENDS= gmp.8:${PORTSDIR}/math/libgmp4 |
19 |
RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc |
20 |
|
20 |
|
21 |
CABAL= ${LOCALBASE}/bin/runghc Setup.lhs |
21 |
GHC_VERSION= 6.10.4 |
22 |
GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version` |
22 |
STRINGSEARCH_VERSION= ${PORTVERSION} |
23 |
SUBDIR= lib/${PORTNAME}-${PORTVERSION} |
23 |
|
24 |
PLIST_SUB= GHC_VERSION="${GHC_VERSION}" \ |
24 |
GHC_CMD= ${LOCALBASE}/bin/ghc |
25 |
PORTVERSION=${PORTVERSION} \ |
25 |
SETUP_CMD= ./setup |
26 |
SUBDIR=${SUBDIR} |
26 |
|
|
|
27 |
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} |
28 |
STRINGSEARCH_LIBDIR_REL= lib/${DISTNAME} |
29 |
|
30 |
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ |
31 |
STRINGSEARCH_VERSION=${STRINGSEARCH_VERSION} \ |
32 |
STRINGSEARCH_LIBDIR_REL=${STRINGSEARCH_LIBDIR_REL} |
33 |
|
34 |
.if defined(NOPORTDOCS) |
35 |
PLIST_SUB+= NOPORTDOCS="" |
36 |
.else |
37 |
PLIST_SUB+= NOPORTDOCS="@comment " |
38 |
.endif |
39 |
|
40 |
.if !defined(NOPORTDOCS) |
41 |
|
42 |
PORT_HADDOCK!= (cd ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK) |
43 |
.if !empty(PORT_HADDOCK:M?0) |
44 |
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock |
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: |
27 |
|
55 |
|
28 |
do-configure: |
56 |
do-configure: |
29 |
cd ${WRKSRC} && ${CABAL} configure --prefix=${PREFIX} --ghc |
57 |
cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \ |
|
|
58 |
&& ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} |
30 |
|
59 |
|
31 |
do-build: |
60 |
do-build: |
32 |
cd ${WRKSRC} && ${CABAL} build && ${CABAL} register --gen-script |
61 |
cd ${WRKSRC} && ${SETUP_CMD} build \ |
|
|
62 |
&& ${SETUP_CMD} register --gen-script |
63 |
|
64 |
.if !defined(NOPORTDOCS) |
65 |
cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \ |
66 |
--hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css |
67 |
.endif |
33 |
|
68 |
|
34 |
do-install: |
69 |
do-install: |
35 |
cd ${WRKSRC} && ${CABAL} install |
70 |
cd ${WRKSRC} && ${SETUP_CMD} install \ |
36 |
${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh |
71 |
&& ${INSTALL_SCRIPT} register.sh ${PREFIX}/${STRINGSEARCH_LIBDIR_REL}/register.sh |
|
|
72 |
|
73 |
post-install: |
74 |
${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old |
37 |
|
75 |
|
38 |
.include <bsd.port.mk> |
76 |
.include <bsd.port.mk> |