source: trunk/dports/graphics/gvedit-devel/Portfile @ 97699

Last change on this file since 97699 was 97699, checked in by ryandesign@…, 7 years ago

graphviz-devel, graphviz-gui-devel, gvedit-devel: update to 2.29.20120912.0445

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- 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
2# $Id: Portfile 97699 2012-09-12 15:36:50Z ryandesign@macports.org $
3
4PortSystem                      1.0
5PortGroup                       qt4 1.0
6PortGroup                       app 1.0
7
8# Keep relevant lines in sync between graphviz-devel, graphviz-gui-devel and gvedit-devel.
9
10name                            gvedit-devel
11conflicts                       gvedit
12set my_name                     graphviz
13version                         2.29.20120912.0445
14categories                      graphics
15maintainers                     ryandesign
16license                         EPL-1
17homepage                        http://www.graphviz.org/
18master_sites                    ${homepage}pub/graphviz/development/SOURCES/
19platforms                       darwin
20use_parallel_build              yes
21dist_subdir                     ${my_name}
22distname                        ${my_name}-${version}
23
24description                     Qt-based GUI for Graphviz
25
26long_description                gvedit is a ${description}. You may prefer \
27                                the Mac-native GUI in the graphviz-gui port.
28
29checksums                       rmd160  aeecc110bd75a438c6c741737ec953fc0800ce45 \
30                                sha256  3736d2c2eadb76001ae615c2564186148c8887f4c443060b81b66faf80c52ab4
31
32depends_lib-append              port:graphviz-devel
33
34post-extract {
35    if {[get_short_version_string] == ""} {
36        return -code error "cannot find ${app.name} short version string"
37    }
38}
39
40patchfiles                      patch-cmd-gvedit-Makefile.in.diff
41
42configure.args                  --with-qt
43
44build.dir                       ${worksrcpath}/cmd/gvedit
45
46app.name                        GVEdit
47app.executable                  gvedit
48app.icon                        ${build.dir}/images/icon.png
49
50pre-destroot {
51    app.short_version_string [get_short_version_string]
52}
53
54proc get_short_version_string {} {
55    global build.dir
56    return [exec /usr/bin/sed -E -n s/^\[\[:space:\]\]*"Version:\[\[:space:\]\]*(.+)".*/\\1/p ${build.dir}/mainwindow.cpp]
57}
58
59livecheck.type                  regex
60livecheck.url                   ${homepage}Download_source.php
61livecheck.regex                 ${my_name}-(\[0-9\]+\\.\[0-9\]*\[13579\](\\.\[0-9\]+)*)\\.tar
Note: See TracBrowser for help on using the repository browser.