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

github.setup        radare valabind 1.8.0
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision            1

categories          devel
license             GPL-3

maintainers         {mascguy @mascguy} openmaintainer

description         This program converts vapi vala interface files into swig interfaces.
long_description    {*}${description} Allow C and Vala libraries to be used from many scripting \
                    languages, like Python, Perl, LUA, Java, Go and others.

checksums           rmd160  bc3a3a0c3d5107a1404249ca6ae4458929b60787 \
                    sha256  419e7abb0d89eb502a0263a7239e64cd6d20dfeac4f2ff529338787d49235877 \
                    size    65629

depends_build       port:pkgconfig

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:gettext \
                    path:bin/vala:vala

depends_run         port:swig

use_configure       no

use_parallel_build  no

variant universal {}

build.args          V=1 \
                    CC="${configure.cc} [get_canonical_archflags]"

destroot.post_args-append \
                    PREFIX=${prefix}
