# -*- 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
github.setup        bkaradzic GENie f7055e309a5c2bc28d7abd35960e14b9864fc5ea
github.tarball_from archive
version             20260821
revision            0
epoch               1

platforms           {darwin >= 20}

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  0a979450fa2b9234228887271e0059e3fb826958 \
                    sha256  f8ec9ea2d2ec4f54235947ddf8ea7e832ed6347e6cfdfb48074ebb7efb9e065f \
                    size    553865

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