aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-deepseq
diff options
context:
space:
mode:
authorGabor Pali <pgj@FreeBSD.org>2010-01-12 21:51:03 +0000
committerGabor Pali <pgj@FreeBSD.org>2010-01-12 21:51:03 +0000
commit1033f8a85472a4ff3e67a9c1083b45c0762ba371 (patch)
treec8a46f829d3ff29c9ac92045cee1a5832f185ce6 /devel/hs-deepseq
parent5e3a82d1dec8af06ab5903bf3cdd71dba0b86afa (diff)
downloadports-1033f8a85472a4ff3e67a9c1083b45c0762ba371.tar.gz
ports-1033f8a85472a4ff3e67a9c1083b45c0762ba371.zip
Notes
Diffstat (limited to 'devel/hs-deepseq')
-rw-r--r--devel/hs-deepseq/Makefile75
-rw-r--r--devel/hs-deepseq/distinfo3
-rw-r--r--devel/hs-deepseq/pkg-descr4
-rw-r--r--devel/hs-deepseq/pkg-plist14
4 files changed, 96 insertions, 0 deletions
diff --git a/devel/hs-deepseq/Makefile b/devel/hs-deepseq/Makefile
new file mode 100644
index 000000000000..3953554b9519
--- /dev/null
+++ b/devel/hs-deepseq/Makefile
@@ -0,0 +1,75 @@
+# New ports collection makefile for: hs-deepseq
+# Date created: December 20 2009
+# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= deepseq
+PORTVERSION= 1.1.0.0
+CATEGORIES= devel haskell
+MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
+PKGNAMEPREFIX= hs-
+
+MAINTAINER= jacula@gmail.com
+COMMENT= Fully evaluate Haskell data structures
+
+BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+
+GHC_VERSION= 6.10.4
+DEEPSEQ_VERSION= ${PORTVERSION}
+
+GHC_CMD= ${LOCALBASE}/bin/ghc
+SETUP_CMD= ./setup
+
+DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
+DEEPSEQ_LIBDIR_REL= lib/${DISTNAME}
+
+PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
+ DEEPSEQ_VERSION=${DEEPSEQ_VERSION} \
+ DEEPSEQ_LIBDIR_REL=${DEEPSEQ_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}/${DEEPSEQ_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-deepseq/distinfo b/devel/hs-deepseq/distinfo
new file mode 100644
index 000000000000..868ab9ef9c99
--- /dev/null
+++ b/devel/hs-deepseq/distinfo
@@ -0,0 +1,3 @@
+MD5 (deepseq-1.1.0.0.tar.gz) = 41194f8633be8e30cacad88146dbf7c2
+SHA256 (deepseq-1.1.0.0.tar.gz) = 947c45e7ee862159f190fb8e905c1328f7672cb9e6bf3abd1d207bbcf1eee50a
+SIZE (deepseq-1.1.0.0.tar.gz) = 2920
diff --git a/devel/hs-deepseq/pkg-descr b/devel/hs-deepseq/pkg-descr
new file mode 100644
index 000000000000..9d4d7767d0d4
--- /dev/null
+++ b/devel/hs-deepseq/pkg-descr
@@ -0,0 +1,4 @@
+This package provides a "deep" version of seq, for
+fully evluating Haskell data structures.
+
+WWW: http://hackage.haskell.org/package/deepseq
diff --git a/devel/hs-deepseq/pkg-plist b/devel/hs-deepseq/pkg-plist
new file mode 100644
index 000000000000..94e62f4ab1f4
--- /dev/null
+++ b/devel/hs-deepseq/pkg-plist
@@ -0,0 +1,14 @@
+@comment $FreeBSD$
+%%DEEPSEQ_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control/DeepSeq.hi
+%%DEEPSEQ_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSdeepseq-%%DEEPSEQ_VERSION%%.o
+%%DEEPSEQ_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSdeepseq-%%DEEPSEQ_VERSION%%.a
+%%DEEPSEQ_LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrm %%DEEPSEQ_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Control
+@dirrm %%DEEPSEQ_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%DEEPSEQ_LIBDIR_REL%%
+@exec /bin/sh %D/%%DEEPSEQ_LIBDIR_REL%%/register.sh
+@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+@unexec %D/bin/ghc-pkg unregister deepseq
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old