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