ports/137097: [patch]: update of devel/hs-lazysmallcheck-ghc to ghc-6.10.4

Jacula Modyun jacula at gmail.com
Fri Jul 24 19:10:04 UTC 2009


>Number:         137097
>Category:       ports
>Synopsis:       [patch]: update of devel/hs-lazysmallcheck-ghc to ghc-6.10.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 24 19:10:03 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Jacula Modyun
>Release:        FreeBSD 7.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD splork.wirewater.yow 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Sat Oct 18 11:22:07 UTC 2008 root at splork.wirewater.yow:/usr/obj/usr/src/sys/JACULA i386


	
>Description:

See the PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/137055

>How-To-Repeat:
	
>Fix:

	

--- patch-hs-lazysmallcheck-ghc.diff begins here ---
diff -uNr hs-lazysmallcheck-ghc.orig/Makefile hs-lazysmallcheck-ghc/Makefile
--- hs-lazysmallcheck-ghc.orig/Makefile	2009-03-14 15:19:34.000000000 +0000
+++ hs-lazysmallcheck-ghc/Makefile	2009-07-22 06:24:19.000000000 +0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	lazysmallcheck
 PORTVERSION=	0.3
+PORTREVISION=	1
 CATEGORIES=	devel haskell
 MASTER_SITES=	http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
 PKGNAMEPREFIX=	hs-
@@ -18,38 +19,59 @@
 BUILD_DEPENDS=	ghc>=6.8:${PORTSDIR}/lang/ghc
 RUN_DEPENDS=	ghc>=6.8:${PORTSDIR}/lang/ghc
 
-GHC_VERSION=	6.8.3
-CABALCMD=	${LOCALBASE}/bin/runghc Setup.hs
-CABALDIR=	lib/ghc-${GHC_VERSION}/cabal
-
-SUBDIR=		lib/${PORTNAME}-${PORTVERSION}
-PLIST_SUB=	GHC_VERSION=${GHC_VERSION}		\
-		PORTNAME=${PORTNAME}			\
-		PORTVERSION=${PORTVERSION}		\
-		SUBDIR=${CABALDIR}
-DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
-PORTDOCS=	LICENSE html
+GHC_VERSION=		6.10.4
+LAZYSMALLCHECK_VERSION=	${PORTVERSION}
 
-CONFIGURE_ARGS=	--ghc --prefix=${PREFIX} --libdir=${PREFIX}/${CABALDIR} --libsubdir='' --datasubdir=''
+GHC_CMD=	${LOCALBASE}/bin/ghc
+SETUP_CMD=	./setup
+
+DOCSDIR=	${PREFIX}/share/doc/${DISTNAME}
+LAZYSMALLCHECK_LIBDIR_REL=	lib/${DISTNAME}
+
+PLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
+		LAZYSMALLCHECK_VERSION=${LAZYSMALLCHECK_VERSION} \
+		LAZYSMALLCHECK_LIBDIR_REL=${LAZYSMALLCHECK_LIBDIR_REL}
+
+.if defined(NOPORTDOCS)
+PLIST_SUB+=		NOPORTDOCS=""
+.else
+PLIST_SUB+=		NOPORTDOCS="@comment "
+.endif
 
 .if !defined(NOPORTDOCS)
+
+PORT_HADDOCK!=	(cd  ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
+.if !empty(PORT_HADDOCK:M?0)
 BUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
-PLIST_SUB+=	RMLIC="@comment "
-.else
-PLIST_SUB+=	RMLIC=""
 .endif
+BUILD_DEPENDS+=	HsColour:${PORTSDIR}/print/hs-hscolour
+
+HSCOLOUR_VERSION=	1.13
+HSCOLOUR_DATADIR=	${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
+
+PORTDOCS=	*
+.endif
+
+.SILENT:
 
 do-configure:
-	cd ${WRKSRC} && ${CABALCMD} configure ${CONFIGURE_ARGS}
+	cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
+		     && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
 
 do-build:
-	cd ${WRKSRC} && ${CABALCMD} build && ${CABALCMD} --gen-script register
+	cd ${WRKSRC} && ${SETUP_CMD} build \
+		     && ${SETUP_CMD} register --gen-script
+
 .if !defined(NOPORTDOCS)
-	cd ${WRKSRC} && ${CABALCMD} haddock
+	cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
+					     --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
 .endif
 
 do-install:
-	cd ${WRKSRC} && ${CABALCMD} install
-	${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${CABALDIR}/${PORTNAME}-register.sh
+	cd ${WRKSRC} && ${SETUP_CMD} install \
+		     && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${LAZYSMALLCHECK_LIBDIR_REL}/register.sh
+
+post-install:
+	${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
 
 .include <bsd.port.mk>
diff -uNr hs-lazysmallcheck-ghc.orig/files/patch-lazysmallcheck.cabal hs-lazysmallcheck-ghc/files/patch-lazysmallcheck.cabal
--- hs-lazysmallcheck-ghc.orig/files/patch-lazysmallcheck.cabal	1970-01-01 00:00:00.000000000 +0000
+++ hs-lazysmallcheck-ghc/files/patch-lazysmallcheck.cabal	2009-07-15 09:46:00.000000000 +0000
@@ -0,0 +1,11 @@
+--- lazysmallcheck.cabal.orig	2009-07-15 09:45:12.000000000 +0000
++++ lazysmallcheck.cabal	2009-07-15 09:45:44.000000000 +0000
+@@ -16,7 +16,7 @@
+   significantly fewer test-cases to verify a property for all inputs up 
+   to a given depth.
+ Category:           Testing
+-Build-Depends:      base, haskell98
++Build-Depends:      base < 4, haskell98
+ Build-Type:         Simple
+ Extra-Source-Files:
+   examples/Catch.hs
diff -uNr hs-lazysmallcheck-ghc.orig/pkg-descr hs-lazysmallcheck-ghc/pkg-descr
--- hs-lazysmallcheck-ghc.orig/pkg-descr	2009-03-14 15:19:34.000000000 +0000
+++ hs-lazysmallcheck-ghc/pkg-descr	2009-07-20 19:26:25.000000000 +0000
@@ -5,4 +5,10 @@
 in SmallCheck, Lazy SmallCheck may require significantly fewer
 test-cases to verify a property for all inputs up to a given depth.
 
-WWW: http://www.cs.york.ac.uk/~mfn/lazysmallcheck/
+Author:		Matthew Naylor and Fredrik Lindblad
+Maintainer:	Matthew Naylor <mfn at cs.york.ac.uk>
+License:	BSD3
+WWW:		http://www.cs.york.ac.uk/~mfn/lazysmallcheck/
+
+Exposed-modules: Test.LazySmallCheck,
+		 Test.LazySmallCheck.Generic
diff -uNr hs-lazysmallcheck-ghc.orig/pkg-plist hs-lazysmallcheck-ghc/pkg-plist
--- hs-lazysmallcheck-ghc.orig/pkg-plist	2009-03-14 15:19:34.000000000 +0000
+++ hs-lazysmallcheck-ghc/pkg-plist	2009-07-22 06:32:21.000000000 +0000
@@ -1,14 +1,15 @@
- at comment $FreeBSD: ports/devel/hs-lazysmallcheck-ghc/pkg-plist,v 1.1 2009/03/14 15:19:34 pgj Exp $
-%%SUBDIR%%/Test/LazySmallCheck.hi
-%%SUBDIR%%/Test/LazySmallCheck/Generic.hi
-%%SUBDIR%%/HS%%PORTNAME%%-%%PORTVERSION%%.o
-%%SUBDIR%%/libHS%%PORTNAME%%-%%PORTVERSION%%.a
-%%SUBDIR%%/%%PORTNAME%%-register.sh
- at dirrm    %%SUBDIR%%/Test/LazySmallCheck
- at dirrmtry %%SUBDIR%%/Test
-%%RMLIC%%%%DOCSDIR%%/LICENSE
-%%RMLIC%%@dirrm %%DOCSDIR%%
- at exec sh %D/%%SUBDIR%%/%%PORTNAME%%-register.sh
- at exec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
- at unexec ghc-pkg unregister %%PORTNAME%%
- at unexec rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSlazysmallcheck-%%LAZYSMALLCHECK_VERSION%%.o
+%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/LazySmallCheck.hi
+%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/LazySmallCheck/Generic.hi
+%%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSlazysmallcheck-%%LAZYSMALLCHECK_VERSION%%.a
+%%LAZYSMALLCHECK_LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
+ at dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/LazySmallCheck
+ at dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
+ at dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+ at dirrm %%LAZYSMALLCHECK_LIBDIR_REL%%
+ at exec /bin/sh %D/%%LAZYSMALLCHECK_LIBDIR_REL%%/register.sh
+ at exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+ at unexec %D/bin/ghc-pkg unregister lazysmallcheck
+ at unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
--- patch-hs-lazysmallcheck-ghc.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list