# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           gitlab 1.0
PortGroup           meson 1.0

gitlab.instance     https://gitlab.gnome.org
gitlab.setup        jwestman blueprint-compiler 0.20.4 v
revision            0

categories          gnome devel
platforms           {darwin any}
supported_archs     noarch
license             GPL-3
maintainers         nomaintainer

description         Markup language for GTK user interfaces
long_description    {*}${description}

checksums           rmd160  acd49857754faab29331c03858e78e6d291d3541 \
                    sha256  870ad074775593d33346cd06adcfa48e13051690e64580fda223f6a4f633348a \
                    size    121743

set py_ver          3.14
set py_ver_nodot    [string map {. {}} ${py_ver}]

depends_lib-append  port:python${py_ver_nodot}

depends_run-append  port:py${py_ver_nodot}-gobject3

configure.python    ${prefix}/bin/python${py_ver}

post-patch {
    reinplace "s|python3|${configure.python}|" ${worksrcpath}/meson.build
    reinplace "s|/usr/bin/env python3|${configure.python}|" ${worksrcpath}/blueprint-compiler.py
}
