# -*- 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           golang 1.0

go.setup            github.com/charmbracelet/freeze 0.2.2 v
go.offline_build    no
github.tarball_from archive
revision            0

description         Generate images of code and terminal output

long_description    \
    {*}${description}. Freeze generates PNGs, SVGs, and WebPs of code and \
    terminal output alike.

categories          sysutils graphics
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  545b97213ca1365b3b449ad0ae8009133def6793 \
                    sha256  f0e959bc0c83c0a00d9da8362ca0d928191ad3207fc542c757e9eddda4014e08 \
                    size    5160638

build.pre_args-append \
    -ldflags \" -X main.Version=${version} \"

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}
