diff options
| author | mjwybrow <mjwybrow@users.sourceforge.net> | 2009-07-07 06:00:38 +0000 |
|---|---|---|
| committer | mjwybrow <mjwybrow@users.sourceforge.net> | 2009-07-07 06:00:38 +0000 |
| commit | e106c45fdb54f0a2f2e3a72cde88c464e565e9e3 (patch) | |
| tree | 7f184714f7addd40c5bd9e0e24f6ca85d655c8be /packaging | |
| parent | Fix LP #390162: Wrong defaults for Calligraphy tool (diff) | |
| download | inkscape-e106c45fdb54f0a2f2e3a72cde88c464e565e9e3.tar.gz inkscape-e106c45fdb54f0a2f2e3a72cde88c464e565e9e3.zip | |
- Fix bug #396322: "Spell checker crashes the OS X package"
- Include the aspell dictionary files in the app bundle.
- Show an error if at least the en dictionary files are not available.
- Replace the GtkOptionMenu (for selecting which dictionary to add
extra words to) with a GtkComboBox since this one behaves correctly
when it is insensitive. GtkOptionMenu is deprecated and the menu
would appear when clicking on the insensitive widget and then could
not be closed.
(bzr r8224)
Diffstat (limited to 'packaging')
| -rwxr-xr-x | packaging/macosx/Resources/bin/inkscape | 1 | ||||
| -rwxr-xr-x | packaging/macosx/osx-app.sh | 21 |
2 files changed, 19 insertions, 3 deletions
diff --git a/packaging/macosx/Resources/bin/inkscape b/packaging/macosx/Resources/bin/inkscape index 480414c41..2aa2e723b 100755 --- a/packaging/macosx/Resources/bin/inkscape +++ b/packaging/macosx/Resources/bin/inkscape @@ -41,6 +41,7 @@ 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 XDG_DATA_DIRS="$TOP/share" +export ASPELL_CONF="prefix $TOP;" export INKSCAPE_SHAREDIR="$TOP" # TODO: move the share directory to a its own folder to make things a bit cleaner in the app bundle diff --git a/packaging/macosx/osx-app.sh b/packaging/macosx/osx-app.sh index 9c157b522..f28b9c4bf 100755 --- a/packaging/macosx/osx-app.sh +++ b/packaging/macosx/osx-app.sh @@ -126,6 +126,17 @@ if [ ! -e "$LIBPREFIX/share/themes/Clearlooks-Quicksilver" ]; then 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 + if [ ! -f "$binary" ]; then echo "Need Inkscape binary" >&2 exit 1 @@ -224,16 +235,16 @@ cp -v "$binary" "$binpath" # TODO Add a "$verbose" variable and command line switch, which sets wether these commands are verbose or not # Share files -rsync -av "$binary_dir/../share/$binary_name"/* "$package/Contents/Resources/" +rsync -av "$binary_dir/../share/$binary_name"/* "$pkgresources/" cp "$plist" "$package/Contents/Info.plist" -rsync -av "$binary_dir/../share/locale"/* "$package/Contents/Resources/locale" +rsync -av "$binary_dir/../share/locale"/* "$pkgresources/locale" # Copy GTK shared mime information mkdir -p "$pkgresources/share" cp -rp "$LIBPREFIX/share/mime" "$pkgresources/share/" # Icons and the rest of the script framework -rsync -av --exclude ".svn" "$resdir"/Resources/* "$package"/Contents/Resources/ +rsync -av --exclude ".svn" "$resdir"/Resources/* "$pkgresources/" # Add python modules if requested if [ ${add_python} = "true" ]; then @@ -283,6 +294,10 @@ cp -r $LIBPREFIX/lib/gtk-2.0/$gtk_version/* $pkglib/gtk-2.0/$gtk_version/ mkdir -p $pkglib/gnome-vfs-2.0/modules cp $LIBPREFIX/lib/gnome-vfs-2.0/modules/*.so $pkglib/gnome-vfs-2.0/modules/ +# Copy aspell dictionary files: +cp -r "$LIBPREFIX/lib/aspell-0.60" "$pkglib/" +cp -r "$LIBPREFIX/share/aspell" "$pkgresources/share/" + # Find out libs we need from fink, darwinports, or from a custom install # (i.e. $LIBPREFIX), then loop until no changes. a=1 |
