# -*- 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 68320 2010-06-01 12:05:55Z snc@macports.org $

PortSystem          1.0
PortGroup           python27 1.0

name                py27-distribute
version             0.6.13
categories-append   devel
maintainers         snc 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}

conflicts           py27-setuptools

checksums           md5     43460b429e86bf0da2bb18574d63ec0c \
                    sha1    43fe5e3626a46baef451ab6577c9a4173ae47e5d \
                    rmd160  8ed72027eb185676409170be2f467049ce2d54bc

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+)+)
