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

codeberg.setup      NLnetLabs roto 0.11.0 v
revision            0

homepage            https://roto.docs.nlnetlabs.nl/

description         Statically-typed embedded scripting language

long_description    Roto is a statically-typed, compiled scripting language \
                    for Rust applications. It is designed for fast, safe, \
                    hot-reloadable scripts and is used by NLnet Labs' \
                    routing software.

categories          lang
license             BSD
maintainers         nomaintainer

checksums           ${distname}${extract.suffix} \
                    rmd160  807ae7fcf21e336faa1945048a92485dc354d55f \
                    sha256  e18e95d5d3d623a4f71df8e09e12247c6cb472eb3f5ff4869b1634e18c5635d7 \
                    size    380899

cargo.offline_cmd

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

    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} LICENSE README.md Changelog.md \
        ${destroot}${prefix}/share/doc/${name}/
}
