[46064] trunk/dports/graphics/graphviz-oldgui/Portfile
ryandesign at macports.org
ryandesign at macports.org
Tue Jan 27 23:02:31 PST 2009
Revision: 46064
http://trac.macports.org/changeset/46064
Author: ryandesign at macports.org
Date: 2009-01-27 23:02:30 -0800 (Tue, 27 Jan 2009)
Log Message:
-----------
graphviz-oldgui: Add Portfile comments
Modified Paths:
--------------
trunk/dports/graphics/graphviz-oldgui/Portfile
Modified: trunk/dports/graphics/graphviz-oldgui/Portfile
===================================================================
--- trunk/dports/graphics/graphviz-oldgui/Portfile 2009-01-28 06:54:02 UTC (rev 46063)
+++ trunk/dports/graphics/graphviz-oldgui/Portfile 2009-01-28 07:02:30 UTC (rev 46064)
@@ -33,13 +33,17 @@
path:bin/neato:graphviz
post-extract {
+ # Rename worksrcpath so it doesn't contain spaces; some phases have problems otherwise.
move "${workpath}/Graphviz 1.13 (v16)" ${worksrcpath}
+ # The frameworks are v1.13 frameworks that aren't applicable anymore.
delete ${worksrcpath}/Graphviz.app/Contents/Frameworks
+ # Remove the .DS_Store files that we don't really want to install.
fs-traverse item ${worksrcpath} {
if {".DS_Store" == [file tail ${item}] && [file isfile ${item}]} {
delete ${item}
}
}
+ # Convert the strings from UTF-16 to UTF-8 so that we can patch them.
system "cd ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj && ${prefix}/bin/iconv -f utf-16 -t utf-8 InfoPlist.strings > InfoPlist.strings.utf8"
}
@@ -48,6 +52,7 @@
patch-gv-extension.diff
post-patch {
+ # Convert the strings back to UTF-16 which is what Mac OS X expects.
system "cd ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj && ${prefix}/bin/iconv -f utf-8 -t utf-16 InfoPlist.strings.utf8 > InfoPlist.strings"
delete ${worksrcpath}/Graphviz.app/Contents/Resources/English.lproj/InfoPlist.strings.utf8
}
@@ -55,6 +60,9 @@
use_configure no
build {
+ # Replace the v1.13 executables with symlinks to a wrapper script that
+ # calls the new executables in ${prefix}/bin. The wrapper is necessary
+ # to emulate the -Tepdf option which was specific to Pixelglow's fork.
set dispatcher graphviz-dispatcher.php
set macospath ${worksrcpath}/Graphviz.app/Contents/MacOS
xinstall -m 755 ${filespath}/${dispatcher}.in ${macospath}/${dispatcher}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090127/2f52ab29/attachment.html>
More information about the macports-changes
mailing list