Date: Sat, 15 Jul 2006 05:36:15 +0800 (CST) From: Gea-Suan Lin <gslin@gslin.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: gslin@gslin.org Subject: ports/100310: [NEW PORT] devel/p5-File-Slurp-Tree: Slurp and emit file trees as nested hashes Message-ID: <20060714213615.B168B312@netnews.NCTU.edu.tw> Resent-Message-ID: <200607142140.k6ELeFcS030322@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 100310 >Category: ports >Synopsis: [NEW PORT] devel/p5-File-Slurp-Tree: Slurp and emit file trees as nested hashes >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: Fri Jul 14 21:40:14 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Gea-Suan Lin >Release: FreeBSD 6.1-RELEASE i386 >Organization: >Environment: System: FreeBSD netnews.NCTU.edu.tw 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sat May 13 03:43:48 CST 2006 >Description: - Tinderbox log: http://tb.gslin.org/logs/4.11-FreeBSD/p5-File-Slurp-Tree-1.24.log http://tb.gslin.org/logs/4.11-FreeBSD-Perl5/p5-File-Slurp-Tree-1.24.log http://tb.gslin.org/logs/4.11-FreeBSD-Perl58/p5-File-Slurp-Tree-1.24.log http://tb.gslin.org/logs/5.5-FreeBSD/p5-File-Slurp-Tree-1.24.log http://tb.gslin.org/logs/6-STABLE/p5-File-Slurp-Tree-1.24.log File::Slurp::Tree provides functions for slurping and emitting trees of files and directories. # an example of use in a test suite use Test::More tests => 1; use File::Slurp::Tree; is_deeply( slurp_tree( "t/some_path" ), { foo => {}, bar => "sample\n" }, "some_path contains a directory called foo, and a file bar" ); The tree datastructure is a hash of hashes. The keys of each hash are names of directories or files. Directories have hash references as their value, files have a scalar which holds the contents of the file. WWW: http://search.cpan.org/dist/File-Slurp-Tree/ Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- p5-File-Slurp-Tree-1.24.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-File-Slurp-Tree # p5-File-Slurp-Tree/pkg-descr # p5-File-Slurp-Tree/Makefile # p5-File-Slurp-Tree/pkg-plist # p5-File-Slurp-Tree/distinfo # echo c - p5-File-Slurp-Tree mkdir -p p5-File-Slurp-Tree > /dev/null 2>&1 echo x - p5-File-Slurp-Tree/pkg-descr sed 's/^X//' >p5-File-Slurp-Tree/pkg-descr << 'END-of-p5-File-Slurp-Tree/pkg-descr' XFile::Slurp::Tree provides functions for slurping and emitting trees Xof files and directories. X X # an example of use in a test suite X use Test::More tests => 1; X use File::Slurp::Tree; X is_deeply( slurp_tree( "t/some_path" ), { foo => {}, bar => "sample\n" }, X "some_path contains a directory called foo, and a file bar" ); X XThe tree datastructure is a hash of hashes. The keys of each hash are Xnames of directories or files. Directories have hash references as Xtheir value, files have a scalar which holds the contents of the file. X XWWW: http://search.cpan.org/dist/File-Slurp-Tree/ END-of-p5-File-Slurp-Tree/pkg-descr echo x - p5-File-Slurp-Tree/Makefile sed 's/^X//' >p5-File-Slurp-Tree/Makefile << 'END-of-p5-File-Slurp-Tree/Makefile' X# New ports collection makefile for: p5-File-Slurp-Tree X# Date created: 2006-07-15 X# Whom: Gea-Suan Lin <gslin@gslin.org> X# X# $FreeBSD$ X# X XPORTNAME= File-Slurp-Tree XPORTVERSION= 1.24 XCATEGORIES= devel perl5 XMASTER_SITES= ${MASTER_SITE_PERL_CPAN} XMASTER_SITE_SUBDIR= File XPKGNAMEPREFIX= p5- X XMAINTAINER= gslin@gslin.org XCOMMENT= Slurp and emit file trees as nested hashes X XBUILD_DEPENDS= ${SITE_PERL}/File/Find/Rule.pm:${PORTSDIR}/devel/p5-File-Find-Rule \ X ${SITE_PERL}/File/Slurp.pm:${PORTSDIR}/devel/p5-File-Slurp XRUN_DEPENDS= ${BUILD_DEPENDS} X XPERL_CONFIGURE= yes X XMAN3= File::Slurp::Tree.3 X X.include <bsd.port.mk> END-of-p5-File-Slurp-Tree/Makefile echo x - p5-File-Slurp-Tree/pkg-plist sed 's/^X//' >p5-File-Slurp-Tree/pkg-plist << 'END-of-p5-File-Slurp-Tree/pkg-plist' X@comment $FreeBSD$ X%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Slurp/Tree/.packlist X%%SITE_PERL%%/File/Slurp/Tree.pm X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Slurp/Tree X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Slurp X@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/File X@dirrmtry %%SITE_PERL%%/File/Slurp X@dirrmtry %%SITE_PERL%%/File END-of-p5-File-Slurp-Tree/pkg-plist echo x - p5-File-Slurp-Tree/distinfo sed 's/^X//' >p5-File-Slurp-Tree/distinfo << 'END-of-p5-File-Slurp-Tree/distinfo' XMD5 (File-Slurp-Tree-1.24.tar.gz) = 3d4287dd9697fc8fe402399841a6c742 XSHA256 (File-Slurp-Tree-1.24.tar.gz) = 2c96db39084cd2760dc5163d64aff0ade0ee6af5f738692b3357898f2d6b04bf XSIZE (File-Slurp-Tree-1.24.tar.gz) = 3395 END-of-p5-File-Slurp-Tree/distinfo exit --- p5-File-Slurp-Tree-1.24.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?20060714213615.B168B312>