diff options
| author | Liam P. White <inkscapebrony@gmail.com> | 2014-10-25 18:36:10 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebrony@gmail.com> | 2014-10-25 18:36:10 +0000 |
| commit | 17f09296aa0beff56222e2d9c24f92a8ce94eef2 (patch) | |
| tree | 9eae706e5f1145ee3184e41432f6d4315a53dce5 /packaging | |
| parent | Update perspective-envelope to be affected by the clip or mask on LPE patch (diff) | |
| parent | Cleaned casts from sp-shape by fixing member type. (diff) | |
| download | inkscape-17f09296aa0beff56222e2d9c24f92a8ce94eef2.tar.gz inkscape-17f09296aa0beff56222e2d9c24f92a8ce94eef2.zip | |
Update to trunk r13638
(bzr r13341.1.286)
Diffstat (limited to 'packaging')
| -rw-r--r-- | packaging/macosx/README.txt | 2 | ||||
| -rw-r--r--[-rwxr-xr-x] | packaging/macosx/Resources/alert_fccache.sh | 2 | ||||
| -rwxr-xr-x | packaging/macosx/Resources/bin/gimp-wrapper.sh | 33 | ||||
| -rwxr-xr-x | packaging/macosx/Resources/bin/inkscape | 8 | ||||
| -rwxr-xr-x | packaging/macosx/Resources/bin/python-wrapper.sh | 78 | ||||
| -rw-r--r-- | packaging/macosx/Resources/etc/gtk-2.0/gtkrc | 2 | ||||
| -rwxr-xr-x[-rw-r--r--] | packaging/macosx/Resources/openDoc | 6 | ||||
| -rwxr-xr-x | packaging/macosx/Resources/script | 6 | ||||
| -rw-r--r--[-rwxr-xr-x] | packaging/macosx/Resources/xdg_setup.sh | 2 | ||||
| -rwxr-xr-x | packaging/macosx/ScriptExec/launcher-quartz-no-macintegration.sh | 8 | ||||
| -rwxr-xr-x | packaging/macosx/create-stock-icon-theme.sh | 44 | ||||
| -rwxr-xr-x | packaging/macosx/osx-app.sh | 3 |
12 files changed, 80 insertions, 114 deletions
diff --git a/packaging/macosx/README.txt b/packaging/macosx/README.txt index 31b4247f9..3b0746c60 100644 --- a/packaging/macosx/README.txt +++ b/packaging/macosx/README.txt @@ -18,7 +18,7 @@ $ (cd ports && portindex) 5) add default variants for x11-based package to MacPorts' global variants: -$ sudo bash -c "echo '+x11 -quartz -no_x11 +rsvg +Pillow -tkinter +gnome_vfs' >> \"$MP_PREFIX/etc/macports/variants.conf\"" +$ sudo sed -e '$a\'$'\n''+x11 -quartz -no_x11 +rsvg +Pillow -tkinter +gnome_vfs' -i "" "$MP_PREFIX/etc/macports/sources.conf" 6) install required dependencies: diff --git a/packaging/macosx/Resources/alert_fccache.sh b/packaging/macosx/Resources/alert_fccache.sh index 50038b2ac..e39971def 100755..100644 --- a/packaging/macosx/Resources/alert_fccache.sh +++ b/packaging/macosx/Resources/alert_fccache.sh @@ -1,5 +1,3 @@ -#!/bin/bash - ALERT_SCRIPT="$(cat << EOM try set parent_path to "$CWD" diff --git a/packaging/macosx/Resources/bin/gimp-wrapper.sh b/packaging/macosx/Resources/bin/gimp-wrapper.sh index 4cddfcc3a..bbb4d6c6a 100755 --- a/packaging/macosx/Resources/bin/gimp-wrapper.sh +++ b/packaging/macosx/Resources/bin/gimp-wrapper.sh @@ -5,6 +5,22 @@ #_DEBUG=true +# --- unset environment inherited from inkscape.app +get_env_current () +{ + env | awk -F= '/[a-zA-Z_][a-zA-Z_0-9]*=/ {if (!system("[ -n \"${" $1 "+y}\" ]")) print $1 }' | sort | uniq +} + +if [ ! -z "$_env_orig" ]; then + keep_env=$_env_orig + for i in $(get_env_current); do + if [ -z "$(printf %s "$keep_env" | grep $i)" ]; then + unset $i + fi + done +fi + + # --- defaults for GIMP.app app_id="org.gnome.gimp" @@ -19,23 +35,6 @@ PATH_local="/opt/local/bin" gimp_name="gimp" -# --- unset environment inherited from Inkscape.app - -unset XDG_CONFIG_HOME XDG_DATA_HOME XDG_CACHE_HOME -unset XDG_CONFIG_DIRS XDG_DATA_DIRS -unset GTK_PATH GTK_DATA_PREFIX GTK_EXE_PREFIX GTK_IM_MODULE_FILE GTK2_RC_FILES -unset FONTCONFIG_FILE FONTCONFIG_PATH HB_SHAPER_LIST PANGO_RC_FILE PANGO_SYSCONFDIR -unset GDK_PIXBUF_MODULE_FILE GSETTINGS_SCHEMA_DIR -unset DBUS_SESSION_BUS_PID DBUS_LAUNCHD_SESSION_BUS_SOCKET DBUS_SESSION_BUS_ADDRESS -unset GNOME_VFS_MODULE_CONFIG_PATH GNOME_VFS_MODULE_PATH -unset GIO_MODULE_DIR GVFS_MOUNTABLE_DIR -unset ASPELL_CONF -unset POPPLER_DATADIR -unset VERSIONER_PYTHON_VERSION VERSIONER_PYTHON_PREFER_32_BIT PYTHONPATH -unset MAGICK_HOME MAGICK_CONFIGURE_PATH MAGICK_CODER_FILTER_PATH MAGICK_CODER_MODULE_PATH -unset GS_LIB GS_ICC_PROFILES GS_RESOURCE_DIR GS_LIB GS_FONTPATH GS - - # --- detect installed GIMP.app unset GIMP_APP diff --git a/packaging/macosx/Resources/bin/inkscape b/packaging/macosx/Resources/bin/inkscape index 775f94e5c..8cb581a05 100755 --- a/packaging/macosx/Resources/bin/inkscape +++ b/packaging/macosx/Resources/bin/inkscape @@ -7,6 +7,12 @@ # ~suv <suv-sf@users.sourceforge.net> # +get_env_current () +{ + env | awk -F= '/[a-zA-Z_][a-zA-Z_0-9]*=/ {if (!system("[ -n \"${" $1 "+y}\" ]")) print $1 }' | sort | uniq +} +[ -z "$_env_orig" ] && export _env_orig="$(get_env_current)" + [ -n "$INK_DEBUG_LAUNCHER" ] && set -x CWD="$(cd "$(dirname "$0")" && pwd)" @@ -20,7 +26,7 @@ BASE="$(echo "$TOP" | sed -e 's/\/Contents\/Resources.*$//')" # path hack in src/path-prefix.h for osxapp-enabled builds). Until then, below change # of working directory is required: # -# Due to changes after 0.48, we have change working directory in the script named 'inkscape': +# Due to changes after 0.48, we have to change working directory in the script named 'inkscape': # recursive calls to inkscape from python-based extensions otherwise cause the app to hang or # fail (for python-based extensions, inkscape changes the working directory to the # script's directory, and inkscape launched by python script thus can't find resources diff --git a/packaging/macosx/Resources/bin/python-wrapper.sh b/packaging/macosx/Resources/bin/python-wrapper.sh deleted file mode 100755 index 34cd75737..000000000 --- a/packaging/macosx/Resources/bin/python-wrapper.sh +++ /dev/null @@ -1,78 +0,0 @@ -#!/bin/sh - - -# --------------------------------------------------------------------- -# a) to use PyGTK (for Sozi or inksmoto) from MacPorts -# --------------------------------------------------------------------- - -# export PYTHONPATH="$INKSCAPE_SHAREDIR"/extensions -# -# # unset other environment variables used in Inkscape.app -# unset DYLD_LIBRARY_PATH -# unset XDG_CONFIG_DIRS XDG_DATA_DIRS -# unset GTK_PATH GTK_DATA_PREFIX GTK_EXE_PREFIX GTK_IM_MODULE_FILE -# unset FONTCONFIG_FILE FONTCONFIG_PATH HB_SHAPER_LIST PANGO_RC_FILE PANGO_SYSCONFDIR -# unset GDK_PIXBUF_MODULE_FILE GSETTINGS_SCHEMA_DIR -# unset DBUS_SESSION_BUS_PID DBUS_LAUNCHD_SESSION_BUS_SOCKET DBUS_SESSION_BUS_ADDRESS -# unset GNOME_VFS_MODULE_CONFIG_PATH GNOME_VFS_MODULE_PATH -# unset GIO_MODULE_DIR GVFS_MOUNTABLE_DIR -# unset ASPELL_CONF -# unset POPPLER_DATADIR -# unset VERSIONER_PYTHON_VERSION VERSIONER_PYTHON_PREFER_32_BIT -# unset MAGICK_HOME MAGICK_CONFIGURE_PATH MAGICK_CODER_FILTER_PATH MAGICK_CODER_MODULE_PATH -# unset GS_LIB GS_ICC_PROFILES GS_RESOURCE_DIR GS_LIB GS_FONTPATH GS -# -# # set locale (language) explicitly -# # (not needed with 0.48.5 package) -# #export LANG="en_US.UTF-8" -# -# # set MacPorts prefix -# LIBPREFIX="/opt/local" -# -# exec "$LIBPREFIX/bin/python" "$@" - - -# --------------------------------------------------------------------- -# b) to test different 32bit or 64bit system-provided Python versions -# (available on Mac OS X 10.6 Snow Leopard and later versions) -# --------------------------------------------------------------------- - -# # Python 2.5 (system) - Lion: 2.5.6 -# #exec /usr/bin/python2.5 "$@" -# export VERSIONER_PYTHON_VERSION=2.5 -# export VERSIONER_PYTHON_PREFER_32_BIT=yes -# exec /usr/bin/python "$@" - -# # Python 2.6 (system) - Lion: 2.6.7 -# #exec arch -i386 /usr/bin/python2.6 "$@" -# export VERSIONER_PYTHON_VERSION=2.6 -# export VERSIONER_PYTHON_PREFER_32_BIT=yes -# #export VERSIONER_PYTHON_PREFER_32_BIT=no -# exec /usr/bin/python "$@" - -# # Python 2.7 (system) - Lion: 2.7.1 -# #exec arch -i386 /usr/bin/python2.7 "$@" -# export VERSIONER_PYTHON_VERSION=2.7 -# export VERSIONER_PYTHON_PREFER_32_BIT=yes -# #export VERSIONER_PYTHON_PREFER_32_BIT=no -# exec /usr/bin/python "$@" - - -# --------------------------------------------------------------------- -# c) to test different 32bit or 64bit MacPorts-provided Python versions -# (define $LIBPREFIX locally) -# --------------------------------------------------------------------- - -# LIBPREFIX="/opt/local-x11" -# exec "$LIBPREFIX/bin/python2.5" "$@" -# #exec "$LIBPREFIX/bin/python2.6" "$@" -# #exec "$LIBPREFIX/bin/python2.7" "$@" - - -# --------------------------------------------------------------------- -# d) ... otherwise run default python -# --------------------------------------------------------------------- - -exec /usr/bin/python "$@" - -# eof diff --git a/packaging/macosx/Resources/etc/gtk-2.0/gtkrc b/packaging/macosx/Resources/etc/gtk-2.0/gtkrc index 5babb9b17..76c9f3397 100644 --- a/packaging/macosx/Resources/etc/gtk-2.0/gtkrc +++ b/packaging/macosx/Resources/etc/gtk-2.0/gtkrc @@ -9,7 +9,7 @@ gtk-icon-theme-name = "GtkStock" gtk-icon-sizes = "gtk-dialog=32,32:gtk-button=16,16:gtk-large-toolbar=24,24:gtk-small-toolbar=16,16:gtk-menu=16,16:inkscape-decoration=12,12" gtk-button-images = 0 -gtk-menu-images = 0 +gtk-menu-images = 1 gtk-toolbar-style = 0 #gtk-toolbar-icon-size = 2 diff --git a/packaging/macosx/Resources/openDoc b/packaging/macosx/Resources/openDoc index c2740c9b5..b2e58c114 100644..100755 --- a/packaging/macosx/Resources/openDoc +++ b/packaging/macosx/Resources/openDoc @@ -4,6 +4,12 @@ # Inkscape Modifications: Michael Wybrow <mjwybrow@users.sourceforge.net> # Inkscape Modifications: ~suv <suv-sf@users.sourceforge.net> +get_env_current () +{ + env | awk -F= '/[a-zA-Z_][a-zA-Z_0-9]*=/ {if (!system("[ -n \"${" $1 "+y}\" ]")) print $1 }' | sort | uniq +} +[ -z "$_env_orig" ] && export _env_orig="$(get_env_current)" + CWD="$(cd "$(dirname "$0")" && pwd)" source "${CWD}/xdg_setup.sh" diff --git a/packaging/macosx/Resources/script b/packaging/macosx/Resources/script index a97d02486..2bfe1d9ba 100755 --- a/packaging/macosx/Resources/script +++ b/packaging/macosx/Resources/script @@ -6,6 +6,12 @@ #export _DEBUG=true +get_env_current () +{ + env | awk -F= '/[a-zA-Z_][a-zA-Z_0-9]*=/ {if (!system("[ -n \"${" $1 "+y}\" ]")) print $1 }' | sort | uniq +} +[ -z "$_env_orig" ] && export _env_orig="$(get_env_current)" + CWD="$(cd "$(dirname "$0")" && pwd)" source "${CWD}/xdg_setup.sh" diff --git a/packaging/macosx/Resources/xdg_setup.sh b/packaging/macosx/Resources/xdg_setup.sh index ec7fca648..f37738210 100755..100644 --- a/packaging/macosx/Resources/xdg_setup.sh +++ b/packaging/macosx/Resources/xdg_setup.sh @@ -1,5 +1,3 @@ -#!/bin/bash - export XDG_CACHE_HOME="${HOME}/.cache" export XDG_CONFIG_HOME="${HOME}/.config" export XDG_DATA_HOME="${HOME}/.local/share" diff --git a/packaging/macosx/ScriptExec/launcher-quartz-no-macintegration.sh b/packaging/macosx/ScriptExec/launcher-quartz-no-macintegration.sh index d449b5121..05ffbe5c8 100755 --- a/packaging/macosx/ScriptExec/launcher-quartz-no-macintegration.sh +++ b/packaging/macosx/ScriptExec/launcher-quartz-no-macintegration.sh @@ -7,6 +7,12 @@ # ~suv <suv-sf@users.sourceforge.net> # +get_env_current () +{ + env | awk -F= '/[a-zA-Z_][a-zA-Z_0-9]*=/ {if (!system("[ -n \"${" $1 "+y}\" ]")) print $1 }' | sort | uniq +} +[ -z "$_env_orig" ] && export _env_orig="$(get_env_current)" + [ -n "$INK_DEBUG_LAUNCHER" ] && set -x CWD="$(cd "$(dirname "$0")" && pwd)" @@ -23,7 +29,7 @@ source "${TOP}/alert_fccache.sh" # path hack in src/path-prefix.h for osxapp-enabled builds). Until then, below change # of working directory is required: # -# Due to changes after 0.48, we have change working directory in the script named 'inkscape': +# Due to changes after 0.48, we have to change working directory in the script named 'inkscape': # recursive calls to inkscape from python-based extensions otherwise cause the app to hang or # fail (for python-based extensions, inkscape changes the working directory to the # script's directory, and inkscape launched by python script thus can't find resources diff --git a/packaging/macosx/create-stock-icon-theme.sh b/packaging/macosx/create-stock-icon-theme.sh index 6ca3d5772..4e47f270f 100755 --- a/packaging/macosx/create-stock-icon-theme.sh +++ b/packaging/macosx/create-stock-icon-theme.sh @@ -79,13 +79,18 @@ for size in $gtk_stock_sizes; do cp -RP "${stock_src}/$size" "${icon_theme_name}/${size}x${size}/stock" done + # workarounds for broken icons (bug #1269698) #--------------------------------------------------------- for size in $gtk_stock_sizes; do cd "${icon_theme_name}/${size}x${size}/stock" # directional icons - for di in "edit-undo" "edit-redo" "document-revert"; do + di_stock="edit-undo edit-redo document-revert gtk-undelete + format-indent-less format-indent-more + go-first go-jump go-last go-next go-previous + media-playback-start media-seek-backward media-seek-forward media-skip-backward media-skip-forward" + for di in $di_stock; do if [ -f "${di}-ltr.png" ]; then if [ ! -e "${di}.png" ]; then ln -s "${di}-ltr.png" "${di}.png" @@ -93,17 +98,18 @@ for size in $gtk_stock_sizes; do fi done # misc failed lookups - for di in "preferences"; do - if [ -f "gtk-${di}.png" ]; then - if [ ! -e "${di}-system.png" ]; then - ln -s "gtk-${di}.png" "${di}-system.png" + for i in "preferences"; do + if [ -f "gtk-${i}.png" ]; then + if [ ! -e "${i}-system.png" ]; then + ln -s "gtk-${i}.png" "${i}-system.png" fi fi done cd "$current_dir" done -# create links (round 1) + +# create links (round 1): legacy mapping #--------------------------------------------------------- for size in $gtk_stock_sizes; do @@ -118,18 +124,38 @@ for size in $gtk_stock_sizes; do done -# create links (round 2) +# create links (round 2): directional icons (bug #1269698) #--------------------------------------------------------- for size in $gtk_stock_sizes; do cd "${icon_theme_name}/${size}x${size}/stock" - for icon_file in *.png; do - [ -s $icon_file ] && ln -s "$icon_file" "$(basename $icon_file .png)"-symbolic.png + # legacy directional icons + di_stock="gtk-undo gtk-redo gtk-revert-to-saved + gtk-unindent gtk-indent + gtk-goto-first gtk-jump-to gtk-goto-last gtk-go-forward gtk-go-back" + for di in $di_stock; do + if [ -f "${di}-ltr.png" ]; then + if [ ! -e "${di}.png" ]; then + ln -s "${di}-ltr.png" "${di}.png" + fi + fi done cd "$current_dir" done +# create links (round 3): fallbacks for symbolic icon lookup +#--------------------------------------------------------- + +# for size in $gtk_stock_sizes; do +# cd "${icon_theme_name}/${size}x${size}/stock" +# for icon_file in *.png; do +# [ -s $icon_file ] && ln -s "$icon_file" "$(basename $icon_file .png)"-symbolic.png +# done +# cd "$current_dir" +# done + + # create new index.theme #--------------------------------------------------------- diff --git a/packaging/macosx/osx-app.sh b/packaging/macosx/osx-app.sh index 8931aca77..4a0268045 100755 --- a/packaging/macosx/osx-app.sh +++ b/packaging/macosx/osx-app.sh @@ -457,10 +457,9 @@ if [ $_backend = "quartz" ]; then rm "$pkgbin/inkscape" fi -# activate wrapper scripts for python and gimp (optional) +# activate wrapper scripts if [ $add_wrapper = "true" ]; then mv "$pkgbin/gimp-wrapper.sh" "$pkgbin/gimp" - #mv "$pkgbin/python-wrapper.sh" "$pkgbin/python" fi # Add python modules if requested |
