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

name                genie
version             20241206
revision            0

github.setup        bkaradzic GENie 93f6621b979f64aed4f31448cb3ce4b21b758f05
github.tarball_from archive

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  acd580c1849de5ed3d7371f38c4435cf3abc98df \
                    sha256  1ec7be26a1428b007feaafea4e234ce81b75634e993d6bd80b925215134d9ed3 \
                    size    544575

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}
}
