# -*- 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.14.0 v
revision            0
categories          gnome devel
platforms           {darwin any}
license             GPL-3
maintainers         nomaintainer
supported_archs     noarch
description         Markup language for GTK user interfaces
long_description    {*}${description}

checksums           rmd160  c5a99a4d8b18a5e17874c42442cf7a49a84925cf \
                    sha256  a4e6fa362a16d9f7f95e229c836e9ca2fd2df803b1d2b453f6cf640c127aeeff \
                    size    95760

set py_ver          3.12
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
}
