1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

Add devel/p5-File-push, a perl module that provides temporary chdir for

a limited scope.
This commit is contained in:
Anton Berezin 2005-11-04 10:38:40 +00:00
parent e2e15d3dbc
commit ebe2ed4967
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=147199
5 changed files with 48 additions and 0 deletions

View File

@ -926,6 +926,7 @@
SUBDIR += p5-File-Temp
SUBDIR += p5-File-Type
SUBDIR += p5-File-chdir
SUBDIR += p5-File-pushd
SUBDIR += p5-FileHandle-Unget
SUBDIR += p5-Filesys-Statvfs_Df
SUBDIR += p5-Filesys-Virtual

View File

@ -0,0 +1,32 @@
# New ports collection makefile for: devel/p5-File-pushd
# Date created: 04 November 2005
# Whom: Anton Berezin <tobez@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= File-pushd
PORTVERSION= 0.20
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= File
PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
COMMENT= File::pushd - temporary chdir for a limited scope
BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/File/Spec.pm:${PORTSDIR}/devel/p5-PathTools \
${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= File::pushd.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= requires perl 5.6.0 or later. Install lang/perl5.8 and try again
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
MD5 (File-pushd-0.20.tar.gz) = a87e109ce8657bc360799f557d0ecd65
SIZE (File-pushd-0.20.tar.gz) = 12135

View File

@ -0,0 +1,8 @@
File::pushd does a temporary chdir that is easily and automatically
reverted. It works by creating a simple 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.
WWW: http://search.cpan.org/dist/File-pushd/

View File

@ -0,0 +1,5 @@
%%SITE_PERL%%/File/pushd.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/pushd/.packlist
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/pushd 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/File 2>/dev/null || true
@unexec rmdir %D/%%SITE_PERL%%/File 2>/dev/null || true