# -*- 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 39.0.1 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  8c8bf42f7c1c05544d686e50af2ff881c5135c4d \
                    sha256  9e7ae7948d1e5436c897d9113c0278edca3e311c30b15bb28a1ed3c19fbcace2 \
                    size    156471342

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