# -*- 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        asciinema asciinema 2.4.0 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0

categories          sysutils
license             GPL-3+
platforms           {darwin any}
supported_archs     noarch
maintainers         {larryv @larryv} \
                    openmaintainer

description         Record and share your terminal sessions, the right way
long_description    Forget screen recording apps and blurry video. \
                    Enjoy a lightweight, purely text based approach to \
                    terminal recording. asciinema is a free and open \
                    source solution for recording terminal sessions \
                    and sharing them on the web.

homepage            https://asciinema.org

python.default_version \
                    311

depends_lib         port:py${python.version}-setuptools

checksums           rmd160  2b54bef03acc906e1fd7257917ba22e28c4d5d58 \
                    sha256  0f6c4d0dce30747dcaca522cdfd426b7f581531cbc08bd81889e6944c0ab4f9d \
                    size    161494

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} \
        CHANGELOG.md \
        CONTRIBUTING.md \
        LICENSE \
        README.md \
        doc/asciicast-v1.md \
        doc/asciicast-v2.md \
        ${destroot}${docdir}
}