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

name                ftjam
version             2.5.2
categories          devel
platforms           darwin
license             Permissive
maintainers         nomaintainer

# Attempts to install the same executable.
conflicts           jam

description         a software build tool like make
long_description    FTJam is an improvement built upon Perforce Jam \
                    (or Classic Jam). It is backward compatible with \
                    Perforce Jam 2.3.
homepage            http://freetype.sourceforge.net/jam/
master_sites        sourceforge:project/freetype/ftjam/${version}/

checksums           md5 b06c4c91405ef152ae59712d4fb1b80b \
                    sha1 d23c7bb2e21afcacd8dc6086209ff767284a336c \
                    rmd160 03f8eb7949005dda4265a8156d20f3dd5a4d1e93

use_configure       no

destroot {
    system "install -m 755 ${worksrcpath}/bin.*/jam ${destroot}${prefix}/bin/"
    system "install -m 755 ${worksrcpath}/bin.*/mkjambase ${destroot}${prefix}/bin/"
    xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/
    xinstall -m 644 ${worksrcpath}/Jam.html ${destroot}${prefix}/share/doc/${name}/
    xinstall -m 644 ${worksrcpath}/Jambase.html ${destroot}${prefix}/share/doc/${name}/
    xinstall -m 644 ${worksrcpath}/Jamfile.html ${destroot}${prefix}/share/doc/${name}/
}

livecheck.type      regex
livecheck.url       http://sourceforge.net/projects/freetype/files/ftjam/
livecheck.regex     ${name}/(\[0-9.\]+)/
