# -*- 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 57793 2009-09-16 18:02:07Z devans@macports.org $

PortSystem 1.0

name                at-spi
version             1.26.0
revision            1
set branch          [join [lrange [split ${version} .] 0 1] .]
description         Gnome Accesibility Technology Service
long_description \
   'at-spi' is a part of the Gnome Accessibility Project.  It provides a \
   Service Provider Interface for the Assistive Technologies available on \
   the GNOME platform, and a library against which applications can be linked.
maintainers         devans openmaintainer
categories          gnome
platforms           darwin
homepage            http://developer.gnome.org/projects/gap/
master_sites        gnome:sources/${name}/${branch}/

checksums           md5     3f2f7d29b45eff08adf56af0d31d3984 \
                    sha1    814871ea8a04570d44003ceffc166cbe44a8bb7c \
                    rmd160  e8cc5da683ec4289f552bbc07a08ee70cac5c3c7

depends_build       port:p5-xml-parser \
                    port:pkgconfig

depends_lib         port:atk \
                    port:gtk2 \
                    port:libbonobo \
                    port:python25 \
                    port:xorg-libXtst

use_bzip2           yes

configure.args      --enable-static \
                    --disable-xevie \
                    --with-x \
                    --x-includes=${prefix}/include \
                    --x-libraries=${prefix}/lib \
                    --disable-schemas-install
 
configure.python    ${prefix}/bin/python2.5

variant no_x11 {
   pre-fetch {
      return -code error "The +no_x11 (was +quartz) variant of ${name} does not work. See http://trac.macports.org/ticket/15013"
   }
   configure.args-delete   --with-x \
                           --x-includes=${prefix}/include \
                           --x-libraries=${prefix}/lib
   configure.args-append   --without-x
   depends_lib-delete      port:xorg-libXtst
}

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+)*)}
