# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 107934 2013-07-09 17:59:07Z devans@macports.org $

PortSystem          1.0

name                gdl3
set gname           gdl
version             3.8.1
license             LGPL
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          gnome devel
maintainers         devans openmaintainer
description         Provides docking features for GTK+ 3
long_description \
                    GNOME Docking Library provides docking features for GTK+ 3. \
                    This port provides gdl-3.0.  For gdl-2.0 see port gdl.

platforms           darwin

homepage            http://www.anjuta.org/
master_sites        gnome:sources/${gname}/${branch}/

distname            ${gname}-${version}
use_xz              yes

checksums           rmd160  bfab36d9a7ed82b760e8ae2ed6b5affde7e54c61 \
                    sha256  c9911e9eec5a62497fff7e044ca9eaae47354658238e6b9e9a0a744f05b4ebdb

depends_build       port:pkgconfig \
                    port:intltool \
                    port:gtk-doc

depends_lib         port:gtk3 \
                    port:gobject-introspection \
                    port:libxml2

patchfiles          patch-return.diff

configure.args      --disable-silent-rules \
                    --enable-introspection=yes

#
# disable introspection when building universal
# to match behavior of dependency gtk3
#

if {[variant_isset universal]} {
    depends_lib-delete  port:gobject-introspection
    configure.args-replace --enable-introspection=yes --enable-introspection=no
}
    
livecheck.type      gnome
livecheck.name      ${gname}
