# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem      1.0

name            py27-atspi
set gname       pyatspi
version         0.4.1
license         LGPL
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      python gnome
platforms       {darwin any}
supported_archs noarch
maintainers     {devans @dbevans} openmaintainer
description     Python bindings to AT-SPI over DBus on GNOME 2

long_description \
    This module provides a Python client library for the Service Provider Interface \
    to Assistive Technologies available on the GNOME 2 platform using the DBus \
    rather than the CORBA infrastructure.

homepage        https://wiki.gnome.org/Accessibility
master_sites    gnome:sources/${gname}/${branch}/
distname        ${gname}-${version}
use_bzip2       yes

checksums       sha256  2d9672e0ca6277c491a0b35421691d96618d9c02e687851ce418811379aa4a2e \
                rmd160  639fe4fd55a19d885d33870f0be3dee162f74238

depends_lib     port:py27-pygtk \
                port:dbus-python27

set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7

configure.pre_args-delete  --prefix=${prefix}
configure.pre_args-append  --prefix=${python_prefix}
configure.args-append      --includedir=${python_prefix}/include/python2.7
configure.pkg_config_path  ${python_prefix}/lib/pkgconfig

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

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING README \
        ${destroot}${docdir}
}

livecheck.type  gnome
livecheck.name  ${gname}
livecheck.regex {LATEST-IS-([01]\.\d*[02468](?:\.\d+)*)}
