[82540] trunk/dports/graphics/gvedit-devel/Portfile
ryandesign at macports.org
ryandesign at macports.org
Mon Aug 15 06:16:56 PDT 2011
Revision: 82540
http://trac.macports.org/changeset/82540
Author: ryandesign at macports.org
Date: 2011-08-15 06:16:56 -0700 (Mon, 15 Aug 2011)
Log Message:
-----------
gvedit-devel: use app portgroup
Modified Paths:
--------------
trunk/dports/graphics/gvedit-devel/Portfile
Modified: trunk/dports/graphics/gvedit-devel/Portfile
===================================================================
--- trunk/dports/graphics/gvedit-devel/Portfile 2011-08-15 13:16:23 UTC (rev 82539)
+++ trunk/dports/graphics/gvedit-devel/Portfile 2011-08-15 13:16:56 UTC (rev 82540)
@@ -3,6 +3,7 @@
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.
@@ -10,6 +11,7 @@
conflicts gvedit
set my_name graphviz
version 2.29.20110814.0445
+revision 1
categories graphics
maintainers ryandesign
license EPL-1.0
@@ -32,18 +34,35 @@
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.am.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}
+app.name GVEdit
+app.executable gvedit
+app.icon ${build.dir}/images/icon.png
+
+platform macosx {
+ depends_build-append port:makeicns
}
+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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110815/599db234/attachment.html>
More information about the macports-changes
mailing list