# -*- 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 44941 2009-01-04 23:51:12Z ryandesign@macports.org $

PortSystem			1.0
PortGroup  python26 1.0

name				py26-setuptools
version				0.6c9
categories-append	devel
maintainers		    mcalhoun 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}

checksums           md5     3864c01d9c719c8924c455714492295e \
                    sha1    79086433b341f0c1df45e10d586a7d3cc25089f1 \
                    rmd160  bc0ee3821e76b57fd13425b16c4419dbccf95ed9

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.6 ${destroot}${prefix}/bin/
}

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

livecheck.check  regex
livecheck.url    [lindex ${master_sites} 0]?C=M&O=D
livecheck.regex  setuptools-(\\d+(?:\\.\\d+)*c\\d+(?:\\.\\d+)*)
