# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 65913 2010-04-02 23:46:46Z snc@macports.org $

PortSystem			1.0
PortGroup  python27 1.0

name				py27-setuptools
version				0.6c11
revision            1
replaced_by         py27-distribute
categories-append	devel
maintainers		    mcalhoun snc 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

homepage			http://peak.telecommunity.com/DevCenter/setuptools
master_sites		http://pypi.python.org/packages/source/s/setuptools
distname			setuptools-${version}

conflicts			py27-distribute

checksums			md5     7df2a529a074f613b509fb44feefe74e \
					sha1    8d1ad6384d358c547c50c60f1bfdb3362c6c4a7d \
					rmd160  7af8f39e5e74d96d10cc0d00b15a26462d66f42c

python.link_binaries no
post-destroot {
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath} EasyInstall.txt api_tests.txt \
		pkg_resources.txt setuptools.txt \
		${destroot}${prefix}/share/doc/${name}
    ln -s ${python.prefix}/bin/easy_install-2.7 ${destroot}${prefix}/bin/
}

test.run  yes
test.cmd  ${python.bin} setup.py

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     {setuptools-(\d+(?:\.[0-9a-z]+)*)\.tar}
