# -*- 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           github 1.0

github.setup        marcobambini gravity 0.8.5
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
categories          lang
license             MIT
maintainers         {l2dy @l2dy} openmaintainer
description         Gravity Programming Language
long_description    Gravity is a powerful, dynamically typed, lightweight, \
                    embeddable programming language written in C without any \
                    external dependencies.
homepage            https://marcobambini.github.io/gravity/

checksums           rmd160  12daf355138a73b8c6dd3c01bc51f95b6f27cf54 \
                    sha256  8c1fef4208c0638719e1d3249f7aec0e3c33091c6f14d50c26c3ffb129a0203c \
                    size    918151

use_configure       no
build.args-append   CC=${configure.cc}

destroot {
    xinstall -m 755 -W ${worksrcpath} gravity \
        ${destroot}${prefix}/bin

    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} README.md LICENSE \
        ${destroot}${prefix}/share/doc/${name}
}
