Changeset 99116


Ignore:
Timestamp:
Oct 27, 2012, 6:09:10 AM (12 years ago)
Author:
ryandesign@…
Message:

graphviz-devel: bring graphviz-gui-devel and gvedit-devel in as subports

Location:
trunk/dports/graphics
Files:
1 added
2 deleted
1 edited
2 copied

Legend:

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

    r99088 r99116  
    66PortGroup                       xcodeversion 1.0
    77
    8 # Keep relevant lines in sync between graphviz-devel, graphviz-gui-devel and gvedit-devel.
     8# Please keep the graphviz and graphviz-devel ports as similar as possible.
    99
    1010name                            graphviz-devel
    11 conflicts                       graphviz
    1211set my_name                     graphviz
    1312version                         2.29.20121022.0445
     13set thisbranch                  [strsed ${name} "g/^${my_name}//"]
     14set otherbranch                 [expr {${thisbranch} == {} ? {-devel} : {}}]
    1415categories                      graphics
    1516maintainers                     ryandesign
     
    4142# graphviz-gui needs Xcode 3.1.2+; see #18811
    4243minimum_xcodeversions           {9 3.1.2}
     44
     45if {${name} == ${subport}} {
     46conflicts                       graphviz${otherbranch}
     47
     48depends_build                   port:pkgconfig
    4349
    4450depends_lib                     port:xorg-libXaw \
     
    5763                                port:zlib \
    5864                                port:gettext
    59 
    60 depends_build                   port:pkgconfig
    6165
    6266depends_run                     port:urw-fonts
     
    293297livecheck.url                   ${homepage}Download_source.php
    294298livecheck.regex                 ${my_name}-(\[0-9\]+\\.\[0-9\]*\[13579\](\\.\[0-9\]+)*)\\.tar
     299} else {
     300    livecheck.type              none
     301}
     302
     303subport graphviz-gui${thisbranch} {
     304    PortGroup                   xcode 1.0
     305   
     306    conflicts                   graphviz-gui${otherbranch} graphviz-oldgui
     307   
     308    categories-append           aqua
     309   
     310    description                 OS X Aqua GUI for viewing and exporting \
     311                                Graphviz graphs
     312   
     313    long_description            ${description}.
     314   
     315    depends_lib                 port:graphviz${thisbranch}
     316   
     317    pre-fetch {
     318        if {"darwin" != ${os.platform}} {
     319            ui_error "${subport} requires OS X."
     320            return -code error "incompatible operating system"
     321        }
     322        if {${os.major} < 9} {
     323            ui_error "${subport} requires OS X 10.5 or greater. Try graphviz-oldgui instead."
     324            return -code error "incompatible OS X version"
     325        }
     326    }
     327   
     328    extract.post_args-append    ${worksrcdir}/macosx ${worksrcdir}/doc
     329   
     330    patchfiles                  patch-project.pbxproj.diff
     331   
     332    xcode.configuration         Release
     333   
     334    build.dir                   ${worksrcpath}/macosx
     335    xcode.build.settings        PREFIX=${prefix}
     336   
     337    xcode.destroot.settings     ${xcode.build.settings}
     338}
     339
     340subport gvedit${thisbranch} {
     341    PortGroup                   app 1.0
     342    PortGroup                   qt4 1.0
     343   
     344    conflicts                   gvedit${otherbranch}
     345   
     346    description                 Qt-based GUI for Graphviz
     347   
     348    long_description            gvedit is a ${description}. You may prefer \
     349                                the Mac-native GUI in the graphviz-gui${thisbranch} port.
     350   
     351    depends_lib-append          port:graphviz${thisbranch}
     352   
     353    post-extract {
     354        if {[get_short_version_string] == ""} {
     355            return -code error "cannot find ${app.name} short version string"
     356        }
     357    }
     358   
     359    patchfiles                  patch-cmd-gvedit-Makefile.in.diff
     360   
     361    # nawk: illegal jump type 339
     362    conflicts_build             nawk
     363   
     364    configure.args              --disable-silent-rules \
     365                                --with-qt
     366   
     367    build.dir                   ${worksrcpath}/cmd/gvedit
     368   
     369    app.name                    GVEdit
     370    app.executable              gvedit
     371    app.icon                    ${build.dir}/images/icon.png
     372   
     373    pre-destroot {
     374        app.short_version_string [get_short_version_string]
     375    }
     376   
     377    proc get_short_version_string {} {
     378        global build.dir
     379        return [exec /usr/bin/sed -E -n s/^\[\[:space:\]\]*"Version:\[\[:space:\]\]*(.+)".*/\\1/p ${build.dir}/mainwindow.cpp]
     380    }
     381}
Note: See TracChangeset for help on using the changeset viewer.