summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Proschofsky <suka@gentoo.org>2011-02-09 08:20:50 +0000
committerAndreas Proschofsky <suka@gentoo.org>2011-02-09 08:20:50 +0000
commitc36624a01ba449df745a2d14a6c6b90c8e00f93e (patch)
tree0cc67a1ec3a487691371976644e2c22f94ae3858 /app-office/libreoffice-bin
parentAdd live ebuild for testing. (diff)
downloadgentoo-2-c36624a01ba449df745a2d14a6c6b90c8e00f93e.tar.gz
gentoo-2-c36624a01ba449df745a2d14a6c6b90c8e00f93e.tar.bz2
gentoo-2-c36624a01ba449df745a2d14a6c6b90c8e00f93e.zip
Revision bump for automatic spell dictionary installation, bug #353010
(Portage version: 2.1.9.39/cvs/Linux x86_64)
Diffstat (limited to 'app-office/libreoffice-bin')
-rw-r--r--app-office/libreoffice-bin/ChangeLog9
-rw-r--r--app-office/libreoffice-bin/libreoffice-bin-3.3.0-r1.ebuild (renamed from app-office/libreoffice-bin/libreoffice-bin-3.3.0.ebuild)18
2 files changed, 19 insertions, 8 deletions
diff --git a/app-office/libreoffice-bin/ChangeLog b/app-office/libreoffice-bin/ChangeLog
index 713b15366d66..2f2da29b9419 100644
--- a/app-office/libreoffice-bin/ChangeLog
+++ b/app-office/libreoffice-bin/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-office/libreoffice-bin
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v 1.7 2011/02/05 11:07:55 suka Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/ChangeLog,v 1.8 2011/02/09 08:20:50 suka Exp $
+
+*libreoffice-bin-3.3.0-r1 (09 Feb 2011)
+
+ 09 Feb 2011; Andreas Proschofsky <suka@gentoo.org>
+ -libreoffice-bin-3.3.0.ebuild, +libreoffice-bin-3.3.0-r1.ebuild:
+ Revision bump for automatic spell dictionary installation, thanks to Matthew
+ Turnbull <sparky@bluefang-logic.com> for the patch, bug #353010
05 Feb 2011; Andreas Proschofsky <suka@gentoo.org> files/50-libreoffice-bin,
libreoffice-bin-3.3.0.ebuild, files/wrapper.in:
diff --git a/app-office/libreoffice-bin/libreoffice-bin-3.3.0.ebuild b/app-office/libreoffice-bin/libreoffice-bin-3.3.0-r1.ebuild
index 41e7c767116b..2248f7f7cd96 100644
--- a/app-office/libreoffice-bin/libreoffice-bin-3.3.0.ebuild
+++ b/app-office/libreoffice-bin/libreoffice-bin-3.3.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.3.0.ebuild,v 1.5 2011/02/05 11:07:55 suka Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.3.0-r1.ebuild,v 1.1 2011/02/09 08:20:50 suka Exp $
EAPI="3"
@@ -113,6 +113,7 @@ src_unpack() {
# English support installed by default
rpm_unpack "./${UP}/${BASIS}-en-US-${BVER}.${LOARCH}.rpm"
rpm_unpack "./${UP}/libreoffice3-en-US-${BVER}.${LOARCH}.rpm"
+ rpm_unpack "./${UP}/libreoffice3-dict-en-${BVER}.${LOARCH}.rpm"
use offlinehelp && rpm_unpack "./LibO_${MY_PV2}_Linux_${LOARCH2}_helppack-rpm_en-US/RPMS//${BASIS}-en-US-help-${BVER}.${LOARCH}.rpm"
for s in base binfilter calc math res writer ; do
rpm_unpack "./${UP}/${BASIS}-en-US-${s}-${BVER}.${LOARCH}.rpm"
@@ -132,6 +133,15 @@ src_unpack() {
for n in base binfilter calc math res writer; do
rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${n}-${BVER}.${LOARCH}.rpm"
done
+
+ for DICT_FILE in `find "./${LANGDIR}" -name "libreoffice3-dict-*-${BVER}.${LOARCH}.rpm"`; do
+ DICT_REGEX="s/libreoffice3-dict-(.*?)-${BVER}.${LOARCH}.rpm/\1/"
+ DICT_LOCALE=`basename "$DICT_FILE" | sed -E "${DICT_REGEX}"`
+ if [[ -n "${DICT_LOCALE}" && ! -d "${WORKDIR}/opt/libreoffice/share/extensions/dict-${DICT_LOCALE}" ]] ; then
+ rpm_unpack "${DICT_FILE}"
+ fi
+ done
+
# Help files
if use offlinehelp; then
LANGDIR2="LibO_${MY_PV2}_Linux_${LOARCH2}_helppack-rpm_${m}/RPMS/"
@@ -199,12 +209,6 @@ pkg_postinst() {
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
- elog " libreoffice-bin does not provide integration with system spell "
- elog " dictionaries. Please install them manually through the Extensions "
- elog " Manager (Tools > Extensions Manager) or use the source based "
- elog " package instead. "
- elog
-
}
pkg_postrm() {