# -*- 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        bytecodealliance wasmtime 32.0.0 v
github.tarball_from releases
distname            ${name}-v${version}-src
revision            0

homepage            https://wasmtime.dev

description         \
    Standalone JIT-style runtime for WebAssembly, using Cranelift

long_description    {*}${description}

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

cargo.offline_cmd

checksums           rmd160  bb88ee527f89c6c0c9dc6913a0437847db9a8fe9 \
                    sha256  3ca74b3d242f9bbb7c3ecdd1ce7d80b683f1dff7e7abc76759df618a0492fac6 \
                    size    173090644

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