# -*- 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

PortSystem              1.0
PortGroup               python 1.0

name                    py-pygtkhelpers
set real_name           pygtkhelpers
version                 0.4.3
platforms               darwin
license                 LGPL-3
maintainers             nomaintainer
description             A library to assist the building of PyGTK applications.
long_description        ${description}

homepage                https://pypi.python.org/pypi/${real_name}
master_sites            pypi:p/${real_name}
distname                ${real_name}-${version}

checksums               rmd160  cc169648a3c5df5e4aeeb169a8824a060035f332 \
                        sha256  65417d091c68f6262ebaf18c1358f55ffe9e3735261d4c1bfb0d6e5bed1905b8

python.versions         27
python.link_binaries    no
python.move_binaries    no

if {${name} ne ${subport}} {
    depends_lib         port:py${python.version}-setuptools
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "${real_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}