aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorGabor Pali <pgj@FreeBSD.org>2010-01-04 07:55:09 +0000
committerGabor Pali <pgj@FreeBSD.org>2010-01-04 07:55:09 +0000
commitcadb49ec90f2b11c40c53a37645c6db8f6f12c1f (patch)
treef0f7194749a0a06d9d18ee0450b9893d2e63ea79 /devel
parent1b2d44a9ea48e144c6fdc88bdfa676a041802da0 (diff)
downloadports-cadb49ec90f2b11c40c53a37645c6db8f6f12c1f.tar.gz
ports-cadb49ec90f2b11c40c53a37645c6db8f6f12c1f.zip
Notes
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/hs-uvector/Makefile86
-rw-r--r--devel/hs-uvector/distinfo3
-rw-r--r--devel/hs-uvector/pkg-descr7
-rw-r--r--devel/hs-uvector/pkg-plist32
5 files changed, 129 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 150eaf939d44..1aff81ccce5c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -561,6 +561,7 @@
SUBDIR += hs-utf8-string-ghc
SUBDIR += hs-uuagc
SUBDIR += hs-uulib
+ SUBDIR += hs-uvector
SUBDIR += hypersrc
SUBDIR += i386-rtems-binutils
SUBDIR += i386-rtems-gcc
diff --git a/devel/hs-uvector/Makefile b/devel/hs-uvector/Makefile
new file mode 100644
index 000000000000..24a46b750fa9
--- /dev/null
+++ b/devel/hs-uvector/Makefile
@@ -0,0 +1,86 @@
+# New ports collection makefile for: hs-uvector
+# Date created: December 20 2009
+# Whom: Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= uvector
+PORTVERSION= 0.1.1.0
+CATEGORIES= devel haskell
+MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/
+PKGNAMEPREFIX= hs-
+
+MAINTAINER= jacula@gmail.com
+COMMENT= Fast unboxed arrays with a flexible interface for Haskell
+
+BUILD_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+RUN_DEPENDS+= ghc:${PORTSDIR}/lang/ghc
+
+GHC_VERSION= 6.10.4
+UVECTOR_VERSION= ${PORTVERSION}
+
+GHC_CMD= ${LOCALBASE}/bin/ghc
+SETUP_CMD= ./setup
+
+DATADIR= ${PREFIX}/share/${DISTNAME}
+PORTDATA= *
+
+DOCSDIR= ${PREFIX}/share/doc/${DISTNAME}
+UVECTOR_LIBDIR_REL= lib/${DISTNAME}
+
+PLIST_SUB= GHC_VERSION=${GHC_VERSION} \
+ UVECTOR_VERSION=${UVECTOR_VERSION} \
+ UVECTOR_LIBDIR_REL=${UVECTOR_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
+.if !defined(NOPORTDATA)
+ cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX}
+.else
+ cd ${WRKSRC} && ${SETUP_CMD} configure --haddock-options=-w --prefix=${PREFIX} \
+ --datadir='' --datasubdir='' --docdir='${DOCSDIR}'
+.endif
+
+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}/${UVECTOR_LIBDIR_REL}/register.sh
+.if !defined(NOPORTDATA)
+ ${MKDIR} ${DATADIR} && ${INSTALL_DATA} ${WRKSRC}/README ${DATADIR}
+.endif
+
+post-install:
+ ${RM} -f ${PREFIX}/lib/ghc-${GHC_VERSION}/package.conf.old
+
+.include <bsd.port.mk>
diff --git a/devel/hs-uvector/distinfo b/devel/hs-uvector/distinfo
new file mode 100644
index 000000000000..50ce38822300
--- /dev/null
+++ b/devel/hs-uvector/distinfo
@@ -0,0 +1,3 @@
+MD5 (uvector-0.1.1.0.tar.gz) = 423e254dbbef0b57687f8adc737f7901
+SHA256 (uvector-0.1.1.0.tar.gz) = 16f1ef9673f988cfe63968827abed89b9b6b35fcb8d99c0d9aad7275b7da1bcb
+SIZE (uvector-0.1.1.0.tar.gz) = 31462
diff --git a/devel/hs-uvector/pkg-descr b/devel/hs-uvector/pkg-descr
new file mode 100644
index 000000000000..381d052092ff
--- /dev/null
+++ b/devel/hs-uvector/pkg-descr
@@ -0,0 +1,7 @@
+Fast unboxed arrays with a flexible interface for Haskell. The library is
+built of fusible combinators, as described in the paper "Stream Fusion:
+From Lists to Streams to Nothing at All".
+
+For best results, compile with your user programs with -O2 -fvia-C -optc-O3.
+
+WWW: http://code.haskell.org/~dons/code/uvector
diff --git a/devel/hs-uvector/pkg-plist b/devel/hs-uvector/pkg-plist
new file mode 100644
index 000000000000..696a96abe780
--- /dev/null
+++ b/devel/hs-uvector/pkg-plist
@@ -0,0 +1,32 @@
+@comment $FreeBSD$
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector.hi
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim/BUArr.hi
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim/Debug.hi
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim/Hyperstrict.hi
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim/Text.hi
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Stream.hi
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Basics.hi
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Enum.hi
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Permute.hi
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Stream.hi
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Sums.hi
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict/Text.hi
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/UArr.hi
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/HSuvector-%%UVECTOR_VERSION%%.o
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include/memcpy_extra.h
+%%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/libHSuvector-%%UVECTOR_VERSION%%.a
+%%UVECTOR_LIBDIR_REL%%/register.sh
+%%NOPORTDOCS%%%%DOCSDIR%%/LICENSE
+%%NOPORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/include
+@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Strict
+@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector/Prim
+@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array/Vector
+@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data/Array
+@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%/Data
+@dirrm %%UVECTOR_LIBDIR_REL%%/ghc-%%GHC_VERSION%%
+@dirrm %%UVECTOR_LIBDIR_REL%%
+@exec /bin/sh %D/%%UVECTOR_LIBDIR_REL%%/register.sh
+@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
+@unexec %D/bin/ghc-pkg unregister uvector
+@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old