# -*- 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 59137 2009-10-10 05:58:48Z snc@macports.org $

PortSystem 1.0

name            glade3
version         3.6.7
set branch      [join [lrange [split ${version} .] 0 1] .]
description     Glade is a free user interface builder for GTK+ and GNOME.
long_description    Glade is a free user interface builder for GTK+ \
                    and GNOME. It is released under the GNU General \
                    Public License (GPL).
maintainers     devans
categories      devel gnome
platforms       darwin
homepage        http://glade.gnome.org/
master_sites    gnome:sources/${name}/${branch}/

use_bzip2       yes

checksums       md5     0fbe06e4babb2adeaf9725577ff43395 \
                sha1    7621d5ae486ed42c35bb1d147b5693428481e733 \
                rmd160  ab8487a8914b31ba2cb22bf0261b6ad39b0d1629

depends_build   port:pkgconfig \
                port:intltool \
                port:p5-xml-parser \
                port:gnome-doc-utils \
                port:gtk-doc

depends_lib     port:gtk2 \
                port:libxml2 \
                port:libgnomeui

depends_run     port:hicolor-icon-theme \
                port:devhelp

configure.args  --disable-scrollkeeper

post-activate   {
        system "scrollkeeper-update"
}

variant disable_gnome description {Disable support for GNOME UI widgets} {
        configure.args-append --disable-gnome
        depends_lib-delete port:libgnomeui
}

variant quartz {
         depends_lib-append port:ige-mac-integration
         depends_run-delete port:devhelp
}

variant python25 conflicts python26 description {Use Python 2.5} {
        depends_lib-append port:py25-gtk
        configure.python ${prefix}/bin/python2.5
}

variant python26 conflicts python25 description {Use Python 2.6} {
        depends_lib-append port:py26-gtk
        configure.python ${prefix}/bin/python2.6
}

if {![variant_isset python25]} { 
    default_variants +python26
} 

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