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

(-)hs-pcre-light-ghc/Makefile (-21 / +44 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	pcre-light
8
PORTNAME=	pcre-light
9
PORTVERSION=	0.3.1
9
PORTVERSION=	0.3.1
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	devel haskell
11
CATEGORIES=	devel haskell
12
MASTER_SITES=	http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
12
MASTER_SITES=	http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
13
PKGNAMEPREFIX=	hs-
13
PKGNAMEPREFIX=	hs-
Lines 20-57 Link Here
20
LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre
20
LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre
21
RUN_DEPENDS=	ghc>=6.8:${PORTSDIR}/lang/ghc
21
RUN_DEPENDS=	ghc>=6.8:${PORTSDIR}/lang/ghc
22
22
23
GHC_VERSION=	6.8.3
23
GHC_VERSION=		6.10.4
24
CABALCMD=	${LOCALBASE}/bin/runghc Setup.lhs
24
PCRELIGHT_VERSION=	${PORTVERSION}
25
CABALDIR=	lib/ghc-${GHC_VERSION}/cabal
26
27
SUBDIR=		lib/${PORTNAME}-${PORTVERSION}
28
PLIST_SUB=	GHC_VERSION=${GHC_VERSION}		\
29
		PORTNAME=${PORTNAME}			\
30
		PORTVERSION=${PORTVERSION}		\
31
		SUBDIR=${CABALDIR}
32
DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
33
PORTDOCS=	LICENSE html
34
25
35
CONFIGURE_ARGS=	--ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir=''
26
GHC_CMD=	${LOCALBASE}/bin/ghc
27
SETUP_CMD=	./setup
28
29
DOCSDIR=		${PREFIX}/share/doc/${DISTNAME}
30
PCRELIGHT_LIBDIR_REL=	lib/${DISTNAME}
31
32
PLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
33
		PCRELIGHT_VERSION=${PCRELIGHT_VERSION} \
34
		PCRELIGHT_LIBDIR_REL=${PCRELIGHT_LIBDIR_REL}
35
36
.if defined(NOPORTDOCS)
37
PLIST_SUB+=		NOPORTDOCS=""
38
.else
39
PLIST_SUB+=		NOPORTDOCS="@comment "
40
.endif
36
41
37
.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)
38
BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
46
BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
39
.else
40
PLIST_DIRS+=	%%DOCSDIR%%
41
PLIST_FILES+=	%%DOCSDIR%%/LICENSE
42
.endif
47
.endif
48
BUILD_DEPENDS+=	HsColour:${PORTSDIR}/print/hs-hscolour
49
50
HSCOLOUR_VERSION=	1.13
51
HSCOLOUR_DATADIR=	${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
52
53
PORTDOCS=	*
54
.endif
55
56
.SILENT:
43
57
44
do-configure:
58
do-configure:
45
	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 \
61
		     			       --extra-include-dirs=${LOCALBASE}/include \
62
					       --extra-lib-dirs=${LOCALBASE}/lib  --prefix=${PREFIX}
46
63
47
do-build:
64
do-build:
48
	cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register
65
	cd ${WRKSRC} && ${SETUP_CMD} build \
66
		     && ${SETUP_CMD} register --gen-script
67
49
.if !defined(NOPORTDOCS)
68
.if !defined(NOPORTDOCS)
50
	cd ${WRKSRC} && ${CABALCMD} haddock
69
	cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
70
					     --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
51
.endif
71
.endif
52
72
53
do-install:
73
do-install:
54
	cd ${WRKSRC} && ${CABALCMD} install
74
	cd ${WRKSRC} && ${SETUP_CMD} install \
55
	${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${CABALDIR}/${PORTNAME}-register.sh
75
		     && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${PCRELIGHT_LIBDIR_REL}/register.sh
76
77
post-install:
78
	${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
56
79
57
.include <bsd.port.mk>
80
.include <bsd.port.mk>
(-)hs-pcre-light-ghc/pkg-descr (-1 / +8 lines)
Lines 4-7 Link Here
4
The PCRE library is a set of functions that implement regular expression
4
The PCRE library is a set of functions that implement regular expression
5
pattern matching using the same syntax and semantics as Perl 5.
5
pattern matching using the same syntax and semantics as Perl 5.
6
6
7
WWW: http://code.haskell.org/~dons/code/pcre-light
7
author:		Don Stewart
8
maintainer:	Don Stewart <dons@galois.com>
9
license:	BSD3
10
WWW:		http://code.haskell.org/~dons/code/pcre-light
11
12
exposed-modules: Text.Regex.PCRE.Light
13
		 Text.Regex.PCRE.Light.Char8
14
		 Text.Regex.PCRE.Light.Base
(-)hs-pcre-light-ghc/pkg-plist (-14 / +18 lines)
Lines 1-14 Link Here
1
%%SUBDIR%%/Text/Regex/PCRE/Light.hi
1
%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSpcre-light-%%PCRELIGHT_VERSION%%.o
2
%%SUBDIR%%/Text/Regex/PCRE/Light/Base.hi
2
%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light.hi
3
%%SUBDIR%%/Text/Regex/PCRE/Light/Char8.hi
3
%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light/Base.hi
4
%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
4
%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light/Char8.hi
5
%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
5
%%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSpcre-light-%%PCRELIGHT_VERSION%%.a
6
%%SUBDIR%%/%%PORTNAME%%-register.sh
6
%%PCRELIGHT_LIBDIR_REL%%/register.sh
7
@dirrmtry %%SUBDIR%%/Text/Regex/PCRE/Light
7
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
8
@dirrmtry %%SUBDIR%%/Text/Regex/PCRE
8
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
9
@dirrmtry %%SUBDIR%%/Text/Regex
9
@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE/Light
10
@dirrmtry %%SUBDIR%%/Text
10
@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex/PCRE
11
@exec sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh
11
@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/Regex
12
@exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
12
@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
13
@unexec ghc-pkg unregister %%PORTNAME%%
13
@dirrm %%PCRELIGHT_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
14
@unexec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
14
@dirrm %%PCRELIGHT_LIBDIR_REL%%
15
@exec /bin/sh %D/%%PCRELIGHT_LIBDIR_REL%%/register.sh
16
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
17
@unexec %D/bin/ghc-pkg unregister pcre-light
18
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old

Return to bug 137098