# -*- 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                dia2code
version             0.8.8
revision            1
license             GPL-2+
categories          devel
maintainers         nomaintainer
description         Dia2Code is a small utility used to generate code from a \
                    Dia diagram.
long_description    {*}${description}

homepage            http://${name}.sourceforge.net
master_sites        sourceforge:project/dia2code/dia2code/${version}

checksums           rmd160  1746be13a90b405b9876288b7f34f9d116e38a3e \
                    sha256  b7431a3f8a9f703397e4b849f304897a2c7150a378fe6069ae17cd2bfc1e6294

depends_lib         port:libxml2

post-destroot {
    xinstall -m 0444 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
    
    set docdir ${destroot}${prefix}/share/doc/${name}-${version}
    xinstall -d ${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog README TODO \
      ${docdir}
}
