New version.
authorGregorio Guidi <greg_g@gentoo.org>
Mon, 10 Oct 2005 22:10:08 +0000 (22:10 +0000)
committerGregorio Guidi <greg_g@gentoo.org>
Mon, 10 Oct 2005 22:10:08 +0000 (22:10 +0000)
Package-Manager: portage-2.0.51.22-r3

51 files changed:
app-office/karbon/ChangeLog
app-office/karbon/files/digest-karbon-1.4.2 [new file with mode: 0644]
app-office/karbon/karbon-1.4.2.ebuild [new file with mode: 0644]
app-office/kchart/ChangeLog
app-office/kchart/files/digest-kchart-1.4.2 [new file with mode: 0644]
app-office/kchart/kchart-1.4.2.ebuild [new file with mode: 0644]
app-office/kexi/ChangeLog
app-office/kexi/files/digest-kexi-1.4.2 [new file with mode: 0644]
app-office/kexi/kexi-1.4.2.ebuild [new file with mode: 0644]
app-office/kformula/ChangeLog
app-office/kformula/files/digest-kformula-1.4.2 [new file with mode: 0644]
app-office/kformula/kformula-1.4.2.ebuild [new file with mode: 0644]
app-office/kivio/ChangeLog
app-office/kivio/files/digest-kivio-1.4.2 [new file with mode: 0644]
app-office/kivio/kivio-1.4.2.ebuild [new file with mode: 0644]
app-office/koffice-data/ChangeLog
app-office/koffice-data/files/digest-koffice-data-1.4.2 [new file with mode: 0644]
app-office/koffice-data/koffice-data-1.4.2.ebuild [new file with mode: 0644]
app-office/koffice-libs/ChangeLog
app-office/koffice-libs/files/digest-koffice-libs-1.4.2 [new file with mode: 0644]
app-office/koffice-libs/koffice-libs-1.4.2.ebuild [new file with mode: 0644]
app-office/koffice-meta/ChangeLog
app-office/koffice-meta/files/digest-koffice-meta-1.4.2 [new file with mode: 0644]
app-office/koffice-meta/koffice-meta-1.4.2.ebuild [new file with mode: 0644]
app-office/koffice/ChangeLog
app-office/koffice/files/digest-koffice-1.4.1-r1 [new file with mode: 0644]
app-office/koffice/files/digest-koffice-1.4.2 [new file with mode: 0644]
app-office/koffice/files/koffice-1.4.1-rtfimport.patch [new file with mode: 0644]
app-office/koffice/koffice-1.4.1-r1.ebuild [new file with mode: 0644]
app-office/koffice/koffice-1.4.2.ebuild [new file with mode: 0644]
app-office/koshell/ChangeLog
app-office/koshell/files/digest-koshell-1.4.2 [new file with mode: 0644]
app-office/koshell/koshell-1.4.2.ebuild [new file with mode: 0644]
app-office/kpresenter/ChangeLog
app-office/kpresenter/files/digest-kpresenter-1.4.2 [new file with mode: 0644]
app-office/kpresenter/kpresenter-1.4.2.ebuild [new file with mode: 0644]
app-office/krita/ChangeLog
app-office/krita/files/digest-krita-1.4.2 [new file with mode: 0644]
app-office/krita/krita-1.4.2.ebuild [new file with mode: 0644]
app-office/kspread/ChangeLog
app-office/kspread/files/digest-kspread-1.4.2 [new file with mode: 0644]
app-office/kspread/kspread-1.4.2.ebuild [new file with mode: 0644]
app-office/kugar/ChangeLog
app-office/kugar/files/digest-kugar-1.4.2 [new file with mode: 0644]
app-office/kugar/kugar-1.4.2.ebuild [new file with mode: 0644]
app-office/kword/ChangeLog
app-office/kword/files/digest-kword-1.4.1-r1 [new file with mode: 0644]
app-office/kword/files/digest-kword-1.4.2 [new file with mode: 0644]
app-office/kword/files/koffice-1.4.1-rtfimport.patch [new file with mode: 0644]
app-office/kword/kword-1.4.1-r1.ebuild [new file with mode: 0644]
app-office/kword/kword-1.4.2.ebuild [new file with mode: 0644]

index 0e118449e27a827b23f34b0af7a95608a35a22ee..9d817193a72ce19233982e920a398df90cc4acfd 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-office/karbon
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/karbon/ChangeLog,v 1.15 2005/09/11 17:03:46 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/karbon/ChangeLog,v 1.16 2005/10/10 22:03:09 greg_g Exp $
+
+*karbon-1.4.2 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org> +karbon-1.4.2.ebuild:
+  New version.
 
   11 Sep 2005; Aron Griffis <agriffis@gentoo.org> karbon-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/karbon/files/digest-karbon-1.4.2 b/app-office/karbon/files/digest-karbon-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/karbon/karbon-1.4.2.ebuild b/app-office/karbon/karbon-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..c92e99f
--- /dev/null
@@ -0,0 +1,52 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/karbon/karbon-1.4.2.ebuild,v 1.1 2005/10/10 22:03:09 greg_g Exp $
+
+MAXKOFFICEVER=${PV}
+KMNAME=koffice
+inherit kde-meta eutils
+
+DESCRIPTION="KOffice vector drawing application."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)
+       >=media-gfx/imagemagick-5.5.2
+       >=media-libs/freetype-2
+       media-libs/fontconfig
+       media-libs/libart_lgpl"
+
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig"
+
+KMCOPYLIB="
+       libkformula lib/kformula
+       libkofficecore lib/kofficecore
+       libkofficeui lib/kofficeui
+       libkopainter lib/kopainter
+       libkoscript lib/koscript
+       libkotext lib/kotext
+       libkwmf lib/kwmf
+       libkowmf lib/kwmf
+       libkstore lib/store"
+
+KMEXTRACTONLY="lib/"
+
+KMCOMPILEONLY="filters/liboofilter"
+
+KMEXTRA="filters/karbon"
+
+need-kde 3.3
+
+src_unpack() {
+       kde-meta_src_unpack unpack
+
+       # We need to compile liboofilter first
+       echo "SUBDIRS = liboofilter karbon" > $S/filters/Makefile.am
+
+       kde-meta_src_unpack makefiles
+}
index 4e82e400a6c0062e91b642b8869b427577373c6b..e3238db26d350849bbc55d3fb2ba656d99b02fe3 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-office/kchart
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/kchart/ChangeLog,v 1.15 2005/09/11 17:30:13 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/kchart/ChangeLog,v 1.16 2005/10/10 22:03:38 greg_g Exp $
+
+*kchart-1.4.2 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org> +kchart-1.4.2.ebuild:
+  New version.
 
   11 Sep 2005; Aron Griffis <agriffis@gentoo.org> kchart-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/kchart/files/digest-kchart-1.4.2 b/app-office/kchart/files/digest-kchart-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/kchart/kchart-1.4.2.ebuild b/app-office/kchart/kchart-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..a75f743
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/kchart/kchart-1.4.2.ebuild,v 1.1 2005/10/10 22:03:38 greg_g Exp $
+
+MAXKOFFICEVER=${PV}
+KMNAME=koffice
+inherit kde-meta eutils
+
+DESCRIPTION="KOffice integrated graph and chart drawing tool."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)"
+
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig"
+
+KMCOPYLIB="
+       libkformula lib/kformula
+       libkofficecore lib/kofficecore
+       libkofficeui lib/kofficeui
+       libkopainter lib/kopainter
+       libkoscript lib/koscript
+       libkotext lib/kotext
+       libkwmf lib/kwmf
+       libkowmf lib/kwmf
+       libkstore lib/store
+       libkochart interfaces"
+
+KMEXTRACTONLY="lib/
+       interfaces/"
+
+KMEXTRA="filters/kchart"
+
+need-kde 3.3
index dc5ea31b27b3e8f1f3be2434a4dbcf0d544aa8a1..588c54209a5ad38cfbf57c259262935937efb59c 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-office/kexi
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/kexi/ChangeLog,v 1.12 2005/09/11 18:14:32 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/kexi/ChangeLog,v 1.13 2005/10/10 22:04:12 greg_g Exp $
+
+*kexi-1.4.2 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org> +kexi-1.4.2.ebuild:
+  New version.
 
   11 Sep 2005; Aron Griffis <agriffis@gentoo.org> kexi-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/kexi/files/digest-kexi-1.4.2 b/app-office/kexi/files/digest-kexi-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/kexi/kexi-1.4.2.ebuild b/app-office/kexi/kexi-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..43db87a
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/kexi/kexi-1.4.2.ebuild,v 1.1 2005/10/10 22:04:12 greg_g Exp $
+
+MAXKOFFICEVER=${PV}
+KMNAME=koffice
+inherit kde-meta eutils
+
+DESCRIPTION="KOffice integrated environment for database management."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="mysql postgres"
+
+RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)
+       sys-libs/readline
+       mysql? ( dev-db/mysql )
+       postgres? ( dev-libs/libpqxx )
+       dev-lang/python
+       !dev-db/kexi"
+
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig"
+
+KMCOPYLIB="
+       libkformula lib/kformula
+       libkofficecore lib/kofficecore
+       libkofficeui lib/kofficeui
+       libkopainter lib/kopainter
+       libkoscript lib/koscript
+       libkotext lib/kotext
+       libkwmf lib/kwmf
+       libkowmf lib/kwmf
+       libkstore lib/store"
+
+KMEXTRACTONLY="lib/"
+
+need-kde 3.3
+
+src_compile() {
+       local myconf="$(use_enable mysql) $(use_enable postgres pgsql)"
+
+       kde-meta_src_compile
+}
index c04fbff46f7f2b89822baf62c5453bcf3efb82b5..8b21364f4afecbac721302b83c02efec042fd425 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-office/kformula
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/kformula/ChangeLog,v 1.15 2005/09/11 18:24:42 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/kformula/ChangeLog,v 1.16 2005/10/10 22:04:41 greg_g Exp $
+
+*kformula-1.4.2 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org> +kformula-1.4.2.ebuild:
+  New version.
 
   11 Sep 2005; Aron Griffis <agriffis@gentoo.org> kformula-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/kformula/files/digest-kformula-1.4.2 b/app-office/kformula/files/digest-kformula-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/kformula/kformula-1.4.2.ebuild b/app-office/kformula/kformula-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..9c34504
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/kformula/kformula-1.4.2.ebuild,v 1.1 2005/10/10 22:04:41 greg_g Exp $
+
+MAXKOFFICEVER=${PV}
+KMNAME=koffice
+inherit kde-meta eutils
+
+DESCRIPTION="KOffice formula editor."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)"
+
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig"
+
+KMCOPYLIB="
+       libkformula lib/kformula
+       libkofficecore lib/kofficecore
+       libkofficeui lib/kofficeui
+       libkopainter lib/kopainter
+       libkoscript lib/koscript
+       libkotext lib/kotext
+       libkwmf lib/kwmf
+       libkowmf lib/kwmf
+       libkstore lib/store"
+
+KMEXTRACTONLY="lib/"
+
+KMEXTRA="filters/kformula"
+
+need-kde 3.3
+
+
index bf4f0c4dd9b3012132bb9308a0bea8bb928187fb..18df2b2f0734c9fac84ebdb369723c9e466566b9 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-office/kivio
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/kivio/ChangeLog,v 1.15 2005/09/11 18:41:01 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/kivio/ChangeLog,v 1.16 2005/10/10 22:05:10 greg_g Exp $
+
+*kivio-1.4.2 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org> +kivio-1.4.2.ebuild:
+  New version.
 
   11 Sep 2005; Aron Griffis <agriffis@gentoo.org> kivio-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/kivio/files/digest-kivio-1.4.2 b/app-office/kivio/files/digest-kivio-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/kivio/kivio-1.4.2.ebuild b/app-office/kivio/kivio-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..b74fb57
--- /dev/null
@@ -0,0 +1,36 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/kivio/kivio-1.4.2.ebuild,v 1.1 2005/10/10 22:05:10 greg_g Exp $
+
+MAXKOFFICEVER=${PV}
+KMNAME=koffice
+inherit kde-meta eutils
+
+DESCRIPTION="KOffice flowchart and diagram tool."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)
+       dev-lang/python"
+
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig"
+
+KMCOPYLIB="
+       libkformula lib/kformula
+       libkofficecore lib/kofficecore
+       libkofficeui lib/kofficeui
+       libkopainter lib/kopainter
+       libkoscript lib/koscript
+       libkotext lib/kotext
+       libkwmf lib/kwmf
+       libkowmf lib/kwmf
+       libkstore lib/store"
+
+KMEXTRACTONLY="lib/"
+
+need-kde 3.3
index 62f9818fde6a3bfdd1cf7a958e30d8db45ed8634..8e4ff206bd1c5b6557d955547cd13fe32a5270e5 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-office/koffice-data
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/koffice-data/ChangeLog,v 1.15 2005/09/11 17:01:32 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/koffice-data/ChangeLog,v 1.16 2005/10/10 22:06:27 greg_g Exp $
+
+*koffice-data-1.4.2 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org>
+  +koffice-data-1.4.2.ebuild:
+  New version.
 
   11 Sep 2005; Aron Griffis <agriffis@gentoo.org> koffice-data-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/koffice-data/files/digest-koffice-data-1.4.2 b/app-office/koffice-data/files/digest-koffice-data-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/koffice-data/koffice-data-1.4.2.ebuild b/app-office/koffice-data/koffice-data-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..5fa388b
--- /dev/null
@@ -0,0 +1,29 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/koffice-data/koffice-data-1.4.2.ebuild,v 1.1 2005/10/10 22:06:27 greg_g Exp $
+
+MAXKOFFICEVER=${PV}
+KMNAME=koffice
+KMMODULE=
+inherit kde-meta eutils
+
+DESCRIPTION="Shared KOffice data files."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND=""
+
+DEPEND="dev-util/pkgconfig"
+
+KMEXTRA="
+       mimetypes/
+       servicetypes/
+       pics/
+       templates/
+       autocorrect/"
+
+need-kde 3.3
\ No newline at end of file
index a91045bf0fcc31818e71bf021a933b294cd14a25..ab70e76d250c5cb7a5fa913ab0b8e567f9be31b3 100644 (file)
@@ -1,6 +1,12 @@
 # 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.17 2005/09/11 17:02:13 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/koffice-libs/ChangeLog,v 1.18 2005/10/10 22:06:55 greg_g Exp $
+
+*koffice-libs-1.4.2 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org>
+  +koffice-libs-1.4.2.ebuild:
+  New version.
 
   11 Sep 2005; Aron Griffis <agriffis@gentoo.org> koffice-libs-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/koffice-libs/files/digest-koffice-libs-1.4.2 b/app-office/koffice-libs/files/digest-koffice-libs-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/koffice-libs/koffice-libs-1.4.2.ebuild b/app-office/koffice-libs/koffice-libs-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..1433cd0
--- /dev/null
@@ -0,0 +1,62 @@
+# 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.2.ebuild,v 1.1 2005/10/10 22:06:55 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="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+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
+
+       # 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
+}
index eb4ecdaf3cd73f5217ca334035c94c0c0d2ea3f5..f87bae3c1ca3d6f547d9dce157eed02c23171f3d 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-office/koffice-meta
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/koffice-meta/ChangeLog,v 1.17 2005/09/12 14:09:48 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/koffice-meta/ChangeLog,v 1.18 2005/10/10 22:07:20 greg_g Exp $
+
+*koffice-meta-1.4.2 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org>
+  +koffice-meta-1.4.2.ebuild:
+  New version.
 
   11 Sep 2005; Aron Griffis <agriffis@gentoo.org> koffice-meta-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/koffice-meta/files/digest-koffice-meta-1.4.2 b/app-office/koffice-meta/files/digest-koffice-meta-1.4.2
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/app-office/koffice-meta/koffice-meta-1.4.2.ebuild b/app-office/koffice-meta/koffice-meta-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..6f38186
--- /dev/null
@@ -0,0 +1,28 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/koffice-meta/koffice-meta-1.4.2.ebuild,v 1.1 2005/10/10 22:07:20 greg_g Exp $
+
+MAXKOFFICEVER=${PV}
+inherit kde-functions
+
+DESCRIPTION="KOffice - merge this to pull in all KOffice-derived packages."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/karbon)
+       $(deprange $PV $MAXKOFFICEVER app-office/kchart)
+       $(deprange $PV $MAXKOFFICEVER app-office/kexi)
+       $(deprange $PV $MAXKOFFICEVER app-office/kformula)
+       $(deprange $PV $MAXKOFFICEVER app-office/kivio)
+       $(deprange $PV $MAXKOFFICEVER app-office/koffice-data)
+       $(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)
+       $(deprange $PV $MAXKOFFICEVER app-office/koshell)
+       $(deprange $PV $MAXKOFFICEVER app-office/kpresenter)
+       $(deprange $PV $MAXKOFFICEVER app-office/krita)
+       $(deprange $PV $MAXKOFFICEVER app-office/kspread)
+       $(deprange $PV $MAXKOFFICEVER app-office/kugar)
+       $(deprange $PV $MAXKOFFICEVER app-office/kword)"
index fe1f4c2c5f71ee11f71c282275c4c62ca82c2f17..34ee9280bb40ae9966494ff595da44032104a598 100644 (file)
@@ -1,6 +1,15 @@
 # ChangeLog for app-office/koffice
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/ChangeLog,v 1.113 2005/09/03 15:52:24 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/ChangeLog,v 1.114 2005/10/10 22:06:00 greg_g Exp $
+
+*koffice-1.4.2 (10 Oct 2005)
+*koffice-1.4.1-r1 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org>
+  +files/koffice-1.4.1-rtfimport.patch, +koffice-1.4.1-r1.ebuild,
+  +koffice-1.4.2.ebuild:
+  New version. Includes fix for buffer overflow in RTF import. Fix applied to
+  1.4.1, too.
 
   03 Sep 2005; Michael Hanselmann <hansmi@gentoo.org> koffice-1.4.1.ebuild:
   Stable on ppc.
diff --git a/app-office/koffice/files/digest-koffice-1.4.1-r1 b/app-office/koffice/files/digest-koffice-1.4.1-r1
new file mode 100644 (file)
index 0000000..47d9bab
--- /dev/null
@@ -0,0 +1 @@
+MD5 91a7b68757addc5934c5a8209a4926d5 koffice-1.4.1.tar.bz2 19364338
diff --git a/app-office/koffice/files/digest-koffice-1.4.2 b/app-office/koffice/files/digest-koffice-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/koffice/files/koffice-1.4.1-rtfimport.patch b/app-office/koffice/files/koffice-1.4.1-rtfimport.patch
new file mode 100644 (file)
index 0000000..1bcf326
--- /dev/null
@@ -0,0 +1,325 @@
+diff -Nur koffice-1.4.1.orig/filters/kword/rtf/import/rtfimport_tokenizer.cpp koffice-1.4.1/filters/kword/rtf/import/rtfimport_tokenizer.cpp
+--- koffice-1.4.1.orig/filters/kword/rtf/import/rtfimport_tokenizer.cpp        2005-07-19 16:09:11.000000000 +0200
++++ koffice-1.4.1/filters/kword/rtf/import/rtfimport_tokenizer.cpp     2005-10-08 10:17:14.000000000 +0200
+@@ -16,7 +16,7 @@
+ 
+ RTFTokenizer::RTFTokenizer()
+ {
+-    tokenText.resize( 4112 );
++    tokenText.resize( 4113 );
+     fileBuffer.resize( 4096 );
+     infile = 0L;
+ }
+@@ -30,8 +30,25 @@
+     fileBufferPtr = 0L;
+     fileBufferEnd = 0L;
+     infile = in;
++    type = RTFTokenizer::PlainText;
+ }
+ 
++int RTFTokenizer::nextChar()
++{
++    if ( fileBufferPtr == fileBufferEnd ) {
++        int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
++        fileBufferPtr = ( uchar* ) fileBuffer.data();
++        fileBufferEnd = fileBufferPtr;
++
++        if ( n <= 0 )
++            return -1;
++
++        fileBufferEnd = fileBufferPtr + n;
++    }
++    return *fileBufferPtr++;
++}
++
++
+ /**
+  * Reads the next token.
+  */
+@@ -42,22 +59,15 @@
+     if (!infile)
+       return;
+ 
+-    do
+-    {
+-      if (fileBufferPtr == fileBufferEnd)
+-      {
+-          int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
++    do {
++        int n = nextChar();
+ 
+-          if (n <= 0)
+-          {
+-              // Return CloseGroup on EOF
+-              ch = '}';
+-              break;
+-          }
+-          fileBufferPtr = (uchar *)fileBuffer.data();
+-          fileBufferEnd = (fileBufferPtr + n);
+-      }
+-      ch = *fileBufferPtr++;
++        if ( n <= 0 ) {
++            ch = '}';
++            break;
++        }
++
++        ch = n;
+     }
+     while (ch == '\n' || ch == '\r' && ch != 0);
+ 
+@@ -67,6 +77,7 @@
+ 
+     uchar *_text = (uchar *)text;
+ 
++
+     if (ch == '{')
+       type = RTFTokenizer::OpenGroup;
+     else if (ch == '}')
+@@ -75,20 +86,14 @@
+     {
+       type = RTFTokenizer::ControlWord;
+ 
+-      if (fileBufferPtr == fileBufferEnd)
+-      {
+-          int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
++        int n = nextChar();
+ 
+-          if (n <= 0)
+-          {
+-              // Return CloseGroup on EOF
+-              type = RTFTokenizer::CloseGroup;
+-              return;
+-          }
+-          fileBufferPtr = (uchar *)fileBuffer.data();
+-          fileBufferEnd = (fileBufferPtr + n);
+-      }
+-      ch = *fileBufferPtr++;
++        if ( n <= 0 ) {
++            // Return CloseGroup on EOF
++            type = RTFTokenizer::CloseGroup;
++            return;
++        }
++      ch = n;
+ 
+       // Type is either control word or control symbol
+       if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'))
+@@ -96,64 +101,41 @@
+           int v = 0;
+ 
+           // Read alphabetic string (command)
+-          while ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'))
++          while (_text < ( uchar* )tokenText.data()+tokenText.size()-3 && 
++                  ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) )
+           {
+               *_text++ = ch;
+ 
+-              if (fileBufferPtr == fileBufferEnd)
+-              {
+-                  int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
+-
+-                  if (n <= 0)
+-                  {
+-                      ch = ' ';
+-                      break;
+-                  }
+-                  fileBufferPtr = (uchar *)fileBuffer.data();
+-                  fileBufferEnd = (fileBufferPtr + n);
+-              }
+-              ch = *fileBufferPtr++;
++                int n = nextChar();
++                if ( n <= 0 ) {
++                    ch = ' ';
++                    break;
++                }
++                ch = n;
+           }
+ 
+           // Read numeric parameter (param)
+           bool isneg = (ch == '-');
+ 
+-          if (isneg)
+-          {
+-              if (fileBufferPtr == fileBufferEnd)
+-              {
+-                  int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
+-
+-                  if (n <= 0)
+-                  {
+-                      // Return CloseGroup on EOF
+-                      type = RTFTokenizer::CloseGroup;
+-                      return;
+-                  }
+-                  fileBufferPtr = (uchar *)fileBuffer.data();
+-                  fileBufferEnd = (fileBufferPtr + n);
+-              }
+-              ch = *fileBufferPtr++;
++          if (isneg) {
++                int n = nextChar();
++                if ( n <= 0 ) {
++                    type = RTFTokenizer::CloseGroup;
++                    return;
++                }
++              ch = n;
+           }
+-          while (ch >= '0' && ch <= '9')
+-          {
++
++          while (ch >= '0' && ch <= '9') {
+               v        = (10 * v) + ch - '0';
+               hasParam = true;
+ 
+-              if (fileBufferPtr == fileBufferEnd)
+-              {
+-                  int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
+-
+-                  if (n <= 0)
+-                  {
+-                      ch = ' ';
+-                      break;
+-                  }
+-                  fileBufferPtr = (uchar *)fileBuffer.data();
+-                  fileBufferEnd = (fileBufferPtr + n);
+-              }
+-              ch = *fileBufferPtr++;
+-          }
++                int n = nextChar();
++
++                if ( n <= 0 )
++                    n = ' ';
++                ch = n;
++            }
+           value = isneg ? -v : v;
+ 
+           // If delimiter is a space, it's part of the control word
+@@ -163,7 +145,7 @@
+           }
+ 
+             *_text = 0; // Just put an end of string for the test, it can then be over-written again
+-            if ( !qstrncmp( tokenText.data()+1, "bin", 4 ) ) // Test the NULL too to avoid catching keywords starting with "bin"
++            if ( !memcmp( tokenText.data()+1, "bin", 4 ) )
+             {   // We have \bin, so we need to read the bytes
+                 kdDebug(30515) << "Token:" << tokenText << endl;
+                 if (value > 0)
+@@ -173,26 +155,15 @@
+                     binaryData.resize(value);
+                     for (int i=0; i<value; i++)
+                     {
+-                        if (fileBufferPtr == fileBufferEnd)
+-                        {
+-                            const int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
+-
+-                            if (n <= 0)
+-                            {
+-                                kdError(30515) << "\\bin stream hit end of file." << endl;
+-                                type = RTFTokenizer::CloseGroup;
+-                                break;
+-                            }
+-                            fileBufferPtr = (uchar *)fileBuffer.data();
+-                            fileBufferEnd = (fileBufferPtr + n);
++                        int n = nextChar();
++                        if ( n <= 0 ) {
++                            type = RTFTokenizer::CloseGroup;
++                            break;
+                         }
+-                        binaryData[i]=*fileBufferPtr++;
++
++                        binaryData[i] = n;
+                     }
+                 }
+-                else
+-                {
+-                    kdError(30515) << "\\bin with negative value skipping" << endl;
+-                }
+             }
+ 
+       }
+@@ -200,19 +171,13 @@
+       {
+           type = RTFTokenizer::ControlWord;
+           *_text++ = ch;
+-          if (fileBufferPtr == fileBufferEnd)
+-          {
+-              int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
+ 
+-              if (n <= 0)
+-              {
+-                  // Return CloseGroup on EOF
+-                  type = RTFTokenizer::CloseGroup;
+-                  return;
+-              }
+-              fileBufferPtr = (uchar *)fileBuffer.data();
+-              fileBufferEnd = (fileBufferPtr + n);
+-          }
++            int n = nextChar();
++
++            if ( n <= 0 ) {
++                type = RTFTokenizer::CloseGroup;
++                return;
++            }
+           ch = *fileBufferPtr++;
+           for(int i=0;i<2;i++)
+           {
+@@ -220,22 +185,16 @@
+               value<<=4;
+               value=value|((ch + ((ch & 16) ? 0 : 9)) & 0xf);
+ 
+-              if (fileBufferPtr == fileBufferEnd)
+-              {
+-                  int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
+-
+-                  if (n <= 0)
+-                  {
+-                      ch = ' ';
+-                      break;
+-                  }
+-                  fileBufferPtr = (uchar *)fileBuffer.data();
+-                  fileBufferEnd = (fileBufferPtr + n);
+-              }
++                int n = nextChar();
++
++                if ( n <= 0 ) {
++                    ch = ' ';
++                    break;
++                }
+               ch = *fileBufferPtr++;
+           }
+-              --fileBufferPtr;
+-          }
++            --fileBufferPtr;
++        }
+       else
+       {
+           type = RTFTokenizer::ControlWord;
+@@ -248,14 +207,16 @@
+ 
+       // Everything until next backslash, opener or closer
+       while ( ch != '\\' && ch != '{' && ch != '}' && ch != '\n' &&
+-              ch != '\r' && fileBufferPtr <= fileBufferEnd )
++              ch != '\r')
+       {
+           *_text++ = ch;
++            if(fileBufferPtr >= fileBufferEnd)
++                break;
+           ch = *fileBufferPtr++;
+       }
+-
+-      // Give back last char
+-      --fileBufferPtr;
++        if(fileBufferPtr < fileBufferEnd)
++          --fileBufferPtr; // give back the last char
+     }
+     *_text++ = 0;
++
+ }
+diff -Nur koffice-1.4.1.orig/filters/kword/rtf/import/rtfimport_tokenizer.h koffice-1.4.1/filters/kword/rtf/import/rtfimport_tokenizer.h
+--- koffice-1.4.1.orig/filters/kword/rtf/import/rtfimport_tokenizer.h  2005-07-19 16:09:11.000000000 +0200
++++ koffice-1.4.1/filters/kword/rtf/import/rtfimport_tokenizer.h       2005-10-08 10:17:14.000000000 +0200
+@@ -50,6 +50,8 @@
+ 
+     // tokenizer (private) data
+ private:
++    int nextChar();
++
+     QFile *infile;
+     QByteArray fileBuffer;
+     QCString tokenText;
diff --git a/app-office/koffice/koffice-1.4.1-r1.ebuild b/app-office/koffice/koffice-1.4.1-r1.ebuild
new file mode 100644 (file)
index 0000000..ea359a0
--- /dev/null
@@ -0,0 +1,70 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/koffice-1.4.1-r1.ebuild,v 1.1 2005/10/10 22:06:00 greg_g Exp $
+
+inherit kde
+
+DESCRIPTION="An integrated office suite for KDE, the K Desktop Environment."
+HOMEPAGE="http://www.koffice.org/"
+SRC_URI="mirror://kde/stable/koffice-${PV}/src/${P}.tar.bz2"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc javascript mysql postgres"
+
+RDEPEND=">=media-gfx/imagemagick-5.5.2
+       >=app-text/wv2-0.1.9
+       >=media-libs/freetype-2
+       media-libs/fontconfig
+       media-libs/libart_lgpl
+       dev-libs/libxml2
+       dev-libs/libxslt
+       sys-libs/readline
+       mysql? ( dev-db/mysql )
+       postgres? ( dev-libs/libpqxx )
+       dev-lang/python
+       >=media-libs/lcms-1.12
+       javascript? ( kde-base/kjsembed )
+       !dev-db/kexi"
+
+DEPEND="${RDEPEND}
+       doc? ( app-doc/doxygen )
+       dev-util/pkgconfig"
+
+# add blockers on split packages derived from this one
+for x in $(get-child-packages ${CATEGORY}/${PN}); do
+       DEPEND="${DEPEND} !${x}"
+       RDEPEND="${RDEPEND} !${x}"
+done
+
+need-kde 3.3
+
+# TODO: kword sql plugin needs Qt compiled with sql support
+# the dependency on python is needed for scripting support in kexi
+# and for kivio/kiviopart/kiviosdk.
+
+src_unpack() {
+       kde_src_unpack
+
+       # Fix RTF import buffer overflow. Applied in 1.4.2.
+       epatch "${FILESDIR}/koffice-1.4.1-rtfimport.patch"
+}
+
+src_compile() {
+       local myconf="$(use_enable mysql) $(use_enable postgres pgsql)"
+
+       kde_src_compile
+       if use doc; then
+               make apidox || die
+       fi
+}
+
+src_install() {
+       kde_src_install
+       if use doc; then
+               make DESTDIR="${D}" install-apidox || die
+       fi
+
+       dodoc changes-*
+}
diff --git a/app-office/koffice/koffice-1.4.2.ebuild b/app-office/koffice/koffice-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..22974df
--- /dev/null
@@ -0,0 +1,63 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/koffice/koffice-1.4.2.ebuild,v 1.1 2005/10/10 22:06:00 greg_g Exp $
+
+inherit kde
+
+DESCRIPTION="An integrated office suite for KDE, the K Desktop Environment."
+HOMEPAGE="http://www.koffice.org/"
+SRC_URI="mirror://kde/stable/koffice-${PV}/src/${P}.tar.bz2"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="doc javascript mysql postgres"
+
+RDEPEND=">=media-gfx/imagemagick-5.5.2
+       >=app-text/wv2-0.1.9
+       >=media-libs/freetype-2
+       media-libs/fontconfig
+       media-libs/libart_lgpl
+       dev-libs/libxml2
+       dev-libs/libxslt
+       sys-libs/readline
+       mysql? ( dev-db/mysql )
+       postgres? ( dev-libs/libpqxx )
+       dev-lang/python
+       >=media-libs/lcms-1.12
+       javascript? ( kde-base/kjsembed )
+       !dev-db/kexi"
+
+DEPEND="${RDEPEND}
+       doc? ( app-doc/doxygen )
+       dev-util/pkgconfig"
+
+# add blockers on split packages derived from this one
+for x in $(get-child-packages ${CATEGORY}/${PN}); do
+       DEPEND="${DEPEND} !${x}"
+       RDEPEND="${RDEPEND} !${x}"
+done
+
+need-kde 3.3
+
+# TODO: kword sql plugin needs Qt compiled with sql support
+# the dependency on python is needed for scripting support in kexi
+# and for kivio/kiviopart/kiviosdk.
+
+src_compile() {
+       local myconf="$(use_enable mysql) $(use_enable postgres pgsql)"
+
+       kde_src_compile
+       if use doc; then
+               make apidox || die
+       fi
+}
+
+src_install() {
+       kde_src_install
+       if use doc; then
+               make DESTDIR="${D}" install-apidox || die
+       fi
+
+       dodoc changes-*
+}
index 6c7bd611767d8d0e6c710073786d4b0f4956a341..5d5018e27ecbbea558ba6a8b9836a6c764e57dfd 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-office/koshell
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/koshell/ChangeLog,v 1.15 2005/09/12 14:02:39 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/koshell/ChangeLog,v 1.16 2005/10/10 22:07:46 greg_g Exp $
+
+*koshell-1.4.2 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org> +koshell-1.4.2.ebuild:
+  New version.
 
   12 Sep 2005; Aron Griffis <agriffis@gentoo.org> koshell-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/koshell/files/digest-koshell-1.4.2 b/app-office/koshell/files/digest-koshell-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/koshell/koshell-1.4.2.ebuild b/app-office/koshell/koshell-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..60f6e41
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/koshell/koshell-1.4.2.ebuild,v 1.1 2005/10/10 22:07:46 greg_g Exp $
+
+MAXKOFFICEVER=${PV}
+KMNAME=koffice
+inherit kde-meta eutils
+
+DESCRIPTION="KOffice workspace."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)"
+
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig"
+
+KMCOPYLIB="
+       libkformula lib/kformula
+       libkofficecore lib/kofficecore
+       libkofficeui lib/kofficeui
+       libkopainter lib/kopainter
+       libkoscript lib/koscript
+       libkotext lib/kotext
+       libkwmf lib/kwmf
+       libkowmf lib/kwmf
+       libkstore lib/store"
+
+KMEXTRACTONLY="lib/"
+
+need-kde 3.3
index 05c74011719cd40148a1e243f2fac5d259e8278f..bd05444460a7ece073c8e9af813559d89ec658e3 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-office/kpresenter
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/kpresenter/ChangeLog,v 1.15 2005/09/12 14:03:25 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/kpresenter/ChangeLog,v 1.16 2005/10/10 22:08:13 greg_g Exp $
+
+*kpresenter-1.4.2 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org> +kpresenter-1.4.2.ebuild:
+  New version.
 
   12 Sep 2005; Aron Griffis <agriffis@gentoo.org> kpresenter-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/kpresenter/files/digest-kpresenter-1.4.2 b/app-office/kpresenter/files/digest-kpresenter-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/kpresenter/kpresenter-1.4.2.ebuild b/app-office/kpresenter/kpresenter-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..eabe3ea
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/kpresenter/kpresenter-1.4.2.ebuild,v 1.1 2005/10/10 22:08:13 greg_g Exp $
+
+KMNAME=koffice
+MAXKOFFICEVER=${PV}
+inherit kde-meta eutils
+
+DESCRIPTION="KOffice presentation program."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)"
+
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig"
+
+KMCOPYLIB="
+       libkformula lib/kformula
+       libkofficecore lib/kofficecore
+       libkofficeui lib/kofficeui
+       libkopainter lib/kopainter
+       libkoscript lib/koscript
+       libkotext lib/kotext
+       libkwmf lib/kwmf
+       libkowmf lib/kwmf
+       libkstore lib/store"
+
+KMEXTRACTONLY="lib/"
+
+KMCOMPILEONLY="filters/liboofilter"
+
+KMEXTRA="filters/kpresenter"
+
+need-kde 3.3
+
+src_unpack() {
+       kde-meta_src_unpack unpack
+
+       # We need to compile liboofilter first
+       echo "SUBDIRS = liboofilter kpresenter" > $S/filters/Makefile.am
+
+       kde-meta_src_unpack makefiles
+}
index f12a1a58700a020ec9710e33531ec65052670887..3831a4436d92f5b9cef8acaff3a1908ecfff8217 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-office/krita
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/krita/ChangeLog,v 1.13 2005/09/12 13:47:20 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/krita/ChangeLog,v 1.14 2005/10/10 22:08:42 greg_g Exp $
+
+*krita-1.4.2 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org> +krita-1.4.2.ebuild:
+  New version.
 
   11 Sep 2005; Aron Griffis <agriffis@gentoo.org> krita-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/krita/files/digest-krita-1.4.2 b/app-office/krita/files/digest-krita-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/krita/krita-1.4.2.ebuild b/app-office/krita/krita-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..03d3cb1
--- /dev/null
@@ -0,0 +1,40 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/krita/krita-1.4.2.ebuild,v 1.1 2005/10/10 22:08:42 greg_g Exp $
+
+MAXKOFFICEVER=${PV}
+KMNAME=koffice
+inherit kde-meta eutils
+
+DESCRIPTION="KOffice image manipulation program."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="javascript"
+
+RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)
+       >=media-gfx/imagemagick-5.5.2
+       >=media-libs/lcms-1.12
+       javascript? ( kde-base/kjsembed )"
+
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig"
+
+KMCOPYLIB="
+       libkformula lib/kformula
+       libkofficecore lib/kofficecore
+       libkofficeui lib/kofficeui
+       libkopainter lib/kopainter
+       libkoscript lib/koscript
+       libkotext lib/kotext
+       libkwmf lib/kwmf
+       libkowmf lib/kwmf
+       libkstore lib/store"
+
+KMEXTRACTONLY="lib/"
+
+KMEXTRA="filters/krita"
+
+need-kde 3.3
index dbc646cf49a91ba470f08b95d2ddb514c5ee7baa..18e4f0c57fa41bdbad954897a8b613aa3770713c 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-office/kspread
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/kspread/ChangeLog,v 1.16 2005/09/12 14:06:12 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/kspread/ChangeLog,v 1.17 2005/10/10 22:09:09 greg_g Exp $
+
+*kspread-1.4.2 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org> +kspread-1.4.2.ebuild:
+  New version.
 
   12 Sep 2005; Aron Griffis <agriffis@gentoo.org> kspread-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/kspread/files/digest-kspread-1.4.2 b/app-office/kspread/files/digest-kspread-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/kspread/kspread-1.4.2.ebuild b/app-office/kspread/kspread-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..62f64ee
--- /dev/null
@@ -0,0 +1,51 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/kspread/kspread-1.4.2.ebuild,v 1.1 2005/10/10 22:09:09 greg_g Exp $
+
+KMNAME=koffice
+MAXKOFFICEVER=${PV}
+inherit kde-meta eutils
+
+DESCRIPTION="KOffice spreadsheet application."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)
+       $(deprange $PV $MAXKOFFICEVER app-office/kchart)"
+
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig"
+
+KMCOPYLIB="
+       libkformula lib/kformula
+       libkofficecore lib/kofficecore
+       libkofficeui lib/kofficeui
+       libkopainter lib/kopainter
+       libkoscript lib/koscript
+       libkotext lib/kotext
+       libkwmf lib/kwmf
+       libkowmf lib/kwmf
+       libkstore lib/store
+       libkochart interfaces"
+
+KMEXTRACTONLY="lib/
+       interfaces/"
+
+KMCOMPILEONLY="filters/liboofilter"
+
+KMEXTRA="filters/kspread"
+
+need-kde 3.3
+
+src_unpack() {
+       kde-meta_src_unpack unpack
+
+       # We need to compile liboofilter first
+       echo "SUBDIRS = liboofilter kspread" > $S/filters/Makefile.am
+
+       kde-meta_src_unpack makefiles
+}
index 53022f4d28187868321c8e0bd82d43c99f0fcc0a..706c3047d3070c456cb46e7a314dd957adcd95a4 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for app-office/kugar
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/kugar/ChangeLog,v 1.15 2005/09/12 14:01:54 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/kugar/ChangeLog,v 1.16 2005/10/10 22:09:38 greg_g Exp $
+
+*kugar-1.4.2 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org> +kugar-1.4.2.ebuild:
+  New version.
 
   12 Sep 2005; Aron Griffis <agriffis@gentoo.org> kugar-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/kugar/files/digest-kugar-1.4.2 b/app-office/kugar/files/digest-kugar-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/kugar/kugar-1.4.2.ebuild b/app-office/kugar/kugar-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..26f7d4e
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/kugar/kugar-1.4.2.ebuild,v 1.1 2005/10/10 22:09:38 greg_g Exp $
+
+KMNAME=koffice
+MAXKOFFICEVER=${PV}
+inherit kde-meta eutils
+
+DESCRIPTION="KOffice report viewer and generator."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)"
+
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig"
+
+KMCOPYLIB="
+       libkformula lib/kformula
+       libkofficecore lib/kofficecore
+       libkofficeui lib/kofficeui
+       libkopainter lib/kopainter
+       libkoscript lib/koscript
+       libkotext lib/kotext
+       libkwmf lib/kwmf
+       libkowmf lib/kwmf
+       libkstore lib/store"
+
+KMEXTRACTONLY="lib/"
+
+KMEXTRA="filters/kugar"
+
+need-kde 3.3
index a0a94528dae2bc31b01228142ac2cb1ff21ac878..e44aa28f0bb65ba61e1c6d1926b64421a373e8b2 100644 (file)
@@ -1,6 +1,15 @@
 # ChangeLog for app-office/kword
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/kword/ChangeLog,v 1.15 2005/09/12 14:07:17 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/kword/ChangeLog,v 1.16 2005/10/10 22:10:08 greg_g Exp $
+
+*kword-1.4.2 (10 Oct 2005)
+*kword-1.4.1-r1 (10 Oct 2005)
+
+  10 Oct 2005; Gregorio Guidi <greg_g@gentoo.org>
+  +files/koffice-1.4.1-rtfimport.patch, +kword-1.4.1-r1.ebuild,
+  +kword-1.4.2.ebuild:
+  New version. Includes fix for buffer overflow in RTF import. Fix applied to
+  1.4.1, too.
 
   12 Sep 2005; Aron Griffis <agriffis@gentoo.org> kword-1.4.1.ebuild:
   Mark 1.4.1 stable on alpha
diff --git a/app-office/kword/files/digest-kword-1.4.1-r1 b/app-office/kword/files/digest-kword-1.4.1-r1
new file mode 100644 (file)
index 0000000..47d9bab
--- /dev/null
@@ -0,0 +1 @@
+MD5 91a7b68757addc5934c5a8209a4926d5 koffice-1.4.1.tar.bz2 19364338
diff --git a/app-office/kword/files/digest-kword-1.4.2 b/app-office/kword/files/digest-kword-1.4.2
new file mode 100644 (file)
index 0000000..a054824
--- /dev/null
@@ -0,0 +1 @@
+MD5 6b456fb7d54c84b11396b27a96ae0cf8 koffice-1.4.2.tar.bz2 19486852
diff --git a/app-office/kword/files/koffice-1.4.1-rtfimport.patch b/app-office/kword/files/koffice-1.4.1-rtfimport.patch
new file mode 100644 (file)
index 0000000..1bcf326
--- /dev/null
@@ -0,0 +1,325 @@
+diff -Nur koffice-1.4.1.orig/filters/kword/rtf/import/rtfimport_tokenizer.cpp koffice-1.4.1/filters/kword/rtf/import/rtfimport_tokenizer.cpp
+--- koffice-1.4.1.orig/filters/kword/rtf/import/rtfimport_tokenizer.cpp        2005-07-19 16:09:11.000000000 +0200
++++ koffice-1.4.1/filters/kword/rtf/import/rtfimport_tokenizer.cpp     2005-10-08 10:17:14.000000000 +0200
+@@ -16,7 +16,7 @@
+ 
+ RTFTokenizer::RTFTokenizer()
+ {
+-    tokenText.resize( 4112 );
++    tokenText.resize( 4113 );
+     fileBuffer.resize( 4096 );
+     infile = 0L;
+ }
+@@ -30,8 +30,25 @@
+     fileBufferPtr = 0L;
+     fileBufferEnd = 0L;
+     infile = in;
++    type = RTFTokenizer::PlainText;
+ }
+ 
++int RTFTokenizer::nextChar()
++{
++    if ( fileBufferPtr == fileBufferEnd ) {
++        int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
++        fileBufferPtr = ( uchar* ) fileBuffer.data();
++        fileBufferEnd = fileBufferPtr;
++
++        if ( n <= 0 )
++            return -1;
++
++        fileBufferEnd = fileBufferPtr + n;
++    }
++    return *fileBufferPtr++;
++}
++
++
+ /**
+  * Reads the next token.
+  */
+@@ -42,22 +59,15 @@
+     if (!infile)
+       return;
+ 
+-    do
+-    {
+-      if (fileBufferPtr == fileBufferEnd)
+-      {
+-          int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
++    do {
++        int n = nextChar();
+ 
+-          if (n <= 0)
+-          {
+-              // Return CloseGroup on EOF
+-              ch = '}';
+-              break;
+-          }
+-          fileBufferPtr = (uchar *)fileBuffer.data();
+-          fileBufferEnd = (fileBufferPtr + n);
+-      }
+-      ch = *fileBufferPtr++;
++        if ( n <= 0 ) {
++            ch = '}';
++            break;
++        }
++
++        ch = n;
+     }
+     while (ch == '\n' || ch == '\r' && ch != 0);
+ 
+@@ -67,6 +77,7 @@
+ 
+     uchar *_text = (uchar *)text;
+ 
++
+     if (ch == '{')
+       type = RTFTokenizer::OpenGroup;
+     else if (ch == '}')
+@@ -75,20 +86,14 @@
+     {
+       type = RTFTokenizer::ControlWord;
+ 
+-      if (fileBufferPtr == fileBufferEnd)
+-      {
+-          int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
++        int n = nextChar();
+ 
+-          if (n <= 0)
+-          {
+-              // Return CloseGroup on EOF
+-              type = RTFTokenizer::CloseGroup;
+-              return;
+-          }
+-          fileBufferPtr = (uchar *)fileBuffer.data();
+-          fileBufferEnd = (fileBufferPtr + n);
+-      }
+-      ch = *fileBufferPtr++;
++        if ( n <= 0 ) {
++            // Return CloseGroup on EOF
++            type = RTFTokenizer::CloseGroup;
++            return;
++        }
++      ch = n;
+ 
+       // Type is either control word or control symbol
+       if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'))
+@@ -96,64 +101,41 @@
+           int v = 0;
+ 
+           // Read alphabetic string (command)
+-          while ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'))
++          while (_text < ( uchar* )tokenText.data()+tokenText.size()-3 && 
++                  ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) )
+           {
+               *_text++ = ch;
+ 
+-              if (fileBufferPtr == fileBufferEnd)
+-              {
+-                  int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
+-
+-                  if (n <= 0)
+-                  {
+-                      ch = ' ';
+-                      break;
+-                  }
+-                  fileBufferPtr = (uchar *)fileBuffer.data();
+-                  fileBufferEnd = (fileBufferPtr + n);
+-              }
+-              ch = *fileBufferPtr++;
++                int n = nextChar();
++                if ( n <= 0 ) {
++                    ch = ' ';
++                    break;
++                }
++                ch = n;
+           }
+ 
+           // Read numeric parameter (param)
+           bool isneg = (ch == '-');
+ 
+-          if (isneg)
+-          {
+-              if (fileBufferPtr == fileBufferEnd)
+-              {
+-                  int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
+-
+-                  if (n <= 0)
+-                  {
+-                      // Return CloseGroup on EOF
+-                      type = RTFTokenizer::CloseGroup;
+-                      return;
+-                  }
+-                  fileBufferPtr = (uchar *)fileBuffer.data();
+-                  fileBufferEnd = (fileBufferPtr + n);
+-              }
+-              ch = *fileBufferPtr++;
++          if (isneg) {
++                int n = nextChar();
++                if ( n <= 0 ) {
++                    type = RTFTokenizer::CloseGroup;
++                    return;
++                }
++              ch = n;
+           }
+-          while (ch >= '0' && ch <= '9')
+-          {
++
++          while (ch >= '0' && ch <= '9') {
+               v        = (10 * v) + ch - '0';
+               hasParam = true;
+ 
+-              if (fileBufferPtr == fileBufferEnd)
+-              {
+-                  int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
+-
+-                  if (n <= 0)
+-                  {
+-                      ch = ' ';
+-                      break;
+-                  }
+-                  fileBufferPtr = (uchar *)fileBuffer.data();
+-                  fileBufferEnd = (fileBufferPtr + n);
+-              }
+-              ch = *fileBufferPtr++;
+-          }
++                int n = nextChar();
++
++                if ( n <= 0 )
++                    n = ' ';
++                ch = n;
++            }
+           value = isneg ? -v : v;
+ 
+           // If delimiter is a space, it's part of the control word
+@@ -163,7 +145,7 @@
+           }
+ 
+             *_text = 0; // Just put an end of string for the test, it can then be over-written again
+-            if ( !qstrncmp( tokenText.data()+1, "bin", 4 ) ) // Test the NULL too to avoid catching keywords starting with "bin"
++            if ( !memcmp( tokenText.data()+1, "bin", 4 ) )
+             {   // We have \bin, so we need to read the bytes
+                 kdDebug(30515) << "Token:" << tokenText << endl;
+                 if (value > 0)
+@@ -173,26 +155,15 @@
+                     binaryData.resize(value);
+                     for (int i=0; i<value; i++)
+                     {
+-                        if (fileBufferPtr == fileBufferEnd)
+-                        {
+-                            const int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
+-
+-                            if (n <= 0)
+-                            {
+-                                kdError(30515) << "\\bin stream hit end of file." << endl;
+-                                type = RTFTokenizer::CloseGroup;
+-                                break;
+-                            }
+-                            fileBufferPtr = (uchar *)fileBuffer.data();
+-                            fileBufferEnd = (fileBufferPtr + n);
++                        int n = nextChar();
++                        if ( n <= 0 ) {
++                            type = RTFTokenizer::CloseGroup;
++                            break;
+                         }
+-                        binaryData[i]=*fileBufferPtr++;
++
++                        binaryData[i] = n;
+                     }
+                 }
+-                else
+-                {
+-                    kdError(30515) << "\\bin with negative value skipping" << endl;
+-                }
+             }
+ 
+       }
+@@ -200,19 +171,13 @@
+       {
+           type = RTFTokenizer::ControlWord;
+           *_text++ = ch;
+-          if (fileBufferPtr == fileBufferEnd)
+-          {
+-              int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
+ 
+-              if (n <= 0)
+-              {
+-                  // Return CloseGroup on EOF
+-                  type = RTFTokenizer::CloseGroup;
+-                  return;
+-              }
+-              fileBufferPtr = (uchar *)fileBuffer.data();
+-              fileBufferEnd = (fileBufferPtr + n);
+-          }
++            int n = nextChar();
++
++            if ( n <= 0 ) {
++                type = RTFTokenizer::CloseGroup;
++                return;
++            }
+           ch = *fileBufferPtr++;
+           for(int i=0;i<2;i++)
+           {
+@@ -220,22 +185,16 @@
+               value<<=4;
+               value=value|((ch + ((ch & 16) ? 0 : 9)) & 0xf);
+ 
+-              if (fileBufferPtr == fileBufferEnd)
+-              {
+-                  int n = infile->readBlock( fileBuffer.data(), fileBuffer.size() );
+-
+-                  if (n <= 0)
+-                  {
+-                      ch = ' ';
+-                      break;
+-                  }
+-                  fileBufferPtr = (uchar *)fileBuffer.data();
+-                  fileBufferEnd = (fileBufferPtr + n);
+-              }
++                int n = nextChar();
++
++                if ( n <= 0 ) {
++                    ch = ' ';
++                    break;
++                }
+               ch = *fileBufferPtr++;
+           }
+-              --fileBufferPtr;
+-          }
++            --fileBufferPtr;
++        }
+       else
+       {
+           type = RTFTokenizer::ControlWord;
+@@ -248,14 +207,16 @@
+ 
+       // Everything until next backslash, opener or closer
+       while ( ch != '\\' && ch != '{' && ch != '}' && ch != '\n' &&
+-              ch != '\r' && fileBufferPtr <= fileBufferEnd )
++              ch != '\r')
+       {
+           *_text++ = ch;
++            if(fileBufferPtr >= fileBufferEnd)
++                break;
+           ch = *fileBufferPtr++;
+       }
+-
+-      // Give back last char
+-      --fileBufferPtr;
++        if(fileBufferPtr < fileBufferEnd)
++          --fileBufferPtr; // give back the last char
+     }
+     *_text++ = 0;
++
+ }
+diff -Nur koffice-1.4.1.orig/filters/kword/rtf/import/rtfimport_tokenizer.h koffice-1.4.1/filters/kword/rtf/import/rtfimport_tokenizer.h
+--- koffice-1.4.1.orig/filters/kword/rtf/import/rtfimport_tokenizer.h  2005-07-19 16:09:11.000000000 +0200
++++ koffice-1.4.1/filters/kword/rtf/import/rtfimport_tokenizer.h       2005-10-08 10:17:14.000000000 +0200
+@@ -50,6 +50,8 @@
+ 
+     // tokenizer (private) data
+ private:
++    int nextChar();
++
+     QFile *infile;
+     QByteArray fileBuffer;
+     QCString tokenText;
diff --git a/app-office/kword/kword-1.4.1-r1.ebuild b/app-office/kword/kword-1.4.1-r1.ebuild
new file mode 100644 (file)
index 0000000..56edef9
--- /dev/null
@@ -0,0 +1,57 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/kword/kword-1.4.1-r1.ebuild,v 1.1 2005/10/10 22:10:08 greg_g Exp $
+
+KMNAME=koffice
+MAXKOFFICEVER=${PV}
+inherit kde-meta eutils
+
+DESCRIPTION="KOffice word processor."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)
+       $(deprange $PV $MAXKOFFICEVER app-office/kspread)
+       >=app-text/wv2-0.1.8
+       >=media-gfx/imagemagick-5.5.2"
+
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig"
+
+KMCOPYLIB="
+       libkformula lib/kformula
+       libkofficecore lib/kofficecore
+       libkofficeui lib/kofficeui
+       libkopainter lib/kopainter
+       libkoscript lib/koscript
+       libkotext lib/kotext
+       libkwmf lib/kwmf
+       libkowmf lib/kwmf
+       libkstore lib/store
+       libkspreadcommon kspread"
+
+KMEXTRACTONLY="
+       lib/
+       kspread/"
+
+KMCOMPILEONLY="filters/liboofilter"
+
+KMEXTRA="filters/kword"
+
+need-kde 3.3
+
+src_unpack() {
+       kde-meta_src_unpack unpack
+
+       # Fix RTF import buffer overflow. Applied in 1.4.2.
+       epatch "${FILESDIR}/koffice-1.4.1-rtfimport.patch"
+
+       # We need to compile liboofilter first
+       echo "SUBDIRS = liboofilter kword" > $S/filters/Makefile.am
+
+       kde-meta_src_unpack makefiles
+}
diff --git a/app-office/kword/kword-1.4.2.ebuild b/app-office/kword/kword-1.4.2.ebuild
new file mode 100644 (file)
index 0000000..bc4cad2
--- /dev/null
@@ -0,0 +1,54 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/kword/kword-1.4.2.ebuild,v 1.1 2005/10/10 22:10:08 greg_g Exp $
+
+KMNAME=koffice
+MAXKOFFICEVER=${PV}
+inherit kde-meta eutils
+
+DESCRIPTION="KOffice word processor."
+HOMEPAGE="http://www.koffice.org/"
+LICENSE="GPL-2 LGPL-2"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+RDEPEND="$(deprange $PV $MAXKOFFICEVER app-office/koffice-libs)
+       $(deprange $PV $MAXKOFFICEVER app-office/kspread)
+       >=app-text/wv2-0.1.8
+       >=media-gfx/imagemagick-5.5.2"
+
+DEPEND="${RDEPEND}
+       dev-util/pkgconfig"
+
+KMCOPYLIB="
+       libkformula lib/kformula
+       libkofficecore lib/kofficecore
+       libkofficeui lib/kofficeui
+       libkopainter lib/kopainter
+       libkoscript lib/koscript
+       libkotext lib/kotext
+       libkwmf lib/kwmf
+       libkowmf lib/kwmf
+       libkstore lib/store
+       libkspreadcommon kspread"
+
+KMEXTRACTONLY="
+       lib/
+       kspread/"
+
+KMCOMPILEONLY="filters/liboofilter"
+
+KMEXTRA="filters/kword"
+
+need-kde 3.3
+
+src_unpack() {
+       kde-meta_src_unpack unpack
+
+       # We need to compile liboofilter first
+       echo "SUBDIRS = liboofilter kword" > $S/filters/Makefile.am
+
+       kde-meta_src_unpack makefiles
+}