From 268df17975be6a7df10bf9c2ce7df237e45c8025 Mon Sep 17 00:00:00 2001 From: kevlo Date: Mon, 26 Sep 2005 02:50:23 +0000 Subject: [PATCH] Initial import of File-chdir 0.06 File::chdir gives you an alternative, $CWD and @CWD. --- devel/p5-File-chdir/Makefile | 19 +++++++++++++++++++ devel/p5-File-chdir/distinfo | 4 ++++ devel/p5-File-chdir/pkg/DESCR | 7 +++++++ devel/p5-File-chdir/pkg/PLIST | 4 ++++ 4 files changed, 34 insertions(+) create mode 100644 devel/p5-File-chdir/Makefile create mode 100644 devel/p5-File-chdir/distinfo create mode 100644 devel/p5-File-chdir/pkg/DESCR create mode 100644 devel/p5-File-chdir/pkg/PLIST diff --git a/devel/p5-File-chdir/Makefile b/devel/p5-File-chdir/Makefile new file mode 100644 index 00000000000..dd0bd1fa2d4 --- /dev/null +++ b/devel/p5-File-chdir/Makefile @@ -0,0 +1,19 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2005/09/26 02:50:23 kevlo Exp $ + +COMMENT= "more sensible way to change directories" + +DISTNAME= File-chdir-0.06 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=File/} + +MAINTAINER= Kevin Lo + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +CONFIGURE_STYLE= perl + +.include diff --git a/devel/p5-File-chdir/distinfo b/devel/p5-File-chdir/distinfo new file mode 100644 index 00000000000..4f32e446bbd --- /dev/null +++ b/devel/p5-File-chdir/distinfo @@ -0,0 +1,4 @@ +MD5 (File-chdir-0.06.tar.gz) = 41a4661789f6de97fb632e4560d37864 +RMD160 (File-chdir-0.06.tar.gz) = d836fd142aae02f878e9741b3701a3d8a6e222f6 +SHA1 (File-chdir-0.06.tar.gz) = 8247b89f87216fd043fa9402596b5e47b40eebc0 +SIZE (File-chdir-0.06.tar.gz) = 22393 diff --git a/devel/p5-File-chdir/pkg/DESCR b/devel/p5-File-chdir/pkg/DESCR new file mode 100644 index 00000000000..5f883a5865e --- /dev/null +++ b/devel/p5-File-chdir/pkg/DESCR @@ -0,0 +1,7 @@ +Perl's chdir() has the unfortunate problem of being very, very, very +global. If any part of your program calls chdir() or if any library you +use calls chdir(), it changes the current working directory for the +whole program. + +File::chdir gives you an alternative, $CWD and @CWD. These two +variables combine all the power of chdir(), File::Spec and Cwd. diff --git a/devel/p5-File-chdir/pkg/PLIST b/devel/p5-File-chdir/pkg/PLIST new file mode 100644 index 00000000000..f88aafcbe38 --- /dev/null +++ b/devel/p5-File-chdir/pkg/PLIST @@ -0,0 +1,4 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2005/09/26 02:50:23 kevlo Exp $ +${P5SITE}/File/ +${P5SITE}/File/chdir.pm +@man man/man3p/File::chdir.3p