# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 79135 2011-06-03 02:16:36Z jmr@macports.org $

PortSystem          1.0
PortGroup           python27 1.0

name                py27-distribute
version             0.6.19
categories-append   devel
license             PSF ZPL
maintainers         jmr openmaintainer
description         Replacement for setuptools
long_description \
   Distribute is a fork of the Setuptools project. It is intended to replace \
   Setuptools as the standard method for working with Python module \
   distributions.

platforms           darwin

homepage            http://pypi.python.org/pypi/distribute/
master_sites        http://pypi.python.org/packages/source/d/distribute/
distname            distribute-${version}

checksums           md5     45a17940eefee849d4cb8cc06d28d96f \
                    sha1    4b9569319aa8cc283030b3d996b5d88e022c684f \
                    rmd160  7acad7c1847ed48f286fc66387941276a39fc021

python.link_binaries no

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} CHANGES.txt CONTRIBUTORS.txt \
      DEVGUIDE.txt README.txt ${destroot}${prefix}/share/doc/${name}
   ln -s "${python.prefix}/bin/easy_install-${python.branch}" "${destroot}${prefix}/bin/"
}

livecheck.url       ${master_sites}
livecheck.regex     distribute-(\\d+(\\.\\d+)+)
