summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1272d58)
raw | patch | inline | side by side (parent: 1272d58)
author | mjwybrow <mjwybrow@users.sourceforge.net> | |
Mon, 20 Jul 2009 23:56:26 +0000 (23:56 +0000) | ||
committer | mjwybrow <mjwybrow@users.sourceforge.net> | |
Mon, 20 Jul 2009 23:56:26 +0000 (23:56 +0000) |
offical OS X Inkscape App bundle.
- Improve some error messages in the osx-app.sh build script.
- Improve some error messages in the osx-app.sh build script.
packaging/macosx/osx-app.sh | patch | blob | history |
index f28b9c4bf145ff2b5daeb27c597c4dd9f9e1edf3..b8d608a80b7d27a51546f1765a1b00439fb17ba9 100755 (executable)
#!/bin/bash
#
# USAGE
-# osx-app [-s] [-py /path/to/python/modules] [-l /path/to/libraries] -b /path/to/bin/inkscape -p /path/to/Info.plist
+# osx-app [-s] [-l /path/to/libraries] -py /path/to/python/modules [-l /path/to/libraries] -b /path/to/bin/inkscape -p /path/to/Info.plist
#
# This script attempts to build an Inkscape.app package for OS X, resolving
-# dynamic libraries, etc.
-# It strips the executable and libraries if '-s' is given.
-# It adds python modules if the '-py option' is given
+# dynamic libraries, etc.
+#
+# If the '-s' option is given, then the libraries and executable are stripped.
+#
# The Info.plist file can be found in the base inkscape directory once
# configure has been run.
#
# Jean-Olivier Irisson <jo.irisson@gmail.com>
#
# Copyright (C) 2005 Kees Cook
-# Copyright (C) 2005-2007 Michael Wybrow
-# Copyright (C) 2007 Jean-Olivier Irisson
+# Copyright (C) 2005-2009 Michael Wybrow
+# Copyright (C) 2007-2009 Jean-Olivier Irisson
#
# Released under GNU GPL, read the file 'COPYING' for more information
#
Create an app bundle for OS X
\033[1mUSAGE\033[0m
- $0 [-s] [-py /path/to/python/modules] [-l /path/to/libraries] -b /path/to/bin/inkscape -p /path/to/Info.plist
+ $0 [-s] [-l /path/to/libraries] -py /path/to/python/modules -b /path/to/bin/inkscape -p /path/to/Info.plist
\033[1mOPTIONS\033[0m
\033[1m-h,--help\033[0m
echo -e "\n\033[1mCREATE INKSCAPE APP BUNDLE\033[0m\n"
# Safety tests
-if [ ${add_python} = "true" ]; then
- if [ ! -e "$python_dir" ]; then
- echo "Cannot find the directory containing python modules: $python_dir" >&2
- exit 1
- fi
+
+if [ "x$binary" == "x" ]; then
+ echo "Inkscape binary path not specified." >&2
+ exit 1
fi
-if [ ! -e "$LIBPREFIX" ]; then
- echo "Cannot find the directory containing the libraires: $LIBPREFIX" >&2
+if [ ! -x "$binary" ]; then
+ echo "Inkscape executable not not found at $binary." >&2
exit 1
fi
-if [ ! -e "$LIBPREFIX/share/themes/Clearlooks-Quicksilver" ]; then
- echo "Missing Clearlooks -- please install gtk2-clearlooks and try again." >&2
+if [ "x$plist" == "x" ]; then
+ echo "Info.plist file not specified." >&2
exit 1
fi
-if [ ! -e "$LIBPREFIX/lib/gnome-vfs-2.0" ]; then
- echo "Missing gnome-vfs -- please install gnome-vfs and try again." >&2
+if [ ! -f "$plist" ]; then
+ echo "Info.plist file not found at $plist." >&2
exit 1
fi
-if [ ! -e "$LIBPREFIX/lib/aspell-0.60/en.dat" ]; then
- echo "Missing aspell en dictionary -- please install at least 'aspell-dict-en', but" >&2
- echo "preferably all dictionaries ('aspell-dict-*') and try again." >&2
+PYTHONPACKURL="http://inkscape.modevia.com/macosx-snap/Python-packages.dmg"
+
+if [ "x$python_dir" == "x" ]; then
+ echo "Python modules directory not specified." >&2
+ echo "Python modules can be downloaded from:" >&2
+ echo " $PYTHONPACKURL" >&2
exit 1
fi
-if [ ! -f "$binary" ]; then
- echo "Need Inkscape binary" >&2
+if [ ! -e "$python_dir/i386" -o ! -e "$python_dir/ppc" ]; then
+ echo "Directory does not appear to contain the i386 and ppc python modules:" >&2
+ echo " $python_dir" >&2
+ echo "Python modules can be downloaded from:" >&2
+ echo " $PYTHONPACKURL" >&2
exit 1
fi
-if [ ! -f "$plist" ]; then
- echo "Need plist file" >&2
+if [ ! -e "$LIBPREFIX" ]; then
+ echo "Cannot find the directory containing the libraires: $LIBPREFIX" >&2
exit 1
fi
-if [ ! -x "$binary" ]; then
- echo "Not executable: $binary" >&2
+if [ ! -e "$LIBPREFIX/share/themes/Clearlooks-Quicksilver" ]; then
+ echo "Missing Clearlooks -- please install gtk2-clearlooks and try again." >&2
+ exit 1
+fi
+
+if [ ! -e "$LIBPREFIX/lib/gnome-vfs-2.0" ]; then
+ echo "Missing gnome-vfs -- please install gnome-vfs and try again." >&2
+ exit 1
+fi
+
+if [ ! -e "$LIBPREFIX/lib/aspell-0.60/en.dat" ]; then
+ echo "Missing aspell en dictionary -- please install at least 'aspell-dict-en', but" >&2
+ echo "preferably all dictionaries ('aspell-dict-*') and try again." >&2
exit 1
fi