A small library that allows you to parse CSV formatted data efficiently

with Haskell.

WWW: http://code.haskell.org/~dons/code/bytestring-csv

PR:		ports/129162
Submitted by:	Samy Al Bahra <sbahra at kerneled.org>
This commit is contained in:
Martin Wilke 2008-11-29 21:44:00 +00:00
parent 0859e46a43
commit 7fd3acb105
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=223591
5 changed files with 62 additions and 0 deletions

View File

@ -205,6 +205,7 @@
SUBDIR += highlight
SUBDIR += hil-aspell
SUBDIR += hr-aspell
SUBDIR += hs-bytestring-csv
SUBDIR += hs-haxml
SUBDIR += hs-stringsearch
SUBDIR += hsb-aspell

View File

@ -0,0 +1,38 @@
# New ports collection makefile for: bytestring-csv
# Date created: November 25, 2008
# Whom: Samy Al Bahra <sbahra@kerneled.org>
#
# $FreeBSD$
PORTNAME= bytestring-csv
PORTVERSION= 0.1.2
CATEGORIES= textproc haskell
MASTER_SITES= http://hackage.haskell.org/packages/archive/${PORTNAME}/${PORTVERSION}/ \
http://carte.kerneled.org/mirror/
PKGNAMEPREFIX= hs-
MAINTAINER= sbahra@kerneled.org
COMMENT= Parse CSV formatted data efficiently with Haskell
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc \
hs-dlist>=0.4.1:${PORTSDIR}/devel/hs-dlist
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>

View File

@ -0,0 +1,3 @@
MD5 (bytestring-csv-0.1.2.tar.gz) = 45adcabc345af6bc8201e254a7de0683
SHA256 (bytestring-csv-0.1.2.tar.gz) = 19480f2f60c474b18ef507a657daa63b18a40f97a3171883cf9d4b33169df874
SIZE (bytestring-csv-0.1.2.tar.gz) = 76022

View File

@ -0,0 +1,4 @@
A small library that allows you to parse CSV formatted data efficiently
with Haskell.
WWW: http://code.haskell.org/~dons/code/bytestring-csv

View File

@ -0,0 +1,16 @@
%%SUBDIR%%/ghc-%%GHC_VERSION%%/libHSbytestring-csv-%%PORTVERSION%%.a
%%SUBDIR%%/ghc-%%GHC_VERSION%%/HSbytestring-csv-%%PORTVERSION%%.o
%%SUBDIR%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString.hi
%%SUBDIR%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString/Lex.hi
%%SUBDIR%%/register.sh
share/doc/bytestring-csv-%%PORTVERSION%%/LICENSE
@dirrm share/doc/bytestring-csv-%%PORTVERSION%%
@dirrm lib/bytestring-csv-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Text/CSV/ByteString
@dirrm lib/bytestring-csv-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Text/CSV
@dirrm lib/bytestring-csv-%%PORTVERSION%%/ghc-%%GHC_VERSION%%/Text
@dirrm lib/bytestring-csv-%%PORTVERSION%%/ghc-%%GHC_VERSION%%
@dirrm lib/bytestring-csv-%%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 bytestring-csv
@unexec /bin/rm -f %D/lib/ghc-%%GHC_VERSION%%/package.conf.old