# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-paver
python.rootname     Paver
version             1.3.4
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             BSD MIT
maintainers         nomaintainer

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            https://github.com/paver/paver

checksums           md5     b74f27f07e3d4a4fad83ebd8dc4e511a \
                    rmd160  4179609eca6f1ad9d699919312aa4a0937fac0a4 \
                    sha256  d3e6498881485ab750efe40c5278982a9343bc627e137b11adced627719308c7 \
                    size    446425

python.versions     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 \
                    port:py${python.version}-six

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} LICENSE.txt README.rst \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
