# -*- 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
PortGroup           makefile 1.0

github.setup        bkaradzic GENie 7860ea4ae5b2e398276dcdd138032c979301348e
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                genie
version             20211211
revision            0

categories          devel
license             Permissive
maintainers         {mascguy @mascguy} openmaintainer

description         GENie project generator tool
long_description    GENie (pronounced as Jenny) is a project generator tool.\
                    It automagically generates project from Lua script, making\
                    applying the same settings for multiple projects easy.

checksums           rmd160  15e806237b60e95e57bf4aef32262ca84455872c \
                    sha256  e95b3410dd1a480683608a8afe181c49903d56f5500ef7daac41896a44b1ab34 \
                    size    541924

patchfiles-append \
                    patch-makefile-no-git.diff
patchfiles-append \
                    patch-scripts-release-no-ver.diff

depends_build-append \
                    port:gmake

compiler.cxx_standard \
                    2011

# Project build not parallel-aware, causing intermittent failures
use_parallel_build  no

build.cmd           ${prefix}/bin/gmake
build.args          --trace
build.target        release

destroot {
    xinstall -v ${worksrcpath}/bin/darwin/genie \
        ${destroot}${prefix}/bin
}

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -v -d ${docdir}

    xinstall -v -m 644 -W ${worksrcpath} \
        README.md \
        LICENSE \
        ${docdir}
}
