aboutsummaryrefslogtreecommitdiff
path: root/devel/hs-Tensor
diff options
context:
space:
mode:
authorGabor Pali <pgj@FreeBSD.org>2010-01-02 22:50:17 +0000
committerGabor Pali <pgj@FreeBSD.org>2010-01-02 22:50:17 +0000
commit33fb1e4a00d49d95f5817b6c608bebf069460a1a (patch)
treee841abb3b43601a28f443f8c25087cbb4c015693 /devel/hs-Tensor
parenta7be4dac3b06582c425a34a78041c47e5f78ba38 (diff)
downloadports-33fb1e4a00d49d95f5817b6c608bebf069460a1a.tar.gz
ports-33fb1e4a00d49d95f5817b6c608bebf069460a1a.zip
Notes
Diffstat (limited to 'devel/hs-Tensor')
-rw-r--r--devel/hs-Tensor/Makefile75
-rw-r--r--devel/hs-Tensor/distinfo3
-rw-r--r--devel/hs-Tensor/pkg-descr4
-rw-r--r--devel/hs-Tensor/pkg-plist14
4 files changed, 96 insertions, 0 deletions
diff --git a/devel/hs-Tensor/Makefile b/devel/hs-Tensor/Makefile
new file mode 100644
index 000000000000..a30c31e3095e
--- /dev/null
+++ b/devel/hs-Tensor/Makefile
@@ -0,0 +1,75 @@
+# New ports collection makefile for: hs-Tensor
+# Date created: December 20 2009
+# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= Tensor
+PORTVERSION= 1.0.0.1
+CATEGORIES= devel haskell
+MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
+PKGNAMEPREFIX= hs-
+
+MAINTAINER= jacula@gmail.com
+COMMENT= Tensor data types for Haskell
+
+BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+
+GHC_VERSION= 6.10.4
+TENSOR_VERSION= ${PORTVERSION}
+
+GHC_CMD= ${LOCALBASE}/bin/ghc
+SETUP_CMD= ./setup
+
+DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
+TENSOR_LIBDIR_REL= lib/${DISTNAME}
+
+PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
+ TENSOR_VERSION=${TENSOR_VERSION} \
+ TENSOR_LIBDIR_REL=${TENSOR_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}/${TENSOR_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-Tensor/distinfo b/devel/hs-Tensor/distinfo
new file mode 100644
index 000000000000..9fe5907aa04e
--- /dev/null
+++ b/devel/hs-Tensor/distinfo
@@ -0,0 +1,3 @@
+MD5 (Tensor-1.0.0.1.tar.gz) = 67e0393f0cf4f2db06f525853e47811c
+SHA256 (Tensor-1.0.0.1.tar.gz) = e93260d22baf4808c88c553017ba6a4e8179e95a00e551d6edb2d8f9ca845981
+SIZE (Tensor-1.0.0.1.tar.gz) = 3314
diff --git a/devel/hs-Tensor/pkg-descr b/devel/hs-Tensor/pkg-descr
new file mode 100644
index 000000000000..31eac8796340
--- /dev/null
+++ b/devel/hs-Tensor/pkg-descr
@@ -0,0 +1,4 @@
+This Haskell package contains tensor data types and their instances for some
+basic type classes.
+
+WWW: http://www.haskell.org/HOpenGL/
diff --git a/devel/hs-Tensor/pkg-plist b/devel/hs-Tensor/pkg-plist
new file mode 100644
index 000000000000..5efc7806c111
--- /dev/null
+++ b/devel/hs-Tensor/pkg-plist
@@ -0,0 +1,14 @@
+@comment $FreeBSD$
+%%TENSOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Tensor.hi
+%%TENSOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSTensor-%%TENSOR_VERSION%%.o
+%%TENSOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSTensor-%%TENSOR_VERSION%%.a
+%%TENSOR_LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrm %%TENSOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%TENSOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%TENSOR_LIBDIR_REL%%
+@exec /bin/sh %D/%%TENSOR_LIBDIR_REL%%/register.sh
+@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+@unexec %D/bin/ghc-pkg unregister Tensor
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old