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

github.setup        felix-lang fbuild 0.3-rc2 v
revision            1

categories          devel python
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         nomaintainer

description         Software build system
long_description    Fbuild is a cross platform multilanguage build \
                    system that uses a caching build system instead of \
                    tree evaluation like Make.

python.default_version  312

checksums           rmd160  a043ac2270081d57a8505c57a9a6fdfc75b79b92 \
                    sha256  311404401e979ec0f49cc5d9d995f04d822ef03b2c8d4e304d547d6f99969642 \
                    size    145963
github.tarball_from archive

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}

    xinstall -m 644 -W ${worksrcpath} LICENSE LICENSE-THIRD-PARTY NEWS.markdown README.markdown ${destroot}${prefix}/share/doc/${name}

    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}/docs

    xinstall -d ${destroot}${prefix}/share/doc/${name}/examples
    foreach f [glob -dir ${worksrcpath}/examples -tails *] {
        file copy ${worksrcpath}/examples/$f ${destroot}${prefix}/share/doc/${name}/examples/$f
    }
}
