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

name                plantri
version             5.5
revision            0
categories          math science
license             Apache-2
maintainers         {gmail.com:szhorvat @szhorvat} openmaintainer

livecheck.version   [strsed ${version} {g/\.//}]
livecheck.regex     ${name}(\[0-9\]+)\\.tar

homepage            https://users.cecs.anu.edu.au/~bdm/plantri/
master_sites        ${homepage}
distname            ${name}${livecheck.version}

description         plantri and fullgen are programs for generation of certain \
                    types of planar graphs.

long_description    ${description}

checksums           rmd160  06fb747a99f83c03aa35f391f1c3823225449edb \
                    sha256  911cdf5bcca7294eb80f8f79fefc148183f7ba81da15b3aa4d6d2401a3bc7ded \
                    size    221018

installs_libs        no

destroot {
    xinstall -W ${worksrcpath} plantri fullgen ${destroot}${prefix}/bin/
}

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} \
        plantri-guide.txt \
        fullgen-guide.txt \
        LICENSE-2.0.txt \
        ${destroot}${docdir}
}
