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

(-)hs-binary-ghc/Makefile (-20 / +43 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	binary
8
PORTNAME=	binary
9
PORTVERSION=	0.5.0.1
9
PORTVERSION=	0.5.0.1
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.lhs
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
23
33
CONFIGURE_ARGS=	--ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir=''
24
BINARY_VERSION=	${PORTVERSION}
25
26
GHC_CMD=	${LOCALBASE}/bin/ghc
27
SETUP_CMD=	./setup
28
29
DOCSDIR=	${PREFIX}/share/doc/${DISTNAME}
30
BINARY_LIBDIR_REL=	lib/${DISTNAME}
31
32
PLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
33
		BINARY_VERSION=${BINARY_VERSION} \
34
		BINARY_LIBDIR_REL=${BINARY_LIBDIR_REL}
35
36
.if defined(NOPORTDOCS)
37
PLIST_SUB+=		NOPORTDOCS=""
38
.else
39
PLIST_SUB+=		NOPORTDOCS="@comment "
40
.endif
34
41
35
.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)
36
BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
46
BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
37
PLIST_SUB+=	RMLIC="@comment "
38
.else
39
PLIST_SUB+=	RMLIC=""
40
.endif
47
.endif
41
48
49
BUILD_DEPENDS+=	HsColour:${PORTSDIR}/print/hs-hscolour
50
HSCOLOUR_VERSION=	1.13
51
HSCOLOUR_DATADIR=	${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
52
53
PORTDOCS=	*
54
.endif
55
56
.SILENT:
57
42
do-configure:
58
do-configure:
43
	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 --prefix=${PREFIX}
44
61
45
do-build:
62
do-build:
46
	cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register
63
	cd ${WRKSRC} && ${SETUP_CMD} build \
64
		     && ${SETUP_CMD} register --gen-script
65
47
.if !defined(NOPORTDOCS)
66
.if !defined(NOPORTDOCS)
48
	cd ${WRKSRC} && ${CABALCMD} haddock
67
	cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
68
					     --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
49
.endif
69
.endif
50
70
51
do-install:
71
do-install:
52
	cd ${WRKSRC} && ${CABALCMD} install
72
	cd ${WRKSRC} && ${SETUP_CMD} install \
53
	${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${CABALDIR}/${PORTNAME}-register.sh
73
		     && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${BINARY_LIBDIR_REL}/register.sh
74
75
post-install:
76
	${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
54
77
55
.include <bsd.port.mk>
78
.include <bsd.port.mk>
(-)hs-binary-ghc/pkg-descr (+6 lines)
Lines 4-7 Link Here
4
have been observed, so this library should be suitable for high
4
have been observed, so this library should be suitable for high
5
performance scenarios.
5
performance scenarios.
6
6
7
Maintainer: Lennart Kolmodin, Don Stewart <dons@galois.com>
8
license: BSD3
7
WWW: http://code.haskell.org/binary/
9
WWW: http://code.haskell.org/binary/
10
11
exposed-modules: Data.Binary
12
		 Data.Binary.Put Data.Binary.Get
13
		 Data.Binary.Builder
(-)hs-binary-ghc/pkg-plist (-16 / +17 lines)
Lines 1-16 Link Here
1
@comment $FreeBSD: ports/devel/hs-binary-ghc/pkg-plist,v 1.3 2009/03/06 19:43:48 pgj Exp $
1
%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary.hi
2
%%SUBDIR%%/Data/Binary.hi
2
%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Builder.hi
3
%%SUBDIR%%/Data/Binary/Builder.hi
3
%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Get.hi
4
%%SUBDIR%%/Data/Binary/Get.hi
4
%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary/Put.hi
5
%%SUBDIR%%/Data/Binary/Put.hi
5
%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSbinary-%%BINARY_VERSION%%.o
6
%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
6
%%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSbinary-%%BINARY_VERSION%%.a
7
%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
7
%%BINARY_LIBDIR_REL%%/register.sh
8
%%SUBDIR%%/%%PORTNAME%%-register.sh
8
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
9
@dirrmtry %%SUBDIR%%/Data/Binary
9
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
10
@dirrmtry %%SUBDIR%%/Data
10
@dirrm %%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Binary
11
%%RMLIC%%%%DOCSDIR%%/LICENSE
11
@dirrm %%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
12
%%RMLIC%%@dirrm %%DOCSDIR%%
12
@dirrm %%BINARY_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
13
@exec sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh
13
@dirrm %%BINARY_LIBDIR_REL%%
14
@exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
14
@exec /bin/sh %D/%%BINARY_LIBDIR_REL%%/register.sh
15
@unexec ghc-pkg unregister %%PORTNAME%%
15
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
16
@unexec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
16
@unexec %D/bin/ghc-pkg unregister binary
17
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old

Return to bug 137068