Differences lists are a list-like type supporting O(1) append. This is
particularly useful for efficient logging and pretty printing, (e.g. with the Writer monad), where list append quickly becomes too expensive. WWW: http://code.haskell.org/~dons/code/dlist/ PR: ports/128770 Submitted by: Samy Al Bahra <sbahra at kerneled.org>
This commit is contained in:
parent
32a1d5cb97
commit
a2d02bde18
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=222872
5 changed files with 59 additions and 0 deletions
|
@ -488,6 +488,7 @@
|
|||
SUBDIR += hs-buddha
|
||||
SUBDIR += hs-c2hs
|
||||
SUBDIR += hs-cpphs
|
||||
SUBDIR += hs-dlist
|
||||
SUBDIR += hs-drift
|
||||
SUBDIR += hs-fps
|
||||
SUBDIR += hs-haddock
|
||||
|
|
37
devel/hs-dlist/Makefile
Normal file
37
devel/hs-dlist/Makefile
Normal file
|
@ -0,0 +1,37 @@
|
|||
# New ports collection makefile for: dlist
|
||||
# Date created: November 10, 2008
|
||||
# Whom: Samy Al Bahra <sbahra@kerneled.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= dlist
|
||||
PORTVERSION= 0.4.1
|
||||
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 list-like type supporting O(1) append for Haskell
|
||||
|
||||
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-dlist/distinfo
Normal file
3
devel/hs-dlist/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (dlist-0.4.1.tar.gz) = c1d0bcebbb62a60f56a42cfdc1b32758
|
||||
SHA256 (dlist-0.4.1.tar.gz) = 5e3271b7962e002a86c62cd13aa27960ef643cdf87908324a781e9a437898b10
|
||||
SIZE (dlist-0.4.1.tar.gz) = 5841
|
5
devel/hs-dlist/pkg-descr
Normal file
5
devel/hs-dlist/pkg-descr
Normal file
|
@ -0,0 +1,5 @@
|
|||
Differences lists are a list-like type supporting O(1) append. This is
|
||||
particularly useful for efficient logging and pretty printing, (e.g.
|
||||
with the Writer monad), where list append quickly becomes too expensive.
|
||||
|
||||
WWW: http://code.haskell.org/~dons/code/dlist/
|
13
devel/hs-dlist/pkg-plist
Normal file
13
devel/hs-dlist/pkg-plist
Normal file
|
@ -0,0 +1,13 @@
|
|||
%%SUBDIR%%/ghc-%%GHC_VERSION%%/libHSdlist-%%PORTVERSION%%.a
|
||||
%%SUBDIR%%/ghc-%%GHC_VERSION%%/HSdlist-%%PORTVERSION%%.o
|
||||
%%SUBDIR%%/ghc-%%GHC_VERSION%%/Data/DList.hi
|
||||
%%SUBDIR%%/register.sh
|
||||
share/doc/dlist-%%PORTVERSION%%/LICENSE
|
||||
@dirrm share/doc/dlist-%%PORTVERSION%%
|
||||
@dirrm lib/dlist-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Data
|
||||
@dirrm lib/dlist-%%PORTVERSION%%/ghc-%%GHC_VERSION%%
|
||||
@dirrm lib/dlist-%%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 dlist
|
||||
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old
|
Loading…
Reference in a new issue