# -*- 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 51571 2009-05-28 00:15:22Z devans@macports.org $

PortSystem 1.0

name                at-spi
version             1.26.0
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         nomaintainer
categories          gnome
platforms           darwin
homepage            http://www.gnome.org/
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

configure.python    ${prefix}/bin/python2.5

variant x11 conflicts quartz description {Use X11 (default)} {
   configure.args-append --with-x --x-include=${prefix}/include --x-lib=${prefix}/lib
}

variant quartz conflicts x11 description {Use Quartz (broken)} {
   pre-fetch {
      return -code error "The +quartz variant of ${name} does not work. See http://trac.macports.org/ticket/15013"
   }
   configure.args-append   --without-x
}

if {![variant_isset quartz]} {
   default_variants +x11
}

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