# $Id: Portfile,v 1.5 2006/07/24 06:28:51 blb Exp $

PortSystem			1.0
PortGroup			python24 1.0
name				py-setuptools
version				0.6c1
categories-append	devel
maintainers			darwinports@opendarwin.org
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://cheeseshop.python.org/packages/source/s/setuptools/
distname			setuptools-${version}
use_zip				yes

checksums			md5 9e5e38dcce7902b892110625d18108c6 \
					sha1 9a206df82a92c646cfdb1fda6b91a83d09499904 \
					rmd160 477eb1e8e32c3aeb6a46169264e30ae23432a7cc

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}
	eval file delete [glob ${destroot}${python.pkgd}/site.py*]
}

