# -*- 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: Portfile 85019 2011-10-07 18:21:13Z snc@macports.org $

PortSystem          1.0
PortGroup           perl5 1.0

perl5.setup         Autodia 2.14
categories-append   graphics
maintainers         snc openmaintainer
license             GPL-2+
description         Create XML diagrams
long_description \
    AutoDia is an open-source, auto-documentation and auto-diagramming \
    system allowing you to automatically generate Images, XML, HTML or Dia \
    files.

platforms           darwin

homepage            http://www.aarontrevena.co.uk/opensource/autodia
master_sites-append ${homepage}/download/ \
                    http://search.cpan.org/CPAN/authors/id/T/TE/TEEJAY

checksums           rmd160  9cbd7e99350155f2da41fe5db52ebd778bdb1899 \
                    sha256  ac8125c88abe39d9fe01ca3acc13a00a29f3336a4bb7ef60447e6b8b822ff422

if {${perl5.major} != ""} {
    depends_lib-append  port:p${perl5.major}-xml-simple
    
    supported_archs noarch
    
    variant graphviz description {Build with graphviz support} {
        depends_lib-append    port:p${perl5.major}-graphviz
    }
    livecheck.type      none
} else {
    livecheck.url       ${homepage}
    livecheck.regex     version (\\d+\\.\\d+)
}
