# -*- 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 85767 2011-10-16 05:23:46Z dports@macports.org $

PortSystem 1.0

name            libgail-gnome
version         1.20.4
set branch      [join [lrange [split ${version} .] 0 1] .]
description     An implementation of the ATK interfaces for GNOME widgets.
long_description \
                Gail, the Gnome Accessibility Implementation library, \
                is implementation of the ATK interfaces for GNOME widgets.
maintainers     nomaintainer
categories      gnome
license         LGPL-2+
platforms       darwin
homepage        http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/

checksums       md5     b29bf1c8f2cd8652ec827c9f5b8baa14 \
                sha1    ac1bb6f24dc16d8cc557fd6a6c6737f977de067f \
                rmd160  21138e64f7d93b3d5cf37f9242e014ccceb5ba3f

patchfiles      patch-Makefile.in.diff

depends_build   port:pkgconfig

depends_lib     port:at-spi \
                port:gnome-panel \
                port:libgnomeui

use_bzip2       yes

configure.args  --disable-schema-install

#
# port gnome-panel -> evolution-data-server -> nss is not universal 
#

universal_variant no

post-activate    {
    system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \
        gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas"
}

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