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

name                vala-devel
conflicts           vala
set my_name         vala
version             0.56.10
revision            0

categories          lang
license             LGPL-2.1+
maintainers         {mascguy @mascguy} openmaintainer

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.
homepage            https://wiki.gnome.org/Projects/Vala

set branch          [join [lrange [split ${version} .] 0 1] .]
master_sites        gnome:sources/${my_name}/${branch}/
dist_subdir         ${my_name}
distname            ${my_name}-${version}
use_xz              yes

checksums           rmd160  5174c23e75c304dc726bfec0ef2b3dfd13cf5593 \
                    sha256  a83ad3af4228f02f2510f8a3e4f3c4f9c36c8605b1261ce6d5d53be35ba1fc4d \
                    size    3996120

depends_build-append \
                    port:bison \
                    port:flex \
                    port:gettext \
                    port:help2man \
                    port:libxslt \
                    port:pkgconfig

depends_lib-append \
                    port:gettext-runtime \
                    path:lib/pkgconfig/glib-2.0.pc:glib2

configure.args-append \
                    --disable-silent-rules \
                    --disable-valadoc

variant docs description {Install documentation} {
    depends_build-append \
                    path:bin/dot:graphviz

    configure.args-delete \
                    --disable-valadoc
}

test.run            yes

livecheck.type      gnome
livecheck.name      ${my_name}
