# -*- 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            git.sr.ht/~adnano/kiln 0.4.0
revision            0
categories          www devel
maintainers         {@sikmir disroot.org:sikmir} openmaintainer
license             MIT

description         A simple static site generator
long_description    {*}${description}

go.package          git.sr.ht/~adnano/kiln

checksums           ${distname}${extract.suffix} \
                        rmd160  0995f057c5d422f4aa700ea799b59d66b51672de \
                        sha256  6de055814c7f363c2b5e358dcbed4ca010ca2c11c887b7e506f1574b68f1dd88 \
                        size    28403

go.vendors          gopkg.in/yaml.v3 \
                        lock    496545a6307b \
                        rmd160  16a43936d8ae6243895e23465132977d3a1193c2 \
                        sha256  333e78b3b9cb73b3572d62f692d32426a8554b86c93025ea032f779395869e84 \
                        size    90145 \
                    gopkg.in/check.v1 \
                        lock    20d25e280405 \
                        rmd160  412aa0d109919182ff84259e9b5bbc9f24d78117 \
                        sha256  233f8faf427ce6701ac3427f85c28bc6b6ae7cdc97a303a52873c69999223325 \
                        size    30360 \
                    github.com/pelletier/go-toml \
                        lock    v1.9.0 \
                        rmd160  550dcbde74accea9abad003713b69a9debac92c6 \
                        sha256  513c8c694e62dca5cd9902e8763241efdabab9693de090586ec6769ddef77a55 \
                        size    100839 \
                    github.com/google/shlex \
                        lock    e7afc7fbc510 \
                        rmd160  4e505c7f96adfae0b23fe7f4d7d3d12cd39beb52 \
                        sha256  d72b457eb90c286cca39c51f2d60ba241351cbad49f9980e30c43a15b2f09b34 \
                        size    7342

depends_build-append  port:scdoc

post-build {
    system -W ${worksrcpath} "scdoc < docs/kiln.1.scd > kiln.1"
}

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
    xinstall -m 0644 ${worksrcpath}/kiln.1 ${destroot}${prefix}/share/man/man1
}
