Date: Thu, 19 Oct 2006 11:18:54 +0800 (CST) From: Jin-Shan Tseng <tjs@cdpa.nsysu.edu.tw> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/104559: [NEW PORT] textproc/p5-Parse-CSV: Highly flexible CVS parser for large files Message-ID: <200610190318.k9J3IsuL064794@pluto.cdpa.nsysu.edu.tw> Resent-Message-ID: <200610190320.k9J3KMoY081131@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 104559 >Category: ports >Synopsis: [NEW PORT] textproc/p5-Parse-CSV: Highly flexible CVS parser for large files >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Oct 19 03:20:22 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jin-Shan Tseng >Release: FreeBSD 6.2-PRERELEASE i386 >Organization: FreeBSD @ Taiwan >Environment: System: FreeBSD Pluto.CDPA.nsysu.edu.tw 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Thu Oct 12 11:54:24 CST 2006 >Description: 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/ Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- p5-Parse-CSV-1.00.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # p5-Parse-CSV # p5-Parse-CSV/pkg-descr # p5-Parse-CSV/Makefile # p5-Parse-CSV/pkg-plist # p5-Parse-CSV/distinfo # echo c - p5-Parse-CSV mkdir -p p5-Parse-CSV > /dev/null 2>&1 echo x - p5-Parse-CSV/pkg-descr sed 's/^X//' >p5-Parse-CSV/pkg-descr << 'END-of-p5-Parse-CSV/pkg-descr' XSurely the CPAN doesn't need yet another CSV parsing module. X XText::CSV_XS is the standard parser for CSV files. It is fast Xas hell, but unfortunately it can be a bit verbose to use. X XA number of other modules have attempted to put usability Xwrappers around this venerable module, but they have all Xfocussed on parsing the entire file into memory at once. X XThis method is fine unless your CSV files start to get large. XOnce that happens, the only existing option is to fall back Xon the relatively slow and heavyweight XML::SAXDriver::CSV Xmodule. X XParse::CSV fills this functionality gap. It provides a flexible Xand light-weight streaming parser for large, extremely large, Xor arbitrarily large CSV files. X XWWW: http://search.cpan.org/dist/Parse-CSV/ END-of-p5-Parse-CSV/pkg-descr echo x - p5-Parse-CSV/Makefile sed 's/^X//' >p5-Parse-CSV/Makefile << 'END-of-p5-Parse-CSV/Makefile' X# New ports collection makefile for: p5-Parse-CSV X# Date created: 2006-10-19 X# Whom: Jin-Shan Tseng <tjs@cdpa.nsysu.edu.tw> X# X# $FreeBSD$ X# X XPORTNAME= Parse-CSV XPORTVERSION= 1.00 XCATEGORIES= textproc perl5 XMASTER_SITES= ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR= Parse XPKGNAMEPREFIX= p5- X XMAINTAINER= tjs@cdpa.nsysu.edu.tw XCOMMENT= Highly flexible CVS parser for large files X XRUN_DEPENDS= p5-Text-CSV_XS>=0.23:${PORTSDIR}/textproc/p5-Text-CSV_XS \ X p5-Params-Util>=0.17:${PORTSDIR}/devel/p5-Params-Util X XPERL_CONFIGURE= yes X XMAN3= Parse::CSV.3 X X.include <bsd.port.mk> END-of-p5-Parse-CSV/Makefile echo x - p5-Parse-CSV/pkg-plist sed 's/^X//' >p5-Parse-CSV/pkg-plist << 'END-of-p5-Parse-CSV/pkg-plist' X@comment $FreeBSD$ X%%SITE_PERL%%/Parse/CSV.pm X%%SITE_PERL%%/%%PERL_ARCH%%/auto/Parse/CSV/.packlist X@dirrmtry %%SITE_PERL%%/Parse X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Parse/CSV X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Parse END-of-p5-Parse-CSV/pkg-plist echo x - p5-Parse-CSV/distinfo sed 's/^X//' >p5-Parse-CSV/distinfo << 'END-of-p5-Parse-CSV/distinfo' XMD5 (Parse-CSV-1.00.tar.gz) = 16089fae987c5d52c0a13acdfc478632 XSHA256 (Parse-CSV-1.00.tar.gz) = 2328a28e58929d2bfdcd143aa4c3c03400e25b4aac7c4969885e81d2bba04442 XSIZE (Parse-CSV-1.00.tar.gz) = 25448 END-of-p5-Parse-CSV/distinfo exit --- p5-Parse-CSV-1.00.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610190318.k9J3IsuL064794>