[40608] trunk/dports/graphics/graphviz-devel

ryandesign at macports.org ryandesign at macports.org
Wed Oct 8 02:25:54 PDT 2008


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

 * Support the new .gv filename extension for graphs and make it the default when exporting a graph
 * 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-devel/Portfile

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

Property Changed:
----------------
    trunk/dports/graphics/graphviz-devel/


Property changes on: trunk/dports/graphics/graphviz-devel
___________________________________________________________________
Added: svn:mergeinfo
   + /trunk/dports/graphics/graphviz:40607

Modified: trunk/dports/graphics/graphviz-devel/Portfile
===================================================================
--- trunk/dports/graphics/graphviz-devel/Portfile	2008-10-08 09:10:49 UTC (rev 40607)
+++ trunk/dports/graphics/graphviz-devel/Portfile	2008-10-08 09:25:54 UTC (rev 40608)
@@ -5,6 +5,7 @@
 name                    graphviz-devel
 set my_name             graphviz
 version                 2.21.20081001.0445
+revision                1
 categories              graphics
 maintainers             ryandesign
 homepage                http://www.graphviz.org/
@@ -271,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} {

Copied: trunk/dports/graphics/graphviz-devel/files/patch-gv-extension.diff (from rev 40607, trunk/dports/graphics/graphviz/files/patch-gv-extension.diff)
===================================================================
--- trunk/dports/graphics/graphviz-devel/files/patch-gv-extension.diff	                        (rev 0)
+++ trunk/dports/graphics/graphviz-devel/files/patch-gv-extension.diff	2008-10-08 09:25:54 UTC (rev 40608)
@@ -0,0 +1,32 @@
+--- 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/FormatExtensions.strings	2004-08-23 07:45:39.000000000 -0500
++++ Graphviz.app/Contents/Resources/FormatExtensions.strings	2008-10-08 01:48:53.000000000 -0500
+@@ -1,6 +1,6 @@
+-"format.dot" = "dot";
+-"format.canon" = "dot";
+-"format.xdot" = "dot";
++"format.dot" = "gv";
++"format.canon" = "gv";
++"format.xdot" = "gv";
+ "format.imap" = "map";
+ "format.cmap" = "html";
+ "format.cmapx" = "xhtml";
+--- 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/cd8cfc95/attachment-0001.html 


More information about the macports-changes mailing list