# -*- 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
PortGroup               deprecated 1.0

name                    py-pygtkhelpers
version                 0.4.3
revision                1

platforms               {darwin any}
supported_archs         noarch
license                 LGPL-3
maintainers             nomaintainer
description             A library to assist the building of PyGTK applications.
long_description        {*}${description}

homepage                https://pypi.python.org/pypi/${python.rootname}

checksums               rmd160  cc169648a3c5df5e4aeeb169a8824a060035f332 \
                        sha256  65417d091c68f6262ebaf18c1358f55ffe9e3735261d4c1bfb0d6e5bed1905b8

deprecated.upstream_support no

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

if {${name} ne ${subport}} {
    # Fix permissions
    post-extract {
        fs-traverse item ${worksrcpath} {
            if {[file isdirectory ${item}]} {
                file attributes ${item} -permissions a+rx
            } elseif {[file isfile ${item}]} {
                file attributes ${item} -permissions a+r
            }
        }
    }

    depends_lib-append  port:py${python.version}-setuptools
}