# -*- 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-distutils-extra
set my_name             python-distutils-extra
version                 2.39
set branch              trunk
categories-append       devel
license                 GPL-2+
platforms               {darwin any}
supported_archs         noarch
maintainers             {ionic @Ionic} openmaintainer

description             enhancements to the Python build system
long_description        This package provides additional functions to Python's distutils and setuptools. \
                        It allows you to easily integrate gettext, icons and GNOME documentation into \
                        your build and installation process. \
                        It also provides an "auto" module which provides a "do what I mean" automatic \
                        build system\; if you stick to the conventions, you do not need to write setup.cfg, \
                        POTFILES.in, or MANIFEST.in, and setup.py just needs to have the package metadata \
                        (such as project name and version).

homepage                https://launchpad.net/${my_name}
master_sites            https://launchpad.net/${my_name}/${branch}/${version}/+download/
distname                ${my_name}-${version}

checksums               rmd160  ec5fcffc0ac6258bc86a68c2108af2f5b2dda419 \
                        sha256  723f24f4d65fc8d99b33a002fbbb3771d4cc9d664c97085bf37f3997ae8063af \
                        size    27389

python.versions         27

if {${name} ne ${subport}} {
    depends_build       port:py${python.version}-setuptools
    depends_lib-append  port:intltool
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       https://launchpad.net/${my_name}/+download
    livecheck.regex     ${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}
}
