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

(-)hs-bytestring-csv/Makefile (-13 / +52 lines)
Lines 6-12 Link Here
6
6
7
PORTNAME=	bytestring-csv
7
PORTNAME=	bytestring-csv
8
PORTVERSION=	0.1.2
8
PORTVERSION=	0.1.2
9
PORTREVISION=	1
9
PORTREVISION=	2
10
CATEGORIES=	textproc haskell
10
CATEGORIES=	textproc haskell
11
MASTER_SITES=	http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \
11
MASTER_SITES=	http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \
12
		http://carte.kerneled.org/mirror/
12
		http://carte.kerneled.org/mirror/
Lines 15-39 Link Here
15
MAINTAINER=	sbahra@kerneled.org
15
MAINTAINER=	sbahra@kerneled.org
16
COMMENT=	Parse CSV formatted data efficiently with Haskell
16
COMMENT=	Parse CSV formatted data efficiently with Haskell
17
17
18
BUILD_DEPENDS=	ghc:${PORTSDIR}/lang/ghc		\
18
BUILD_DEPENDS=	ghc:${PORTSDIR}/lang/ghc \
19
		hs-dlist>=0.4.1:${PORTSDIR}/devel/hs-dlist
19
		hs-dlist>=0.4.1:${PORTSDIR}/devel/hs-dlist
20
LIB_DEPENDS=	gmp.8:${PORTSDIR}/math/libgmp4
20
RUN_DEPENDS=	ghc:${PORTSDIR}/lang/ghc \
21
		hs-dlist>=0.4.1:${PORTSDIR}/devel/hs-dlist
22
23
GHC_VERSION=		6.10.4
24
BYTESTRINGCSV_VERSION=	${PORTVERSION}
25
26
GHC_CMD=	${LOCALBASE}/bin/ghc
27
SETUP_CMD=	./setup
28
29
DOCSDIR=	${PREFIX}/share/doc/${DISTNAME}
30
BYTESTRINGCSV_LIBDIR_REL=	lib/${DISTNAME}
31
32
PLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
33
		BYTESTRINGCSV_VERSION=${BYTESTRINGCSV_VERSION} \
34
		BYTESTRINGCSV_LIBDIR_REL=${BYTESTRINGCSV_LIBDIR_REL}
35
36
.if defined(NOPORTDOCS)
37
PLIST_SUB+=		NOPORTDOCS=""
38
.else
39
PLIST_SUB+=		NOPORTDOCS="@comment "
40
.endif
21
41
22
CABAL=		${LOCALBASE}/bin/runghc Setup.lhs
42
.if !defined(NOPORTDOCS)
23
GHC_VERSION=	`${LOCALBASE}/bin/ghc --numeric-version`
43
24
SUBDIR=		lib/${PORTNAME}-${PORTVERSION}
44
PORT_HADDOCK!=	(cd  ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
25
PLIST_SUB=	GHC_VERSION="${GHC_VERSION}"		\
45
.if !empty(PORT_HADDOCK:M?0)
26
		PORTVERSION=${PORTVERSION}		\
46
BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
27
		SUBDIR=${SUBDIR}
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:
28
57
29
do-configure:
58
do-configure:
30
	cd ${WRKSRC} && ${CABAL} configure --prefix=${PREFIX} --ghc
59
	cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
60
		     && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
31
61
32
do-build:
62
do-build:
33
	cd ${WRKSRC} && ${CABAL} build && ${CABAL} register --gen-script
63
	cd ${WRKSRC} && ${SETUP_CMD} build \
64
		     && ${SETUP_CMD} register --gen-script
65
66
.if !defined(NOPORTDOCS)
67
	cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
68
					     --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
69
.endif
34
70
35
do-install:
71
do-install:
36
	cd ${WRKSRC} && ${CABAL} install
72
	cd ${WRKSRC} && ${SETUP_CMD} install \
37
	${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh
73
		     && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${BYTESTRINGCSV_LIBDIR_REL}/register.sh
74
75
post-install:
76
	${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
38
77
39
.include <bsd.port.mk>
78
.include <bsd.port.mk>
(-)hs-bytestring-csv/pkg-descr (-1 / +7 lines)
Lines 1-4 Link Here
1
A small library that allows you to parse CSV formatted data efficiently
1
A small library that allows you to parse CSV formatted data efficiently
2
with Haskell.
2
with Haskell.
3
3
4
WWW: http://code.haskell.org/~dons/code/bytestring-csv
4
Author:		Don Stewart
5
Maintainer:	dons@galois.com
6
License:	BSD3
7
WWW:		http://code.haskell.org/~dons/code/bytestring-csv
8
9
exposed-modules: Text.CSV.ByteString,
10
		 Text.CSV.ByteString.Lex
(-)hs-bytestring-csv/pkg-plist (-14 / +14 lines)
Lines 1-16 Link Here
1
%%SUBDIR%%/ghc-%%GHC_VERSION%%/libHSbytestring-csv-%%PORTVERSION%%.a
1
%%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSbytestring-csv-%%BYTESTRINGCSV_VERSION%%.o
2
%%SUBDIR%%/ghc-%%GHC_VERSION%%/HSbytestring-csv-%%PORTVERSION%%.o
2
%%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString.hi
3
%%SUBDIR%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString.hi
3
%%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString/Lex.hi
4
%%SUBDIR%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString/Lex.hi
4
%%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSbytestring-csv-%%BYTESTRINGCSV_VERSION%%.a
5
%%SUBDIR%%/register.sh
5
%%BYTESTRINGCSV_LIBDIR_REL%%/register.sh
6
share/doc/bytestring-csv-%%PORTVERSION%%/LICENSE
6
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
7
@dirrm share/doc/bytestring-csv-%%PORTVERSION%%
7
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
8
@dirrm lib/bytestring-csv-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString
8
@dirrm %%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString
9
@dirrm lib/bytestring-csv-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Text/CSV
9
@dirrm %%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text/CSV
10
@dirrm lib/bytestring-csv-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Text
10
@dirrm %%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Text
11
@dirrm lib/bytestring-csv-%%PORTVERSION%%/ghc-%%GHC_VERSION%%
11
@dirrm %%BYTESTRINGCSV_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
12
@dirrm lib/bytestring-csv-%%PORTVERSION%%
12
@dirrm %%BYTESTRINGCSV_LIBDIR_REL%%
13
@exec /bin/sh %D/%%SUBDIR%%/register.sh
13
@exec /bin/sh %D/%%BYTESTRINGCSV_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 bytestring-csv 
15
@unexec %D/bin/ghc-pkg unregister bytestring-csv
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 137069