Changeset 82540


Ignore:
Timestamp:
Aug 15, 2011, 1:16:56 PM (9 years ago)
Author:
ryandesign@…
Message:

gvedit-devel: use app portgroup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/gvedit-devel/Portfile

    r82459 r82540  
    44PortSystem                      1.0
    55PortGroup                       qt4 1.0
     6PortGroup                       app 1.0
    67
    78# Keep relevant lines in sync between graphviz-devel, graphviz-gui-devel and gvedit-devel.
     
    1112set my_name                     graphviz
    1213version                         2.29.20110814.0445
     14revision                        1
    1315categories                      graphics
    1416maintainers                     ryandesign
     
    3335depends_lib-append              port:graphviz-devel
    3436
     37post-extract {
     38    if {[get_short_version_string] == ""} {
     39        return -code error "cannot find ${app.name} short version string"
     40    }
     41}
     42
    3543patchfiles                      patch-cmd-gvedit-Makefile.am.diff
    3644
     
    3947build.dir                       ${worksrcpath}/cmd/gvedit
    4048
    41 post-destroot {
    42     set app GVEdit
    43     xinstall -d ${destroot}${applications_dir}/${app}.app/Contents/MacOS
    44     ln -s ${prefix}/bin/gvedit ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}
     49app.name                        GVEdit
     50app.executable                  gvedit
     51app.icon                        ${build.dir}/images/icon.png
     52
     53platform macosx {
     54    depends_build-append port:makeicns
     55}
     56
     57pre-destroot {
     58    app.short_version_string [get_short_version_string]
     59}
     60
     61proc get_short_version_string {} {
     62    global build.dir
     63    return [exec /usr/bin/sed -E -n s/^\[\[:space:\]\]*"Version:\[\[:space:\]\]*(.+)".*/\\1/p ${build.dir}/mainwindow.cpp]
    4564}
    4665
Note: See TracChangeset for help on using the changeset viewer.