# $Id: Portfile 65911 2010-04-02 23:41:08Z jmr@macports.org $

PortSystem			1.0
PortGroup			python25 1.0

name				py25-setuptools
version				0.6c11
revision			1
categories-append	devel
maintainers			stechert
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

replaced_by         py25-distribute

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

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

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}
	# To avoid conflict between py-setuptools and py25-setuptools (See r31503)
	file delete ${destroot}${prefix}/bin/easy_install
}

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