aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpgj <pgj@FreeBSD.org>2010-01-03 06:50:17 +0800
committerpgj <pgj@FreeBSD.org>2010-01-03 06:50:17 +0800
commit5ba14f825298fb7bbda5b95a7b796ca0a49b4397 (patch)
treeabfc4802b70fd607041084a21c4f9a9f80747909
parent135a12e94454fbf24691eb592ab68a163a226251 (diff)
downloadfreebsd-ports-gnome-5ba14f825298fb7bbda5b95a7b796ca0a49b4397.tar.gz
freebsd-ports-gnome-5ba14f825298fb7bbda5b95a7b796ca0a49b4397.tar.zst
freebsd-ports-gnome-5ba14f825298fb7bbda5b95a7b796ca0a49b4397.zip
This Haskell package contains tensor data types and their instances for some
basic type classes. WWW: http://www.haskell.org/HOpenGL/ PR: ports/142129 Submitted by: Jacula Modyun <jacula(at)gmail.com>
-rw-r--r--devel/Makefile1
-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
5 files changed, 97 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index cc4143d354e7..5219a06b889c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -529,6 +529,7 @@
SUBDIR += hs-QuickCheck
SUBDIR += hs-StateVar
SUBDIR += hs-Stream
+ SUBDIR += hs-Tensor
SUBDIR += hs-alex
SUBDIR += hs-binary-ghc
SUBDIR += hs-c2hs
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