# -*- 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.require_variant   yes
perl5.conflict_variants yes
perl5.branches          5.28 5.30 5.32 5.34
perl5.default_branch    5.34
perl5.create_variants   ${perl5.branches}

name                    psh
perl5.setup             psh 1.9_01

# fetch most recent git master (20121218)
# contains runtime fixes for perl5.22+ and other bugs
set git_commit          9e22f850d0f7107bef9a4e3c3da3a5a0459d3b8a
set git_date            20121218
version                 1.9_01-${git_date}
perl5.link_binaries_suffix
categories              shells perl
license                 {Artistic-1 GPL}
maintainers             nomaintainer
description             The Perl Shell
long_description        The Perl Shell (psh) combines aspects of bash and other shells with \
                        the power of Perl scripting.

supported_archs         noarch
platforms               {darwin any}

homepage                https://gnp.github.io/psh/
master_sites            https://github.com/gnp/psh/archive/

distname                ${git_commit}

checksums               rmd160  d4b765e261b42f44a8b20b9f495239e6df2db107 \
                        sha256  94e783f54184b18625b0ffa6f7130d24b05bb91b8b1647ff1eaf7e98594c27bd \
                        size    119347

worksrcdir              ${name}-${git_commit}

depends_lib-append      port:p${perl5.major}-term-readline-gnu \
                        port:p${perl5.major}-bsd-resource

# no further commits since 20121218, further releases unlikely
livecheck.type          none
