# -*- 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 88433 2012-01-02 08:34:33Z ryandesign@macports.org $

PortSystem                      1.0
PortGroup                       qt4 1.0

# Keep relevant lines in sync between graphviz, graphviz-gui and gvedit.

name                            gvedit
conflicts                       gvedit-devel
set my_name                     graphviz
version                         2.28.0
revision                        2
categories                      graphics
maintainers                     ryandesign
license                         EPL-1.0
homepage                        http://www.graphviz.org/
master_sites                    ${homepage}pub/graphviz/stable/SOURCES/
platforms                       darwin
use_parallel_build              yes
dist_subdir                     ${my_name}
distname                        ${my_name}-${version}

description                     Qt-based GUI for Graphviz

long_description                gvedit is a ${description}. You may prefer \
                                the Mac-native GUI in the graphviz-gui port.

checksums                       sha1    4725d88a13e071ee22e632de551d4a55ca08ee7d \
                                rmd160  5a5fae7cb1128d4e863b954bee5f2491ff23ada0

depends_lib-append              port:graphviz

patchfiles                      patch-cmd-gvedit-Makefile.in.diff \
                                patch-cmd-gvedit-csettings.cpp.diff

configure.args                  --with-qt

build.dir                       ${worksrcpath}/cmd/gvedit

post-destroot {
    set app GVEdit
    xinstall -d ${destroot}${applications_dir}/${app}.app/Contents/MacOS
    ln -s ${prefix}/bin/gvedit ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}
}

livecheck.type                  regex
livecheck.url                   ${homepage}Download_source.php
livecheck.regex                 ${my_name}-(\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*)\\.tar
