aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2010-01-04 16:00:59 +0800
committerpgj <pgj@FreeBSD.org>2010-01-04 16:00:59 +0800
commit07bb976a1dca5e57437a97debc71674de0c0fa22 (patch)
tree4caa4d604f36608e6480d594b58140f320b00218 /devel
parente08715da80d1773530b82f7d64c42b560a6a556d (diff)
downloadfreebsd-ports-graphics-07bb976a1dca5e57437a97debc71674de0c0fa22.tar.gz
freebsd-ports-graphics-07bb976a1dca5e57437a97debc71674de0c0fa22.tar.zst
freebsd-ports-graphics-07bb976a1dca5e57437a97debc71674de0c0fa22.zip
Haskell 98 part of a monad transformer library, inspired by the paper
"Functional Programming with Overloading and Higher-Order Polymorphism", by Mark P Jones, in Advanced School of Functional Programming, 1995 (<http://web.cecs.pdx.edu/~mpj/pubs/springschool.html>). This part contains the monad transformer class, the concrete monad transformers, operations and liftings. It can be used on its own in Haskell 98 code, or with the monad classes in the monads-fd or monads-tf packages, which automatically lift operations introduced by monad transformers through other transformers. WWW: http://hackage.haskell.org/package/transformers PR: ports/142288 Submitted by: Jacula Modyun <jacula(at)gmail.com>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/hs-transformers/Makefile75
-rw-r--r--devel/hs-transformers/distinfo3
-rw-r--r--devel/hs-transformers/pkg-descr12
-rw-r--r--devel/hs-transformers/pkg-plist35
5 files changed, 126 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index a78de150643..66e1209e2f7 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -557,6 +557,7 @@
SUBDIR += hs-safe
SUBDIR += hs-show
SUBDIR += hs-smallcheck
+ SUBDIR += hs-transformers
SUBDIR += hs-uniplate
SUBDIR += hs-utf8-string-ghc
SUBDIR += hs-uuagc
diff --git a/devel/hs-transformers/Makefile b/devel/hs-transformers/Makefile
new file mode 100644
index 00000000000..b430187cf67
--- /dev/null
+++ b/devel/hs-transformers/Makefile
@@ -0,0 +1,75 @@
+# New ports collection makefile for: hs-transformers
+# Date created: December 20 2009
+# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= transformers
+PORTVERSION= 0.1.4.0
+CATEGORIES= devel haskell
+MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
+PKGNAMEPREFIX= hs-
+
+MAINTAINER= jacula@gmail.com
+COMMENT= Concrete Haskell monad transformers
+
+BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+
+GHC_VERSION= 6.10.4
+TRANSFORMERS_VERSION= ${PORTVERSION}
+
+GHC_CMD= ${LOCALBASE}/bin/ghc
+SETUP_CMD= ./setup
+
+DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
+TRANSFORMERS_LIBDIR_REL= lib/${DISTNAME}
+
+PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
+ TRANSFORMERS_VERSION=${TRANSFORMERS_VERSION} \
+ TRANSFORMERS_LIBDIR_REL=${TRANSFORMERS_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}/${TRANSFORMERS_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-transformers/distinfo b/devel/hs-transformers/distinfo
new file mode 100644
index 00000000000..a24b75410b5
--- /dev/null
+++ b/devel/hs-transformers/distinfo
@@ -0,0 +1,3 @@
+MD5 (transformers-0.1.4.0.tar.gz) = 6edd0f22594c477b05fd059fdac2c5a9
+SHA256 (transformers-0.1.4.0.tar.gz) = 6d222d1cbed75063753a7c828d7f429f24974d261872c7b70fe90a003c93646d
+SIZE (transformers-0.1.4.0.tar.gz) = 14300
diff --git a/devel/hs-transformers/pkg-descr b/devel/hs-transformers/pkg-descr
new file mode 100644
index 00000000000..ab7772190ff
--- /dev/null
+++ b/devel/hs-transformers/pkg-descr
@@ -0,0 +1,12 @@
+Haskell 98 part of a monad transformer library, inspired by the paper
+"Functional Programming with Overloading and Higher-Order Polymorphism",
+by Mark P Jones, in Advanced School of Functional Programming, 1995
+(<http://web.cecs.pdx.edu/~mpj/pubs/springschool.html>).
+
+This part contains the monad transformer class, the concrete monad
+transformers, operations and liftings. It can be used on its own
+in Haskell 98 code, or with the monad classes in the monads-fd or
+monads-tf packages, which automatically lift operations introduced
+by monad transformers through other transformers.
+
+WWW: http://hackage.haskell.org/package/transformers
diff --git a/devel/hs-transformers/pkg-plist b/devel/hs-transformers/pkg-plist
new file mode 100644
index 00000000000..bd559798f02
--- /dev/null
+++ b/devel/hs-transformers/pkg-plist
@@ -0,0 +1,35 @@
+@comment $FreeBSD$
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Identity.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Cont.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Error.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Identity.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/List.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Maybe.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/RWS.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/RWS/Lazy.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/RWS/Strict.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Reader.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/State.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/State/Lazy.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/State/Strict.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Writer.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Writer/Lazy.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Writer/Strict.hi
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HStransformers-%%TRANSFORMERS_VERSION%%.o
+%%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHStransformers-%%TRANSFORMERS_VERSION%%.a
+%%TRANSFORMERS_LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/Writer
+@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/State
+@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans/RWS
+@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Trans
+@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
+@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%TRANSFORMERS_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%TRANSFORMERS_LIBDIR_REL%%
+@exec /bin/sh %D/%%TRANSFORMERS_LIBDIR_REL%%/register.sh
+@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+@unexec %D/bin/ghc-pkg unregister transformers
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old