# -*- 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                tex-gantt
version             1.3
revision            2
categories          tex
platforms           any
maintainers         nomaintainer
supported_archs     noarch

description         tetex package for creating gantt diagrams
long_description    {*}${description}

homepage            http://www.martin-kumm.de/tex_gantt_package.php
master_sites        http://www.martin-kumm.de/tex/
distname            gantt
distfiles           ${distname}.sty
dist_subdir         ${name}/${version}

depends_lib         bin:tex:texlive \
                    port:texlive-latex-extra

use_configure       no

checksums           rmd160  a434294dde507cb5b59edc99c338cb715586be8b \
                    sha256  fb62a18c664f4e039775b97705e34e0a374043fe3b3bcaea94318496aadd2a73 \
                    size    10971
extract {
    file copy ${distpath}/${distname}.sty ${workpath}
}

build {}

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/texmf-texlive/tex/latex/gantt
    xinstall -m 644    ${workpath}/${distname}.sty ${destroot}${prefix}/share/texmf-texlive/tex/latex/gantt
}

post-activate { system "mktexlsr" }

livecheck.type      regex
livecheck.url       http://www.martin-kumm.de/tex/gantt.sty
livecheck.regex     Version (\\d+(?:\\.\\d+)*)
