aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-ghc-mtl
diff options
context:
space:
mode:
authorGabor Pali <pgj@FreeBSD.org>2010-01-04 08:12:50 +0000
committerGabor Pali <pgj@FreeBSD.org>2010-01-04 08:12:50 +0000
commit7a62798674b639defbdb6790aaf913b7e3b310b5 (patch)
treefb19acbd43afcd4183111a9890a418d43155f0b3 /devel/hs-ghc-mtl
parenta22def8f77a9e4adc0bd996b86c1beb71f001fc2 (diff)
downloadports-7a62798674b639defbdb6790aaf913b7e3b310b5.tar.gz
ports-7a62798674b639defbdb6790aaf913b7e3b310b5.zip
Notes
Diffstat (limited to 'devel/hs-ghc-mtl')
-rw-r--r--devel/hs-ghc-mtl/Makefile77
-rw-r--r--devel/hs-ghc-mtl/distinfo3
-rw-r--r--devel/hs-ghc-mtl/pkg-descr4
-rw-r--r--devel/hs-ghc-mtl/pkg-plist15
4 files changed, 99 insertions, 0 deletions
diff --git a/devel/hs-ghc-mtl/Makefile b/devel/hs-ghc-mtl/Makefile
new file mode 100644
index 000000000000..ea77e3dd028f
--- /dev/null
+++ b/devel/hs-ghc-mtl/Makefile
@@ -0,0 +1,77 @@
+# New ports collection makefile for: hs-ghc-mtl
+# Date created: December 20 2009
+# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ghc-mtl
+PORTVERSION= 1.0.1.0
+CATEGORIES= devel haskell
+MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
+PKGNAMEPREFIX= hs-
+
+MAINTAINER= jacula@gmail.com
+COMMENT= An mtl compatible version of the Ghc-Api monads and monad-transformers
+
+BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
+ hs-MonadCatchIO-mtl>=0.2.0.0:${PORTSDIR}/devel/hs-MonadCatchIO-mtl
+RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc \
+ hs-MonadCatchIO-mtl>=0.2.0.0:${PORTSDIR}/devel/hs-MonadCatchIO-mtl
+
+GHC_VERSION= 6.10.4
+GHCMTL_VERSION= ${PORTVERSION}
+
+GHC_CMD= ${LOCALBASE}/bin/ghc
+SETUP_CMD= ./setup
+
+DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
+GHCMTL_LIBDIR_REL= lib/${DISTNAME}
+
+PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
+ GHCMTL_VERSION=${GHCMTL_VERSION} \
+ GHCMTL_LIBDIR_REL=${GHCMTL_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}/${GHCMTL_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-ghc-mtl/distinfo b/devel/hs-ghc-mtl/distinfo
new file mode 100644
index 000000000000..2c35f5ad8c1a
--- /dev/null
+++ b/devel/hs-ghc-mtl/distinfo
@@ -0,0 +1,3 @@
+MD5 (ghc-mtl-1.0.1.0.tar.gz) = 73d8685fb937a27fe6ee2fce1f5fc3e6
+SHA256 (ghc-mtl-1.0.1.0.tar.gz) = 5284e0ecf99511e6263503412faf6fa809dc577c009fde63203d46405eb1b191
+SIZE (ghc-mtl-1.0.1.0.tar.gz) = 2239
diff --git a/devel/hs-ghc-mtl/pkg-descr b/devel/hs-ghc-mtl/pkg-descr
new file mode 100644
index 000000000000..cd1980a084fc
--- /dev/null
+++ b/devel/hs-ghc-mtl/pkg-descr
@@ -0,0 +1,4 @@
+Provides an 'mtl' compatible version of the 'GhcT' monad-transformer
+defined in the 'GHC-API' since version 6.10.1.
+
+WWW: http://code.haskell.org/~jcpetruzza/ghc-mtl
diff --git a/devel/hs-ghc-mtl/pkg-plist b/devel/hs-ghc-mtl/pkg-plist
new file mode 100644
index 000000000000..8f0eb43bae29
--- /dev/null
+++ b/devel/hs-ghc-mtl/pkg-plist
@@ -0,0 +1,15 @@
+@comment $FreeBSD$
+%%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad/Ghc.hi
+%%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSghc-mtl-%%GHCMTL_VERSION%%.o
+%%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSghc-mtl-%%GHCMTL_VERSION%%.a
+%%GHCMTL_LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrm %%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/Monad
+@dirrm %%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%GHCMTL_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%GHCMTL_LIBDIR_REL%%
+@exec /bin/sh %D/%%GHCMTL_LIBDIR_REL%%/register.sh
+@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+@unexec %D/bin/ghc-pkg unregister ghc-mtl
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old