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