BSD Ports

devel/p5-File-pushd 1.016 MidnightBSD

Temporary chdir for a limited scope

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
Apache-2.0
Categories
devel, perl5

Description

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.

In the other systems

SystemPortVersion
MidnightBSDdevel/p5-File-pushd1.016
FreeBSDdevel/p5-File-pushd1.016
OpenBSDdevel/p5-File-pushd1.016p0
NetBSDdevel/p5-File-pushd1.016nb9
DragonFlydevel/p5-File-pushd1.016
HardenedBSDdevel/p5-File-pushd1.016
GhostBSDdevel/p5-File-pushd1.016

Install

Binary package:

mport install p5-File-pushd

From mports:

cd /usr/mports/devel/p5-File-pushd && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-File-pushd>0:devel/p5-File-pushd

Dependencies

Required by 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/File/pushd.pm
  • %%PERL5_MAN3%%/File::pushd.3.gz
distinfo 1
FileSizeSHA256
File-pushd-1.016.tar.gz19798d73a7f09442983b098260df3df7a832a5f660773a313ca273fa8b56665f97cdc
Master sites 1
  • CPAN