diff options
author | pgj <pgj@FreeBSD.org> | 2010-01-13 05:37:43 +0800 |
---|---|---|
committer | pgj <pgj@FreeBSD.org> | 2010-01-13 05:37:43 +0800 |
commit | af9833a19053b68f3a8cf4b4247e171e1b585280 (patch) | |
tree | d99b107dd7ed523700e3a5b022157cbcbc72912e /devel | |
parent | e3d730b758ec75abb3df138a38a8ccc9e5379220 (diff) | |
download | freebsd-ports-gnome-af9833a19053b68f3a8cf4b4247e171e1b585280.tar.gz freebsd-ports-gnome-af9833a19053b68f3a8cf4b4247e171e1b585280.tar.zst freebsd-ports-gnome-af9833a19053b68f3a8cf4b4247e171e1b585280.zip |
Several Haskell classes that extend the Arrow class, and some
transformers that implement or lift these classes.
WWW: http://www.haskell.org/arrows/
PR: ports/142486
Submitted by: Jacula Modyun <jacula(at)gmail.com>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/hs-arrows/Makefile | 77 | ||||
-rw-r--r-- | devel/hs-arrows/distinfo | 3 | ||||
-rw-r--r-- | devel/hs-arrows/pkg-descr | 4 | ||||
-rw-r--r-- | devel/hs-arrows/pkg-plist | 27 |
5 files changed, 112 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 7b0cc0887546..024aa759c473 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -537,6 +537,7 @@ SUBDIR += hs-Tensor SUBDIR += hs-TypeCompose SUBDIR += hs-alex + SUBDIR += hs-arrows SUBDIR += hs-binary-ghc SUBDIR += hs-c2hs SUBDIR += hs-cpphs diff --git a/devel/hs-arrows/Makefile b/devel/hs-arrows/Makefile new file mode 100644 index 000000000000..7c121d70b04d --- /dev/null +++ b/devel/hs-arrows/Makefile @@ -0,0 +1,77 @@ +# New ports collection makefile for: hs-arrows +# Date created: December 20 2009 +# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= arrows +PORTVERSION= 0.4.1.2 +CATEGORIES= devel haskell +MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ +PKGNAMEPREFIX= hs- + +MAINTAINER= jacula@gmail.com +COMMENT= Haskell arrow classes and transformers + +BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + hs-Stream>=0.4.1:${PORTSDIR}/devel/hs-Stream +RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \ + hs-Stream>=0.4.1:${PORTSDIR}/devel/hs-Stream + +GHC_VERSION= 6.10.4 +ARROWS_VERSION= ${PORTVERSION} + +GHC_CMD= ${LOCALBASE}/bin/ghc +SETUP_CMD= ./setup + +DOCSDIR= ${PREFIX}/share/doc/${DISTNAME} +ARROWS_LIBDIR_REL= lib/${DISTNAME} + +PLIST_SUB= GHC_VERSION=${GHC_VERSION} \ + ARROWS_VERSION=${ARROWS_VERSION} \ + ARROWS_LIBDIR_REL=${ARROWS_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.hs -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}/${ARROWS_LIBDIR_REL}/register.sh + +post-install: + ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old + +.include <bsd.port.mk> diff --git a/devel/hs-arrows/distinfo b/devel/hs-arrows/distinfo new file mode 100644 index 000000000000..3b3ec1a28ddc --- /dev/null +++ b/devel/hs-arrows/distinfo @@ -0,0 +1,3 @@ +MD5 (arrows-0.4.1.2.tar.gz) = 9c74d7f96d8f03b964287ffd11fcf1b3 +SHA256 (arrows-0.4.1.2.tar.gz) = 67cfeb3305917bb75d66d4a28720f8784fbbbc6a0a555c090728b1dfabcff099 +SIZE (arrows-0.4.1.2.tar.gz) = 12289 diff --git a/devel/hs-arrows/pkg-descr b/devel/hs-arrows/pkg-descr new file mode 100644 index 000000000000..2d4e21d2844c --- /dev/null +++ b/devel/hs-arrows/pkg-descr @@ -0,0 +1,4 @@ +Several Haskell classes that extend the Arrow class, and some +transformers that implement or lift these classes. + +WWW: http://www.haskell.org/arrows/ diff --git a/devel/hs-arrows/pkg-plist b/devel/hs-arrows/pkg-plist new file mode 100644 index 000000000000..8bd9152043b1 --- /dev/null +++ b/devel/hs-arrows/pkg-plist @@ -0,0 +1,27 @@ +@comment $FreeBSD$ +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Internals.hi +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Operations.hi +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer.hi +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/All.hi +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Automaton.hi +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/CoState.hi +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Error.hi +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Reader.hi +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/State.hi +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Static.hi +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Stream.hi +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer/Writer.hi +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSarrows-%%ARROWS_VERSION%%.o +%%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSarrows-%%ARROWS_VERSION%%.a +%%ARROWS_LIBDIR_REL%%/register.sh +%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE +%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm %%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow/Transformer +@dirrm %%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Arrow +@dirrm %%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control +@dirrm %%ARROWS_LIBDIR_REL%%/ghc-%%GHC_VERSION%% +@dirrm %%ARROWS_LIBDIR_REL%% +@exec /bin/sh %D/%%ARROWS_LIBDIR_REL%%/register.sh +@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old +@unexec %D/bin/ghc-pkg unregister arrows +@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old |