This package implements functions, analogous to those from Data.List, to

create and manipulate infinite lists: data Stream a = Cons a (Stream a).
It provides alternative definitions for those Prelude functions that make
sense on such streams.

WWW: http://www.cs.nott.ac.uk/~wss/repos/Stream/dist/doc/html/

PR:		ports/129215
Submitted by:	Samy Al Bahra <sbahra at kerneled.org>
This commit is contained in:
Martin Wilke
2008-11-29 21:02:00 +00:00
parent df6f6cc586
commit 1efa109fa9
5 changed files with 60 additions and 0 deletions

View File

@@ -487,6 +487,7 @@
SUBDIR += hp48cc
SUBDIR += hp48xgcc
SUBDIR += hptools
SUBDIR += hs-Stream
SUBDIR += hs-alex
SUBDIR += hs-buddha
SUBDIR += hs-c2hs

37
devel/hs-Stream/Makefile Normal file
View File

@@ -0,0 +1,37 @@
# New ports collection makefile for: Stream
# Date created: November 26, 2008
# Whom: Samy Al Bahra <sbahra@kerneled.org>
#
# $FreeBSD$
PORTNAME= Stream
PORTVERSION= 0.2.6
CATEGORIES= devel haskell
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \
http://carte.kerneled.org/mirror/
PKGNAMEPREFIX= hs-
MAINTAINER= sbahra@kerneled.org
COMMENT= A Haskell library for manipulating infinite lists
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
LIB_DEPENDS= gmp.7:${PORTSDIR}/math/libgmp4
CABAL= ${LOCALBASE}/bin/runghc Setup.lhs
GHC_VERSION= `${LOCALBASE}/bin/ghc --numeric-version`
SUBDIR= lib/${PORTNAME}-${PORTVERSION}
PLIST_SUB= GHC_VERSION="${GHC_VERSION}" \
PORTVERSION=${PORTVERSION} \
SUBDIR=${SUBDIR}
do-configure:
cd ${WRKSRC} && ${CABAL} configure --prefix=${PREFIX} --ghc
do-build:
cd ${WRKSRC} && ${CABAL} build && ${CABAL} register --gen-script
do-install:
cd ${WRKSRC} && ${CABAL} install
${INSTALL_SCRIPT} ${WRKSRC}/register.sh ${PREFIX}/${SUBDIR}/register.sh
.include <bsd.port.mk>

3
devel/hs-Stream/distinfo Normal file
View File

@@ -0,0 +1,3 @@
MD5 (Stream-0.2.6.tar.gz) = 04a52fe84381c60c8830dac83915ae83
SHA256 (Stream-0.2.6.tar.gz) = ce2b94a81a91497d024177654521d219aaab4462a381eb70c8199fefbb52edde
SIZE (Stream-0.2.6.tar.gz) = 4885

View File

@@ -0,0 +1,6 @@
This package implements functions, analogous to those from Data.List, to
create and manipulate infinite lists: data Stream a = Cons a (Stream a).
It provides alternative definitions for those Prelude functions that make
sense on such streams.
WWW: http://www.cs.nott.ac.uk/~wss/repos/Stream/dist/doc/html/

13
devel/hs-Stream/pkg-plist Normal file
View File

@@ -0,0 +1,13 @@
%%SUBDIR%%/ghc-%%GHC_VERSION%%/libHSStream-%%PORTVERSION%%.a
%%SUBDIR%%/ghc-%%GHC_VERSION%%/HSStream-%%PORTVERSION%%.o
%%SUBDIR%%/ghc-%%GHC_VERSION%%/Data/Stream.hi
%%SUBDIR%%/register.sh
share/doc/Stream-%%PORTVERSION%%/LICENSE
@dirrm share/doc/Stream-%%PORTVERSION%%
@dirrm lib/Stream-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Data
@dirrm lib/Stream-%%PORTVERSION%%/ghc-%%GHC_VERSION%%
@dirrm lib/Stream-%%PORTVERSION%%
@exec /bin/sh %D/%%SUBDIR%%/register.sh
@exec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
@unexec %D/bin/ghc-pkg unregister Stream
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old