Add p5-Parse-CSV 1.00, highly flexible CVS parser for large files.

PR:		ports/104559
Submitted by:	Jin-Shan Tseng <tjs at cdpa.nsysu.edu.tw>
This commit is contained in:
Cheng-Lung Sung 2006-11-01 01:24:23 +00:00
parent cf429403cc
commit 4e8eca8e54
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=175970
5 changed files with 54 additions and 0 deletions

View file

@ -400,6 +400,7 @@
SUBDIR += p5-POSIX-Regex SUBDIR += p5-POSIX-Regex
SUBDIR += p5-PPI SUBDIR += p5-PPI
SUBDIR += p5-PPI-HTML SUBDIR += p5-PPI-HTML
SUBDIR += p5-Parse-CSV
SUBDIR += p5-Parse-FixedLength SUBDIR += p5-Parse-FixedLength
SUBDIR += p5-Parse-Flex SUBDIR += p5-Parse-Flex
SUBDIR += p5-Parse-PhoneNumber SUBDIR += p5-Parse-PhoneNumber

View file

@ -0,0 +1,25 @@
# New ports collection makefile for: p5-Parse-CSV
# Date created: 2006-10-19
# Whom: Jin-Shan Tseng <tjs@cdpa.nsysu.edu.tw>
#
# $FreeBSD$
#
PORTNAME= Parse-CSV
PORTVERSION= 1.00
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Parse
PKGNAMEPREFIX= p5-
MAINTAINER= tjs@cdpa.nsysu.edu.tw
COMMENT= Highly flexible CVS parser for large files
RUN_DEPENDS= p5-Text-CSV_XS>=0.23:${PORTSDIR}/textproc/p5-Text-CSV_XS \
p5-Params-Util>=0.17:${PORTSDIR}/devel/p5-Params-Util
PERL_CONFIGURE= yes
MAN3= Parse::CSV.3
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (Parse-CSV-1.00.tar.gz) = 16089fae987c5d52c0a13acdfc478632
SHA256 (Parse-CSV-1.00.tar.gz) = 2328a28e58929d2bfdcd143aa4c3c03400e25b4aac7c4969885e81d2bba04442
SIZE (Parse-CSV-1.00.tar.gz) = 25448

View file

@ -0,0 +1,19 @@
Surely the CPAN doesn't need yet another CSV parsing module.
Text::CSV_XS is the standard parser for CSV files. It is fast
as hell, but unfortunately it can be a bit verbose to use.
A number of other modules have attempted to put usability
wrappers around this venerable module, but they have all
focussed on parsing the entire file into memory at once.
This method is fine unless your CSV files start to get large.
Once that happens, the only existing option is to fall back
on the relatively slow and heavyweight XML::SAXDriver::CSV
module.
Parse::CSV fills this functionality gap. It provides a flexible
and light-weight streaming parser for large, extremely large,
or arbitrarily large CSV files.
WWW: http://search.cpan.org/dist/Parse-CSV/

View file

@ -0,0 +1,6 @@
@comment $FreeBSD$
%%SITE_PERL%%/Parse/CSV.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Parse/CSV/.packlist
@dirrmtry %%SITE_PERL%%/Parse
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Parse/CSV
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Parse