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

(-)hs-lazysmallcheck-ghc/Makefile (-20 / +42 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	lazysmallcheck
8
PORTNAME=	lazysmallcheck
9
PORTVERSION=	0.3
9
PORTVERSION=	0.3
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.hs
23
LAZYSMALLCHECK_VERSION=	${PORTVERSION}
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
24
33
CONFIGURE_ARGS=	--ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir=''
25
GHC_CMD=	${LOCALBASE}/bin/ghc
26
SETUP_CMD=	./setup
27
28
DOCSDIR=	${PREFIX}/share/doc/${DISTNAME}
29
LAZYSMALLCHECK_LIBDIR_REL=	lib/${DISTNAME}
30
31
PLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
32
		LAZYSMALLCHECK_VERSION=${LAZYSMALLCHECK_VERSION} \
33
		LAZYSMALLCHECK_LIBDIR_REL=${LAZYSMALLCHECK_LIBDIR_REL}
34
35
.if defined(NOPORTDOCS)
36
PLIST_SUB+=		NOPORTDOCS=""
37
.else
38
PLIST_SUB+=		NOPORTDOCS="@comment "
39
.endif
34
40
35
.if !defined(NOPORTDOCS)
41
.if !defined(NOPORTDOCS)
42
43
PORT_HADDOCK!=	(cd  ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
44
.if !empty(PORT_HADDOCK:M?0)
36
BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
45
BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
37
PLIST_SUB+=	RMLIC="@comment "
38
.else
39
PLIST_SUB+=	RMLIC=""
40
.endif
46
.endif
47
BUILD_DEPENDS+=	HsColour:${PORTSDIR}/print/hs-hscolour
48
49
HSCOLOUR_VERSION=	1.13
50
HSCOLOUR_DATADIR=	${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
51
52
PORTDOCS=	*
53
.endif
54
55
.SILENT:
41
56
42
do-configure:
57
do-configure:
43
	cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS}
58
	cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
59
		     && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
44
60
45
do-build:
61
do-build:
46
	cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register
62
	cd ${WRKSRC} && ${SETUP_CMD} build \
63
		     && ${SETUP_CMD} register --gen-script
64
47
.if !defined(NOPORTDOCS)
65
.if !defined(NOPORTDOCS)
48
	cd ${WRKSRC} && ${CABALCMD} haddock
66
	cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
67
					     --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
49
.endif
68
.endif
50
69
51
do-install:
70
do-install:
52
	cd ${WRKSRC} && ${CABALCMD} install
71
	cd ${WRKSRC} && ${SETUP_CMD} install \
53
	${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${CABALDIR}/${PORTNAME}-register.sh
72
		     && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${LAZYSMALLCHECK_LIBDIR_REL}/register.sh
73
74
post-install:
75
	${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
54
76
55
.include <bsd.port.mk>
77
.include <bsd.port.mk>
(-)hs-lazysmallcheck-ghc/files/patch-lazysmallcheck.cabal (+11 lines)
Line 0 Link Here
1
--- lazysmallcheck.cabal.orig	2009-07-15 09:45:12.000000000 +0000
2
+++ lazysmallcheck.cabal	2009-07-15 09:45:44.000000000 +0000
3
@@ -16,7 +16,7 @@
4
   significantly fewer test-cases to verify a property for all inputs up 
5
   to a given depth.
6
 Category:           Testing
7
-Build-Depends:      base, haskell98
8
+Build-Depends:      base < 4, haskell98
9
 Build-Type:         Simple
10
 Extra-Source-Files:
11
   examples/Catch.hs
(-)hs-lazysmallcheck-ghc/pkg-descr (-1 / +7 lines)
Lines 5-8 Link Here
5
in SmallCheck, Lazy SmallCheck may require significantly fewer
5
in SmallCheck, Lazy SmallCheck may require significantly fewer
6
test-cases to verify a property for all inputs up to a given depth.
6
test-cases to verify a property for all inputs up to a given depth.
7
7
8
WWW: http://www.cs.york.ac.uk/~mfn/lazysmallcheck/
8
Author:		Matthew Naylor and Fredrik Lindblad
9
Maintainer:	Matthew Naylor <mfn@cs.york.ac.uk>
10
License:	BSD3
11
WWW:		http://www.cs.york.ac.uk/~mfn/lazysmallcheck/
12
13
Exposed-modules: Test.LazySmallCheck,
14
		 Test.LazySmallCheck.Generic
(-)hs-lazysmallcheck-ghc/pkg-plist (-14 / +15 lines)
Lines 1-14 Link Here
1
@comment $FreeBSD: ports/devel/hs-lazysmallcheck-ghc/pkg-plist,v 1.1 2009/03/14 15:19:34 pgj Exp $
1
%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSlazysmallcheck-%%LAZYSMALLCHECK_VERSION%%.o
2
%%SUBDIR%%/Test/LazySmallCheck.hi
2
%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/LazySmallCheck.hi
3
%%SUBDIR%%/Test/LazySmallCheck/Generic.hi
3
%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/LazySmallCheck/Generic.hi
4
%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
4
%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSlazysmallcheck-%%LAZYSMALLCHECK_VERSION%%.a
5
%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
5
%%LAZYSMALLCHECK_LIBDIR_REL%%/register.sh
6
%%SUBDIR%%/%%PORTNAME%%-register.sh
6
%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
7
@dirrm    %%SUBDIR%%/Test/LazySmallCheck
7
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
8
@dirrmtry %%SUBDIR%%/Test
8
@dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/LazySmallCheck
9
%%RMLIC%%%%DOCSDIR%%/LICENSE
9
@dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
10
%%RMLIC%%@dirrm %%DOCSDIR%%
10
@dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
11
@exec sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh
11
@dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%
12
@exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
12
@exec /bin/sh %D/%%LAZYSMALLCHECK_LIBDIR_REL%%/register.sh
13
@unexec ghc-pkg unregister %%PORTNAME%%
13
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
14
@unexec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
14
@unexec %D/bin/ghc-pkg unregister lazysmallcheck
15
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old

Return to bug 137097