# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 84459 2011-09-26 14:50:42Z jmr@macports.org $

PortSystem          1.0
PortGroup           perl5 1.0

perl5.setup         File-pushd 1.00
revision            2
license             Apache-2
platforms           darwin
maintainers         nomaintainer
supported_archs     noarch

description         change directory temporarily for a limited scope

long_description    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.

checksums           md5     c0d63d05db01a6da3aebd7cd6f93e520 \
                    sha1    1c78a35d0876c64ceeadeb305ef1813a27c6bc14 \
                    rmd160  b0c608ae730cd8a09678612cf9b2a7efaf8259ac

if {${perl5.major} != ""} {
depends_lib-append  port:p${perl5.major}-sub-exporter \
                    port:p${perl5.major}-pathtools \
                    port:p${perl5.major}-file-path \
                    port:p${perl5.major}-file-temp
}
