Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Jan 2010 13:26:20 -0800 (PST)
From:      Jacula Modyun <jacula@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/142483: [new port]: haskell port devel/hs-testpack
Message-ID:  <201001082126.o08LQIu9023243@splork.wirewater.yow>
Resent-Message-ID: <201001082130.o08LU1cQ066834@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         142483
>Category:       ports
>Synopsis:       [new port]: haskell port devel/hs-testpack
>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 Jan 08 21:30:01 UTC 2010
>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@splork.wirewater.yow:/usr/obj/usr/src/sys/JACULA i386


	
>Description:

Haskell Test Utility Pack for HUnit and QuickCheck testpack provides
utilities for both HUnit and QuickCheck. These include tools for
running QuickCheck properties as HUnit test cases, allowing you to
combine both approaches in a single program. It also includes tools
for more helpful displays of running progress in both HUnit and
QuickCheck, additional generators for other types for QuickCheck,
and shortcuts for quickly defining new test cases.

http://hackage.haskell.org/cgi-bin/hackage-scripts/package/testpack

>How-To-Repeat:
	
>Fix:

	

--- hs-testpack.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	hs-testpack
#	hs-testpack/Makefile
#	hs-testpack/distinfo
#	hs-testpack/pkg-plist
#	hs-testpack/pkg-descr
#
echo c - hs-testpack
mkdir -p hs-testpack > /dev/null 2>&1
echo x - hs-testpack/Makefile
sed 's/^X//' >hs-testpack/Makefile << '481383dd93080e80a4c65d167595edea'
X# New ports collection makefile for: hs-testpack
X# Date created:        December 20 2009
X# Whom:                Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
X#
X
XPORTNAME=	testpack
XPORTVERSION=	1.0.2
XCATEGORIES=	devel haskell
XMASTER_SITES=	http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
XPKGNAMEPREFIX=	hs-
X
XMAINTAINER=	jacula@gmail.com
XCOMMENT=	Test Utililty Pack for HUnit and QuickCheck
X
XBUILD_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc
XRUN_DEPENDS+=	ghc:${PORTSDIR}/lang/ghc
X
XGHC_VERSION=		6.10.4
XTESTPACK_VERSION=	${PORTVERSION}
X
XGHC_CMD=	${LOCALBASE}/bin/ghc
XSETUP_CMD=	./setup
X
XDOCSDIR=		${PREFIX}/share/doc/${DISTNAME}
XTESTPACK_LIBDIR_REL=	lib/${DISTNAME}
X
XPLIST_SUB=	GHC_VERSION=${GHC_VERSION} \
X		TESTPACK_VERSION=${TESTPACK_VERSION} \
X		TESTPACK_LIBDIR_REL=${TESTPACK_LIBDIR_REL}
X
X.if defined(NOPORTDOCS)
XPLIST_SUB+=	NOPORTDOCS=""
X.else
XPLIST_SUB+=	NOPORTDOCS="@comment "
X.endif
X
X.if !defined(NOPORTDOCS)
X
XPORT_HADDOCK!=	(cd  ${.CURDIR}/../../lang/ghc && ${MAKE} -V PORT_HADDOCK)
X.if !empty(PORT_HADDOCK:M?0)
XBUILD_DEPENDS+=	haddock:${PORTSDIR}/devel/hs-haddock
X.endif
XBUILD_DEPENDS+=	HsColour:${PORTSDIR}/print/hs-hscolour
X
XHSCOLOUR_VERSION=	1.15
XHSCOLOUR_DATADIR=	${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
X
XPORTDOCS=	*
X.endif
X
X.SILENT:
X
Xdo-configure:
X	cd ${WRKSRC} && ${GHC_CMD} --make Setup.hs -o setup -package Cabal \
X		     && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
X
Xdo-build:
X	cd ${WRKSRC} && ${SETUP_CMD} build \
X		     && ${SETUP_CMD} register --gen-script
X
X.if !defined(NOPORTDOCS)
X	cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
X					     --hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
X.endif
X
Xdo-install:
X	cd ${WRKSRC} && ${SETUP_CMD} install \
X		     && ${INSTALL_SCRIPT} register.sh ${PREFIX}/${TESTPACK_LIBDIR_REL}/register.sh
X
Xpost-install:
X	${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
X
X.include <bsd.port.mk>
481383dd93080e80a4c65d167595edea
echo x - hs-testpack/distinfo
sed 's/^X//' >hs-testpack/distinfo << '8db3edcf1f8006ae5b228655684c1998'
XMD5 (testpack-1.0.2.tar.gz) = 9157c9afd6770c665a8f22bfa1663507
XSHA256 (testpack-1.0.2.tar.gz) = ff3d24a755aeeb765d5e93aa0189d0d67ac96b2d84e27a29609eb4738a6cdabc
XSIZE (testpack-1.0.2.tar.gz) = 13828
8db3edcf1f8006ae5b228655684c1998
echo x - hs-testpack/pkg-plist
sed 's/^X//' >hs-testpack/pkg-plist << '652fe5ff714c961c78f3845638afdc7c'
X%%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HStestpack-%%TESTPACK_VERSION%%.o
X%%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/HUnit/Tools.hi
X%%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Instances.hi
X%%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck/Tools.hi
X%%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHStestpack-%%TESTPACK_VERSION%%.a
X%%TESTPACK_LIBDIR_REL%%/register.sh
X%%NOPORTDOCS%%%%DOCSDIR%%/COPYRIGHT
X%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
X@dirrm %%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/QuickCheck
X@dirrm %%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test/HUnit
X@dirrm %%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Test
X@dirrm %%TESTPACK_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
X@dirrm %%TESTPACK_LIBDIR_REL%%
X@exec /bin/sh %D/%%TESTPACK_LIBDIR_REL%%/register.sh
X@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
X@unexec %D/bin/ghc-pkg unregister testpack
X@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
652fe5ff714c961c78f3845638afdc7c
echo x - hs-testpack/pkg-descr
sed 's/^X//' >hs-testpack/pkg-descr << '64404a5c98051760b43a013144815820'
XHaskell Test Utility Pack for HUnit and QuickCheck testpack provides
Xutilities for both HUnit and QuickCheck.
XThese include tools for running QuickCheck properties as HUnit test
Xcases, allowing you to combine both approaches in a single program.
XIt also includes tools for more helpful displays of running progress
Xin both HUnit and QuickCheck, additional generators for other types
Xfor QuickCheck, and shortcuts for quickly defining new test cases.
X
XWWW: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/testpack
64404a5c98051760b43a013144815820
exit
--- hs-testpack.shar ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001082126.o08LQIu9023243>