# -*- 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        modus-continens modus 0.1.15
github.tarball_from archive
revision            0

description         A language for building Docker/OCI container images

long_description    \
    Modus is a language for building Docker/OCI container images. Modus uses \
    logic programming to express interactions among build parameters, specify \
    complex build workflows, automatically parallelise and cache builds, help \
    to reduce image size, and simplify maintenance.

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

fetch.type          git

build.pre_args-delete \
                    --frozen --offline

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