[40607] trunk/dports/graphics/graphviz

ryandesign at macports.org ryandesign at macports.org
Wed Oct 8 02:10:50 PDT 2008


Revision: 40607
          http://trac.macports.org/changeset/40607
Author:   ryandesign at macports.org
Date:     2008-10-08 02:10:49 -0700 (Wed, 08 Oct 2008)
Log Message:
-----------
graphviz:

 * Support the new .gv filename extension for graphs
 * Update the Graphviz version number shown in the About box and Finder Get Info windows
 * Remove the frameworks which had never been updated past version 1.13 and which I don't think the app uses now

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

Added Paths:
-----------
    trunk/dports/graphics/graphviz/files/patch-gv-extension.diff

Modified: trunk/dports/graphics/graphviz/Portfile
===================================================================
--- trunk/dports/graphics/graphviz/Portfile	2008-10-08 08:38:00 UTC (rev 40606)
+++ trunk/dports/graphics/graphviz/Portfile	2008-10-08 09:10:49 UTC (rev 40607)
@@ -5,7 +5,7 @@
 name                    graphviz
 set my_name             graphviz
 version                 2.20.2
-revision                1
+revision                2
 categories              graphics
 maintainers             ryandesign
 homepage                http://www.graphviz.org/
@@ -272,12 +272,27 @@
             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}
-        file copy "${workpath}/Graphviz 1.13 (v16)/Graphviz.app" ${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} {

Added: trunk/dports/graphics/graphviz/files/patch-gv-extension.diff
===================================================================
--- trunk/dports/graphics/graphviz/files/patch-gv-extension.diff	                        (rev 0)
+++ trunk/dports/graphics/graphviz/files/patch-gv-extension.diff	2008-10-08 09:10:49 UTC (rev 40607)
@@ -0,0 +1,20 @@
+--- Graphviz.app/Contents/Info.plist	2004-08-23 07:43:31.000000000 -0500
++++ Graphviz.app/Contents/Info.plist	2008-10-08 02:49:36.000000000 -0500
+@@ -10,6 +10,7 @@
+ 			<key>CFBundleTypeExtensions</key>
+ 			<array>
+ 				<string>dot</string>
++				<string>gv</string>
+ 			</array>
+ 			<key>CFBundleTypeIconFile</key>
+ 			<string>dot.icns</string>
+--- Graphviz.app/Contents/Resources/Info.plist	2004-08-23 07:45:39.000000000 -0500
++++ Graphviz.app/Contents/Resources/Info.plist	2008-10-08 02:49:56.000000000 -0500
+@@ -10,6 +10,7 @@
+ 			<key>CFBundleTypeExtensions</key>
+ 			<array>
+ 				<string>dot</string>
++				<string>gv</string>
+ 			</array>
+ 			<key>CFBundleTypeIconFile</key>
+ 			<string>dot.icns</string>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20081008/47d0e6a8/attachment.html 


More information about the macports-changes mailing list