# -*- 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 PortGroup qt4 1.0 PortGroup app 1.0 # Keep relevant lines in sync between graphviz-devel, graphviz-gui-devel and gvedit-devel. name gvedit-devel conflicts gvedit set my_name graphviz version 2.29.20120502.0446 categories graphics maintainers ryandesign license EPL-1.0 homepage http://www.graphviz.org/ master_sites ${homepage}pub/graphviz/development/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 rmd160 c32b2bda43a9baeb8e1fc1261fc472895c1ca49b \ sha256 47036a6197f66e917b8c86dd9de0ff7f6a7a737bf72a8419a5466d272b4f8111 depends_lib-append port:graphviz-devel post-extract { if {[get_short_version_string] == ""} { return -code error "cannot find ${app.name} short version string" } } patchfiles patch-cmd-gvedit-Makefile.in.diff configure.args --with-qt build.dir ${worksrcpath}/cmd/gvedit app.name GVEdit app.executable gvedit app.icon ${build.dir}/images/icon.png pre-destroot { app.short_version_string [get_short_version_string] } proc get_short_version_string {} { global build.dir return [exec /usr/bin/sed -E -n s/^\[\[:space:\]\]*"Version:\[\[:space:\]\]*(.+)".*/\\1/p ${build.dir}/mainwindow.cpp] } livecheck.type regex livecheck.url ${homepage}Download_source.php livecheck.regex ${my_name}-(\[0-9\]+\\.\[0-9\]*\[13579\](\\.\[0-9\]+)*)\\.tar