# -*- 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                dia2code
version             0.8.6
license             GPL-2+
categories          devel
platforms           darwin
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  01a538756f875b041c08bc74a1aedc355521bfec \
                    sha256  aefbb962296bd929a3709bbe5cdc84b92d15d555c6c0dcaaaff3c3557ae83664

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}
}