# -*- 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
PortGroup           select 1.0

name                py-zc-buildout
python.rootname     zc.buildout
version             2.13.3
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             ZPL-2.1
maintainers         nomaintainer

description         System for managing development buildouts
long_description    The Buildout project provides support for creating applications, especially \
                    Python applications. It provides tools for assembling applications from \
                    multiple parts, Python or otherwise. An application may actually contain \
                    multiple programs, processes, and configuration settings.

homepage            http://www.buildout.org

checksums           rmd160  51dfc7c72f93d229ad35d3f4dd7eda8eb249e791 \
                    sha256  d6691a864a7f14b3302ed9a9ab5790f2efc883375033371c1c959fedc72bccb7 \
                    size    166531

python.versions     27

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-setuptools

    depends_run     port:buildout_select

    select.group    buildout
    select.file     ${filespath}/buildout${python.version}

    post-destroot {
        set docdir ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${docdir}
        xinstall -m 0644 -W ${worksrcpath} CHANGES.rst COPYRIGHT.txt \
            DEVELOPERS.txt LICENSE.txt README.rst ${docdir}
        xinstall -m 0644 {*}[glob -directory ${worksrcpath}/src/zc/buildout *.txt] ${docdir}
        foreach file [glob -directory ${destroot}${python.pkgd}/zc/buildout *.txt] {
            delete $file
        }
    }
}
