diff options
author | sno <sno@pkgsrc.org> | 2009-03-01 23:25:15 +0000 |
---|---|---|
committer | sno <sno@pkgsrc.org> | 2009-03-01 23:25:15 +0000 |
commit | 3d33a486522f3176bfd4d56957cfa0338bc2076c (patch) | |
tree | 48a719d287f30793d55a5306cad0e330d548214d /devel/p5-File-pushd | |
parent | 5a832956540201a5370b5543c41d7158e8017bac (diff) | |
download | pkgsrc-3d33a486522f3176bfd4d56957cfa0338bc2076c.tar.gz |
Adding perl module File::pushd ad dependency for the CPAN::Reporter.
File::pushd does a temporary chdir that is easily and automatically reverted,
similar to pushd in some Unix command shells. It works by creating an object
that caches the original working directory. When the object is destroyed, the
destructor calls chdir to revert to the original working directory. By storing
the object in a lexical variable with a limited scope, this happens
automatically at the end of the scope.
Diffstat (limited to 'devel/p5-File-pushd')
-rw-r--r-- | devel/p5-File-pushd/DESCR | 6 | ||||
-rw-r--r-- | devel/p5-File-pushd/Makefile | 20 | ||||
-rw-r--r-- | devel/p5-File-pushd/distinfo | 5 |
3 files changed, 31 insertions, 0 deletions
diff --git a/devel/p5-File-pushd/DESCR b/devel/p5-File-pushd/DESCR new file mode 100644 index 00000000000..eb6bae353cd --- /dev/null +++ b/devel/p5-File-pushd/DESCR @@ -0,0 +1,6 @@ +File::pushd does a temporary chdir that is easily and automatically reverted, +similar to pushd in some Unix command shells. It works by creating an object +that caches the original working directory. When the object is destroyed, the +destructor calls chdir to revert to the original working directory. By storing +the object in a lexical variable with a limited scope, this happens +automatically at the end of the scope. diff --git a/devel/p5-File-pushd/Makefile b/devel/p5-File-pushd/Makefile new file mode 100644 index 00000000000..de803dd944a --- /dev/null +++ b/devel/p5-File-pushd/Makefile @@ -0,0 +1,20 @@ +# $NetBSD: Makefile,v 1.1 2009/03/01 23:25:15 sno Exp $ +# + +DISTNAME= File-pushd-1.00 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=File/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/File-pushd/ +COMMENT= Perl module to change directory temporarily for a limited scope + +USE_LANGUAGES= # empty + +PERL5_PACKLIST= auto/File/pushd/.packlist + +PKG_DESTDIR_SUPPORT= user-destdir + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-File-pushd/distinfo b/devel/p5-File-pushd/distinfo new file mode 100644 index 00000000000..b4f65951d63 --- /dev/null +++ b/devel/p5-File-pushd/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2009/03/01 23:25:15 sno Exp $ + +SHA1 (File-pushd-1.00.tar.gz) = 1c78a35d0876c64ceeadeb305ef1813a27c6bc14 +RMD160 (File-pushd-1.00.tar.gz) = b0c608ae730cd8a09678612cf9b2a7efaf8259ac +Size (File-pushd-1.00.tar.gz) = 11246 bytes |