# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-paver
version             1.2.1
license             BSD MIT

platforms           darwin
categories-append   devel
maintainers         nomaintainer
supported_archs     noarch

description         Easy build, distribution and deployment scripting
long_description    Paver is a Python-based build/distribution/deployment \
    scripting tool along the lines of Make or Rake. What makes Paver unique \
    is its integration with commonly used Python libraries. Common tasks that \
    were easy before remain easy. More importantly, dealing with your \
    applications specific needs and requirements is also easy.

homepage            http://www.blueskyonmars.com/projects/paver/
master_sites        http://pypi.python.org/packages/source/P/Paver/
distname            Paver-${version}

checksums           md5    78d0cea13e41a31fcb347cf37ea4577f \
                    rmd160 bde2ffebe80a49facd7b1cc40a673fb9b6009793 \
                    sha256 1e281faaef479674299ba00031f95e04b6d3bff0c33778790ef1053de51020ac

python.versions		25 26 27

if {${name} ne ${subport}} {

# Paver's setup.py isn't a distutils-based one and doesn't \
# support --no-user-cfg
    build.cmd           ${python.bin} setup.py
    destroot.cmd        ${python.bin} setup.py

    depends_lib-append  port:py${python.version}-setuptools
    post-destroot {
        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.rst \
            ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type	none
} 

if {${name} eq ${subport}} {
    livecheck.type      regex
    livecheck.url       http://pypi.python.org/pypi/Paver/
    livecheck.regex     Paver/(\[0-9.\]+)
} else {
    livecheck.type      none
}
