Code

* packaging/macosx/Resources/bin/inkscape: Include the Fink and/or
authormjwybrow <mjwybrow@users.sourceforge.net>
Mon, 9 Apr 2007 04:48:58 +0000 (04:48 +0000)
committermjwybrow <mjwybrow@users.sourceforge.net>
Mon, 9 Apr 2007 04:48:58 +0000 (04:48 +0000)
    DarwinPorts bin directory in the PATH when loading Inkscape on OS X.
    Patch #1692349.

packaging/macosx/Resources/bin/inkscape

index f26369cf7bbd48c5f1a2e2b17f3f68974820d8a5..291952d45099c327978aff8a9d5c6dc3836ccf15 100755 (executable)
@@ -1,12 +1,23 @@
 #!/bin/sh
 #
 # Author: Aaron Voisine <aaron@voisine.org>
-# Inkscape Modifications: Michael Wybrow <mjwybrow@users.sourceforge.net>
+# Inkscape Modifications:
+#      Michael Wybrow <mjwybrow@users.sourceforge.net>
+#      Jean-Olivier Irisson <jo.irisson@gmail.com>
+#
 
 CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo $PWD)`"
 TOP="`dirname \"$CWD\"`"
 
 export DYLD_LIBRARY_PATH="$TOP/lib"
+if [ -d /sw/bin ]
+then
+       export PATH="/sw/bin/:$PATH"
+fi
+if [ -d /opt/local/bin ]
+then
+       export PATH="/opt/local/bin:$PATH"
+fi
 export PATH="$CWD:$PATH"
 export PANGO_RC_FILE="$HOME/.inkscape-etc/pangorc"
 export FONTCONFIG_PATH="$TOP/etc/fonts"