diff options
author | miwi <miwi@FreeBSD.org> | 2008-11-16 05:39:12 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-11-16 05:39:12 +0800 |
commit | bfd81dfa42ddabd84c0dbca75303e865f549cc2c (patch) | |
tree | 485c0cced178c9863e482036e234f300985c8df6 /devel | |
parent | 106f1e90e7b241f39fefb9c1e34e8403b45d6462 (diff) | |
download | freebsd-ports-gnome-bfd81dfa42ddabd84c0dbca75303e865f549cc2c.tar.gz freebsd-ports-gnome-bfd81dfa42ddabd84c0dbca75303e865f549cc2c.tar.zst freebsd-ports-gnome-bfd81dfa42ddabd84c0dbca75303e865f549cc2c.zip |
I wrote this module as an example of both using closures and using
File::Find. Students are always asking me what closures are good for,
and here's some examples. The functions mostly stand alone (i.e. they
don't need the rest of the module), so rather than creating a
dependency in your code, just lift the parts you want).
WWW: http://search.cpan.org/dist/File-Find-Closures/
PR: ports/128875
Submitted by: Gea-Suan Lin <gslin at gslin.org>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/p5-File-Find-Closures/Makefile | 22 | ||||
-rw-r--r-- | devel/p5-File-Find-Closures/distinfo | 3 | ||||
-rw-r--r-- | devel/p5-File-Find-Closures/pkg-descr | 7 | ||||
-rw-r--r-- | devel/p5-File-Find-Closures/pkg-plist | 8 |
5 files changed, 41 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 9960caa818a6..683b8c40282f 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1304,6 +1304,7 @@ SUBDIR += p5-File-DirSync SUBDIR += p5-File-ExtAttr SUBDIR += p5-File-FTS + SUBDIR += p5-File-Find-Closures SUBDIR += p5-File-Find-Object SUBDIR += p5-File-Find-Rule SUBDIR += p5-File-Find-Rule-Filesys-Virtual diff --git a/devel/p5-File-Find-Closures/Makefile b/devel/p5-File-Find-Closures/Makefile new file mode 100644 index 000000000000..eeb6e1c4d76a --- /dev/null +++ b/devel/p5-File-Find-Closures/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: p5-File-Find-Closures +# Date created: 2008-11-15 +# Whom: Gea-Suan Lin <gslin@gslin.org> +# +# $FreeBSD$ +# + +PORTNAME= File-Find-Closures +PORTVERSION= 1.09 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= File +PKGNAMEPREFIX= p5- + +MAINTAINER= gslin@gslin.org +COMMENT= Functions you can use with File::Find + +PERL_CONFIGURE= yes + +MAN3= File::Find::Closures.3 + +.include <bsd.port.mk> diff --git a/devel/p5-File-Find-Closures/distinfo b/devel/p5-File-Find-Closures/distinfo new file mode 100644 index 000000000000..9eb07366278b --- /dev/null +++ b/devel/p5-File-Find-Closures/distinfo @@ -0,0 +1,3 @@ +MD5 (File-Find-Closures-1.09.tar.gz) = cdbccaf7691412be4e588ca0bc1f82e3 +SHA256 (File-Find-Closures-1.09.tar.gz) = cf25f4d3de7f39941c1966968d900d6523a04a1d0565a4525e10b95db15e4563 +SIZE (File-Find-Closures-1.09.tar.gz) = 7381 diff --git a/devel/p5-File-Find-Closures/pkg-descr b/devel/p5-File-Find-Closures/pkg-descr new file mode 100644 index 000000000000..bc5cae221065 --- /dev/null +++ b/devel/p5-File-Find-Closures/pkg-descr @@ -0,0 +1,7 @@ +I wrote this module as an example of both using closures and using +File::Find. Students are always asking me what closures are good for, +and here's some examples. The functions mostly stand alone (i.e. they +don't need the rest of the module), so rather than creating a +dependency in your code, just lift the parts you want). + +WWW: http://search.cpan.org/dist/File-Find-Closures/ diff --git a/devel/p5-File-Find-Closures/pkg-plist b/devel/p5-File-Find-Closures/pkg-plist new file mode 100644 index 000000000000..f18ce1088a11 --- /dev/null +++ b/devel/p5-File-Find-Closures/pkg-plist @@ -0,0 +1,8 @@ +@comment $FreeBSD$ +%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Find/Closures/.packlist +%%SITE_PERL%%/File/Find/Closures.pm +@dirrmtry %%SITE_PERL%%/File/Find +@dirrmtry %%SITE_PERL%%/File +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Find/Closures +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Find +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/File |