# -*- 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 90861 2012-03-16 09:30:50Z g5pw@macports.org $

PortSystem          1.0

name                valabind
version             0.6.5
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  efafe210f61606dc487f33f9b27ef96f45e78fc6 \
                    sha256  161641fc4a6ed0e22fcc82c85c8f91e41f18ae02260151f19293ee36c7c4b751

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