Changeset 99140


Ignore:
Timestamp:
Oct 28, 2012, 9:27:25 AM (12 years ago)
Author:
ryandesign@…
Message:

graphviz: bring graphviz-gui and gvedit in as subports

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

Legend:

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

    r99088 r99140  
    66PortGroup                       xcodeversion 1.0
    77
    8 # Keep relevant lines in sync between graphviz, graphviz-gui and gvedit.
     8# Please keep the graphviz and graphviz-devel ports as similar as possible.
    99
    1010name                            graphviz
    11 conflicts                       graphviz-devel
    1211set my_name                     graphviz
    1312version                         2.28.0
    14 revision                        8
     13set thisbranch                  [strsed ${name} "g/^${my_name}//"]
     14set otherbranch                 [expr {${thisbranch} == {} ? {-devel} : {}}]
    1515categories                      graphics
    1616maintainers                     ryandesign
     
    4242# graphviz-gui needs Xcode 3.1.2+; see #18811
    4343minimum_xcodeversions           {9 3.1.2}
     44
     45if {${name} == ${subport}} {
     46revision                        8
     47
     48conflicts                       graphviz${otherbranch}
     49
     50depends_build                   port:pkgconfig
    4451
    4552depends_lib                     port:xorg-libXaw \
     
    5764                                port:zlib \
    5865                                port:gettext
    59 
    60 depends_build                   port:pkgconfig
    6166
    6267depends_run                     port:urw-fonts
     
    297302livecheck.url                   ${homepage}Download_source.php
    298303livecheck.regex                 ${my_name}-(\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*)\\.tar
     304} else {
     305    livecheck.type              none
     306}
     307
     308subport graphviz-gui${thisbranch} {
     309    PortGroup                   xcode 1.0
     310   
     311    conflicts                   graphviz-gui${otherbranch} graphviz-oldgui
     312   
     313    categories-append           aqua
     314   
     315    description                 OS X Aqua GUI for viewing and exporting \
     316                                Graphviz graphs
     317   
     318    long_description            ${description}.
     319   
     320    depends_lib                 port:graphviz${thisbranch}
     321   
     322    pre-fetch {
     323        if {"darwin" != ${os.platform}} {
     324            ui_error "${subport} requires OS X."
     325            return -code error "incompatible operating system"
     326        }
     327        if {${os.major} < 9} {
     328            ui_error "${subport} requires OS X 10.5 or greater. Try graphviz-oldgui instead."
     329            return -code error "incompatible OS X version"
     330        }
     331    }
     332   
     333    extract.post_args-append    ${worksrcdir}/macosx ${worksrcdir}/doc
     334   
     335    patchfiles                  patch-project.pbxproj.diff
     336   
     337    xcode.configuration         Release
     338   
     339    build.dir                   ${worksrcpath}/macosx
     340    xcode.build.settings        PREFIX=${prefix}
     341   
     342    xcode.destroot.settings     ${xcode.build.settings}
     343}
     344
     345subport gvedit${thisbranch} {
     346    PortGroup                   qt4 1.0
     347   
     348    revision                    2
     349   
     350    conflicts                   gvedit${otherbranch}
     351   
     352    description                 Qt-based GUI for Graphviz
     353   
     354    long_description            gvedit is a ${description}. You may prefer \
     355                                the Mac-native GUI in the graphviz-gui${thisbranch} port.
     356   
     357    depends_lib-append          port:graphviz${thisbranch}
     358   
     359    patchfiles                  patch-cmd-gvedit-Makefile.in.diff \
     360                                patch-cmd-gvedit-csettings.cpp.diff
     361   
     362    # nawk: illegal jump type 339
     363    conflicts_build             nawk
     364   
     365    configure.args              --disable-silent-rules \
     366                                --with-qt
     367   
     368    build.dir                   ${worksrcpath}/cmd/gvedit
     369   
     370    post-destroot {
     371        set app GVEdit
     372        xinstall -d ${destroot}${applications_dir}/${app}.app/Contents/MacOS
     373        ln -s ${prefix}/bin/gvedit ${destroot}${applications_dir}/${app}.app/Contents/MacOS/${app}
     374    }
     375}
Note: See TracChangeset for help on using the changeset viewer.