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

(-)hs-stringsearch/Makefile (-12 / +50 lines)
Lines 6-12 Link Here
6
6
7
PORTNAME=	stringsearch
7
PORTNAME=	stringsearch
8
PORTVERSION=	0.2.1.1
8
PORTVERSION=	0.2.1.1
9
PORTREVISION=	2
9
PORTREVISION=	3
10
CATEGORIES=	textproc haskell
10
CATEGORIES=	textproc haskell
11
MASTER_SITES=	http://hackage.haskell.org/packages/archive/stringsearch/${PORTVERSION}/ \
11
MASTER_SITES=	http://hackage.haskell.org/packages/archive/stringsearch/${PORTVERSION}/ \
12
		http://kerneled.org/tmp/
12
		http://kerneled.org/tmp/
Lines 16-38 Link Here
16
COMMENT=	Boyer-Moore/Knuth-Morris-Pratt string search library
16
COMMENT=	Boyer-Moore/Knuth-Morris-Pratt string search library
17
17
18
BUILD_DEPENDS=	ghc:${PORTSDIR}/lang/ghc
18
BUILD_DEPENDS=	ghc:${PORTSDIR}/lang/ghc
19
LIB_DEPENDS=	gmp.8:${PORTSDIR}/math/libgmp4
19
RUN_DEPENDS=	ghc:${PORTSDIR}/lang/ghc
20
20
21
CABAL=		${LOCALBASE}/bin/runghc Setup.lhs
21
GHC_VERSION=		6.10.4
22
GHC_VERSION=	`${LOCALBASE}/bin/ghc --numeric-version`
22
STRINGSEARCH_VERSION=	${PORTVERSION}
23
SUBDIR=		lib/${PORTNAME}-${PORTVERSION}
23
24
PLIST_SUB=	GHC_VERSION="${GHC_VERSION}"		\
24
GHC_CMD=	${LOCALBASE}/bin/ghc
25
		PORTVERSION=${PORTVERSION}		\
25
SETUP_CMD=	./setup
26
		SUBDIR=${SUBDIR}
26
27
DOCSDIR=	${PREFIX}/share/doc/${DISTNAME}
28
STRINGSEARCH_LIBDIR_REL=	lib/${DISTNAME}
29
30
PLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
31
		STRINGSEARCH_VERSION=${STRINGSEARCH_VERSION} \
32
		STRINGSEARCH_LIBDIR_REL=${STRINGSEARCH_LIBDIR_REL}
33
34
.if defined(NOPORTDOCS)
35
PLIST_SUB+=		NOPORTDOCS=""
36
.else
37
PLIST_SUB+=		NOPORTDOCS="@comment "
38
.endif
39
40
.if !defined(NOPORTDOCS)
41
42
PORT_HADDOCK!=	(cd  ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
43
.if !empty(PORT_HADDOCK:M?0)
44
BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
45
.endif
46
BUILD_DEPENDS+=	HsColour:${PORTSDIR}/print/hs-hscolour
47
48
HSCOLOUR_VERSION=	1.13
49
HSCOLOUR_DATADIR=	${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
50
51
PORTDOCS=	*
52
.endif
53
54
.SILENT:
27
55
28
do-configure:
56
do-configure:
29
	cd ${WRKSRC} && ${CABAL} configure --prefix=${PREFIX} --ghc
57
	cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
58
		     && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
30
59
31
do-build:
60
do-build:
32
	cd ${WRKSRC} && ${CABAL} build && ${CABAL} register --gen-script
61
	cd ${WRKSRC} && ${SETUP_CMD} build \
62
		     && ${SETUP_CMD} register --gen-script
63
64
.if !defined(NOPORTDOCS)
65
	cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
66
					     --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
67
.endif
33
68
34
do-install:
69
do-install:
35
	cd ${WRKSRC} && ${CABAL} install
70
	cd ${WRKSRC} && ${SETUP_CMD} install \
36
	${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh
71
		     && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${STRINGSEARCH_LIBDIR_REL}/register.sh
72
73
post-install:
74
	${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
37
75
38
.include <bsd.port.mk>
76
.include <bsd.port.mk>
(-)hs-stringsearch/pkg-descr (-1 / +7 lines)
Lines 2-5 Link Here
2
implementations for Haskell bytestrings (with support for all strict and
2
implementations for Haskell bytestrings (with support for all strict and
3
lazy ByteString permutations).
3
lazy ByteString permutations).
4
4
5
WWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/stringsearch
5
Author:		Daniel Fischer, Chris Kuklewicz, Justin Bailey
6
Maintainer:	bos@serpentine.com
7
License:	BSD3
8
WWW:		http://hackage.haskell.org/cgi-bin/hackage-scripts/package/stringsearch
9
10
Exposed-modules: Data.ByteString.Search.BoyerMoore,
11
		 Data.ByteString.Search.KnuthMorrisPratt
(-)hs-stringsearch/pkg-plist (-14 / +14 lines)
Lines 1-16 Link Here
1
%%SUBDIR%%/ghc-%%GHC_VERSION%%/libHSstringsearch-%%PORTVERSION%%.a
1
%%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Search/BoyerMoore.hi
2
%%SUBDIR%%/ghc-%%GHC_VERSION%%/HSstringsearch-%%PORTVERSION%%.o
2
%%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Search/KnuthMorrisPratt.hi
3
%%SUBDIR%%/ghc-%%GHC_VERSION%%/Data/ByteString/Search/BoyerMoore.hi
3
%%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSstringsearch-%%STRINGSEARCH_VERSION%%.o
4
%%SUBDIR%%/ghc-%%GHC_VERSION%%/Data/ByteString/Search/KnuthMorrisPratt.hi
4
%%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSstringsearch-%%STRINGSEARCH_VERSION%%.a
5
%%SUBDIR%%/register.sh
5
%%STRINGSEARCH_LIBDIR_REL%%/register.sh
6
share/doc/stringsearch-%%PORTVERSION%%/LICENSE
6
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
7
@dirrm share/doc/stringsearch-%%PORTVERSION%%
7
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
8
@dirrm lib/stringsearch-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Data/ByteString/Search
8
@dirrm %%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString/Search
9
@dirrm lib/stringsearch-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Data/ByteString
9
@dirrm %%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/ByteString
10
@dirrm lib/stringsearch-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Data
10
@dirrm %%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
11
@dirrm lib/stringsearch-%%PORTVERSION%%/ghc-%%GHC_VERSION%%
11
@dirrm %%STRINGSEARCH_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
12
@dirrm lib/stringsearch-%%PORTVERSION%%
12
@dirrm %%STRINGSEARCH_LIBDIR_REL%%
13
@exec /bin/sh %D/%%SUBDIR%%/register.sh
13
@exec /bin/sh %D/%%STRINGSEARCH_LIBDIR_REL%%/register.sh
14
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
14
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
15
@unexec %D/bin/ghc-pkg unregister stringsearch 
15
@unexec %D/bin/ghc-pkg unregister stringsearch
16
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
16
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old

Return to bug 137102