# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
# $Id: Portfile 86414 2011-10-25 13:17:38Z jmr@macports.org $

PortSystem 1.0
PortGroup python 1.0

name	    	py-xdg
set gname       pyxdg
version	    	0.19
license         LGPL-2
categories  	python textproc
platforms       darwin
maintainers     nomaintainer

supported_archs noarch

description     Python module implementing various freedesktop.org standards
long_description    \
    PyXDG is a python library to access freedesktop.org standards. Currently \
    supported standards are: \
    \
    *   Base Directory Specification Version 0.6 \
    *   Menu Specification Version 1.0 \
    *   Desktop Entry Specification Version 1.0 \
    *   Icon Theme Specification Version 0.8 \
    *   Recent File Spec 0.2 \
    *   Shared-MIME-Database Specification 0.13

homepage        http://www.freedesktop.org/wiki/Software/${gname}
master_sites    http://www.freedesktop.org/~lanius/
distname        ${gname}-${version}

checksums       md5     9f33542e846d0fc1e0bfa992a8555b0a \
                sha1    71162cf78c2fd0152d795ebe57984fc48226249b

python.default_version  27
python.versions 25 26 27


if {$subport != $name} {
    depends_lib-append  port:py${python.version}-gobject \
                        port:py${python.version}-numeric

    build.env       LDFLAGS=-L${prefix}/lib

    post-patch {
        reinplace "s|@PREFIX@|$prefix|" ${worksrcpath}/setup.py
    }
}

livecheck.type  regex
livecheck.url   http://www.freedesktop.org/~lanius/
livecheck.regex "${gname}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
