ports/142293: [new port]: haskell port math/hs-mwc-random
Jacula Modyun
jacula at gmail.com
Mon Jan 4 00:00:17 UTC 2010
>Number: 142293
>Category: ports
>Synopsis: [new port]: haskell port math/hs-mwc-random
>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: Mon Jan 04 00:00:15 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 at splork.wirewater.yow:/usr/obj/usr/src/sys/JACULA i386
>Description:
This package contains code for generating high quality random numbers that
follow either a uniform or normal distribution.
The generated numbers are suitable for use in statistical applications.
http://hackage.haskell.org/package/mwc-random
>How-To-Repeat:
>Fix:
--- hs-mwc-random.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-mwc-random
# hs-mwc-random/Makefile
# hs-mwc-random/distinfo
# hs-mwc-random/pkg-plist
# hs-mwc-random/pkg-descr
#
echo c - hs-mwc-random
mkdir -p hs-mwc-random > /dev/null 2>&1
echo x - hs-mwc-random/Makefile
sed 's/^X//' >hs-mwc-random/Makefile << 'bf41a810d3f3553c3838b0fb6b828623'
X# New ports collection makefile for: hs-mwc-random
X# Date created: January 03 2010
X# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula at gmail.com>
X#
X
XPORTNAME= mwc-random
XPORTVERSION= 0.4.1.1
XCATEGORIES= math haskell
XMASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
XPKGNAMEPREFIX= hs-
X
XMAINTAINER= jacula at gmail.com
XCOMMENT= Fast, high quality pseudo random number generation
X
XBUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
X hs-uvector>=0.1.0.4:${PORTSDIR}/devel/hs-uvector
XRUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
X hs-uvector>=0.1.0.4:${PORTSDIR}/devel/hs-uvector
X
XGHC_VERSION= 6.10.4
XMWCRANDOM_VERSION= ${PORTVERSION}
X
XGHC_CMD= ${LOCALBASE}/bin/ghc
XSETUP_CMD= ./setup
X
XDATADIR= ${PREFIX}/share/${DISTNAME}
XDOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
XMWCRANDOM_LIBDIR_REL= lib/${DISTNAME}
X
XPLIST_SUB= GHC_VERSION=${GHC_VERSION} \
X MWCRANDOM_VERSION=${MWCRANDOM_VERSION} \
X MWCRANDOM_LIBDIR_REL=${MWCRANDOM_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.lhs -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}/${MWCRANDOM_LIBDIR_REL}/register.sh
X ${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}
X
Xpost-install:
X ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
X
X.include <bsd.port.mk>
bf41a810d3f3553c3838b0fb6b828623
echo x - hs-mwc-random/distinfo
sed 's/^X//' >hs-mwc-random/distinfo << '1bc784ce48e84cae6f2f1a40fbff889e'
XMD5 (mwc-random-0.4.1.1.tar.gz) = 42b26d5edcd06c8c58d825ba16d3d5ac
XSHA256 (mwc-random-0.4.1.1.tar.gz) = b11c072adb14a59251e8b26afb4a56cade83df5433797078eda7fd86bc7d3951
XSIZE (mwc-random-0.4.1.1.tar.gz) = 8792
1bc784ce48e84cae6f2f1a40fbff889e
echo x - hs-mwc-random/pkg-plist
sed 's/^X//' >hs-mwc-random/pkg-plist << '87a23407780299b8fa046610c40b70be'
X%%MWCRANDOM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSmwc-random-%%MWCRANDOM_VERSION%%.o
X%%MWCRANDOM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Random/MWC.hi
X%%MWCRANDOM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSmwc-random-%%MWCRANDOM_VERSION%%.a
X%%MWCRANDOM_LIBDIR_REL%%/register.sh
X%%DATADIR%%/README
X%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
X%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
X at dirrmtry %%DATADIR%%
X at dirrm %%MWCRANDOM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System/Random
X at dirrm %%MWCRANDOM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/System
X at dirrm %%MWCRANDOM_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
X at dirrm %%MWCRANDOM_LIBDIR_REL%%
X at exec /bin/sh %D/%%MWCRANDOM_LIBDIR_REL%%/register.sh
X at exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
X at unexec %D/bin/ghc-pkg unregister mwc-random
X at unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
87a23407780299b8fa046610c40b70be
echo x - hs-mwc-random/pkg-descr
sed 's/^X//' >hs-mwc-random/pkg-descr << '865af7676cab49ed82daf98d7fd6fd38'
XThis package contains code for generating high quality random
Xnumbers that follow either a uniform or normal distribution. The
Xgenerated numbers are suitable for use in statistical applications.
X
XThe uniform PRNG uses Marsaglia's MWC256 (also known as MWC8222)
Xmultiply-with-carry generator, which has a period of 2^8222 and
Xfares well in tests of randomness. It is also extremely fast,
Xbetween 2 and 3 times faster than the Mersenne Twister.
X
XCompared to the mersenne-random package, this package has a more
Xconvenient API, is faster, and supports more statistical
Xdistributions.
X
XWWW: http://darcs.serpentine.com/mwc-random
865af7676cab49ed82daf98d7fd6fd38
exit
--- hs-mwc-random.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list