# -*- 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.14
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  41f5219040739e8273da644af61467018f4ba42f \
                    sha256  a2b6f7b5fb8cde247dbfd3f0e32e8aaeaa9082aaa87fe3d2030064b4b008d737 \
                    size    1817093

python.default_version  312

depends_build-append    port:py${python.version}-setuptools \

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
test.env-append     PYTHONPATH=${worksrcpath}/build/lib
test.cmd            ${worksrcpath}/build/scripts-${python.branch}/xxh --version

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