unamb contains the "unambiguous choice" operator "unamb", which

wraps thread racing up in a purely functional, semantically simple
wrapper. Originally a part of Reactive, the author moved unamb
to its own Haskell package in order to encourage experimentation.

WWW: http://haskell.org/haskellwiki/unamb

PR:		ports/142490
Submitted by:	Jacula Modyun <jacula(at)gmail.com>
This commit is contained in:
Gabor Pali 2010-01-12 21:42:25 +00:00
parent a1a1e25787
commit 1b8391bb2d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247744
5 changed files with 98 additions and 0 deletions

View file

@ -570,6 +570,7 @@
SUBDIR += hs-smallcheck
SUBDIR += hs-testpack
SUBDIR += hs-transformers
SUBDIR += hs-unamb
SUBDIR += hs-uniplate
SUBDIR += hs-utf8-string-ghc
SUBDIR += hs-uuagc

75
devel/hs-unamb/Makefile Normal file
View file

@ -0,0 +1,75 @@
# New ports collection makefile for: hs-unamb
# Date created: December 20 2009
# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
#
# $FreeBSD$
#
PORTNAME= unamb
PORTVERSION= 0.2.2
CATEGORIES= devel haskell
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
PKGNAMEPREFIX= hs-
MAINTAINER= jacula@gmail.com
COMMENT= Unambiguous choice library for Haskell
BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
GHC_VERSION= 6.10.4
UNAMB_VERSION= ${PORTVERSION}
GHC_CMD= ${LOCALBASE}/bin/ghc
SETUP_CMD= ./setup
DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
UNAMB_LIBDIR_REL= lib/${DISTNAME}
PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
UNAMB_VERSION=${UNAMB_VERSION} \
UNAMB_LIBDIR_REL=${UNAMB_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
.endif
BUILD_DEPENDS+= HsColour:${PORTSDIR}/print/hs-hscolour
HSCOLOUR_VERSION= 1.15
HSCOLOUR_DATADIR= ${PREFIX}/share/hscolour-${HSCOLOUR_VERSION}
PORTDOCS= *
.endif
.SILENT:
do-configure:
cd ${WRKSRC} && ${GHC_CMD} --make Setup.lhs -o setup -package Cabal \
&& ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
do-build:
cd ${WRKSRC} && ${SETUP_CMD} build \
&& ${SETUP_CMD} register --gen-script
.if !defined(NOPORTDOCS)
cd ${WRKSRC} && ${SETUP_CMD} haddock --hyperlink-source \
--hscolour-css=${HSCOLOUR_DATADIR}/hscolour.css
.endif
do-install:
cd ${WRKSRC} && ${SETUP_CMD} install \
&& ${INSTALL_SCRIPT} register.sh ${PREFIX}/${UNAMB_LIBDIR_REL}/register.sh
post-install:
${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
.include <bsd.port.mk>

3
devel/hs-unamb/distinfo Normal file
View file

@ -0,0 +1,3 @@
MD5 (unamb-0.2.2.tar.gz) = 8418a80d2ba94da77bbcb0e14cf1d95d
SHA256 (unamb-0.2.2.tar.gz) = f2552f212296554b999fb8a7ade9f8957546745e628c9016d304faaf84f72363
SIZE (unamb-0.2.2.tar.gz) = 7661

6
devel/hs-unamb/pkg-descr Normal file
View file

@ -0,0 +1,6 @@
unamb contains the "unambiguous choice" operator "unamb", which
wraps thread racing up in a purely functional, semantically simple
wrapper. Originally a part of Reactive, the author moved unamb
to its own Haskell package in order to encourage experimentation.
WWW: http://haskell.org/haskellwiki/unamb

13
devel/hs-unamb/pkg-plist Normal file
View file

@ -0,0 +1,13 @@
@comment $FreeBSD$
%%UNAMB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Unamb.hi
%%UNAMB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSunamb-%%UNAMB_VERSION%%.o
%%UNAMB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSunamb-%%UNAMB_VERSION%%.a
%%UNAMB_LIBDIR_REL%%/register.sh
%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
@dirrm %%UNAMB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
@dirrm %%UNAMB_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
@dirrm %%UNAMB_LIBDIR_REL%%
@exec /bin/sh %D/%%UNAMB_LIBDIR_REL%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
@unexec %D/bin/ghc-pkg unregister unamb
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old