# -*- 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 91354 2012-03-30 17:01:29Z dports@macports.org $

PortSystem          1.0

name                vala
version             0.16.0
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          lang
maintainers         nomaintainer
description         Compiler for the GObject type system
long_description \
   Vala is a new programming language that aims to bring modern programming \
   language features to GNOME developers without imposing any additional \
   runtime requirements and without using a different ABI compared to \
   applications and libraries written in C.

platforms           darwin
license             LGPL-2.1+

homepage            http://live.gnome.org/Vala
master_sites        gnome:sources/${name}/${branch}/
use_xz              yes

checksums           rmd160  445812f9306981fbab1028fd9576da62b57fcb91 \
                    sha256  3adb37aa2b35e2e2daed47552e85dbcbf752c0f7768b269d856993620073a657 

depends_build       path:bin/pkg-config:pkgconfig \
                    port:libxslt

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2

configure.args      --enable-vapigen

livecheck.type      regex
livecheck.url       http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
