View | Details | Raw Unified | Return to bug 137080
Collapse All | Expand All

(-)hs-x11-xft-ghc/Makefile (-19 / +42 lines)
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>
(-)hs-x11-xft-ghc/pkg-descr (-1 / +6 lines)
Lines 1-4 Link Here
1
Bindings to the Xft, X Free Type interface library, and 
1
Bindings to the Xft, X Free Type interface library, and 
2
some Xrender parts.
2
some Xrender parts.
3
3
4
WWW:	http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11-xft
4
Maintainer:	clemens@endorphin.org
5
license:	LGPL
6
WWW:		http://hackage.haskell.org/cgi-bin/hackage-scripts/package/X11-xft
7
8
exposed-modules: Graphics.X11.Xft,
9
		 Graphics.X11.Xrender
(-)hs-x11-xft-ghc/pkg-plist (-9 / +13 lines)
Lines 1-11 Link Here
1
%%SUBDIR%%/Graphics/X11/Xft.hi
1
%%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xft.hi
2
%%SUBDIR%%/Graphics/X11/Xrender.hi
2
%%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11/Xrender.hi
3
%%SUBDIR%%/HSX11-xft-0.3.o
3
%%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSX11-xft-%%HSX11XFT_VERSION%%.o
4
%%SUBDIR%%/libHSX11-xft-0.3.a
4
%%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSX11-xft-%%HSX11XFT_VERSION%%.a
5
%%SUBDIR%%/x11-xft-register.sh
5
%%HSX11XFT_LIBDIR_REL%%/register.sh
6
@dirrmtry %%SUBDIR%%/Graphics/X11
6
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
7
@dirrmtry %%SUBDIR%%/Graphics
7
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
8
@exec /bin/sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh
8
@dirrm %%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics/X11
9
@dirrm %%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Graphics
10
@dirrm %%HSX11XFT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
11
@dirrm %%HSX11XFT_LIBDIR_REL%%
12
@exec /bin/sh %D/%%HSX11XFT_LIBDIR_REL%%/register.sh
9
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
13
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
10
@unexec ghc-pkg unregister X11-xft
14
@unexec %D/bin/ghc-pkg unregister X11-xft
11
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
15
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old

Return to bug 137080