From 179fa413b047bede6e32109e2ce82437c5fb8d34 Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Mon, 16 Jan 2006 02:36:01 +0000 Subject: moving trunk for module inkscape (bzr r1) --- packaging/macosx/Resources/EPS.icns | Bin 0 -> 45195 bytes packaging/macosx/Resources/EPSI.icns | Bin 0 -> 45195 bytes packaging/macosx/Resources/Inkscape.icns | Bin 0 -> 51289 bytes packaging/macosx/Resources/MenuBar.nib/classes.nib | 4 ++ packaging/macosx/Resources/MenuBar.nib/info.nib | 23 +++++++ packaging/macosx/Resources/MenuBar.nib/objects.xib | 73 +++++++++++++++++++++ .../Resources/ProgressWindow.nib/classes.nib | 4 ++ .../macosx/Resources/ProgressWindow.nib/info.nib | 18 +++++ .../Resources/ProgressWindow.nib/objects.xib | 53 +++++++++++++++ packaging/macosx/Resources/SVG_plain.icns | Bin 0 -> 45252 bytes packaging/macosx/Resources/bin/getdisplay.sh | 9 +++ packaging/macosx/Resources/bin/inkscape | 40 +++++++++++ packaging/macosx/Resources/inkscape_svg.icns | Bin 0 -> 52648 bytes packaging/macosx/Resources/openDoc | 8 +++ packaging/macosx/Resources/postscript.icns | Bin 0 -> 45198 bytes packaging/macosx/Resources/script | 35 ++++++++++ 16 files changed, 267 insertions(+) create mode 100644 packaging/macosx/Resources/EPS.icns create mode 100644 packaging/macosx/Resources/EPSI.icns create mode 100644 packaging/macosx/Resources/Inkscape.icns create mode 100644 packaging/macosx/Resources/MenuBar.nib/classes.nib create mode 100644 packaging/macosx/Resources/MenuBar.nib/info.nib create mode 100644 packaging/macosx/Resources/MenuBar.nib/objects.xib create mode 100644 packaging/macosx/Resources/ProgressWindow.nib/classes.nib create mode 100644 packaging/macosx/Resources/ProgressWindow.nib/info.nib create mode 100644 packaging/macosx/Resources/ProgressWindow.nib/objects.xib create mode 100644 packaging/macosx/Resources/SVG_plain.icns create mode 100755 packaging/macosx/Resources/bin/getdisplay.sh create mode 100755 packaging/macosx/Resources/bin/inkscape create mode 100644 packaging/macosx/Resources/inkscape_svg.icns create mode 100755 packaging/macosx/Resources/openDoc create mode 100644 packaging/macosx/Resources/postscript.icns create mode 100755 packaging/macosx/Resources/script (limited to 'packaging/macosx/Resources') diff --git a/packaging/macosx/Resources/EPS.icns b/packaging/macosx/Resources/EPS.icns new file mode 100644 index 000000000..153a21ec9 Binary files /dev/null and b/packaging/macosx/Resources/EPS.icns differ diff --git a/packaging/macosx/Resources/EPSI.icns b/packaging/macosx/Resources/EPSI.icns new file mode 100644 index 000000000..4b9a1893f Binary files /dev/null and b/packaging/macosx/Resources/EPSI.icns differ diff --git a/packaging/macosx/Resources/Inkscape.icns b/packaging/macosx/Resources/Inkscape.icns new file mode 100644 index 000000000..f177047c0 Binary files /dev/null and b/packaging/macosx/Resources/Inkscape.icns differ diff --git a/packaging/macosx/Resources/MenuBar.nib/classes.nib b/packaging/macosx/Resources/MenuBar.nib/classes.nib new file mode 100644 index 000000000..ea58db118 --- /dev/null +++ b/packaging/macosx/Resources/MenuBar.nib/classes.nib @@ -0,0 +1,4 @@ +{ +IBClasses = (); +IBVersion = 1; +} diff --git a/packaging/macosx/Resources/MenuBar.nib/info.nib b/packaging/macosx/Resources/MenuBar.nib/info.nib new file mode 100644 index 000000000..c0f4643ef --- /dev/null +++ b/packaging/macosx/Resources/MenuBar.nib/info.nib @@ -0,0 +1,23 @@ + + + + + IBDocumentLocation + 99 362 356 240 0 0 1280 832 + IBEditorPositions + + 187 + 340 374 240 44 0 0 1280 832 + + IBFramework Version + 349.0 + IBOpenObjects + + 187 + + IBSystem Version + 7F44 + targetFramework + IBCarbonFramework + + diff --git a/packaging/macosx/Resources/MenuBar.nib/objects.xib b/packaging/macosx/Resources/MenuBar.nib/objects.xib new file mode 100644 index 000000000..78f0a0a01 --- /dev/null +++ b/packaging/macosx/Resources/MenuBar.nib/objects.xib @@ -0,0 +1,73 @@ + + + IBCarbonFramework + + NSApplication + + + + MenuBar + + + ScriptExec + + ScriptExec + _NSAppleMenu + + + + _NSMainMenu + + + + + Window + + Window + + + TRUE + Minimize Window + m + mini + + + TRUE + Minimize All Windows + m + 1572864 + mini + + + TRUE + + + TRUE + Bring All to Front + frnt + + + TRUE + Bring in Front + 1572864 + frnt + + + _NSWindowsMenu + + + + + + + + + + + File's Owner + + MenuBar + + + 206 + diff --git a/packaging/macosx/Resources/ProgressWindow.nib/classes.nib b/packaging/macosx/Resources/ProgressWindow.nib/classes.nib new file mode 100644 index 000000000..ea58db118 --- /dev/null +++ b/packaging/macosx/Resources/ProgressWindow.nib/classes.nib @@ -0,0 +1,4 @@ +{ +IBClasses = (); +IBVersion = 1; +} diff --git a/packaging/macosx/Resources/ProgressWindow.nib/info.nib b/packaging/macosx/Resources/ProgressWindow.nib/info.nib new file mode 100644 index 000000000..4e5156002 --- /dev/null +++ b/packaging/macosx/Resources/ProgressWindow.nib/info.nib @@ -0,0 +1,18 @@ + + + + + IBDocumentLocation + 124 298 356 240 0 0 1280 832 + IBFramework Version + 349.0 + IBOpenObjects + + 180 + + IBSystem Version + 7F44 + targetFramework + IBCarbonFramework + + diff --git a/packaging/macosx/Resources/ProgressWindow.nib/objects.xib b/packaging/macosx/Resources/ProgressWindow.nib/objects.xib new file mode 100644 index 000000000..6eaacc43e --- /dev/null +++ b/packaging/macosx/Resources/ProgressWindow.nib/objects.xib @@ -0,0 +1,53 @@ + + + IBCarbonFramework + + NSApplication + + + + 404 523 457 899 + Caching Fonts... + + 0 0 53 376 + + + 19 17 32 270 + TRUE + 1 + 50 + + + 16 284 34 356 + TRUE + 1 + Cancel + quit + + + + FALSE + FALSE + FALSE + FALSE + 51 + 1 + + + + + + + + + + + + + File's Owner + + Window + + + 186 + diff --git a/packaging/macosx/Resources/SVG_plain.icns b/packaging/macosx/Resources/SVG_plain.icns new file mode 100644 index 000000000..a309b25b4 Binary files /dev/null and b/packaging/macosx/Resources/SVG_plain.icns differ diff --git a/packaging/macosx/Resources/bin/getdisplay.sh b/packaging/macosx/Resources/bin/getdisplay.sh new file mode 100755 index 000000000..f7f383348 --- /dev/null +++ b/packaging/macosx/Resources/bin/getdisplay.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# +# Author: Aaron Voisine + +if [ "$DISPLAY"x == "x" ]; then + echo :0 > /tmp/display.$UID +else + echo $DISPLAY > /tmp/display.$UID +fi diff --git a/packaging/macosx/Resources/bin/inkscape b/packaging/macosx/Resources/bin/inkscape new file mode 100755 index 000000000..bcfa77662 --- /dev/null +++ b/packaging/macosx/Resources/bin/inkscape @@ -0,0 +1,40 @@ +#!/bin/sh +# +# Author: Aaron Voisine +# Inkscape Modifications: Michael Wybrow + +CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo $PWD)`" +TOP="`dirname \"$CWD\"`" + +export "DYLD_LIBRARY_PATH=$TOP/lib" +export "PATH=$CWD:$PATH" +export "PANGO_RC_FILE=$HOME/.inkscape-etc/pangorc" +export "FONTCONFIG_PATH=$TOP/etc/fonts" +export "GTK_IM_MODULE_FILE=$HOME/.inkscape-etc/gtk.immodules" +export "GDK_PIXBUF_MODULE_FILE=$HOME/.inkscape-etc/gdk-pixbuf.loaders" +export "GTK_DATA_PREFIX=$TOP" +export "GTK_EXE_PREFIX=$TOP" +export "GNOME_VFS_MODULE_CONFIG_PATH=$TOP/etc/gnome-vfs-2.0/modules" +export "GNOME_VFS_MODULE_PATH=$TOP/lib/gnome-vfs-2.0/modules" + +export "INKSCAPE_SHAREDIR=$TOP" +export "INKSCAPE_PLUGINDIR=$TOP/lib/inkscape" +export "INKSCAPE_LOCALEDIR=$TOP/locale" + +# TODO: Have to add ".UTF-8" to the LANG since ommiting causes Inkscape +# to crash on startup in locale_from_utf8(). +export "LANG=`grep \"\`defaults read .GlobalPreferences AppleCollationOrder \ + 2>&1\`_\" /usr/share/locale/locale.alias | tail -n1 | sed 's/\./ /' | \ + awk '{print $2}'`.UTF-8" + +mkdir -p ~/.inkscape-etc +sed 's|${HOME}|'"$HOME|g" "$TOP/etc/pango/pangorc" > ~/.inkscape-etc/pangorc +sed 's|${CWD}|'"$TOP|g" "$TOP/etc/pango/pango.modules" \ + > ~/.inkscape-etc/pango.modules +cp -f "$TOP/etc/pango/pangox.aliases" ~/.inkscape-etc/ +sed 's|${CWD}|'"$TOP|g" "$TOP/etc/gtk-2.0/gtk.immodules" \ + > ~/.inkscape-etc/gtk.immodules +sed 's|${CWD}|'"$TOP|g" "$TOP/etc/gtk-2.0/gdk-pixbuf.loaders" \ + > ~/.inkscape-etc/gdk-pixbuf.loaders + +exec "$CWD/inkscape-bin" "$@" diff --git a/packaging/macosx/Resources/inkscape_svg.icns b/packaging/macosx/Resources/inkscape_svg.icns new file mode 100644 index 000000000..007bf52cb Binary files /dev/null and b/packaging/macosx/Resources/inkscape_svg.icns differ diff --git a/packaging/macosx/Resources/openDoc b/packaging/macosx/Resources/openDoc new file mode 100755 index 000000000..8e6ac0399 --- /dev/null +++ b/packaging/macosx/Resources/openDoc @@ -0,0 +1,8 @@ +#!/bin/sh +# +# Author: Aaron Voisine + +export "DISPLAY=`cat /tmp/display.$UID`" +BASE="`echo "$0" | sed -e 's/\/[A-Za-z]*.app\/Contents\/Resources\/script/\//'`" +cd "$BASE" +exec "$CWD/bin/inkscape" "$@" diff --git a/packaging/macosx/Resources/postscript.icns b/packaging/macosx/Resources/postscript.icns new file mode 100644 index 000000000..1f12741da Binary files /dev/null and b/packaging/macosx/Resources/postscript.icns differ diff --git a/packaging/macosx/Resources/script b/packaging/macosx/Resources/script new file mode 100755 index 000000000..fb67e950c --- /dev/null +++ b/packaging/macosx/Resources/script @@ -0,0 +1,35 @@ +#!/bin/sh +# +# Author: Aaron Voisine +# Inkscape Modifications: Michael Wybrow + +CWD="`dirname \"$0\"`" + +ps -wx -ocommand | grep -e '[X]11' > /dev/null +if [ "$?" != "0" -a ! -f ~/.xinitrc ]; then + echo "rm -f ~/.xinitrc" > ~/.xinitrc + sed 's/xterm/# xterm/' /usr/X11R6/lib/X11/xinit/xinitrc >> ~/.xinitrc +fi + +cp -f "$CWD/bin/getdisplay.sh" /tmp/ +rm -f /tmp/display.$UID +open-x11 /tmp/getdisplay.sh || \ +open -a XDarwin /tmp/getdisplay.sh || \ +echo ":0" > /tmp/display.$UID + +while [ "$?" == "0" -a ! -f /tmp/display.$UID ]; do + sleep 1 +done +export "DISPLAY=`cat /tmp/display.$UID`" + +ps -wx -ocommand | grep -e '[X]11' > /dev/null || exit 11 + +VERSION=`/usr/bin/sw_vers | grep ProductVersion | cut -f2 -d'.'` +if [ "$VERSION" -eq "4" ]; then + # We're on tiger. So need to update fc-cache if it hasn't been done + test -f ~/.inkscape/.fccache || exit 12 +fi + +BASE="`echo "$0" | sed -e 's/\/Contents\/Resources\/script/\//'`" +cd "$BASE" +exec "$CWD/bin/inkscape" "$@" -- cgit v1.2.3