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

PortSystem          1.0

name                tex-gantt
version             1.3
revision            1
categories          tex
platforms           darwin
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

use_configure       no

checksums           sha1    e57dd3118e2acd8bdb8a834c8bc68671aee573e0 \
                    rmd160  a434294dde507cb5b59edc99c338cb715586be8b

extract {
    file copy ${distpath}/${distname}.sty ${workpath}
}

build {}

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/texmf-dist/tex/latex/gantt
    xinstall -m 644    ${workpath}/${distname}.sty ${destroot}${prefix}/share/texmf-dist/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+)*)