diff options
author | Gregorio Guidi <greg_g@gentoo.org> | 2005-06-22 13:21:47 +0000 |
---|---|---|
committer | Gregorio Guidi <greg_g@gentoo.org> | 2005-06-22 13:21:47 +0000 |
commit | 61247c949c550bf9ed21515fd0308b4118ea032c (patch) | |
tree | 7c53e6ef5274c300b2b0ab0cdd99dda6d5dcdbdf /app-office/koffice-libs | |
parent | Stable on sparc (diff) | |
download | gentoo-2-61247c949c550bf9ed21515fd0308b4118ea032c.tar.gz gentoo-2-61247c949c550bf9ed21515fd0308b4118ea032c.tar.bz2 gentoo-2-61247c949c550bf9ed21515fd0308b4118ea032c.zip |
Add patch to fix critical problem when saving from koshell.
(Portage version: 2.0.51.19)
Diffstat (limited to 'app-office/koffice-libs')
4 files changed, 88 insertions, 1 deletions
diff --git a/app-office/koffice-libs/ChangeLog b/app-office/koffice-libs/ChangeLog index 5f036efa1370..9ba617823e98 100644 --- a/app-office/koffice-libs/ChangeLog +++ b/app-office/koffice-libs/ChangeLog @@ -1,11 +1,17 @@ # ChangeLog for app-office/koffice-libs # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/koffice-libs/ChangeLog,v 1.8 2005/06/22 12:46:41 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/koffice-libs/ChangeLog,v 1.9 2005/06/22 13:21:47 greg_g Exp $ 22 Jun 2005; Markus Rothe <corsair@gentoo.org> koffice-libs-1.3.5.ebuild, koffice-libs-1.4.0.ebuild: Added ~ppc64 +*koffice-libs-1.4.0-r1 (22 Jun 2005) + + 22 Jun 2005; Gregorio Guidi <greg_g@gentoo.org> + +files/koffice-1.4.0-save.patch, +koffice-libs-1.4.0-r1.ebuild: + Add patch to fix critical problem when saving from koshell. + *koffice-libs-1.4.0 (21 Jun 2005) 21 Jun 2005; Gregorio Guidi <greg_g@gentoo.org> diff --git a/app-office/koffice-libs/files/digest-koffice-libs-1.4.0-r1 b/app-office/koffice-libs/files/digest-koffice-libs-1.4.0-r1 new file mode 100644 index 000000000000..aada0edc41ee --- /dev/null +++ b/app-office/koffice-libs/files/digest-koffice-libs-1.4.0-r1 @@ -0,0 +1 @@ +MD5 3e6fd9f92024de68e5879c22d02a33c5 koffice-1.4.0.tar.bz2 19730186 diff --git a/app-office/koffice-libs/files/koffice-1.4.0-save.patch b/app-office/koffice-libs/files/koffice-1.4.0-save.patch new file mode 100644 index 000000000000..40772ef93525 --- /dev/null +++ b/app-office/koffice-libs/files/koffice-1.4.0-save.patch @@ -0,0 +1,15 @@ +diff -Nur koffice-1.4.0.orig/lib/kofficecore/koDocument.cc koffice-1.4.0/lib/kofficecore/koDocument.cc +--- koffice-1.4.0.orig/lib/kofficecore/koDocument.cc 2005-06-15 15:39:33.000000000 +0200 ++++ koffice-1.4.0/lib/kofficecore/koDocument.cc 2005-06-22 14:58:03.000000000 +0200 +@@ -354,11 +354,6 @@ + bool KoDocument::saveFile() + { + kdDebug(30003) << "KoDocument::saveFile() doc='" << url().url() <<"'"<< endl; +- if ( !kapp->inherits( "KoApplication" ) ) +- { +- d->lastErrorMessage = i18n( "Internal error: not a KOffice application, saving not allowed." ); +- return false; +- } + + // Save it to be able to restore it after a failed save + const bool wasModified = isModified (); diff --git a/app-office/koffice-libs/koffice-libs-1.4.0-r1.ebuild b/app-office/koffice-libs/koffice-libs-1.4.0-r1.ebuild new file mode 100644 index 000000000000..63a5dfda7886 --- /dev/null +++ b/app-office/koffice-libs/koffice-libs-1.4.0-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/koffice-libs/koffice-libs-1.4.0-r1.ebuild,v 1.1 2005/06/22 13:21:47 greg_g Exp $ + +MAXKOFFICEVER=${PV} +KMNAME=koffice +KMMODULE=lib +inherit kde-meta eutils + +DESCRIPTION="Shared KOffice libraries." +HOMEPAGE="http://www.koffice.org/" +LICENSE="GPL-2 LGPL-2" + +SLOT="0" +KEYWORDS="~x86 ~ppc ~ppc64 ~amd64" +IUSE="doc" + +RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-data)" + +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + dev-util/pkgconfig" + +KMEXTRA=" + interfaces/ + plugins/ + tools/ + filters/olefilters/ + filters/xsltfilter/ + filters/generic_wrapper/ + kounavail/ + doc/api/ + doc/koffice/ + doc/thesaurus/" + +KMEXTRACTONLY=" + kchart/kdchart/" + +need-kde 3.3 + +src_unpack() { + kde-meta_src_unpack unpack + + # Fix problem when saving from koshell. Applied for 1.4.1. + epatch "${FILESDIR}/koffice-1.4.0-save.patch" + + # Force the compilation of libkopainter. + sed -i 's:$(KOPAINTERDIR):kopainter:' $S/lib/Makefile.am + + kde-meta_src_unpack makefiles +} + +src_compile() { + kde-meta_src_compile + if use doc; then + make apidox || die + fi +} + +src_install() { + kde-meta_src_install + if use doc; then + make DESTDIR=${D} install-apidox || die + fi +} |