[46658] trunk/dports/graphics/graphviz/Portfile

ryandesign at macports.org ryandesign at macports.org
Mon Feb 9 13:23:11 PST 2009


Revision: 46658
          http://trac.macports.org/changeset/46658
Author:   ryandesign at macports.org
Date:     2009-02-09 13:23:10 -0800 (Mon, 09 Feb 2009)
Log Message:
-----------
graphviz:

 * enable ipsep-cola (#18413)
 * remove +gui variant in favor of graphviz-gui port (#18177)
 * make the plugin config file part of the destroot (#18272)

Modified Paths:
--------------
    trunk/dports/graphics/graphviz/Portfile

Modified: trunk/dports/graphics/graphviz/Portfile
===================================================================
--- trunk/dports/graphics/graphviz/Portfile	2009-02-09 21:10:02 UTC (rev 46657)
+++ trunk/dports/graphics/graphviz/Portfile	2009-02-09 21:23:10 UTC (rev 46658)
@@ -6,15 +6,15 @@
 set my_name             graphviz
 # keep version in sync between graphviz and graphviz-gui
 version                 2.20.3
-revision                1
+revision                2
 categories              graphics
 maintainers             ryandesign
 homepage                http://www.graphviz.org/
+master_sites            ${homepage}pub/graphviz/stable/SOURCES/
 platforms               darwin
 use_parallel_build      yes
 dist_subdir             ${my_name}
 distname                ${my_name}-${version}
-distfiles               ${distname}${extract.suffix}:source
 
 description \
     Graph visualization software from AT&T and Bell Labs
@@ -31,15 +31,10 @@
     programs (for non-interactive use) can use the +no_x11 \
     variant to build graphviz without its display routines.
 
-master_sites \
-    ${homepage}pub/graphviz/stable/SOURCES/:source \
-    http://www.pixelglow.com/downloads/:guiapp
-
 checksums \
-    ${distname}${extract.suffix} \
-        md5     4d94c4b809a5c095acfc973d8d207fa9 \
-        sha1    63ae6bdb6b410387477d339225cc4f61c2bc7322 \
-        rmd160  64c80f3af55668e487f911132407c332c3c38e87
+    md5     4d94c4b809a5c095acfc973d8d207fa9 \
+    sha1    63ae6bdb6b410387477d339225cc4f61c2bc7322 \
+    rmd160  64c80f3af55668e487f911132407c332c3c38e87
 
 platform darwin 6 {
     pre-fetch {
@@ -88,7 +83,7 @@
     --without-devil \
     --without-smyrna \
     --with-digcola \
-    --without-ipsepcola \
+    --with-ipsepcola \
     --without-rsvg \
     --with-pangocairo \
     --without-glitz \
@@ -362,49 +357,29 @@
         --without-x
 }
 
-variant gui description {Include the Pixelglow graph viewer} {
-    distfiles-append \
-        graphviz-1.13-v16.tgz:guiapp
-    checksums-append \
-        graphviz-1.13-v16.tgz \
-            md5 a3278f993ef3ce021043a17b16a9fd5f \
-            sha1 87ee05a99088a98aef4937d72c3bb6cf488e3074 \
-            rmd160 35eac7c7013bddc0d1f107fcaf8e9c7d1e078231
-    post-extract {
-        copy "${workpath}/Graphviz 1.13 (v16)/Graphviz.app" ${worksrcpath}
-        delete ${worksrcpath}/Graphviz.app/Contents/Frameworks
-        system "cd ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj && iconv -f utf-16 -t utf-8 InfoPlist.strings > InfoPlist.strings.utf8"
-    }
-    patchfiles-append \
-        patch-gv-extension.diff
-    post-patch {
-        reinplace "s|1\.13|${version}|g" \
-            ${worksrcpath}/Graphviz.app/Contents/Info.plist \
-            ${worksrcpath}/Graphviz.app/Contents/Resources/Info.plist \
-            ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj/InfoPlist.strings.utf8
-        system "cd ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj && iconv -f utf-8 -t utf-16 InfoPlist.strings.utf8 > InfoPlist.strings"
-        delete ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj/InfoPlist.strings.utf8
-    }
-    post-destroot {
-        set apppath ${destroot}${applications_dir}
-        set macospath ${apppath}/Graphviz.app/Contents/MacOS
-        set dispatcher graphviz-dispatcher.php
-        xinstall -d ${apppath}
-        copy ${worksrcpath}/Graphviz.app ${apppath}
-        xinstall -m 755 ${filespath}/${dispatcher}.in ${macospath}/${dispatcher}
-        reinplace "s%@PREFIX@%${prefix}%g" ${macospath}/${dispatcher}
-        foreach prog {acyclic bcomps ccomps circo cvtgxl dijkstra dot gc gvcolor gvpack gvpr neato nop sccmap tred twopi unflatten} {
-            delete ${macospath}/${prog}
-            ln -s ${dispatcher} ${macospath}/${prog}
+variant gui description {Obsolete; install graphviz-gui port instead} {
+    pre-configure {
+        set newport graphviz-gui
+        if {${os.major} < 9} {
+            set newport graphviz-oldgui
         }
+        ui_msg "The +gui variant is obsolete. Please install the ${newport} port instead."
     }
 }
 
-# Make the configuration file that makes the plugins work:
-post-activate {
-    system "dot -c"
+post-destroot {
+    # Make the configuration file that makes the plugins work.
+    system "GVBINDIR=${destroot}${prefix}/lib/graphviz DYLD_LIBRARY_PATH=${destroot}${prefix}/lib ${destroot}${prefix}/bin/dot -c"
 }
 
+pre-install {
+    # Remove old configuration file left behind by old versions of this port.
+    set config ${prefix}/lib/graphviz/config
+    if {[file exists ${config}]} {
+        delete ${config}
+    }
+}
+
 # keep livecheck in sync between graphviz and graphviz-gui
 livecheck.check         regex
 livecheck.url           ${homepage}Download_source.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090209/697385f7/attachment.html>


More information about the macports-changes mailing list