# -*- 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        flatt-security shisho 0.5.2 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            0

homepage            https://docs.shisho.dev

description         Lightweight static analyzer for several programming \
                    languages

long_description    {*}${description}

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

build.pre_args      --release -v -j${build.jobs}

fetch.type          git

post-fetch {
    system -W ${worksrcpath} "git submodule update --init --recursive"
}

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