# -*- 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-setuptools
version             36.8.0
categories-append   devel
license             {PSF ZPL}
maintainers         {jmr @jmroot} openmaintainer
description         distutils enhancement for build and distribution
long_description \
    setuptools is a collection of enhancements to the Python distutils that \
    allow you to more easily build and distribute Python packages, \
    especially ones that have dependencies on other packages.

platforms           darwin
supported_archs     noarch

homepage            https://pypi.python.org/pypi/setuptools/
master_sites        pypi:s/setuptools/
distname            setuptools-${version}
use_zip             yes

checksums           md5    3ecaa938a4c95a74dfbcd6340a47c7c5 \
                    rmd160 457c838b9fb09cf0bf9ba519a098e1c009710aa3 \
                    sha256 b2aa5a00e9e4fd20f3c3dd412d490921746efe14bda34d53973c4a59ab05b35d

python.versions     26 27 33 34 35 36
python.link_binaries no

if {$subport ne $name} {
    build.env-append    SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
    destroot.env-append SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES=0
    post-destroot {
       xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
       xinstall -m 644 -W ${worksrcpath} CHANGES.rst README.rst \
          ${destroot}${prefix}/share/doc/${subport}
       ln -s ${python.prefix}/bin/easy_install-${python.branch} ${destroot}${prefix}/bin
    }
    livecheck.type      none
}
