# -*- 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
# $Id: Portfile 105082 2013-04-09 10:01:39Z g5pw@macports.org $

PortSystem          1.0

name                valabind
version             0.7.2
revision            1
categories          devel
platforms           darwin
license             GPL-3
maintainers         g5pw 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.
homepage            http://radare.org
master_sites        http://radare.org/get/

checksums           rmd160  893225868127539b192e090d4b6c966d4788acb0 \
                    sha256  99bebad1ab8d44111b862aa8569a53f41a9c183954100467e30f77e29aa36102

depends_build       port:pkgconfig

depends_lib         port:vala

depends_run         port:swig

use_configure       no

use_parallel_build  no

variant universal {}

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

destroot.post_args-append   PREFIX=${prefix}

livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ">${name}-((?!\${extract.suffix}).*)${extract.suffix}<"
