~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to packaging/macosx/Resources/bin/inkscape

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Kees Cook, Ted Gould
  • Date: 2008-02-10 14:20:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080210142016-vcnb2zqyhszu0xvb
Tags: 0.46~pre1-0ubuntu1
[ Kees Cook ]
* debian/control:
  - add libgtkspell-dev build-dep to gain GtkSpell features (LP: #183547).
  - update Standards version (no changes needed).
  - add Vcs and Homepage fields.
  - switch to new python-lxml dep.
* debian/{control,rules}: switch from dpatch to quilt for more sanity.
* debian/patches/20_fix_glib_and_gxx43_ftbfs.patch:
  - merged against upstream fixes.
  - added additional fixes for newly written code.
* debian/rules: enable parallel building.

[ Ted Gould ]
* Updating POTFILES.in to make it so things build correctly.
* debian/control:
  - add ImageMagick++ and libboost-dev to build-deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#
3
3
# Author: Aaron Voisine <aaron@voisine.org>
4
 
# Inkscape Modifications: Michael Wybrow <mjwybrow@users.sourceforge.net>
 
4
# Inkscape Modifications:
 
5
#       Michael Wybrow <mjwybrow@users.sourceforge.net>
 
6
#       Jean-Olivier Irisson <jo.irisson@gmail.com>
 
7
#
5
8
 
6
9
CWD="`(cd \"\`dirname \\\"$0\\\"\`\"; echo $PWD)`"
 
10
# e.g. /Applications/Inkscape.app/Contents/Resources/bin
7
11
TOP="`dirname \"$CWD\"`"
 
12
# e.g. /Applications/Inkscape.app/Contents/Resources
 
13
 
 
14
 
 
15
# Brutally add many things to the PATH. If the directories do not exist, they won't be used anyway. 
 
16
# People should really use ~/.macosx/environment.plist to set environment variables as explained by Apple:
 
17
#       http://developer.apple.com/qa/qa2001/qa1067.html
 
18
# but since no one does, we correct this by making the 'classic' PATH additions here:
 
19
#       /usr/local/bin which, though standard, doesn't seem to be in the PATH
 
20
#       newer python as recommended by MacPython http://www.python.org/download/mac/
 
21
#       Fink
 
22
#       MacPorts (former DarwinPorts)
 
23
export PATH="/opt/local/bin:/sw/bin/:/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/local/bin:$CWD:$PATH"
 
24
 
 
25
# Setup PYTHONPATH to use python modules shipped with Inkscape
 
26
ARCH=`arch`
 
27
PYTHON_VERS=`python -V 2>&1 | cut -c 8-10`
 
28
export PYTHONPATH="$TOP/python/site-packages/$ARCH/$PYTHON_VERS"
 
29
# NB: we are only preprending some stuff to the default python path so if the directory does not exist it should not harm the rest
8
30
 
9
31
export DYLD_LIBRARY_PATH="$TOP/lib"
10
 
export PATH="$CWD:$PATH"
 
32
 
11
33
export PANGO_RC_FILE="$HOME/.inkscape-etc/pangorc"
12
34
export FONTCONFIG_PATH="$TOP/etc/fonts"
13
35
export GTK_IM_MODULE_FILE="$HOME/.inkscape-etc/gtk.immodules"
18
40
export GNOME_VFS_MODULE_PATH="$TOP/lib/gnome-vfs-2.0/modules"
19
41
 
20
42
export INKSCAPE_SHAREDIR="$TOP"
 
43
# TODO: move the share directory to a its own folder to make things a bit cleaner in the app bundle
21
44
export INKSCAPE_PLUGINDIR="$TOP/lib/inkscape"
22
45
export INKSCAPE_LOCALEDIR="$TOP/locale"
23
46
 
 
47
# Set GTK theme (only if there is no .gtkrc-2.0 in the user's home)
 
48
if [[ ! -e $HOME/.gtkrc-2.0 ]]; then
 
49
        # prepare the theme depending on OS X appearance settings
 
50
        (
 
51
                cd "$INKSCAPE_SHAREDIR/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/"
 
52
                ./sync_osx_look.sh
 
53
                # TODO: make this more robust, probably by integrating this script directly inline here
 
54
        )
 
55
        export GTK2_RC_FILES="$INKSCAPE_SHAREDIR/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/gtkrc"
 
56
fi
 
57
 
24
58
# TODO: Have to add ".UTF-8" to the LANG since ommiting causes Inkscape
25
59
#       to crash on startup in locale_from_utf8().
26
60
export LANG="`grep \"\`defaults read .GlobalPreferences AppleCollationOrder \