# -*- 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                port-depgraph
version             0.2
revision            1
categories          sysutils macports
maintainers         nomaintainer
platforms           any
license             BSD
supported_archs     noarch

description         Create a Graphviz graph description of a port's rdeps list
long_description    Run a recursive dependency listing against a given port, \
                    outputing a Graphviz graph description.
homepage            http://svn.macports.org/repository/macports/contrib/port-depgraph

livecheck.type      none

fetch.type          svn
svn.url             https://svn.macports.org/repository/macports/contrib/port-depgraph
svn.revision        121945

worksrcdir          ${name}

patchfiles          prefix.diff
post-patch {
    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/port-depgraph
}

use_configure       no

build {}

destroot {
   xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
}

depends_run-append  path:bin/dot:graphviz
