# $Id$

PortSystem          1.0

name                build
version             0.3.10
set branch          [join [lrange [split ${version} .] 0 1] .]
categories          devel
maintainers         ieee.org:cardi openmaintainer
description         Massively-parallel software build system
long_description    ${description} implemented on top of GNU make.
homepage            http://www.codesynthesis.com/projects/build
platforms           darwin
master_sites        http://www.codesynthesis.com/download/build/${branch}

checksums           rmd160  8f563a8435a9fb4c418e3c671e50886808c7b75c \
                    sha256  e6fcd1d225d7d1e7b2895a44e3c192f7d45ca83e45817bff20372e5dedcda5d3

license             GPL-2

use_bzip2           yes
use_configure       no

destroot.destdir    install_prefix=${destroot}${prefix}

build {}

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

    xinstall -m 644 -W ${worksrcpath} LICENSE README NEWS INSTALL \
        ${destroot}${prefix}/share/doc/${name}

    eval xinstall -m 644 [glob ${worksrcpath}/documentation/*] \
        ${destroot}${prefix}/share/doc/${name}/documentation

    move ${worksrcpath}/examples \
        ${destroot}${prefix}/share/doc/${name}/

    move ${worksrcpath}/tests \
        ${destroot}${prefix}/share/doc/${name}/
}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}

# vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4