diff options
author | jfitz <jfitz@FreeBSD.org> | 1996-10-24 16:04:19 +0800 |
---|---|---|
committer | jfitz <jfitz@FreeBSD.org> | 1996-10-24 16:04:19 +0800 |
commit | 6056ac1342e8628c1e30834cf4f65deb69bec12a (patch) | |
tree | 4a4bb95306aaa09b034528fe3d83b5e52d2a4e6e /devel | |
parent | 3cf455843361b936d26cb2677af438d993bb03dc (diff) | |
download | freebsd-ports-gnome-6056ac1342e8628c1e30834cf4f65deb69bec12a.tar.gz freebsd-ports-gnome-6056ac1342e8628c1e30834cf4f65deb69bec12a.tar.zst freebsd-ports-gnome-6056ac1342e8628c1e30834cf4f65deb69bec12a.zip |
perl5 module for single call read & write file routines.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-File-Slurp/Makefile | 33 | ||||
-rw-r--r-- | devel/p5-File-Slurp/distinfo | 1 | ||||
-rw-r--r-- | devel/p5-File-Slurp/pkg-comment | 1 | ||||
-rw-r--r-- | devel/p5-File-Slurp/pkg-descr | 28 | ||||
-rw-r--r-- | devel/p5-File-Slurp/pkg-plist | 2 |
5 files changed, 65 insertions, 0 deletions
diff --git a/devel/p5-File-Slurp/Makefile b/devel/p5-File-Slurp/Makefile new file mode 100644 index 000000000000..dbcec4b074ba --- /dev/null +++ b/devel/p5-File-Slurp/Makefile @@ -0,0 +1,33 @@ +# New ports collection makefile for: p5-File-Slurp +# Version required: 96.042202 +# Date created: October 17th 1996 +# Whom: James FitzGibbon <jfitz@FreeBSD.org> +# +# $Id$ +# + +DISTNAME= File-Slurp-96.042202 +PKGNAME= p5-File-Slurp-96.042202 +CATEGORIES+= devel +MASTER_SITES= ftp://ftp.digital.com/pub/plan/perl/CPAN/modules/by-module/File/ \ + ftp://ftp.cdrom.com/pub/perl/CPAN/modules/by-module/File/ \ + ftp://ftp.cis.ufl.edu/pub/perl/CPAN/modules/by-module/File/ \ + ftp://ftp.leo.org/pub/comp/programming/languages/perl/CPAN/modules/by-module/File/ \ + ftp://ftp.demon.co.uk/pub/mirrors/perl/CPAN/modules/by-module/File/ \ + ftp://ftp.lab.kdd.co.jp/lang/perl/CPAN/modules/by-module/File/ + +MAINTAINER= jfitz@FreeBSD.ORG + +BUILD_DEPENDS= perl5.003:${PORTSDIR}/lang/perl5 + +do-configure: + @ cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/perl Makefile.PL + +post-install: +.if !defined(NOMANCOMPRESS) + @ for file in File::Slurp; do \ + gzip -9nf ${PREFIX}/lib/perl5/man/man3/$$file.3; \ + done +.endif + +.include <bsd.port.mk> diff --git a/devel/p5-File-Slurp/distinfo b/devel/p5-File-Slurp/distinfo new file mode 100644 index 000000000000..0a957a2990ed --- /dev/null +++ b/devel/p5-File-Slurp/distinfo @@ -0,0 +1 @@ +MD5 (File-Slurp-96.042202.tar.gz) = ec70499e28b84526b234b5b8716f2060 diff --git a/devel/p5-File-Slurp/pkg-comment b/devel/p5-File-Slurp/pkg-comment new file mode 100644 index 000000000000..5e3062d7de08 --- /dev/null +++ b/devel/p5-File-Slurp/pkg-comment @@ -0,0 +1 @@ +perl5 module for single call read & write file routines. diff --git a/devel/p5-File-Slurp/pkg-descr b/devel/p5-File-Slurp/pkg-descr new file mode 100644 index 000000000000..789296403703 --- /dev/null +++ b/devel/p5-File-Slurp/pkg-descr @@ -0,0 +1,28 @@ + These are quickie routines that are meant to save a couple + of lines of code over and over again. They do not do + anything fancy. + + read_file() does what you would expect. If you are using + its output in array context, then it returns an array of + lines. If you are calling it from scalar context, then + returns the entire file in a single string. + + It croaks()s if it can't open the file. + + write_file() creates or overwrites files. + + append_file() appends to a file. + + overwrite_file() does an in-place update of an existing + file or creates a new file if it didn't already exist. + + Write_file will also replace a file. The difference is + that the first that that write_file() does is to trucate + the file whereas the last thing that overwrite_file() is + to trucate the file. Overwrite_file() should be used in + situations where you have a file that always needs to have + contents, even in the middle of an update. + + read_dir() returns all of the entries in a directory + except for "." and "..". It croaks if it cannot open the + directory. diff --git a/devel/p5-File-Slurp/pkg-plist b/devel/p5-File-Slurp/pkg-plist new file mode 100644 index 000000000000..e5f2829613b7 --- /dev/null +++ b/devel/p5-File-Slurp/pkg-plist @@ -0,0 +1,2 @@ +lib/perl5/man/man3/File::Slurp.3.gz +lib/perl5/site_perl/File/Slurp.pm |