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

github.setup        asciinema agg 1.6.0 v
github.tarball_from archive
revision            0

description         asciinema gif generator

long_description    \
    ${name} is a command-line tool for generating animated GIF files from \
    asciicast v2 files produced by asciinema terminal recorder.  It uses \
    Kornel Lesiński's excellent gifski library to produce optimized, high \
    quality GIF output with accurate frame timing. ${name} is a successor to \
    asciicast2gif.

categories          graphics
installs_libs       no
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           ${distname}${extract.suffix} \
                    rmd160  98e460df5f4783ec6af82cba0ba269fffc4e39ce \
                    sha256  541bdc7e7ec148d2146c8033e58a9046d9d3587671e8f375c9e606b5a24d3f82 \
                    size    15748644

build.pre_args-delete \
                    --offline --frozen

destroot {
    xinstall -m 0755 \
        ${worksrcpath}/target/[cargo.rust_platform]/release/${name} \
        ${destroot}${prefix}/bin/
}
