# -*- 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        rune-rs rune 0.14.0
github.tarball_from archive
revision            0

description         An embeddable dynamic programming language for Rust.

long_description    {*}${description}

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

checksums           rmd160  ec069ec5c0de6370497dd4094cf1fa2fd2162d1d \
                    sha256  96d6d488f57215afbeb12b7b77f89b4463ab209cbfabf03e83e56908ff7ed233 \
                    size    3571301

patchfiles          patch-dangerous-implicit-autorefs.diff

cargo.offline_cmd

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