mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
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". WWW: http://code.haskell.org/~dons/code/uvector PR: ports/142285 Submitted by: Jacula Modyun <jacula(at)gmail.com>
This commit is contained in:
parent
1b2d44a9ea
commit
cadb49ec90
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=247111
5 changed files with 129 additions and 0 deletions
|
@ -561,6 +561,7 @@
|
||||||
SUBDIR += hs-utf8-string-ghc
|
SUBDIR += hs-utf8-string-ghc
|
||||||
SUBDIR += hs-uuagc
|
SUBDIR += hs-uuagc
|
||||||
SUBDIR += hs-uulib
|
SUBDIR += hs-uulib
|
||||||
|
SUBDIR += hs-uvector
|
||||||
SUBDIR += hypersrc
|
SUBDIR += hypersrc
|
||||||
SUBDIR += i386-rtems-binutils
|
SUBDIR += i386-rtems-binutils
|
||||||
SUBDIR += i386-rtems-gcc
|
SUBDIR += i386-rtems-gcc
|
||||||
|
|
86
devel/hs-uvector/Makefile
Normal file
86
devel/hs-uvector/Makefile
Normal file
|
@ -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>
|
3
devel/hs-uvector/distinfo
Normal file
3
devel/hs-uvector/distinfo
Normal file
|
@ -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
|
7
devel/hs-uvector/pkg-descr
Normal file
7
devel/hs-uvector/pkg-descr
Normal file
|
@ -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
|
32
devel/hs-uvector/pkg-plist
Normal file
32
devel/hs-uvector/pkg-plist
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue