# -*- 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
# $Id: Portfile 108307 2013-07-18 19:37:37Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-setuptools
version             0.9.6
categories-append   devel
license             {PSF ZPL}
maintainers         jmr 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        https://pypi.python.org/packages/source/s/setuptools/
distname            setuptools-${version}

checksums           md5    8c552a3b1e666d37a44e3123a1d1d46c \
                    rmd160 9eabacacc6985be6eba0f25fa0ff8d488bdfea92 \
                    sha256 d3c46aff70a246c21b957a60dff39645f643999b9693dfabf04c0639c12fa399

python.versions     24 25 26 27 31 32 33
python.default_version 27
python.link_binaries no
python.move_binaries no

if {$subport != $name} {
    post-destroot {
       xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
       xinstall -m 644 -W ${worksrcpath} CHANGES.txt CONTRIBUTORS.txt \
          DEVGUIDE.txt README.txt ${destroot}${prefix}/share/doc/${subport}
       if {${python.version} <= 25} {
          delete "${destroot}${prefix}/bin/easy_install"
       } else {
          ln -s "${python.prefix}/bin/easy_install-${python.branch}" "${destroot}${prefix}/bin/"
       }
    }
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${homepage}
    livecheck.regex     setuptools/(\\d+(\\.\\d+)+)
}
