Changeset 99116
- Timestamp:
- Oct 27, 2012, 6:09:10 AM (12 years ago)
- 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 6 6 PortGroup xcodeversion 1.0 7 7 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. 9 9 10 10 name graphviz-devel 11 conflicts graphviz12 11 set my_name graphviz 13 12 version 2.29.20121022.0445 13 set thisbranch [strsed ${name} "g/^${my_name}//"] 14 set otherbranch [expr {${thisbranch} == {} ? {-devel} : {}}] 14 15 categories graphics 15 16 maintainers ryandesign … … 41 42 # graphviz-gui needs Xcode 3.1.2+; see #18811 42 43 minimum_xcodeversions {9 3.1.2} 44 45 if {${name} == ${subport}} { 46 conflicts graphviz${otherbranch} 47 48 depends_build port:pkgconfig 43 49 44 50 depends_lib port:xorg-libXaw \ … … 57 63 port:zlib \ 58 64 port:gettext 59 60 depends_build port:pkgconfig61 65 62 66 depends_run port:urw-fonts … … 293 297 livecheck.url ${homepage}Download_source.php 294 298 livecheck.regex ${my_name}-(\[0-9\]+\\.\[0-9\]*\[13579\](\\.\[0-9\]+)*)\\.tar 299 } else { 300 livecheck.type none 301 } 302 303 subport 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 340 subport 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.