# -*- 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

PortSystem          1.0
PortGroup           perl5 1.0

perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         File-pushd 1.016
license             Apache-2
maintainers         nomaintainer

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           rmd160  ced66e34c2bcd419545b3578c33596013e85d43d \
                    sha256  d73a7f09442983b098260df3df7a832a5f660773a313ca273fa8b56665f97cdc \
                    size    19798

platforms           {darwin any}
supported_archs     noarch

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