# -*- 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 107698 2013-07-04 12:46:27Z ryandesign@macports.org $

PortSystem          1.0

name                at-spi2-core
# you probably want to keep this at the same version as at-spi2-atk
version             2.8.0
license             LGPL
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         cal openmaintainer
categories          gnome
platforms           darwin
homepage            http://a11y.org/
master_sites        gnome:sources/${name}/${branch}/

checksums           rmd160  1c7653d4ff508780d53215e0c6a44891c409edf2 \
                    sha256  1861a30fc7f583d5a567a0ba547db67ce9bd294f0d1c9f7403c96a10a481c458

use_xz              yes

depends_build       port:pkgconfig \
                    port:intltool

depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:lib/pkgconfig/dbus-1.pc:dbus \
                    port:dbus-glib \
                    port:xorg-libXtst \
                    port:gobject-introspection

configure.args      --disable-xevie \
                    --enable-introspection=yes \
                    --x-includes=${prefix}/include \
                    --x-libraries=${prefix}/lib

# The rules enabled by gobject-introspection require GNU make 3.81+
platform darwin 8 {
    depends_build-append    port:gmake
    build.cmd               ${prefix}/bin/gmake
}

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