# -*- 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           github  1.0
PortGroup           python  1.0

github.setup        xxh xxh 0.8.16
github.tarball_from archive
revision            0

description         Bring your favorite shell wherever you go through ssh.

long_description    {*}${description} You stuffed your command shell with \
                    aliases, tools and colors but you lose it all when using \
                    ssh. The mission of xxh is to bring your favorite shell \
                    wherever you go through ssh without root access and \
                    system installations.

categories          sysutils python
license             BSD
platforms           {darwin any}
supported_archs     noarch
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  0040a90e4bf8defcee351a8a8261c0f5dfb06fba \
                    sha256  a8100a831049be3131146da6a26d8cdb2fb15afc8d637521fcbdba37a3429a50 \
                    size    1817112

python.default_version  314

depends_lib-append      port:py${python.version}-pexpect    \
                        port:py${python.version}-yaml

post-build {
    reinplace -E "s|#!python|#!${python.bin}|" \
        ${worksrcpath}/build/scripts-${python.branch}/${name}
}

test.run            yes
python.test_framework
test.cmd            ${worksrcpath}/build/scripts-${python.branch}/xxh --version

github.livecheck.regex  {([0-9.]+)}
