# -*- 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                scons-3
set real_name       scons
version             3.1.2
revision            0
categories          devel python
supported_archs     noarch
license             MIT
maintainers         {ryandesign @ryandesign} openmaintainer
description         A software construction tool
long_description    SCons is an Open Source software construction \
                    tool--that is, a next-generation build tool. Think \
                    of SCons as an improved, cross-platform substitute \
                    for the classic Make utility with integrated \
                    functionality similar to autoconf/automake \
                    and compiler caches such as ccache.
homepage            http://www.scons.org
distname            ${real_name}-${version}
master_sites        sourceforge:project/scons/scons/${version}
checksums           rmd160  6052ef4ebd702ce7dc9888d50c163664201c377f \
                    sha256  7801f3f62f654528e272df780be10c0e9337e897650b62ddcee9f39fde13f8fb \
                    size    668298

python.version      27

patchfiles          python-interp.patch

post-patch {
    reinplace -W ${worksrcpath}/script "s|__PYTHON__|${python.bin}|" \
        scons scons-configure-cache scons-time sconsign
}

destroot.args       --no-version-script

post-destroot {
    xinstall -m 0755 -d \
        ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} \
        CHANGES.txt LICENSE.txt README.txt RELEASE.txt \
        ${destroot}${prefix}/share/doc/${name}
}
