summaryrefslogtreecommitdiff
path: root/staging
diff options
context:
space:
mode:
Diffstat (limited to 'staging')
-rw-r--r--staging/allegro/PKGBUILD36
-rw-r--r--staging/allegro4/LICENSE26
-rw-r--r--staging/allegro4/PKGBUILD38
-rw-r--r--staging/evince/PKGBUILD37
-rw-r--r--staging/evince/evince.install19
-rw-r--r--staging/gimp-devel/PKGBUILD51
-rw-r--r--staging/gimp-devel/gimp-devel.install12
-rw-r--r--staging/gimp-devel/linux.gpl19
-rw-r--r--staging/gimp/PKGBUILD55
-rw-r--r--staging/gimp/gimp-poppler-0.18.patch476
-rw-r--r--staging/gimp/gimp.install12
-rw-r--r--staging/gimp/linux.gpl19
-rw-r--r--staging/gimp/uri-backend-libcurl.patch77
-rw-r--r--staging/inkscape/PKGBUILD52
-rw-r--r--staging/inkscape/install13
-rw-r--r--staging/koffice/PKGBUILD305
-rw-r--r--staging/koffice/filters.install11
-rw-r--r--staging/koffice/gcc46.patch23
-rw-r--r--staging/koffice/kde4-koffice-libwpg02.patch1323
-rw-r--r--staging/koffice/koffice.install12
-rw-r--r--staging/koffice/krita.install13
-rw-r--r--staging/libreoffice/PKGBUILD940
-rw-r--r--staging/libreoffice/buildfix_boost.diff40
-rw-r--r--staging/libreoffice/buildfix_ct2n.diff17
-rw-r--r--staging/libreoffice/libreoffice.install47
-rw-r--r--staging/libreoffice/scp2-more-reasonable-file-access-rights.diff15
-rw-r--r--staging/libreoffice/vbahelper.visibility.patch33
-rw-r--r--staging/poppler/PKGBUILD68
-rw-r--r--staging/qwtplot3d/PKGBUILD42
-rw-r--r--staging/qwtplot3d/qwtplot3d-gcc44.patch12
-rw-r--r--staging/tracker/PKGBUILD82
-rw-r--r--staging/tracker/tracker.install13
-rw-r--r--staging/tumbler/PKGBUILD37
-rw-r--r--staging/tumbler/fix-video-image.patch34
-rw-r--r--staging/xournal/PKGBUILD35
-rw-r--r--staging/xournal/install13
-rw-r--r--staging/xournal/pdf-export-64.patch89
-rw-r--r--staging/xournal/poppler-api.patch158
38 files changed, 0 insertions, 4304 deletions
diff --git a/staging/allegro/PKGBUILD b/staging/allegro/PKGBUILD
deleted file mode 100644
index af7dd6ced..000000000
--- a/staging/allegro/PKGBUILD
+++ /dev/null
@@ -1,36 +0,0 @@
-# $Id: PKGBUILD 140547 2011-10-17 03:54:53Z eric $
-# Maintainer: Ionut Biru <ibiru@archlinux.org>
-# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
-# Contributor: arjan <arjan@archlinux.org>
-
-pkgname=allegro
-pkgver=5.0.4
-pkgrel=1
-pkgdesc="Portable library mainly aimed at video game and multimedia programming"
-arch=('i686' 'x86_64')
-url="http://alleg.sourceforge.net/"
-license=('custom')
-depends=('jack' 'libxpm' 'libxxf86vm' 'libxxf86dga' 'libxcursor' 'libpng' 'libgl' 'libjpeg')
-makedepends=('cmake' 'mesa')
-source=(http://downloads.sourceforge.net/alleg/${pkgname}-${pkgver}.tar.gz)
-md5sums=('e2e314ee7116c7efddd0497d6c885e46')
-
-build() {
- cd "${srcdir}"
- mkdir build && cd build
-
- cmake "../${pkgname}-${pkgver}" \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DWANT_DOCS=OFF
-
- make
-}
-
-package() {
- cd "${srcdir}"/build
-
- make DESTDIR="${pkgdir}" install
-
- install -D -m644 ../${pkgname}-${pkgver}/LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
diff --git a/staging/allegro4/LICENSE b/staging/allegro4/LICENSE
deleted file mode 100644
index 497c56a8f..000000000
--- a/staging/allegro4/LICENSE
+++ /dev/null
@@ -1,26 +0,0 @@
-===================================
-============ Copyright ============
-===================================
-
- Allegro is gift-ware. It was created by a number of people working in
- cooperation, and is given to you freely as a gift. You may use, modify,
- redistribute, and generally hack it about in any way you like, and you do
- not have to give us anything in return. However, if you like this product
- you are encouraged to thank us by making a return gift to the Allegro
- community. This could be by writing an add-on package, providing a useful
- bug report, making an improvement to the library, or perhaps just
- releasing the sources of your program so that other people can learn from
- them. If you redistribute parts of this code or make a game using it, it
- would be nice if you mentioned Allegro somewhere in the credits, but you
- are not required to do this. We trust you not to abuse our generosity.
-
- Disclaimer:
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
- SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
- FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
- DEALINGS IN THE SOFTWARE.
-
diff --git a/staging/allegro4/PKGBUILD b/staging/allegro4/PKGBUILD
deleted file mode 100644
index 125d83ed3..000000000
--- a/staging/allegro4/PKGBUILD
+++ /dev/null
@@ -1,38 +0,0 @@
-# $Id: PKGBUILD 140545 2011-10-17 03:40:26Z eric $
-# Maintainer: Ionut Biru <ibiru@archlinux.org>
-# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
-# Contributor: arjan <arjan@archlinux.org>
-
-pkgname=allegro4
-pkgver=4.4.2
-pkgrel=1
-pkgdesc="Portable library mainly aimed at video game and multimedia programming (legacy version)"
-arch=('i686' 'x86_64')
-url="http://alleg.sourceforge.net/"
-license=('custom')
-depends=('sh' 'jack' 'libxpm' 'libxxf86vm' 'libxxf86dga' 'libxcursor')
-makedepends=('cmake' 'libpng')
-source=(http://downloads.sourceforge.net/alleg/allegro-${pkgver}.tar.gz
- LICENSE)
-md5sums=('4db71b0460fc99926ae91d223199c2e6'
- 'cd97e2992e8e66b9e6a449d832dc9c7a')
-
-build() {
- cd "${srcdir}"
- mkdir build && cd build
-
- cmake "../allegro-${pkgver}" \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DWANT_DOCS=OFF
-
- make
-}
-
-package() {
- cd "${srcdir}"/build
-
- make DESTDIR="${pkgdir}" install
-
- install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
diff --git a/staging/evince/PKGBUILD b/staging/evince/PKGBUILD
deleted file mode 100644
index a204249bb..000000000
--- a/staging/evince/PKGBUILD
+++ /dev/null
@@ -1,37 +0,0 @@
-# $Id: PKGBUILD 139867 2011-10-05 14:44:08Z jgc $
-# Maintainer: Jan de Groot <jgc@archlinux.org>
-
-pkgname=evince
-pkgver=3.2.0
-pkgrel=2
-pkgdesc="Simply a document viewer"
-url="http://projects.gnome.org/evince/"
-arch=('i686' 'x86_64')
-license=('GPL')
-depends=('gtk3' 'libspectre' 'gsfonts' 'poppler-glib' 'djvulibre' 'gnome-icon-theme'
- 't1lib' 'libgnome-keyring' 'desktop-file-utils' 'dconf' 'gsettings-desktop-schemas')
-makedepends=('gnome-doc-utils' 'nautilus' 'texlive-bin' 'intltool' 'gobject-introspection')
-optdepends=('texlive-bin: DVI support')
-groups=('gnome-extra')
-install=evince.install
-options=('!libtool' '!emptydirs')
-source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz)
-sha256sums=('a9bc17e7f99489354cc66ffede68466ea0a9c52664b18198291c3a40d0150235')
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- ./configure --prefix=/usr --sysconfdir=/etc \
- --localstatedir=/var --libexecdir=/usr/lib/evince \
- --disable-static --enable-nautilus \
- --enable-pdf --enable-tiff \
- --enable-djvu --enable-dvi \
- --enable-t1lib --enable-comics \
- --disable-scrollkeeper --disable-schemas-compile \
- --enable-introspection
- make
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
-}
diff --git a/staging/evince/evince.install b/staging/evince/evince.install
deleted file mode 100644
index 9643a9ba0..000000000
--- a/staging/evince/evince.install
+++ /dev/null
@@ -1,19 +0,0 @@
-post_install() {
- usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
- update-desktop-database -q
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}
-
-pre_upgrade() {
- if (( $(vercmp $2 2.90.0) < 0 )); then
- usr/sbin/gconfpkg --uninstall evince
- fi
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
diff --git a/staging/gimp-devel/PKGBUILD b/staging/gimp-devel/PKGBUILD
deleted file mode 100644
index 615b5fa95..000000000
--- a/staging/gimp-devel/PKGBUILD
+++ /dev/null
@@ -1,51 +0,0 @@
-# $Id: PKGBUILD 140045 2011-10-06 02:16:00Z eric $
-# Maintainer: Eric Bélanger <eric@archlinux.org>
-
-pkgname=gimp-devel
-pkgver=2.7.3
-pkgrel=2
-pkgdesc="GNU Image Manipulation Program (Development Version)"
-arch=('i686' 'x86_64')
-url="http://www.gimp.org/"
-license=('GPL3' 'LGPL3')
-depends=('pygtk' 'lcms' 'libxpm' 'libwmf' 'librsvg' 'libmng' 'dbus-glib' \
- 'jasper' 'libexif' 'gegl' 'desktop-file-utils' 'hicolor-icon-theme')
-makedepends=('intltool' 'libwebkit' 'poppler-glib' 'alsa-lib' 'iso-codes' 'curl')
-optdepends=('gutenprint: for sophisticated printing only as gimp has built-in cups print support'
- 'libwebkit: for the help browser or web-page plug-ins'
- 'poppler-glib: for pdf support'
- 'alsa-lib: for MIDI event controller module'
- 'curl: for URI support')
-options=('!libtool' '!makeflags')
-conflicts=('gimp')
-provides=("gimp=${pkgver}")
-install=gimp-devel.install
-source=(ftp://ftp.gimp.org/pub/gimp/v${pkgver%.*}/gimp-${pkgver}.tar.bz2 linux.gpl)
-md5sums=('851b55dc4af966e62ef5c8b679bcc623'
- 'bb27bc214261d36484093e857f015f38')
-sha1sums=('bea6edc3423774ace8dd86222314f4ef2278cdd8'
- '110ce9798173b19a662d086ed7b882b4729f06cf')
-
-build() {
- cd "${srcdir}/gimp-${pkgver}"
- PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc \
- --enable-mp --enable-gimp-console --enable-python --with-libcurl \
- --with-gif-compression=lzw --without-aa --without-gvfs
- make
-}
-
-package() {
- cd "${srcdir}/gimp-${pkgver}"
- make DESTDIR="${pkgdir}" install
- sed -i 's|#![ ]*/usr/bin/env python|#!/usr/bin/env python2|' "${pkgdir}"/usr/lib/gimp/2.0/plug-ins/*.py
- install -D -m644 "${srcdir}/linux.gpl" "${pkgdir}/usr/share/gimp/2.0/palettes/Linux.gpl"
-
- ln -sf gimp-console-${pkgver%.*}.1.gz "${pkgdir}/usr/share/man/man1/gimp-console.1.gz"
- ln -sf gimprc-${pkgver%.*}.5.gz "${pkgdir}/usr/share/man/man5/gimprc.5.gz"
- ln -sf gimptool-2.0.1.gz "${pkgdir}/usr/share/man/man1/gimptool.1.gz"
- ln -s gimp-${pkgver%.*}.1.gz "${pkgdir}/usr/share/man/man1/gimp.1.gz"
-
- ln -s gimp-${pkgver%.*} "${pkgdir}/usr/bin/gimp"
- ln -s gimp-console-${pkgver%.*} "${pkgdir}/usr/bin/gimp-console"
- ln -s gimptool-2.0 "${pkgdir}/usr/bin/gimptool"
-}
diff --git a/staging/gimp-devel/gimp-devel.install b/staging/gimp-devel/gimp-devel.install
deleted file mode 100644
index c317fbaca..000000000
--- a/staging/gimp-devel/gimp-devel.install
+++ /dev/null
@@ -1,12 +0,0 @@
-post_install() {
- update-desktop-database -q
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
diff --git a/staging/gimp-devel/linux.gpl b/staging/gimp-devel/linux.gpl
deleted file mode 100644
index 0a73d8979..000000000
--- a/staging/gimp-devel/linux.gpl
+++ /dev/null
@@ -1,19 +0,0 @@
-GIMP Palette
-Name: linux
-#
- 0 0 0
- 0 0 170
- 0 170 0
- 0 170 170
-170 0 0
-170 0 170
-170 85 0
-170 170 170
- 85 85 85
- 85 85 255
- 85 255 85
- 85 255 255
-255 85 85
-255 85 255
-255 255 85
-255 255 255
diff --git a/staging/gimp/PKGBUILD b/staging/gimp/PKGBUILD
deleted file mode 100644
index 4e1d85023..000000000
--- a/staging/gimp/PKGBUILD
+++ /dev/null
@@ -1,55 +0,0 @@
-# $Id: PKGBUILD 140383 2011-10-11 21:53:20Z eric $
-# Maintainer: tobias <tobias@archlinux.org>
-
-pkgname=gimp
-pkgver=2.6.11
-pkgrel=7
-pkgdesc="GNU Image Manipulation Program"
-arch=('i686' 'x86_64')
-url="http://www.gimp.org/"
-license=('GPL' 'LGPL')
-depends=('pygtk' 'lcms' 'libxpm' 'libwmf' 'libxmu' 'librsvg' 'libmng' 'dbus-glib' \
- 'libexif' 'gegl' 'desktop-file-utils' 'hicolor-icon-theme')
-makedepends=('intltool' 'libwebkit' 'poppler-glib' 'alsa-lib' 'iso-codes' 'curl')
-optdepends=('gutenprint: for sophisticated printing only as gimp has built-in cups print support'
- 'libwebkit: for the help browser'
- 'poppler-glib: for pdf support'
- 'alsa-lib: for MIDI event controller module'
- 'curl: for URI support')
-options=('!libtool' '!makeflags')
-conflicts=('gimp-devel')
-install=gimp.install
-#source=(ftp://ftp.gimp.org/pub/gimp/v${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2 linux.gpl
-source=(http://mirror.umoss.org/gimp/gimp/v${pkgver%.*}/${pkgname}-${pkgver}.tar.bz2 linux.gpl
- uri-backend-libcurl.patch gimp-poppler-0.18.patch)
-md5sums=('bb2939fe13e54fc7255cef5d097bb5dd'
- 'bb27bc214261d36484093e857f015f38'
- 'e894f4b2ffa92c71448fdd350e9b78c6'
- 'bfc73f80e911ed7a7d500d80973469f1')
-sha1sums=('2f9d596e727bdbf304fa78257c1731d9faf3934c'
- '110ce9798173b19a662d086ed7b882b4729f06cf'
- 'a65b0ee6cd1b4345065b7b98c07f2fed15f844f4'
- '1479a6d80be7adf74f66a3b88057a5029fe892e8')
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- patch -p1 < ../uri-backend-libcurl.patch
- patch -p1 < ../gimp-poppler-0.18.patch
- PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc \
- --enable-mp --enable-gimp-console --enable-gimp-remote \
- --enable-python --with-gif-compression=lzw --with-libcurl \
- --without-aa --without-hal --without-gvfs --without-gnomevfs
- make
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
- sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' "${pkgdir}"/usr/lib/gimp/2.0/plug-ins/*.py
- install -D -m644 "${srcdir}/linux.gpl" "${pkgdir}/usr/share/gimp/2.0/palettes/Linux.gpl"
-
- rm "${pkgdir}/usr/share/man/man1/gimp-console.1"
- ln -s gimp-console-${pkgver%.*}.1.gz "${pkgdir}/usr/share/man/man1/gimp-console.1.gz"
- ln -s gimptool-2.0 "${pkgdir}/usr/bin/gimptool"
- ln -sf gimptool-2.0.1.gz "${pkgdir}/usr/share/man/man1/gimptool.1.gz"
-}
diff --git a/staging/gimp/gimp-poppler-0.18.patch b/staging/gimp/gimp-poppler-0.18.patch
deleted file mode 100644
index 0715460bc..000000000
--- a/staging/gimp/gimp-poppler-0.18.patch
+++ /dev/null
@@ -1,476 +0,0 @@
-From 69f69eed816b89be9a01a48a1f0643d1fd496118 Mon Sep 17 00:00:00 2001
-From: Nils Philippsen <nils@redhat.com>
-Date: Fri, 6 May 2011 11:58:44 +0200
-Subject: [PATCH] patch: poppler-0.17
-
-Squashed commit of the following:
-
-commit 529d940222dfc352d41fbf72de29134421aa4002
-Author: Nils Philippsen <nils@redhat.com>
-Date: Fri May 6 11:50:30 2011 +0200
-
- use code based on pixbufs instead of cairo surfaces
-
- this is done to avoid adding to libgimp, thanks to Mukund Sivaraman for
- hints how to do this
-
-commit f8671d8767d4cdab830dc06310e96c63a88ec0fd
-Author: Mukund Sivaraman <muks@banu.com>
-Date: Thu Apr 21 13:57:13 2011 +0530
-
- file-pdf-load: Update attribution, removing bogus copyright
- (cherry picked from commit e999122e0b20b6ccd6bde3ce039bb64068fc0019)
-
-commit 89a78f2590d298dac2f42e6d9a3016fc5d672c70
-Author: Nils Philippsen <nils@redhat.com>
-Date: Thu Apr 21 13:52:18 2011 +0200
-
- file-pdf-load: Use better API + cleanups
-
- * fixes issues with poppler 0.17 completely
- * uses new libgimp API to pass surfaces instead of pixbufs
- * uses GTK+ 3 API to convert surfaces to pixbufs where available
- (backported from commit 7bdadd80ba479d6ff904e276d805e16f6b940ee2)
-
-commit 4e92302c4a14a961f112587a0ad86696c88da2f8
-Author: Nils Philippsen <nils@redhat.com>
-Date: Thu Apr 21 13:38:08 2011 +0200
-
- file-pdf-load: Don't use deprecated API (bug #646947)
-
- (cherry picked from commit 9b3e1c91fd2eac69da6947ec9c7fbf10096ba237)
-
- Conflicts:
-
- plug-ins/common/file-pdf.c
----
- plug-ins/common/file-pdf.c | 323 ++++++++++++++++++++++++++++++++++++++------
- 1 files changed, 283 insertions(+), 40 deletions(-)
-
-diff --git a/plug-ins/common/file-pdf.c b/plug-ins/common/file-pdf.c
-index a43b459..43c2b7d 100644
---- a/plug-ins/common/file-pdf.c
-+++ b/plug-ins/common/file-pdf.c
-@@ -4,6 +4,9 @@
- *
- * Copyright (C) 2005 Nathan Summers
- *
-+ * Some code in render_page_to_surface() borrowed from
-+ * poppler.git/glib/poppler-page.cc.
-+ *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
-@@ -80,16 +83,20 @@ static gboolean load_dialog (PopplerDocument *doc,
- static PopplerDocument * open_document (const gchar *filename,
- GError **error);
-
--static GdkPixbuf * get_thumbnail (PopplerDocument *doc,
-+static cairo_surface_t * get_thumb_surface (PopplerDocument *doc,
-+ gint page,
-+ gint preferred_size);
-+
-+static GdkPixbuf * get_thumb_pixbuf (PopplerDocument *doc,
- gint page,
- gint preferred_size);
-
- static gint32 layer_from_pixbuf (gint32 image,
-- const gchar *layer_name,
-- gint position,
-- GdkPixbuf *buf,
-- gdouble progress_start,
-- gdouble progress_scale);
-+ const gchar *layer_name,
-+ gint position,
-+ GdkPixbuf *pixbuf,
-+ gdouble progress_start,
-+ gdouble progress_scale);
-
- /**
- ** the following was formerly part of
-@@ -433,11 +440,12 @@ run (const gchar *name,
- }
- else
- {
-- gdouble width = 0;
-- gdouble height = 0;
-- gdouble scale;
-- gint32 image = -1;
-- GdkPixbuf *pixbuf = NULL;
-+ gdouble width = 0;
-+ gdouble height = 0;
-+ gdouble scale;
-+ gint32 image = -1;
-+ gint num_pages = 0;
-+ GdkPixbuf *pixbuf = NULL;
-
- /* Possibly retrieve last settings */
- gimp_get_data (LOAD_PROC, &loadvals);
-@@ -455,7 +463,10 @@ run (const gchar *name,
- g_object_unref (page);
- }
-
-- pixbuf = get_thumbnail (doc, 0, param[1].data.d_int32);
-+ num_pages = poppler_document_get_n_pages (doc);
-+
-+ pixbuf = get_thumb_pixbuf (doc, 0, param[1].data.d_int32);
-+
- g_object_unref (doc);
- }
-
-@@ -548,6 +559,187 @@ open_document (const gchar *filename,
- return doc;
- }
-
-+/* FIXME: Remove this someday when we depend fully on GTK+ >= 3 */
-+
-+#if (!GTK_CHECK_VERSION (3, 0, 0))
-+
-+static cairo_format_t
-+gdk_cairo_format_for_content (cairo_content_t content)
-+{
-+ switch (content)
-+ {
-+ case CAIRO_CONTENT_COLOR:
-+ return CAIRO_FORMAT_RGB24;
-+ case CAIRO_CONTENT_ALPHA:
-+ return CAIRO_FORMAT_A8;
-+ case CAIRO_CONTENT_COLOR_ALPHA:
-+ default:
-+ return CAIRO_FORMAT_ARGB32;
-+ }
-+}
-+
-+static cairo_surface_t *
-+gdk_cairo_surface_coerce_to_image (cairo_surface_t *surface,
-+ cairo_content_t content,
-+ int src_x,
-+ int src_y,
-+ int width,
-+ int height)
-+{
-+ cairo_surface_t *copy;
-+ cairo_t *cr;
-+
-+ copy = cairo_image_surface_create (gdk_cairo_format_for_content (content),
-+ width,
-+ height);
-+
-+ cr = cairo_create (copy);
-+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
-+ cairo_set_source_surface (cr, surface, -src_x, -src_y);
-+ cairo_paint (cr);
-+ cairo_destroy (cr);
-+
-+ return copy;
-+}
-+
-+static void
-+convert_alpha (guchar *dest_data,
-+ int dest_stride,
-+ guchar *src_data,
-+ int src_stride,
-+ int src_x,
-+ int src_y,
-+ int width,
-+ int height)
-+{
-+ int x, y;
-+
-+ src_data += src_stride * src_y + src_x * 4;
-+
-+ for (y = 0; y < height; y++) {
-+ guint32 *src = (guint32 *) src_data;
-+
-+ for (x = 0; x < width; x++) {
-+ guint alpha = src[x] >> 24;
-+
-+ if (alpha == 0)
-+ {
-+ dest_data[x * 4 + 0] = 0;
-+ dest_data[x * 4 + 1] = 0;
-+ dest_data[x * 4 + 2] = 0;
-+ }
-+ else
-+ {
-+ dest_data[x * 4 + 0] = (((src[x] & 0xff0000) >> 16) * 255 + alpha / 2) / alpha;
-+ dest_data[x * 4 + 1] = (((src[x] & 0x00ff00) >> 8) * 255 + alpha / 2) / alpha;
-+ dest_data[x * 4 + 2] = (((src[x] & 0x0000ff) >> 0) * 255 + alpha / 2) / alpha;
-+ }
-+ dest_data[x * 4 + 3] = alpha;
-+ }
-+
-+ src_data += src_stride;
-+ dest_data += dest_stride;
-+ }
-+}
-+
-+static void
-+convert_no_alpha (guchar *dest_data,
-+ int dest_stride,
-+ guchar *src_data,
-+ int src_stride,
-+ int src_x,
-+ int src_y,
-+ int width,
-+ int height)
-+{
-+ int x, y;
-+
-+ src_data += src_stride * src_y + src_x * 4;
-+
-+ for (y = 0; y < height; y++) {
-+ guint32 *src = (guint32 *) src_data;
-+
-+ for (x = 0; x < width; x++) {
-+ dest_data[x * 3 + 0] = src[x] >> 16;
-+ dest_data[x * 3 + 1] = src[x] >> 8;
-+ dest_data[x * 3 + 2] = src[x];
-+ }
-+
-+ src_data += src_stride;
-+ dest_data += dest_stride;
-+ }
-+}
-+
-+/**
-+ * gdk_pixbuf_get_from_surface:
-+ * @surface: surface to copy from
-+ * @src_x: Source X coordinate within @surface
-+ * @src_y: Source Y coordinate within @surface
-+ * @width: Width in pixels of region to get
-+ * @height: Height in pixels of region to get
-+ *
-+ * Transfers image data from a #cairo_surface_t and converts it to an RGB(A)
-+ * representation inside a #GdkPixbuf. This allows you to efficiently read
-+ * individual pixels from cairo surfaces. For #GdkWindows, use
-+ * gdk_pixbuf_get_from_window() instead.
-+ *
-+ * This function will create an RGB pixbuf with 8 bits per channel.
-+ * The pixbuf will contain an alpha channel if the @surface contains one.
-+ *
-+ * Return value: (transfer full): A newly-created pixbuf with a reference
-+ * count of 1, or %NULL on error
-+ */
-+static GdkPixbuf *
-+gdk_pixbuf_get_from_surface (cairo_surface_t *surface,
-+ gint src_x,
-+ gint src_y,
-+ gint width,
-+ gint height)
-+{
-+ cairo_content_t content;
-+ GdkPixbuf *dest;
-+
-+ /* General sanity checks */
-+ g_return_val_if_fail (surface != NULL, NULL);
-+ g_return_val_if_fail (width > 0 && height > 0, NULL);
-+
-+ content = cairo_surface_get_content (surface) | CAIRO_CONTENT_COLOR;
-+ dest = gdk_pixbuf_new (GDK_COLORSPACE_RGB,
-+ !!(content & CAIRO_CONTENT_ALPHA),
-+ 8,
-+ width, height);
-+
-+ surface = gdk_cairo_surface_coerce_to_image (surface, content,
-+ src_x, src_y,
-+ width, height);
-+ cairo_surface_flush (surface);
-+ if (cairo_surface_status (surface) || dest == NULL)
-+ {
-+ cairo_surface_destroy (surface);
-+ return NULL;
-+ }
-+
-+ if (gdk_pixbuf_get_has_alpha (dest))
-+ convert_alpha (gdk_pixbuf_get_pixels (dest),
-+ gdk_pixbuf_get_rowstride (dest),
-+ cairo_image_surface_get_data (surface),
-+ cairo_image_surface_get_stride (surface),
-+ 0, 0,
-+ width, height);
-+ else
-+ convert_no_alpha (gdk_pixbuf_get_pixels (dest),
-+ gdk_pixbuf_get_rowstride (dest),
-+ cairo_image_surface_get_data (surface),
-+ cairo_image_surface_get_stride (surface),
-+ 0, 0,
-+ width, height);
-+
-+ cairo_surface_destroy (surface);
-+ return dest;
-+}
-+
-+#endif
-+
- static gint32
- layer_from_pixbuf (gint32 image,
- const gchar *layer_name,
-@@ -566,6 +758,54 @@ layer_from_pixbuf (gint32 image,
- return layer;
- }
-
-+static cairo_surface_t *
-+render_page_to_surface (PopplerPage *page,
-+ int width,
-+ int height,
-+ double scale)
-+{
-+ cairo_surface_t *surface;
-+ cairo_t *cr;
-+
-+ surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
-+ cr = cairo_create (surface);
-+
-+ cairo_save (cr);
-+ cairo_translate (cr, 0.0, 0.0);
-+
-+ if (scale != 1.0)
-+ cairo_scale (cr, scale, scale);
-+
-+ poppler_page_render (page, cr);
-+ cairo_restore (cr);
-+
-+ cairo_set_operator (cr, CAIRO_OPERATOR_DEST_OVER);
-+ cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
-+ cairo_paint (cr);
-+
-+ cairo_destroy (cr);
-+
-+ return surface;
-+}
-+
-+static GdkPixbuf *
-+render_page_to_pixbuf (PopplerPage *page,
-+ int width,
-+ int height,
-+ double scale)
-+{
-+ GdkPixbuf *pixbuf;
-+ cairo_surface_t *surface;
-+
-+ surface = render_page_to_surface (page, width, height, scale);
-+ pixbuf = gdk_pixbuf_get_from_surface (surface, 0, 0,
-+ cairo_image_surface_get_width (surface),
-+ cairo_image_surface_get_height (surface));
-+ cairo_surface_destroy (surface);
-+
-+ return pixbuf;
-+}
-+
- static gint32
- load_image (PopplerDocument *doc,
- const gchar *filename,
-@@ -597,7 +837,7 @@ load_image (PopplerDocument *doc,
- gdouble page_width;
- gdouble page_height;
-
-- GdkPixbuf *buf;
-+ GdkPixbuf *pixbuf;
- gint width;
- gint height;
-
-@@ -627,15 +867,13 @@ load_image (PopplerDocument *doc,
- gimp_image_set_resolution (image_ID, resolution, resolution);
- }
-
-- buf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, width, height);
--
-- poppler_page_render_to_pixbuf (page, 0, 0, width, height, scale, 0, buf);
-+ pixbuf = render_page_to_pixbuf (page, width, height, scale);
-
-- layer_from_pixbuf (image_ID, page_label, i, buf,
-+ layer_from_pixbuf (image_ID, page_label, i, pixbuf,
- doc_progress, 1.0 / pages->n_pages);
-
- g_free (page_label);
-- g_object_unref (buf);
-+ g_object_unref(pixbuf);
-
- doc_progress = (double) (i + 1) / pages->n_pages;
- gimp_progress_update (doc_progress);
-@@ -676,30 +914,22 @@ load_image (PopplerDocument *doc,
- return image_ID;
- }
-
--static GdkPixbuf *
--get_thumbnail (PopplerDocument *doc,
-- gint page_num,
-- gint preferred_size)
-+static cairo_surface_t *
-+get_thumb_surface (PopplerDocument *doc,
-+ gint page_num,
-+ gint preferred_size)
- {
- PopplerPage *page;
-- GdkPixbuf *pixbuf;
-+ cairo_surface_t *surface;
-
- page = poppler_document_get_page (doc, page_num);
-
- if (! page)
- return NULL;
-
-- /* XXX: Remove conditional when we depend on poppler 0.8.0, but also
-- * add configure check to make sure POPPLER_WITH_GDK is enabled!
-- */
--#ifdef POPPLER_WITH_GDK
-- pixbuf = poppler_page_get_thumbnail_pixbuf (page);
--#else
-- pixbuf = poppler_page_get_thumbnail (page);
--#endif
--
-+ surface = poppler_page_get_thumbnail (page);
-
-- if (! pixbuf)
-+ if (! surface)
- {
- gdouble width;
- gdouble height;
-@@ -712,15 +942,28 @@ get_thumbnail (PopplerDocument *doc,
- width *= scale;
- height *= scale;
-
-- pixbuf = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8,
-- width, height);
--
-- poppler_page_render_to_pixbuf (page,
-- 0, 0, width, height, scale, 0, pixbuf);
-+ surface = render_page_to_surface (page, width, height, scale);
- }
-
- g_object_unref (page);
-
-+ return surface;
-+}
-+
-+static GdkPixbuf *
-+get_thumb_pixbuf (PopplerDocument *doc,
-+ gint page_num,
-+ gint preferred_size)
-+{
-+ cairo_surface_t *surface;
-+ GdkPixbuf *pixbuf;
-+
-+ surface = get_thumb_surface (doc, page_num, preferred_size);
-+ pixbuf = gdk_pixbuf_get_from_surface (surface, 0, 0,
-+ cairo_image_surface_get_width (surface),
-+ cairo_image_surface_get_height (surface));
-+ cairo_surface_destroy (surface);
-+
- return pixbuf;
- }
-
-@@ -769,8 +1012,8 @@ thumbnail_thread (gpointer data)
- idle_data->page_no = i;
-
- /* FIXME get preferred size from somewhere? */
-- idle_data->pixbuf = get_thumbnail (thread_data->document, i,
-- THUMBNAIL_SIZE);
-+ idle_data->pixbuf = get_thumb_pixbuf (thread_data->document, i,
-+ THUMBNAIL_SIZE);
-
- g_idle_add (idle_set_thumbnail, idle_data);
-
---
-1.7.5
diff --git a/staging/gimp/gimp.install b/staging/gimp/gimp.install
deleted file mode 100644
index c317fbaca..000000000
--- a/staging/gimp/gimp.install
+++ /dev/null
@@ -1,12 +0,0 @@
-post_install() {
- update-desktop-database -q
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
diff --git a/staging/gimp/linux.gpl b/staging/gimp/linux.gpl
deleted file mode 100644
index 0a73d8979..000000000
--- a/staging/gimp/linux.gpl
+++ /dev/null
@@ -1,19 +0,0 @@
-GIMP Palette
-Name: linux
-#
- 0 0 0
- 0 0 170
- 0 170 0
- 0 170 170
-170 0 0
-170 0 170
-170 85 0
-170 170 170
- 85 85 85
- 85 85 255
- 85 255 85
- 85 255 255
-255 85 85
-255 85 255
-255 255 85
-255 255 255
diff --git a/staging/gimp/uri-backend-libcurl.patch b/staging/gimp/uri-backend-libcurl.patch
deleted file mode 100644
index 85da2fc7f..000000000
--- a/staging/gimp/uri-backend-libcurl.patch
+++ /dev/null
@@ -1,77 +0,0 @@
-diff -aur gimp-2.6.11/plug-ins/file-uri/uri-backend-libcurl.c gimp-2.6.11.patched/plug-ins/file-uri/uri-backend-libcurl.c
---- gimp-2.6.11/plug-ins/file-uri/uri-backend-libcurl.c 2010-07-03 00:51:59.000000000 +0200
-+++ gimp-2.6.11.patched/plug-ins/file-uri/uri-backend-libcurl.c 2011-06-23 19:15:30.000000000 +0200
-@@ -4,9 +4,9 @@
- * libcurl backend for the URI plug-in
- * Copyright (C) 2006 Mukund Sivaraman <muks@mukund.org>
- *
-- * This program is free software; you can redistribute it and/or modify
-+ * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
-- * the Free Software Foundation; either version 2 of the License, or
-+ * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
-@@ -15,8 +15,7 @@
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
-- * along with this program; if not, write to the Free Software
-- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
- #include "config.h"
-@@ -24,7 +23,6 @@
- #include <errno.h>
-
- #include <curl/curl.h>
--#include <curl/types.h>
- #include <curl/easy.h>
-
- #include <glib/gstdio.h>
-@@ -63,7 +61,7 @@
-
- vinfo = curl_version_info (CURLVERSION_NOW);
-
-- protocols = g_string_new ("http:,ftp:");
-+ protocols = g_string_new ("http:,ftp:,gopher:");
-
- if (vinfo->features & CURL_VERSION_SSL)
- {
-@@ -153,7 +151,7 @@
- FILE *out_file;
- CURL *curl_handle;
- CURLcode result;
-- gint response_code;
-+ glong response_code;
-
- gimp_progress_init (_("Connecting to server"));
-
-@@ -195,12 +193,12 @@
-
- curl_easy_getinfo (curl_handle, CURLINFO_RESPONSE_CODE, &response_code);
-
-- if (response_code != 200)
-+ if (response_code != 200 && response_code != 226 && response_code != 0)
- {
- fclose (out_file);
- g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
- _("Opening '%s' for reading resulted in HTTP "
-- "response code: %d"),
-+ "response code: %ld"),
- uri, response_code);
- curl_easy_cleanup (curl_handle);
- return FALSE;
-@@ -224,3 +222,10 @@
-
- return FALSE;
- }
-+
-+gchar *
-+uri_backend_map_image (const gchar *uri,
-+ GimpRunMode run_mode)
-+{
-+ return NULL;
-+}
diff --git a/staging/inkscape/PKGBUILD b/staging/inkscape/PKGBUILD
deleted file mode 100644
index 8e7c497b7..000000000
--- a/staging/inkscape/PKGBUILD
+++ /dev/null
@@ -1,52 +0,0 @@
-# $Id: PKGBUILD 140042 2011-10-06 00:30:12Z bisson $
-# Contributor: tobias <tobias@archlinux.org>
-# Contributor: Tobias Kieslich <tobias@justdreams.de>
-# Maintainer: Gaetan Bisson <bisson@archlinux.org>
-
-pkgname=inkscape
-pkgver=0.48.2
-pkgrel=3
-pkgdesc='Vector graphics editor using the SVG file format'
-url='http://inkscape.sourceforge.net/'
-arch=('i686' 'x86_64')
-license=('GPL' 'LGPL')
-makedepends=('boost' 'pkg-config' 'intltool')
-depends=('gc' 'gtkmm' 'poppler-glib' 'pyxml' 'libxslt' 'gsl' 'popt' 'python2'
- 'gtkspell' 'imagemagick' 'desktop-file-utils' 'hicolor-icon-theme')
-optdepends=('pstoedit: latex formulas'
- 'texlive-core: latex formulas'
- 'python2-numpy: some extensions'
- 'python-lxml: some extensions and filters'
- 'uniconvertor: reading/writing to some proprietary formats')
-options=('!libtool')
-source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha1sums=('422a4bacd4dc42adafa203244bc9816783cba4d3')
-
-install=install
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- sed -i 's|/usr/bin/python\>|/usr/bin/python2|g' cxxtest/*.py
- sed -i 's|/usr/bin/env python\>|/usr/bin/env python2|g' share/*/{test/,}*.py
- sed -i 's|"python" },|"python2" },|g' src/extension/implementation/script.cpp
- sed -i 's|python -c|python2 -c|g' configure share/extensions/uniconv*.py
- sed -i 's|"python"|"python2"|g' src/main.cpp
-
- ./configure --prefix=/usr \
- --with-python \
- --with-perl \
- --without-gnome-vfs \
- --with-xft \
- --enable-lcms \
- --enable-poppler-cairo \
- --disable-dependency-tracking \
-
- make
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- make DESTDIR="${pkgdir}" install
-}
diff --git a/staging/inkscape/install b/staging/inkscape/install
deleted file mode 100644
index 6e803bf1d..000000000
--- a/staging/inkscape/install
+++ /dev/null
@@ -1,13 +0,0 @@
-post_install() {
- update-desktop-database -q
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}
-
-post_upgrade() {
- post_install
-}
-
-
-post_remove() {
- post_install
-}
diff --git a/staging/koffice/PKGBUILD b/staging/koffice/PKGBUILD
deleted file mode 100644
index 218ad08bc..000000000
--- a/staging/koffice/PKGBUILD
+++ /dev/null
@@ -1,305 +0,0 @@
-# $Id: PKGBUILD 140460 2011-10-15 07:51:52Z eric $
-# Maintainer: Ronald van Haren <ronald.archlinux.org>
-# Contributor: Andrea Scarpino <andrea@archlinux.org>
-# Contributor: BlackEagle < ike DOT devolder AT gmail DOT com >
-
-pkgbase=koffice
-pkgname=(
- 'koffice-filters'
- 'koffice-interfaces'
- 'koffice-libs'
- 'koffice-plugins'
- 'koffice-pics'
- 'koffice-servicetypes'
- 'koffice-templates'
- 'koffice-tools'
- 'koffice-karbon'
- 'koffice-karbon-doc'
-# 'koffice-kchart'
-# 'koffice-kchart-doc'
- 'koffice-kexi'
- 'koffice-kexi-doc'
- 'koffice-kformula'
- 'koffice-kformula-doc'
- 'koffice-kounavail'
- 'koffice-kplato'
-# 'koffice-kplato-doc'
- 'koffice-kpresenter'
- 'koffice-kpresenter-doc'
- 'koffice-krita'
-# 'koffice-krita-doc' # no krita-doc anymore upstream
- 'koffice-kspread'
- 'koffice-kspread-doc'
- 'koffice-kword'
-# 'koffice-kword-doc' # see http://userbase.kde.org/KWord/Manual for documentation (not supplied by upstream anymore in the sources)
- 'koffice-handbook'
- 'koffice-thesaurus-doc'
-# 'koffice-kdgantt' # still an empty package
-)
-pkgver=2.3.3
-pkgrel=9
-arch=('i686' 'x86_64')
-url='http://koffice.kde.org'
-license=('GPL' 'LGPL' 'FDL')
-makedepends=('pkg-config' 'cmake' 'automoc4' 'boost' 'eigen' 'gsl' 'lcms'
- 'glew' 'qimageblitz' 'kdepimlibs' 'pstoedit' 'poppler-qt' 'libwpd'
- 'libwpg' 'opengtl' 'libkdcraw' 'oxygen-icons')
-groups=('koffice')
-source=("http://download.kde.org/stable/${pkgbase}-${pkgver}/${pkgbase}-${pkgver}.tar.bz2"
- 'kde4-koffice-libwpg02.patch' 'gcc46.patch')
-sha256sums=('31ba0d98c0d29c7b8ab97efdeb6c618b82177b2b0ec85da088178254da43c099'
- '69106deb4081d71b5bd8f2e4f5af67ca689e4ce9f2bb49c11dbce5fb3409d612'
- 'e095c0b2bbedf41da6535a68b2275464dafd3f194566028d0135322f596e4739')
-
-build() {
- cd "${srcdir}/${pkgbase}-${pkgver}"
-
- patch -p1 -i "${srcdir}/kde4-koffice-libwpg02.patch"
- patch -p1 -i "${srcdir}"/gcc46.patch
-
- cd "${srcdir}"
- mkdir build
- cd build
- cmake ../${pkgbase}-${pkgver} \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_SKIP_RPATH=ON \
- -DCMAKE_INSTALL_PREFIX=/usr
- make
-}
-
-##### 1st package common files, depends, optdepends of the koffice applications #####
-
-package_koffice-filters(){
- pkgdesc="Filters for the KDE office suite"
- depends=('shared-mime-info')
- optdepends=('libgsf: Microsoft Word document importer' 'libwpd: WordPerfect document importer'
- 'libwpg: Corel WordPerfect Graphics image importer' 'pstoedit: Karbon EPS import filter'
- 'libkdcraw: support for raw images' 'poppler: support for pdf'
- 'koffice-kspread: Kspread filters' 'koffice-karbon: Karbon filters'
- 'koffice-kplato: Kplato filters')
- install=filters.install
- cd "${srcdir}/build/filters"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-interfaces(){
- pkgdesc="Interfaces for the KDE office suite"
- depends=('koffice-libs')
- cd "${srcdir}/build/interfaces"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-libs(){
- pkgdesc="Libs for the KDE office suite"
- depends=('kdepimlibs' 'lcms' 'koffice-servicetypes')
- cd "${srcdir}/build/libs"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-plugins(){
- pkgdesc="Plugins for the KDE office suite"
- depends=('koffice-libs')
- replaces=('koffice-kchart')
- conflicts=('koffice-kchart')
- cd "${srcdir}/build/plugins"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-pics(){
- pkgdesc="Icons for the KDE office suite"
- depends=('desktop-file-utils' 'xdg-utils')
- install=koffice.install
- cd "${srcdir}/build/pics"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-servicetypes(){
- pkgdesc="Servicetypes for the KDE office suite"
- cd "${srcdir}/build/servicetypes"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-templates(){
- pkgdesc="Templates for the KDE office suite"
- cd "${srcdir}/build/templates"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-tools(){
- pkgdesc="Tools for the KDE office suite"
- depends=('koffice-libs' 'oxygen-icons')
- cd "${srcdir}/build/tools"
- make DESTDIR="${pkgdir}" install
-}
-
-#### package common files done #####
-
-#### package apps and their docs #####
-
-package_koffice-karbon(){
- pkgdesc="Vector drawing application for KDE"
- depends=('koffice-libs' 'koffice-templates' 'oxygen-icons')
- optdepends=('koffice-filters: import/export filters')
- install=koffice.install
- cd "${srcdir}/build/karbon"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-karbon-doc(){
- pkgdesc="Documentation for karbon"
- cd "${srcdir}/build/doc/karbon"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-kexi(){
- pkgdesc="Integrated data management application for the KDE office suite"
- depends=('koffice-kspread' 'oxygen-icons')
- install=koffice.install
- cd "${srcdir}/build/kexi"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-kexi-doc(){
- pkgdesc="Documentation for kexi"
- cd "${srcdir}/build/doc/kexi"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-kformula(){
- pkgdesc="Formula editor for the KDE office suite"
- depends=('koffice-libs')
- install=koffice.install
- cd "${srcdir}/build/kformula"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-kformula-doc() {
- pkgdesc="Documentation for koffice-kformula"
- cd "${srcdir}/build/doc/kformula"
- make DESTDIR="${pkgdir}" install
-}
-
-
-package_koffice-kounavail(){
- pkgdesc="Kounavail for the KDE office suite"
- depends=('koffice-libs')
- cd "${srcdir}/build/kounavail"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-kplato(){
- pkgdesc="Project management application for KDE"
- depends=('koffice-kword' 'oxygen-icons')
- install=koffice.install
- cd "${srcdir}/build/kplato"
- make DESTDIR="${pkgdir}" install
-}
-
-#package_koffice-kplato-doc(){
-# pkgdesc="Documentation for kplato"
-# cd ${srcdir}/build/doc/kplato
-# make DESTDIR="${pkgdir}" install
-#}
-
-package_koffice-kpresenter(){
- pkgdesc="Presentation tool for KDE"
- depends=('koffice-libs' 'koffice-templates' 'oxygen-icons')
- optdepends=('koffice-filters: import/export filters')
- install=koffice.install
- cd "${srcdir}/build/kpresenter"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-kpresenter-doc(){
- pkgdesc="Documentation for kpresenter"
- cd "${srcdir}/build/doc/kpresenter"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-krita(){
- pkgdesc="Graphics editor for KDE"
- depends=('glew' 'qimageblitz' 'oxygen-icons' 'koffice-templates' \
- 'koffice-plugins' 'poppler-qt' 'opengtl')
- optdepends=('koffice-filters: import/export filters' 'libkdcraw: support for raw images')
- install=krita.install
- cd "${srcdir}/build/krita"
- make DESTDIR="${pkgdir}" install
-}
-
-#package_koffice-krita-doc(){
-# pkgdesc="Documentation for krita"
-# cd ${srcdir}/build/doc/krita
-# make DESTDIR="${pkgdir}" install
-#}
-
-
-package_koffice-kspread(){
- pkgdesc="Spreadsheet application for KDE"
- depends=('gsl' 'koffice-templates' 'koffice-plugins' 'oxygen-icons')
- optdepends=('koffice-filters: import/export filters')
- install=koffice.install
- cd "${srcdir}/build/kspread"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-kspread-doc(){
- pkgdesc="Documentation for kspread"
- cd "${srcdir}/build/doc/kspread"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-kword(){
- pkgdesc="Wordprocessor for KDE"
- depends=('koffice-templates' 'koffice-pics' 'oxygen-icons' \
- 'koffice-kounavail' 'koffice-plugins')
- optdepends=('koffice-filters: import/export filters')
- install=koffice.install
- cd "${srcdir}/build/kword"
- make DESTDIR="${pkgdir}" install
-
- # some sed lines to have python2 in extension scripts
- sed -i "s|/usr/bin/env python|/usr/bin/env python2|" "${pkgdir}/usr/share/apps/kword/scripts/extensions/oouno.py"
- sed -i "s|/usr/bin/env python|/usr/bin/env python2|" "${pkgdir}/usr/share/apps/kword/scripts/extensions/importdoxyxml.py"
- sed -i "s|/usr/bin/env python|/usr/bin/env python2|" "${pkgdir}/usr/share/apps/kword/scripts/extensions/onlinehelp.py"
-}
-
-#package_koffice-kword-doc(){
-# pkgdesc="Documentation for kword"
-# cd ${srcdir}/build/doc/kword
-# make DESTDIR="${pkgdir}" install
-#}
-
-##### package apps done #####
-
-#package_koffice-kchart(){
-# pkgdesc="Charting tool for KDE"
-# depends=('hicolor-icon-theme' 'koffice-interfaces' 'koffice-templates')
-# optdepends=('koffice-filters: import/export filters')
-# install=koffice.install
-# cd "${srcdir}/build/kchart"
-# make DESTDIR="${pkgdir}" install
-#}
-
-#package_koffice-kchart-doc(){
-# pkgdesc="Documentation for kchart"
-# cd "${srcdir}/build/doc/kchart"
-# make DESTDIR="${pkgdir}" install
-#}
-
-#package_koffice-kdgantt(){
-# pkgdesc="Gantt for KDE"
-# cd "${srcdir}/build/kdgantt"
-# make DESTDIR="${pkgdir}" install
-#}
-
-package_koffice-handbook() {
- pkgdesc="Documentation for koffice"
- cd "${srcdir}/build/doc/koffice"
- make DESTDIR="${pkgdir}" install
-}
-
-package_koffice-thesaurus-doc(){
- pkgdesc="Documentation for koffice-thesaurus"
- cd "${srcdir}/build/doc/thesaurus"
- make DESTDIR="${pkgdir}" install
-}
diff --git a/staging/koffice/filters.install b/staging/koffice/filters.install
deleted file mode 100644
index 7c8a8bd2b..000000000
--- a/staging/koffice/filters.install
+++ /dev/null
@@ -1,11 +0,0 @@
-post_install() {
- update-mime-database usr/share/mime &> /dev/null
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
diff --git a/staging/koffice/gcc46.patch b/staging/koffice/gcc46.patch
deleted file mode 100644
index dcf8a4f85..000000000
--- a/staging/koffice/gcc46.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -up koffice-2.3.2/krita/plugins/formats/exr/exr_converter.cc.gcc46 koffice-2.3.2/krita/plugins/formats/exr/exr_converter.cc
---- koffice-2.3.2/krita/plugins/formats/exr/exr_converter.cc.gcc46 2011-02-17 06:13:40.000000000 -0600
-+++ koffice-2.3.2/krita/plugins/formats/exr/exr_converter.cc 2011-02-19 21:15:56.597142885 -0600
-@@ -80,6 +80,9 @@ ImageType imfTypeToKisType(Imf::PixelTyp
- return IT_FLOAT16;
- case Imf::FLOAT:
- return IT_FLOAT32;
-+ default:
-+ // shouldn't reach here
-+ return IT_UNSUPPORTED;
- }
- }
-
-@@ -93,6 +96,9 @@ const KoColorSpace* kisTypeToColorSpace(
- case IT_UNKNOWN:
- case IT_UNSUPPORTED:
- return 0;
-+ default:
-+ // shouldn't reach here
-+ return 0;
- }
- }
-
diff --git a/staging/koffice/kde4-koffice-libwpg02.patch b/staging/koffice/kde4-koffice-libwpg02.patch
deleted file mode 100644
index e2a55a216..000000000
--- a/staging/koffice/kde4-koffice-libwpg02.patch
+++ /dev/null
@@ -1,1323 +0,0 @@
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/CMakeLists.txt koffice-2.3.1-libwpg02/filters/karbon/wpg/import/CMakeLists.txt
---- koffice-2.3.1/filters/karbon/wpg/import/CMakeLists.txt 2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/CMakeLists.txt 2011-01-18 07:40:25.000000000 +0100
-@@ -1,16 +1,11 @@
-
--
- include_directories(${CMAKE_BINARY_DIR}/filters/ ${WPD_INCLUDE_DIR} ${LIBWPG_INCLUDE_DIR}/)
-
--set(wpgimport_PART_SRCS
--WPGImport.cpp
--OdgExporter.cxx
--FileOutputHandler.cxx
--GraphicsElement.cxx)
-+set(wpgimport_PART_SRCS WPGImport.cpp)
-
- kde4_add_plugin(wpgimport ${wpgimport_PART_SRCS})
-
--target_link_libraries(wpgimport komain ${LIBWPG_LIBRARIES} ${LIBWPG_STREAM_LIBRARIES})
-+target_link_libraries(wpgimport komain ${LIBWPG_LIBRARIES} ${LIBWPG_STREAM_LIBRARIES} ${WPD_LIBRARIES})
-
- install(TARGETS wpgimport DESTINATION ${PLUGIN_INSTALL_DIR})
- install(FILES karbon_wpg_import.desktop DESTINATION ${SERVICES_INSTALL_DIR})
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/FileOutputHandler.cxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/FileOutputHandler.cxx
---- koffice-2.3.1/filters/karbon/wpg/import/FileOutputHandler.cxx 2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/FileOutputHandler.cxx 1970-01-01 01:00:00.000000000 +0100
-@@ -1,95 +0,0 @@
--/* libwpg
-- * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch)
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-- * Boston, MA 02111-1301 USA
-- *
-- * For further information visit http://libwpg.sourceforge.net
-- */
--
--/* "This product is not manufactured, approved, or supported by
-- * Corel Corporation or Corel Corporation Limited."
-- */
--
--#include "FileOutputHandler.hxx"
--
--FileOutputHandler::FileOutputHandler(std::ostringstream &contentStream) :
-- mbIsTagOpened(false),
-- mContentStream(contentStream)
--{
--}
--
--void FileOutputHandler::startDocument()
--{
--}
--
--void FileOutputHandler::startElement(const char *psName, const std::vector<std::pair<std::string, std::string> > &xPropList)
--{
-- if (mbIsTagOpened)
-- {
-- mContentStream << ">";
-- mbIsTagOpened = false;
-- }
-- mContentStream << "<" << psName;
--
-- for (std::vector<std::pair<std::string, std::string> >::const_iterator i = xPropList.begin(); i != xPropList.end(); i++)
-- {
-- mContentStream << " " << (*i).first.c_str() << "=\"" << (*i).second.c_str() << "\"";
-- }
-- mbIsTagOpened = true;
-- msOpenedTagName = psName;
--}
--
--void FileOutputHandler::endElement(const char *psName)
--{
-- if (mbIsTagOpened)
-- {
-- if( msOpenedTagName == psName )
-- {
-- mContentStream << "/>";
-- mbIsTagOpened = false;
-- }
-- else // should not happen, but handle it
-- {
-- mContentStream << ">";
-- mContentStream << "</" << psName << ">";
-- mbIsTagOpened = false;
-- }
-- }
-- else
-- {
-- mContentStream << "</" << psName << ">";
-- mbIsTagOpened = false;
-- }
--}
--
--void FileOutputHandler::characters(const std::string &sCharacters)
--{
-- if (mbIsTagOpened)
-- {
-- mContentStream << ">";
-- mbIsTagOpened = false;
-- }
-- mContentStream << sCharacters.c_str();
--}
--
--void FileOutputHandler::endDocument()
--{
-- if (mbIsTagOpened)
-- {
-- mContentStream << ">";
-- mbIsTagOpened = false;
-- }
--}
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/FileOutputHandler.hxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/FileOutputHandler.hxx
---- koffice-2.3.1/filters/karbon/wpg/import/FileOutputHandler.hxx 2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/FileOutputHandler.hxx 1970-01-01 01:00:00.000000000 +0100
-@@ -1,49 +0,0 @@
--/* libwpg
-- * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch)
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-- * Boston, MA 02111-1301 USA
-- *
-- * For further information visit http://libwpg.sourceforge.net
-- */
--
--/* "This product is not manufactured, approved, or supported by
-- * Corel Corporation or Corel Corporation Limited."
-- */
--
--#ifndef FILEOUTPUTHANDLER_H
--#define FILEOUTPUTHANDLER_H
--
--#include <iostream>
--#include <sstream>
--#include <string>
--#include "GraphicsHandler.hxx"
--
--class FileOutputHandler : public GraphicsHandler
--{
-- public:
-- explicit FileOutputHandler(std::ostringstream &contentStream);
-- virtual void startDocument();
-- virtual void endDocument();
-- virtual void startElement(const char *psName, const std::vector<std::pair<std::string, std::string> > &xPropList);
-- virtual void endElement(const char *psName);
-- virtual void characters(const std::string &sCharacters);
--
-- private:
-- bool mbIsTagOpened;
-- std::string msOpenedTagName;
-- std::ostringstream &mContentStream;
--};
--#endif
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/GraphicsElement.cxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/GraphicsElement.cxx
---- koffice-2.3.1/filters/karbon/wpg/import/GraphicsElement.cxx 2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/GraphicsElement.cxx 1970-01-01 01:00:00.000000000 +0100
-@@ -1,66 +0,0 @@
--/* GraphicsElement: The items we are collecting to be put into the Writer
-- * document: paragraph and spans of text, as well as section breaks.
-- *
-- * Copyright (C) 2002-2003 William Lachance (william.lachance@sympatico.ca)
-- *
-- * This program is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Lesser General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This program is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-- * Boston, MA 02111-1301 USA
-- *
-- * For further information visit http://libwpg.sourceforge.net
-- *
-- */
--
--/* "This product is not manufactured, approved, or supported by
-- * Corel Corporation or Corel Corporation Limited."
-- */
--
--#include "GraphicsElement.hxx"
--#include "GraphicsHandler.hxx"
--#include <string.h>
--
--#define ASCII_SPACE 0x0020
--
--void TagGraphicsElement::print() const
--{
--}
--
--void OpenTagGraphicsElement::write(GraphicsHandler *pHandler) const
--{
-- pHandler->startElement(getTagName().c_str(), maAttrList);
--}
--
--void OpenTagGraphicsElement::print() const
--{
-- TagGraphicsElement::print();
--}
--
--void OpenTagGraphicsElement::addAttribute(const std::string &szAttributeName, const std::string &sAttributeValue)
--{
-- std::pair<std::string, std::string> tmpAttribute;
-- tmpAttribute.first = szAttributeName;
-- tmpAttribute.second = sAttributeValue;
-- maAttrList.push_back(tmpAttribute);
--}
--
--void CloseTagGraphicsElement::write(GraphicsHandler *pHandler) const
--{
--
-- pHandler->endElement(getTagName().c_str());
--}
--
--void CharDataGraphicsElement::write(GraphicsHandler *pHandler) const
--{
-- pHandler->characters(msData);
--}
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/GraphicsElement.hxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/GraphicsElement.hxx
---- koffice-2.3.1/filters/karbon/wpg/import/GraphicsElement.hxx 2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/GraphicsElement.hxx 1970-01-01 01:00:00.000000000 +0100
-@@ -1,84 +0,0 @@
--/* GraphicsElement: The items we are collecting to be put into the Writer
-- * document: paragraph and spans of text, as well as section breaks.
-- *
-- * Copyright (C) 2002-2003 William Lachance (william.lachance@sympatico.ca)
-- *
-- * This program is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Lesser General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This program is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-- * Boston, MA 02111-1301 USA
-- *
-- * For further information visit http://libwpd.sourceforge.net
-- *
-- */
--
--/* "This product is not manufactured, approved, or supported by
-- * Corel Corporation or Corel Corporation Limited."
-- */
--
--#ifndef _GRAPHICSELEMENT_H
--#define _GRAPHICSELEMENT_H
--#include <string>
--#include <map>
--#include <vector>
--
--#include "GraphicsHandler.hxx"
--
--class GraphicsElement
--{
--public:
-- virtual ~GraphicsElement() {}
-- virtual void write(GraphicsHandler *pHandler) const = 0;
-- virtual void print() const {}
--};
--
--class TagGraphicsElement : public GraphicsElement
--{
--public:
-- explicit TagGraphicsElement(const char *szTagName) : msTagName(szTagName) {}
-- const std::string &getTagName() const { return msTagName; }
-- virtual void print() const;
--private:
-- const std::string msTagName;
--};
--
--class OpenTagGraphicsElement : public TagGraphicsElement
--{
--public:
-- explicit OpenTagGraphicsElement(const char *szTagName) : TagGraphicsElement(szTagName) {}
-- ~OpenTagGraphicsElement() {}
-- void addAttribute(const std::string &szAttributeName, const std::string &sAttributeValue);
-- virtual void write(GraphicsHandler *pHandler) const;
-- virtual void print () const;
--private:
-- std::vector<std::pair<std::string, std::string> > maAttrList;
--};
--
--class CloseTagGraphicsElement : public TagGraphicsElement
--{
--public:
-- explicit CloseTagGraphicsElement(const char *szTagName) : TagGraphicsElement(szTagName) {}
-- virtual void write(GraphicsHandler *pHandler) const;
--};
--
--class CharDataGraphicsElement : public GraphicsElement
--{
--public:
-- CharDataGraphicsElement(const char *sData) : GraphicsElement(), msData(sData) {}
-- virtual void write(GraphicsHandler *pHandler) const;
--private:
-- std::string msData;
--};
--
--
--#endif
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/GraphicsHandler.hxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/GraphicsHandler.hxx
---- koffice-2.3.1/filters/karbon/wpg/import/GraphicsHandler.hxx 2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/GraphicsHandler.hxx 1970-01-01 01:00:00.000000000 +0100
-@@ -1,43 +0,0 @@
--/*
-- * Copyright (C) 2004 William Lachance (wlach@interlog.com)
-- * Copyright (C) 2004 Net Integration Technologies (http://www.net-itech.com)
-- *
-- * This program is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU General Public License
-- * as published by the Free Software Foundation; either version 2
-- * of the License, or (at your option) any later version.
-- *
-- * This program is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- * GNU General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-- * Boston, MA 02111-1301 USA
-- *
-- * Contributor(s): Martin Gallwey (gallwey@sun.com)
-- *
-- */
--
--/* "This product is not manufactured, approved, or supported by
-- * Corel Corporation or Corel Corporation Limited."
-- */
--#ifndef _GRAPHICSHANDLER_H
--#define _GRAPHICSHANDLER_H
--#include <string>
--#include <map>
--#include <vector>
--
--class GraphicsHandler
--{
--public:
-- virtual ~GraphicsHandler() {}
-- virtual void startDocument() = 0;
-- virtual void endDocument() = 0;
-- virtual void startElement(const char *psName, const std::vector< std::pair <std::string, std::string> > &xPropList) = 0;
-- virtual void endElement(const char *psName) = 0;
-- virtual void characters(const std::string &sCharacters) = 0;
--};
--#endif
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/OdgExporter.cxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/OdgExporter.cxx
---- koffice-2.3.1/filters/karbon/wpg/import/OdgExporter.cxx 2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/OdgExporter.cxx 1970-01-01 01:00:00.000000000 +0100
-@@ -1,662 +0,0 @@
--/* libwpg
-- * Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
-- * Copyright (C) 2006 Fridrich Strba (fridrich.strba@bluewin.ch)
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-- * Boston, MA 02111-1301 USA
-- *
-- * For further information visit http://libwpg.sourceforge.net
-- */
--
--/* "This product is not manufactured, approved, or supported by
-- * Corel Corporation or Corel Corporation Limited."
-- */
--
--#include "OdgExporter.hxx"
--#include "GraphicsElement.hxx"
--#include "GraphicsHandler.hxx"
--#include <locale.h>
--
--static std::string doubleToString(const double value)
--{
-- std::ostringstream tempStream;
-- tempStream << value;
-- std::string decimalPoint(localeconv()->decimal_point);
-- if ((decimalPoint.size() == 0) || (decimalPoint == "."))
-- return tempStream.str();
-- std::string stringValue(tempStream.str());
-- if (!stringValue.empty())
-- {
-- std::string::size_type pos;
-- while ((pos = stringValue.find(decimalPoint)) != std::string::npos)
-- stringValue.replace(pos,decimalPoint.size(),".");
-- }
-- return stringValue;
--}
--
--
--OdgExporter::OdgExporter(GraphicsHandler *pHandler, const bool isFlatXML):
-- mpHandler(pHandler),
-- m_fillRule(AlternatingFill),
-- m_gradientIndex(1),
-- m_dashIndex(1),
-- m_styleIndex(1),
-- m_width(0.0f),
-- m_height(0.0f),
-- m_isFlatXML(isFlatXML)
--{
--}
--
--OdgExporter::~OdgExporter()
--{
-- for (std::vector <GraphicsElement *>::iterator iterStroke = mStrokeDashElements.begin();
-- iterStroke != mStrokeDashElements.end(); iterStroke++)
-- delete (*iterStroke);
--
-- for (std::vector <GraphicsElement *>::iterator iterGradient = mGradientElements.begin();
-- iterGradient != mGradientElements.end(); iterGradient++)
-- delete (*iterGradient);
--
-- for (std::vector <GraphicsElement *>::iterator iterAutomaticStyles = mAutomaticStylesElements.begin();
-- iterAutomaticStyles != mAutomaticStylesElements.end(); iterAutomaticStyles++)
-- delete (*iterAutomaticStyles);
--
-- for (std::vector<GraphicsElement *>::iterator bodyIter = mBodyElements.begin();
-- bodyIter != mBodyElements.end(); bodyIter++)
-- delete (*bodyIter);
--}
--
--void OdgExporter::startGraphics(double width, double height)
--{
-- m_gradientIndex = 1;
-- m_dashIndex = 1;
-- m_styleIndex = 1;
-- m_width = width;
-- m_height = height;
--
--
-- mpHandler->startDocument();
-- OpenTagGraphicsElement tmpOfficeDocumentContent("office:document");
-- tmpOfficeDocumentContent.addAttribute("xmlns:office", "urn:oasis:names:tc:opendocument:xmlns:office:1.0");
-- tmpOfficeDocumentContent.addAttribute("xmlns:style", "urn:oasis:names:tc:opendocument:xmlns:style:1.0");
-- tmpOfficeDocumentContent.addAttribute("xmlns:text", "urn:oasis:names:tc:opendocument:xmlns:text:1.0");
-- tmpOfficeDocumentContent.addAttribute("xmlns:draw", "urn:oasis:names:tc:opendocument:xmlns:drawing:1.0");
-- tmpOfficeDocumentContent.addAttribute("xmlns:dc", "http://purl.org/dc/elements/1.1/");
-- tmpOfficeDocumentContent.addAttribute("xmlns:svg", "urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0");
-- tmpOfficeDocumentContent.addAttribute("xmlns:fo", "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0");
-- tmpOfficeDocumentContent.addAttribute("xmlns:config", "urn:oasis:names:tc:opendocument:xmlns:config:1.0");
-- tmpOfficeDocumentContent.addAttribute("xmlns:ooo", "http://openoffice.org/2004/office");
-- tmpOfficeDocumentContent.addAttribute("office:version", "1.0");
-- if (m_isFlatXML)
-- tmpOfficeDocumentContent.addAttribute("office:mimetype", "application/x-vnd.oasis.openoffice.drawing");
-- tmpOfficeDocumentContent.write(mpHandler);
--
-- OpenTagGraphicsElement("office:settings").write(mpHandler);
--
-- OpenTagGraphicsElement configItemSetOpenElement("config:config-item-set");
-- configItemSetOpenElement.addAttribute("config:name", "ooo:view-settings");
-- configItemSetOpenElement.write(mpHandler);
--
-- OpenTagGraphicsElement configItemOpenElement1("config:config-item");
-- configItemOpenElement1.addAttribute("config:name", "VisibleAreaTop");
-- configItemOpenElement1.addAttribute("config:type", "int");
-- configItemOpenElement1.write(mpHandler);
-- mpHandler->characters("0");
-- mpHandler->endElement("config:config-item");
--
-- OpenTagGraphicsElement configItemOpenElement2("config:config-item");
-- configItemOpenElement2.addAttribute("config:name", "VisibleAreaLeft");
-- configItemOpenElement2.addAttribute("config:type", "int");
-- configItemOpenElement2.write(mpHandler);
-- mpHandler->characters("0");
-- mpHandler->endElement("config:config-item");
--
-- OpenTagGraphicsElement configItemOpenElement3("config:config-item");
-- configItemOpenElement3.addAttribute("config:name", "VisibleAreaWidth");
-- configItemOpenElement3.addAttribute("config:type", "int");
-- configItemOpenElement3.write(mpHandler);
-- m_value.str("");
-- m_value << (unsigned)(2540 * width);
-- mpHandler->characters(m_value.str());
-- mpHandler->endElement("config:config-item");
--
-- OpenTagGraphicsElement configItemOpenElement4("config:config-item");
-- configItemOpenElement4.addAttribute("config:name", "VisibleAreaHeight");
-- configItemOpenElement4.addAttribute("config:type", "int");
-- configItemOpenElement4.write(mpHandler);
-- m_value.str("");
-- m_value << (unsigned)(2540 * height);
-- mpHandler->characters(m_value.str());
-- mpHandler->endElement("config:config-item");
--
-- mpHandler->endElement("config:config-item-set");
--
-- mpHandler->endElement("office:settings");
--
--}
--
--void OdgExporter::endGraphics()
--{
-- OpenTagGraphicsElement("office:styles").write(mpHandler);
--
-- for (std::vector <GraphicsElement *>::const_iterator iterStroke = mStrokeDashElements.begin();
-- iterStroke != mStrokeDashElements.end(); iterStroke++)
-- (*iterStroke)->write(mpHandler);
--
-- for (std::vector <GraphicsElement *>::const_iterator iterGradient = mGradientElements.begin();
-- iterGradient != mGradientElements.end(); iterGradient++)
-- (*iterGradient)->write(mpHandler);
--
-- mpHandler->endElement("office:styles");
--
-- OpenTagGraphicsElement("office:automatic-styles").write(mpHandler);
--
-- for (std::vector <GraphicsElement *>::const_iterator iterAutomaticStyles = mAutomaticStylesElements.begin();
-- iterAutomaticStyles != mAutomaticStylesElements.end(); iterAutomaticStyles++)
-- (*iterAutomaticStyles)->write(mpHandler);
--
-- OpenTagGraphicsElement tmpStylePageLayoutOpenElement("style:page-layout");
-- tmpStylePageLayoutOpenElement.addAttribute("style:name", "PM0");
-- tmpStylePageLayoutOpenElement.write(mpHandler);
--
-- OpenTagGraphicsElement tmpStylePageLayoutPropertiesOpenElement("style:page-layout-properties");
-- tmpStylePageLayoutPropertiesOpenElement.addAttribute("fo:margin-top", "0in");
-- tmpStylePageLayoutPropertiesOpenElement.addAttribute("fo:margin-bottom", "0in");
-- tmpStylePageLayoutPropertiesOpenElement.addAttribute("fo:margin-left", "0in");
-- tmpStylePageLayoutPropertiesOpenElement.addAttribute("fo:margin-right", "0in");
-- m_value.str("");
-- m_value << doubleToString(m_width) << "in";
-- tmpStylePageLayoutPropertiesOpenElement.addAttribute("fo:page-width", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(m_height) << "in";
-- tmpStylePageLayoutPropertiesOpenElement.addAttribute("fo:page-height", m_value.str());
-- m_value.str("");
-- tmpStylePageLayoutPropertiesOpenElement.addAttribute("style:print-orientation", "portrait");
-- tmpStylePageLayoutPropertiesOpenElement.write(mpHandler);
--
-- mpHandler->endElement("style:page-layout-properties");
--
-- mpHandler->endElement("style:page-layout");
--
-- OpenTagGraphicsElement tmpStyleStyleOpenElement("style:style");
-- tmpStyleStyleOpenElement.addAttribute("style:name", "dp1");
-- tmpStyleStyleOpenElement.addAttribute("style:family", "drawing-page");
-- tmpStyleStyleOpenElement.write(mpHandler);
--
-- OpenTagGraphicsElement tmpStyleDrawingPagePropertiesOpenElement("style:drawing-page-properties");
-- // tmpStyleDrawingPagePropertiesOpenElement.addAttribute("draw:background-size", "border");
-- tmpStyleDrawingPagePropertiesOpenElement.addAttribute("draw:fill", "none");
-- tmpStyleDrawingPagePropertiesOpenElement.write(mpHandler);
--
-- mpHandler->endElement("style:drawing-page-properties");
--
-- mpHandler->endElement("style:style");
--
-- mpHandler->endElement("office:automatic-styles");
--
-- OpenTagGraphicsElement("office:master-styles").write(mpHandler);
--
-- OpenTagGraphicsElement tmpStyleMasterPageOpenElement("style:master-page");
-- tmpStyleMasterPageOpenElement.addAttribute("style:name", "Default");
-- tmpStyleMasterPageOpenElement.addAttribute("style:page-layout-name", "PM0");
-- tmpStyleMasterPageOpenElement.addAttribute("draw:style-name", "dp1");
-- tmpStyleMasterPageOpenElement.write(mpHandler);
--
-- mpHandler->endElement("style:master-page");
--
-- mpHandler->endElement("office:master-styles");
--
-- OpenTagGraphicsElement("office:body").write(mpHandler);
--
-- OpenTagGraphicsElement("office:drawing").write(mpHandler);
--
-- OpenTagGraphicsElement tmpDrawPageOpenElement("draw:page");
-- tmpDrawPageOpenElement.addAttribute("draw:name", "page1");
-- tmpDrawPageOpenElement.addAttribute("draw:style-name", "dp1");
-- tmpDrawPageOpenElement.addAttribute("draw:master-page-name", "Default");
-- tmpDrawPageOpenElement.write(mpHandler);
--
-- for (std::vector<GraphicsElement *>::const_iterator bodyIter = mBodyElements.begin();
-- bodyIter != mBodyElements.end(); bodyIter++)
-- {
-- (*bodyIter)->write(mpHandler);
-- }
--
-- mpHandler->endElement("draw:page");
-- mpHandler->endElement("office:drawing");
-- mpHandler->endElement("office:body");
-- mpHandler->endElement("office:document");
--
-- mpHandler->endDocument();
--}
--
--void OdgExporter::setPen(const libwpg::WPGPen& pen)
--{
-- m_pen = pen;
--}
--
--void OdgExporter::setBrush(const libwpg::WPGBrush& brush)
--{
-- m_brush = brush;
--}
--
--void OdgExporter::setFillRule(FillRule rule)
--{
-- m_fillRule = rule;
--}
--
--void OdgExporter::startLayer(unsigned int)
--{
--}
--
--void OdgExporter::endLayer(unsigned int)
--{
--}
--
--void OdgExporter::drawRectangle(const libwpg::WPGRect& rect, double rx, double )
--{
-- writeStyle();
-- OpenTagGraphicsElement *pDrawRectElement = new OpenTagGraphicsElement("draw:rect");
-- m_value.str("");
-- m_value << "gr" << m_styleIndex-1;
-- pDrawRectElement->addAttribute("draw:style-name", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(rect.x1) << "in";
-- pDrawRectElement->addAttribute("svg:x", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(rect.y1) << "in";
-- pDrawRectElement->addAttribute("svg:y", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(rect.x2-rect.x1) << "in";
-- pDrawRectElement->addAttribute("svg:width", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(rect.y2-rect.y1) << "in";
-- pDrawRectElement->addAttribute("svg:height", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(rx) << "in";
-- // FIXME: what to do when rx != ry ?
-- pDrawRectElement->addAttribute("draw:corner-radius", m_value.str());
-- m_value.str("");
-- mBodyElements.push_back(static_cast<GraphicsElement *>(pDrawRectElement));
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:rect")));
--}
--
--void OdgExporter::drawEllipse(const libwpg::WPGPoint& center, double rx, double ry)
--{
-- writeStyle();
-- OpenTagGraphicsElement *pDrawEllipseElement = new OpenTagGraphicsElement("draw:ellipse");
-- m_value.str("");
-- m_value << "gr" << m_styleIndex-1;
-- pDrawEllipseElement->addAttribute("draw:style-name", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(center.x - rx) << "in";
-- pDrawEllipseElement->addAttribute("svg:x", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(center.y - ry) << "in";
-- pDrawEllipseElement->addAttribute("svg:y", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(2 * rx) << "in";
-- pDrawEllipseElement->addAttribute("svg:width", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(2 * ry) << "in";
-- pDrawEllipseElement->addAttribute("svg:height", m_value.str());
-- m_value.str("");
-- mBodyElements.push_back(static_cast<GraphicsElement *>(pDrawEllipseElement));
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:ellipse")));
--}
--
--void OdgExporter::drawPolygon(const libwpg::WPGPointArray& vertices)
--{
-- if(vertices.count() < 2)
-- return;
--
-- if(vertices.count() == 2)
-- {
-- const libwpg::WPGPoint& p1 = vertices[0];
-- const libwpg::WPGPoint& p2 = vertices[1];
--
-- writeStyle();
-- OpenTagGraphicsElement *pDrawLineElement = new OpenTagGraphicsElement("draw:line");
-- m_value.str("");
-- m_value << "gr" << m_styleIndex-1;
-- pDrawLineElement->addAttribute("draw:style-name", m_value.str());
-- m_value.str("");
-- pDrawLineElement->addAttribute("draw:text-style-name", "P1");
-- pDrawLineElement->addAttribute("draw:layer", "layout");
-- m_value << doubleToString(p1.x) << "in";
-- pDrawLineElement->addAttribute("svg:x1", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(p1.y) << "in";
-- pDrawLineElement->addAttribute("svg:y1", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(p2.x) << "in";
-- pDrawLineElement->addAttribute("svg:x2", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(p2.y) << "in";
-- pDrawLineElement->addAttribute("svg:y2", m_value.str());
-- m_value.str("");
-- mBodyElements.push_back(static_cast<GraphicsElement *>(pDrawLineElement));
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:line")));
-- }
-- else
-- {
-- // draw as path
-- libwpg::WPGPath path;
-- path.moveTo(vertices[0]);
-- for(unsigned long ii = 1; ii < vertices.count(); ii++)
-- path.lineTo(vertices[ii]);
-- path.closed = true;
-- drawPath(path);
-- }
--}
--
--void OdgExporter::drawPath(const libwpg::WPGPath& path)
--{
-- if(path.count() == 0)
-- return;
--
-- // try to find the bounding box
-- // this is simple convex hull technique, the bounding box might not be
-- // accurate but that should be enough for this purpose
-- libwpg::WPGPoint p = path.element(0).point;
-- libwpg::WPGPoint q = path.element(0).point;
-- for(unsigned k = 0; k < path.count(); k++)
-- {
-- libwpg::WPGPathElement element = path.element(k);
-- p.x = (p.x > element.point.x) ? element.point.x : p.x;
-- p.y = (p.y > element.point.y) ? element.point.y : p.y;
-- q.x = (q.x < element.point.x) ? element.point.x : q.x;
-- q.y = (q.y < element.point.y) ? element.point.y : q.y;
-- if(element.type == libwpg::WPGPathElement::CurveToElement)
-- {
-- p.x = (p.x > element.extra1.x) ? element.extra1.x : p.x;
-- p.y = (p.y > element.extra1.y) ? element.extra1.y : p.y;
-- q.x = (q.x < element.extra1.x) ? element.extra1.x : q.x;
-- q.y = (q.y < element.extra1.y) ? element.extra1.y : q.y;
-- p.x = (p.x > element.extra2.x) ? element.extra2.x : p.x;
-- p.y = (p.y > element.extra2.y) ? element.extra2.y : p.y;
-- q.x = (q.x < element.extra2.x) ? element.extra2.x : q.x;
-- q.y = (q.y < element.extra2.y) ? element.extra2.y : q.y;
-- }
-- }
-- double vw = q.x - p.x;
-- double vh = q.y - p.y;
--
-- writeStyle();
--
-- OpenTagGraphicsElement *pDrawPathElement = new OpenTagGraphicsElement("draw:path");
-- m_value.str("");
-- m_value << "gr" << m_styleIndex-1;
-- pDrawPathElement->addAttribute("draw:style-name", m_value.str());
-- m_value.str("");
-- pDrawPathElement->addAttribute("draw:text-style-name", "P1");
-- pDrawPathElement->addAttribute("draw:layer", "layout");
-- m_value << doubleToString(p.x) << "in";
-- pDrawPathElement->addAttribute("svg:x", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(p.y) << "in";
-- pDrawPathElement->addAttribute("svg:y", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(vw) << "in";
-- pDrawPathElement->addAttribute("svg:width", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(vh) << "in";
-- pDrawPathElement->addAttribute("svg:height", m_value.str());
-- m_value.str("");
-- m_value << "0 0 " << (int)(vw*2540) << " " << (int)(vh*2540);
-- pDrawPathElement->addAttribute("svg:viewBox", m_value.str());
-- m_value.str("");
--
-- for(unsigned i = 0; i < path.count(); i++)
-- {
-- libwpg::WPGPathElement element = path.element(i);
-- libwpg::WPGPoint point = element.point;
-- switch(element.type)
-- {
-- // 2540 is 2.54*1000, 2.54 in = 1 in
-- case libwpg::WPGPathElement::MoveToElement:
-- m_value << "M" << (int)((point.x-p.x)*2540) << " ";
-- m_value << (int)((point.y-p.y)*2540);
-- break;
--
-- case libwpg::WPGPathElement::LineToElement:
-- m_value << "L" << (int)((point.x-p.x)*2540) << " ";
-- m_value << (int)((point.y-p.y)*2540);
-- break;
--
-- case libwpg::WPGPathElement::CurveToElement:
-- m_value << "C" << (int)((element.extra1.x-p.x)*2540) << " ";
-- m_value << (int)((element.extra1.y-p.y)*2540) << " ";
-- m_value << (int)((element.extra2.x-p.x)*2540) << " ";
-- m_value << (int)((element.extra2.y-p.y)*2540) << " ";
-- m_value << (int)((point.x-p.x)*2540) << " ";
-- m_value << (int)((point.y-p.y)*2540);
-- break;
--
-- default:
-- break;
-- }
-- }
-- if(path.closed)
-- m_value << " Z";
-- pDrawPathElement->addAttribute("svg:d", m_value.str());
-- m_value.str("");
-- mBodyElements.push_back(static_cast<GraphicsElement *>(pDrawPathElement));
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:path")));
--}
--
--
--void OdgExporter::drawBitmap(const libwpg::WPGBitmap& bitmap)
--{
-- OpenTagGraphicsElement *pDrawFrameElement = new OpenTagGraphicsElement("draw:frame");
-- m_value.str("");
-- m_value << doubleToString(bitmap.rect.x1) << "in";
-- pDrawFrameElement->addAttribute("svg:x", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(bitmap.rect.y1) << "in";
-- pDrawFrameElement->addAttribute("svg:y", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(bitmap.rect.height()) << "in";
-- pDrawFrameElement->addAttribute("svg:height", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(bitmap.rect.width()) << "in";
-- pDrawFrameElement->addAttribute("svg:width", m_value.str());
-- mBodyElements.push_back(static_cast<GraphicsElement *>(pDrawFrameElement));
--
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new OpenTagGraphicsElement("draw:image")));
--
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new OpenTagGraphicsElement("office:binary-data")));
--
-- libwpg::WPGString base64Binary;
-- bitmap.generateBase64DIB(base64Binary);
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new CharDataGraphicsElement(base64Binary.cstr())));
--
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("office:binary-data")));
--
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:image")));
--
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:frame")));
--}
--
--void OdgExporter::drawImageObject(const libwpg::WPGBinaryData& binaryData)
--{
-- if (binaryData.mimeType.length() <= 0)
-- return;
-- OpenTagGraphicsElement *pDrawFrameElement = new OpenTagGraphicsElement("draw:frame");
-- m_value.str("");
-- m_value << doubleToString(binaryData.rect.x1) << "in";
-- pDrawFrameElement->addAttribute("svg:x", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(binaryData.rect.y1) << "in";
-- pDrawFrameElement->addAttribute("svg:y", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(binaryData.rect.height()) << "in";
-- pDrawFrameElement->addAttribute("svg:height", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(binaryData.rect.width()) << "in";
-- pDrawFrameElement->addAttribute("svg:width", m_value.str());
-- mBodyElements.push_back(static_cast<GraphicsElement *>(pDrawFrameElement));
--
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new OpenTagGraphicsElement("draw:image")));
--
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new OpenTagGraphicsElement("office:binary-data")));
--
-- libwpg::WPGString base64Binary = binaryData.getBase64Data();
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new CharDataGraphicsElement(base64Binary.cstr())));
--
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("office:binary-data")));
--
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:image")));
--
-- mBodyElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:frame")));
--}
--
--
--static std::string colorToHex(const libwpg::WPGColor& color)
--{
-- char hexdigits[] = "0123456789abcdef";
-- char buffer[] = "123456";
-- buffer[0] = hexdigits[(color.red >> 4) & 15];
-- buffer[1] = hexdigits[color.red & 15];
-- buffer[2] = hexdigits[(color.green >> 4) & 15];
-- buffer[3] = hexdigits[color.green & 15];
-- buffer[4] = hexdigits[(color.blue >> 4) & 15];
-- buffer[5] = hexdigits[color.blue & 15];
-- return std::string(buffer);
--}
--
--void OdgExporter::writeStyle()
--{
-- m_value.str("");
-- m_name.str("");
--
-- if(!m_pen.solid && (m_pen.dashArray.count() >=2 ) )
-- {
-- // ODG only supports dashes with the same length of spaces inbetween
-- // here we take the first space and assume everything else the same
-- // note that dash length is written in percentage
-- double distance = m_pen.dashArray.at(1);
-- OpenTagGraphicsElement *tmpDrawStrokeDashElement = new OpenTagGraphicsElement("draw:stroke-dash");
-- tmpDrawStrokeDashElement->addAttribute("draw:style", "rect");
-- m_value << "Dash_" << m_dashIndex++;
-- tmpDrawStrokeDashElement->addAttribute("draw:name", m_value.str());
-- m_value.str("");
-- m_value << doubleToString(distance*100) << "%";
-- tmpDrawStrokeDashElement->addAttribute("draw:distance", m_value.str());
-- m_value.str("");
-- for(unsigned i = 0; i < m_pen.dashArray.count()/2; i++)
-- {
-- m_name << "draw:dots" << i+1;
-- tmpDrawStrokeDashElement->addAttribute(m_name.str(), "1");
-- m_name.str("");
-- m_name << "draw:dots" << i+1 << "-length";
-- m_value << doubleToString(100*m_pen.dashArray.at(i*2)) << "%";
-- tmpDrawStrokeDashElement->addAttribute(m_name.str(), m_value.str());
-- m_name.str("");
-- m_value.str("");
-- }
-- mStrokeDashElements.push_back(static_cast<GraphicsElement *>(tmpDrawStrokeDashElement));
-- mStrokeDashElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:stroke-dash")));
-- }
--
-- if(m_brush.style == libwpg::WPGBrush::Gradient)
-- {
-- OpenTagGraphicsElement *tmpDrawGradientElement = new OpenTagGraphicsElement("draw:gradient");
-- tmpDrawGradientElement->addAttribute("draw:style", "linear");
-- m_value << "Gradient_" << m_gradientIndex++;
-- tmpDrawGradientElement->addAttribute("draw:name", m_value.str());
-- m_value.str("");
--
-- // ODG angle unit is 0.1 degree
-- double angle = -m_brush.gradient.angle();
-- while(angle < 0)
-- angle += 360;
-- while(angle > 360)
-- angle -= 360;
--
-- m_value << (unsigned)(angle*10);
-- tmpDrawGradientElement->addAttribute("draw:angle", m_value.str());
-- m_value.str("");
--
-- libwpg::WPGColor startColor = m_brush.gradient.stopColor(0);
-- libwpg::WPGColor stopColor = m_brush.gradient.stopColor(1);
-- m_value << "#" << colorToHex(startColor);
-- tmpDrawGradientElement->addAttribute("draw:start-color", m_value.str());
-- m_value.str("");
-- m_value << "#" << colorToHex(stopColor);
-- tmpDrawGradientElement->addAttribute("draw:end-color", m_value.str());
-- m_value.str("");
-- tmpDrawGradientElement->addAttribute("draw:start-intensity", "100%");
-- tmpDrawGradientElement->addAttribute("draw:end-intensity", "100%");
-- tmpDrawGradientElement->addAttribute("draw:border", "0%");
-- mGradientElements.push_back(static_cast<GraphicsElement *>(tmpDrawGradientElement));
-- mGradientElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("draw:gradient")));
-- }
--
-- OpenTagGraphicsElement *tmpStyleStyleElement = new OpenTagGraphicsElement("style:style");
-- m_value << "gr" << m_styleIndex;
-- tmpStyleStyleElement->addAttribute("style:name", m_value.str());
-- m_value.str("");
-- tmpStyleStyleElement->addAttribute("style:family", "graphic");
-- tmpStyleStyleElement->addAttribute("style:parent-style-name", "standard");
-- mAutomaticStylesElements.push_back(static_cast<GraphicsElement *>(tmpStyleStyleElement));
--
-- OpenTagGraphicsElement *tmpStyleGraphicPropertiesElement = new OpenTagGraphicsElement("style:graphic-properties");
--
-- if(m_pen.width > 0.0)
-- {
-- m_value << doubleToString(m_pen.width) << "in";
-- tmpStyleGraphicPropertiesElement->addAttribute("svg:stroke-width", m_value.str());
-- m_value.str("");
-- m_value << "#" << colorToHex(m_pen.foreColor);
-- tmpStyleGraphicPropertiesElement->addAttribute("svg:stroke-color", m_value.str());
-- m_value.str("");
--
-- if(!m_pen.solid)
-- {
-- tmpStyleGraphicPropertiesElement->addAttribute("draw:stroke", "dash");
-- m_value << "Dash_" << m_dashIndex-1;
-- tmpStyleGraphicPropertiesElement->addAttribute("draw:stroke-dash", m_value.str());
-- m_value.str("");
-- }
-- }
-- else
-- tmpStyleGraphicPropertiesElement->addAttribute("draw:stroke", "none");
--
-- if(m_brush.style == libwpg::WPGBrush::NoBrush)
-- tmpStyleGraphicPropertiesElement->addAttribute("draw:fill", "none");
--
-- if(m_brush.style == libwpg::WPGBrush::Solid)
-- {
-- tmpStyleGraphicPropertiesElement->addAttribute("draw:fill", "solid");
-- m_value << "#" << colorToHex(m_brush.foreColor);
-- tmpStyleGraphicPropertiesElement->addAttribute("draw:fill-color", m_value.str());
-- m_value.str("");
-- }
--
-- if(m_brush.style == libwpg::WPGBrush::Gradient)
-- {
-- tmpStyleGraphicPropertiesElement->addAttribute("draw:fill", "gradient");
-- m_value << "Gradient_" << m_gradientIndex-1;
-- tmpStyleGraphicPropertiesElement->addAttribute("draw:fill-gradient-name", m_value.str());
-- m_value.str("");
-- }
--
-- mAutomaticStylesElements.push_back(static_cast<GraphicsElement *>(tmpStyleGraphicPropertiesElement));
-- mAutomaticStylesElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("style:graphic-properties")));
--
-- mAutomaticStylesElements.push_back(static_cast<GraphicsElement *>(new CloseTagGraphicsElement("style:style")));
-- m_styleIndex++;
--}
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/OdgExporter.hxx koffice-2.3.1-libwpg02/filters/karbon/wpg/import/OdgExporter.hxx
---- koffice-2.3.1/filters/karbon/wpg/import/OdgExporter.hxx 2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/OdgExporter.hxx 1970-01-01 01:00:00.000000000 +0100
-@@ -1,116 +0,0 @@
--/* libwpg
-- * Copyright (C) 2006 Ariya Hidayat (ariya@kde.org)
-- *
-- * This library is free software; you can redistribute it and/or
-- * modify it under the terms of the GNU Library General Public
-- * License as published by the Free Software Foundation; either
-- * version 2 of the License, or (at your option) any later version.
-- *
-- * This library is distributed in the hope that it will be useful,
-- * but WITHOUT ANY WARRANTY; without even the implied warranty of
-- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-- * Library General Public License for more details.
-- *
-- * You should have received a copy of the GNU Library General Public
-- * License along with this library; if not, write to the
-- * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-- * Boston, MA 02111-1301 USA
-- *
-- * For further information visit http://libwpg.sourceforge.net
-- */
--
--/* "This product is not manufactured, approved, or supported by
-- * Corel Corporation or Corel Corporation Limited."
-- */
--
--#ifndef __ODGEXPORTER_H__
--#define __ODGEXPORTER_H__
--
--#include <iostream>
--#include <sstream>
--#include <string>
--
--#include <libwpg/libwpg.h>
--#include "GraphicsElement.hxx"
--
--class OdgExporter : public libwpg::WPGPaintInterface {
--public:
-- explicit OdgExporter(GraphicsHandler *pHandler,
-- const bool isFlatXML = false);
-- ~OdgExporter();
--
--#if LIBWPG_VERSION_MINOR<2
-- void startGraphics(double imageWidth, double imageHeight);
-- void endGraphics();
-- void startLayer(unsigned int id);
-- void endLayer(unsigned int id);
--
-- void setPen(const libwpg::WPGPen& pen);
-- void setBrush(const libwpg::WPGBrush& brush);
-- void setFillRule(FillRule rule);
--
-- void drawRectangle(const libwpg::WPGRect& rect, double rx, double ry);
-- void drawEllipse(const libwpg::WPGPoint& center, double rx, double ry);
-- void drawPolygon(const libwpg::WPGPointArray& vertices);
-- void drawPath(const libwpg::WPGPath& path);
-- void drawBitmap(const libwpg::WPGBitmap& bitmap);
-- void drawImageObject(const libwpg::WPGBinaryData& binaryData);
--
--private:
-- std::vector <GraphicsElement *> mBodyElements;
-- std::vector <GraphicsElement *> mAutomaticStylesElements;
-- std::vector <GraphicsElement *> mStrokeDashElements;
-- std::vector <GraphicsElement *> mGradientElements;
-- GraphicsHandler *mpHandler;
--
-- libwpg::WPGPen m_pen;
-- libwpg::WPGBrush m_brush;
-- FillRule m_fillRule;
-- int m_gradientIndex;
-- int m_dashIndex;
-- int m_styleIndex;
-- void writeStyle();
-- std::ostringstream m_value, m_name;
-- double m_width, m_height;
-- const bool m_isFlatXML;
--#else
-- virtual void startGraphics(const ::WPXPropertyList &propList);
-- virtual void endGraphics();
-- virtual void setStyle(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &gradient);
-- virtual void startLayer(const ::WPXPropertyList &propList);
-- virtual void endLayer();
-- virtual void drawRectangle(const ::WPXPropertyList& propList);
-- virtual void drawEllipse(const ::WPXPropertyList& propList);
-- virtual void drawPolygon(const ::WPXPropertyListVector &vertices);
-- virtual void drawPath(const ::WPXPropertyListVector &path);
-- virtual void drawGraphicObject(const ::WPXPropertyList &propList, const ::WPXBinaryData &binaryData);
-- virtual void startEmbeddedGraphics(const ::WPXPropertyList &propList);
-- virtual void endEmbeddedGraphics();
-- virtual void drawPolyline(const ::WPXPropertyListVector &vertices);
-- virtual void startTextObject(const ::WPXPropertyList &propList, const ::WPXPropertyListVector &path);
-- virtual void endTextObject();
-- virtual void startTextLine(const ::WPXPropertyList &propList);
-- virtual void endTextLine();
-- virtual void startTextSpan(const ::WPXPropertyList &propList);
-- virtual void endTextSpan();
-- virtual void insertText(const ::WPXString &str);
--
--
--private:
-- std::vector <GraphicsElement *> mBodyElements;
-- std::vector <GraphicsElement *> mAutomaticStylesElements;
-- std::vector <GraphicsElement *> mStrokeDashElements;
-- std::vector <GraphicsElement *> mGradientElements;
-- GraphicsHandler *mpHandler;
--
-- int m_gradientIndex;
-- int m_dashIndex;
-- int m_styleIndex;
-- void writeStyle();
-- std::ostringstream m_value, m_name;
-- double m_width, m_height;
-- const bool m_isFlatXML;
--#endif
--};
--
--#endif // __ODGEXPORTER_H__
-diff -Nur koffice-2.3.1/filters/karbon/wpg/import/WPGImport.cpp koffice-2.3.1-libwpg02/filters/karbon/wpg/import/WPGImport.cpp
---- koffice-2.3.1/filters/karbon/wpg/import/WPGImport.cpp 2011-01-15 21:05:35.000000000 +0100
-+++ koffice-2.3.1-libwpg02/filters/karbon/wpg/import/WPGImport.cpp 2011-01-02 17:46:15.000000000 +0100
-@@ -20,28 +20,26 @@
- #include <WPGImport.h>
- #include <WPGImport.moc>
-
--#include <QBuffer>
--#include <QByteArray>
--#include <QString>
--
--#include <kdebug.h>
- #include <KoFilterChain.h>
- #include <KoGlobal.h>
- #include <KoUnit.h>
-+#include <KoXmlWriter.h>
-+
- #include <kpluginfactory.h>
-+#include <KDebug>
-
--#include <KoXmlWriter.h>
-+
-+#include <QtCore/QString>
-+#include <QtCore/QFile>
-
- #include <libwpg/libwpg.h>
- #if LIBWPG_VERSION_MINOR<2
- #include <libwpg/WPGStreamImplementation.h>
- #else
- #include <libwpd-stream/libwpd-stream.h>
-+#include <libwpd/libwpd.h>
- #endif
-
--#include "FileOutputHandler.hxx"
--#include "OdgExporter.hxx"
--
- #include <iostream>
-
- K_PLUGIN_FACTORY(WPGImportFactory, registerPlugin<WPGImport>();)
-@@ -56,35 +54,13 @@
- {
- }
-
--static QByteArray createManifest()
--{
-- KoXmlWriter* manifestWriter;
-- QByteArray manifestData;
-- QBuffer manifestBuffer(&manifestData);
--
-- manifestBuffer.open(QIODevice::WriteOnly);
-- manifestWriter = new KoXmlWriter(&manifestBuffer);
--
-- manifestWriter->startDocument("manifest:manifest");
-- manifestWriter->startElement("manifest:manifest");
-- manifestWriter->addAttribute("xmlns:manifest", "urn:oasis:names:tc:openoffice:xmlns:manifest:1.0");
-- manifestWriter->addManifestEntry("/", "application/vnd.oasis.opendocument.graphics");
-- //manifestWriter->addManifestEntry( "styles.xml", "text/xml" );
-- manifestWriter->addManifestEntry("content.xml", "text/xml");
-- manifestWriter->endElement();
-- manifestWriter->endDocument();
-- delete manifestWriter;
--
-- return manifestData;
--}
--
-
- KoFilter::ConversionStatus WPGImport::convert(const QByteArray& from, const QByteArray& to)
- {
- if (from != "application/x-wpg")
- return KoFilter::NotImplemented;
-
-- if (to != "application/vnd.oasis.opendocument.graphics")
-+ if (to != "image/svg+xml")
- return KoFilter::NotImplemented;
-
- #if LIBWPG_VERSION_MINOR<2
-@@ -96,6 +72,7 @@
- input = olestream;
- }
- }
-+ libwpg::WPGString output;
- #else
- WPXInputStream* input = new WPXFileStream(m_chain->inputFile().toLocal8Bit());
- if (input->isOLEStream()) {
-@@ -105,59 +82,31 @@
- input = olestream;
- }
- }
-+ ::WPXString output;
- #endif
-
- if (!libwpg::WPGraphics::isSupported(input)) {
-- std::cerr << "ERROR: Unsupported file format (unsupported version) or file is encrypted!" << std::endl;
-+ kWarning() << "ERROR: Unsupported file format (unsupported version) or file is encrypted!";
- delete input;
- return KoFilter::NotImplemented;
- }
-
-- // do the conversion
-- std::ostringstream tmpStringStream;
-- FileOutputHandler tmpHandler(tmpStringStream);
-- OdgExporter exporter(&tmpHandler);
-- libwpg::WPGraphics::parse(input, &exporter);
-- delete input;
--
--
-- // create output store
-- KoStore* storeout;
-- storeout = KoStore::createStore(m_chain->outputFile(), KoStore::Write,
-- "application/vnd.oasis.opendocument.graphics", KoStore::Zip);
--
-- if (!storeout) {
-- kWarning() << "Couldn't open the requested file.";
-- return KoFilter::FileNotFound;
-- }
--
--#if 0
-- if (!storeout->open("styles.xml")) {
-- kWarning() << "Couldn't open the file 'styles.xml'.";
-- return KoFilter::CreationError;
-+ if (!libwpg::WPGraphics::generateSVG(input, output)) {
-+ kWarning() << "ERROR: SVG Generation failed!";
-+ delete input;
-+ return KoFilter::ParsingError;
- }
-- //storeout->write( createStyles() );
-- storeout->close();
--#endif
-
-- if (!storeout->open("content.xml")) {
-- kWarning() << "Couldn't open the file 'content.xml'.";
-- return KoFilter::CreationError;
-- }
-- storeout->write(tmpStringStream.str().c_str());
-- storeout->close();
-+ delete input;
-
-- // store document manifest
-- storeout->enterDirectory("META-INF");
-- if (!storeout->open("manifest.xml")) {
-- kWarning() << "Couldn't open the file 'META-INF/manifest.xml'.";
-- return KoFilter::CreationError;
-+ QFile outputFile(m_chain->outputFile());
-+ if(!outputFile.open(QIODevice::WriteOnly | QIODevice::Text)) {
-+ kWarning() << "ERROR: Could not open output file" << m_chain->outputFile();
-+ return KoFilter::InternalError;
- }
-- storeout->write(createManifest());
-- storeout->close();
-
-- // we are done!
-- delete storeout;
-+ outputFile.write(output.cstr());
-+ outputFile.close();
-
- return KoFilter::OK;
- }
-
diff --git a/staging/koffice/koffice.install b/staging/koffice/koffice.install
deleted file mode 100644
index 6c87527e2..000000000
--- a/staging/koffice/koffice.install
+++ /dev/null
@@ -1,12 +0,0 @@
-post_install() {
- xdg-icon-resource forceupdate --theme hicolor &> /dev/null
- update-desktop-database -q
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
diff --git a/staging/koffice/krita.install b/staging/koffice/krita.install
deleted file mode 100644
index 5d458de55..000000000
--- a/staging/koffice/krita.install
+++ /dev/null
@@ -1,13 +0,0 @@
-post_install() {
- xdg-icon-resource forceupdate --theme hicolor &> /dev/null
- update-mime-database usr/share/mime &> /dev/null
- update-desktop-database -q
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
diff --git a/staging/libreoffice/PKGBUILD b/staging/libreoffice/PKGBUILD
deleted file mode 100644
index 7448877fb..000000000
--- a/staging/libreoffice/PKGBUILD
+++ /dev/null
@@ -1,940 +0,0 @@
-# $Id: PKGBUILD 140047 2011-10-06 02:56:16Z andyrtr $
-# Maintainer: AndyRTR <andyrtr@archlinux.org>
-
-pkgbase="libreoffice"
-pkgname=('libreoffice-common'
- 'libreoffice-base'
- 'libreoffice-calc'
- 'libreoffice-draw'
- 'libreoffice-gnome'
- 'libreoffice-impress'
- 'libreoffice-kde4'
- 'libreoffice-math'
- 'libreoffice-sdk'
- 'libreoffice-sdk-doc'
- 'libreoffice-writer'
- 'libreoffice-en-US'
- #'libreoffice-extension-barcode' #
- 'libreoffice-extension-diagram'
- 'libreoffice-extension-google-docs'
- 'libreoffice-extension-hunart'
- #'libreoffice-extension-lightproof' # no source integration
- #'libreoffice-extension-mysql-connector' # missing libmysqlcppconn-dev configure: error: mysql_driver.h not found. install MySQL C++ Connectivity
- 'libreoffice-extension-nlpsolver'
- 'libreoffice-extension-ct2n'
- 'libreoffice-extension-numbertext'
- 'libreoffice-extension-oooblogger'
- 'libreoffice-extension-pdfimport'
- 'libreoffice-extension-presenter-screen'
- 'libreoffice-extension-presentation-minimizer'
- 'libreoffice-extension-report-builder'
- 'libreoffice-extension-scripting-beanshell'
- 'libreoffice-extension-scripting-javascript'
- 'libreoffice-extension-scripting-python'
- 'libreoffice-extension-typo'
- 'libreoffice-extension-validator'
- 'libreoffice-extension-watch-window'
- 'libreoffice-extension-wiki-publisher')
-_LOver=3.4.3.2
-pkgver=3.4.3
-pkgrel=4
-arch=('i686' 'x86_64')
-#_LO_tree="3.4"
-_OFFICEUPD="340"
-license=('LGPL3')
-url="http://www.libreoffice.org/"
-makedepends=( # makedepends
- 'sane' 'perl-archive-zip' 'zip' 'unzip' 'xulrunner' 'unixodbc' 'hsqldb-java' #'boost' - we use internal one for now that has some gcc4.6 fixes.
- 'apache-ant' 'gperf' 'poppler>=0.18.0' 'kdelibs' 'gconf' 'cppunit' #'libmysqlclient'
- 'beanshell' 'vigra' 'libldap' 'lucene' 'libmythes' 'junit' 'libwpg' 'imagemagick'
- 'mesa' 'gstreamer0.10-base' 'java-environment'
- #'saxon' - currently broken
- # the depends from libreoffice main pkg
- "curl>=7.20.0" "hunspell>=1.2.8" "python2>=2.7" 'libwpd>=0.9.2' 'libwps' 'libxaw' "neon>=0.28.6"
- 'pango' 'nspr' 'libjpeg' 'libxrandr' 'libgl' 'dbus-glib' "icu>=4.6" 'libxslt'
- 'redland' 'hyphen' 'lpsolve' 'gcc-libs' 'sh' 'libtextcat' #'libgraphite'
- 'hicolor-icon-theme' 'desktop-file-utils' 'shared-mime-info' 'gtk2' 'orbit2' # keep gtk2 for install script
- 'ttf-dejavu') # to satisfy regression tests
- # translate-toolkit - todo move them to extra to allow --with-system-foo builds
-# http://download.documentfoundation.org/mirrors/all.html
-# http://wiki.documentfoundation.org/Mirrors
-
-_mirror="http://download.documentfoundation.org/libreoffice/src/${pkgver}"
-#_mirror="http://dev-builds.libreoffice.org/pre-releases/src"
-_additional_source_url="http://hg.services.openoffice.org/binaries"
-source=(${_mirror}/${pkgbase}-{artwork,base,bootstrap,calc,components,extensions,extras,filters,help,impress,libs-core,libs-extern,libs-extern-sys,libs-gui,postprocess,sdk,testing,ure,writer}-${_LOver}.tar.bz2 #,translations
- ${_additional_source_url}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
- ${_additional_source_url}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
- ${_additional_source_url}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip
- ${_additional_source_url}/fdb27bfe2dbe2e7b57ae194d9bf36bab-SampleICC-1.3.2.tar.gz
- ${_additional_source_url}/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip
- ${_additional_source_url}/2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz
- ${_additional_source_url}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
- ${_additional_source_url}/3c219630e4302863a9a83d0efde889db-commons-logging-1.1.1-src.tar.gz
- ${_additional_source_url}/2ae988b339daec234019a7066f96733e-commons-lang-2.3-src.tar.gz
- ${_additional_source_url}/2c9b0f83ed5890af02c0df1c1776f39b-commons-httpclient-3.1-src.tar.gz
- ${_additional_source_url}/af3c3acf618de6108d65fcdc92b492e1-commons-codec-1.3-src.tar.gz
- ${_additional_source_url}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
- ${_additional_source_url}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
- ${_additional_source_url}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
- ${_additional_source_url}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
- ${_additional_source_url}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
- ${_additional_source_url}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
- ${_additional_source_url}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
- ${_additional_source_url}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
- ${_additional_source_url}/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
- ${_additional_source_url}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
- ${_additional_source_url}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
- ${_additional_source_url}/18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz
- http://download.go-oo.org/src/0ff7d225d087793c8c2c680d77aac3e7-mdds_0.5.3.tar.bz2
- http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll
- http://download.go-oo.org/extern/b4cae0700aa1c2aef7eb7f345365e6f1-translate-toolkit-1.8.1.tar.bz2
- http://download.go-oo.org/src/90401bca927835b6fbae4a707ed187c8-nlpsolver-0.9.tar.bz2
- http://download.go-oo.org/src/f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2
- http://download.go-oo.org/src/0625a7d661f899a8ce263fc8a9879108-graphite2-0.9.2.tgz
- http://download.go-oo.org/src/451ccf439a36a568653b024534669971-ConvertTextToNumber-1.3.2.oxt
- http://ooo.itc.hu/oxygenoffice/download/libreoffice/7e7efc5d4a03126bb9ae3ae9aa2c4e87-Barcode_1.3.1.0.oxt
- http://ooo.itc.hu/oxygenoffice/download/libreoffice/41c9b65ad60af4b3255bbecdfef11736-Diagram_1.1.0.0.oxt
- http://ooo.itc.hu/oxygenoffice/download/libreoffice/bbdd5639ada63e3130761daaecae1a10-Validator_1.1.0.0.oxt
- http://ooo.itc.hu/oxygenoffice/download/libreoffice/23bd75552206dfcd8fd4e29137dcac84-WatchWindow_1.2.0.0.oxt
- http://ooo.itc.hu/oxygenoffice/download/libreoffice/b8cbca7b3363e6ca2d02bc0ba2b63904-numbertext_0.9.4.oxt
- http://ooo.itc.hu/oxygenoffice/download/libreoffice/b632bdd25649cc4067bcb410bae23d2b-hunart_0.3.oxt
- http://ooo.itc.hu/oxygenoffice/download/libreoffice/9d60b6cfa3ef1926848710bbcd11115b-typo_0.4.2.oxt
- http://ooo.itc.hu/oxygenoffice/download/libreoffice/dbaafd21de055e582d92d7d32fe9da13-gdocs_2.3.1.oxt
- http://ooo.itc.hu/oxygenoffice/download/libreoffice/b7b2d0e04e142f26dd96119c80757d1f-oooblogger_0.1.oxt
- buildfix_boost.diff
- buildfix_ct2n.diff
- vbahelper.visibility.patch
- scp2-more-reasonable-file-access-rights.diff
- java-detection.diff::http://cgit.freedesktop.org/libreoffice/libs-core/patch/?id=14bc9100d36eae3999f1623efce8ee84091da842
- oracle-recognition.diff::http://cgit.freedesktop.org/libreoffice/core/patch/?id=549e54fb2f8113502743c443d6deadfe648dede1
- poppler-check.diff::http://cgit.freedesktop.org/libreoffice/bootstrap/patch/?id=72a5f87cb3f0a367f1cd6a5cc15101acc83396fe
- pdfimport.diff::http://cgit.freedesktop.org/libreoffice/extensions/patch/?id=53e66aea4c1b3617363fd138a7903190d964da6b
- poppler-buildfix.diff::http://cgit.freedesktop.org/libreoffice/extensions/patch/?id=9540db43f3f1b11d3407a45aefda235d7e78f76b
- build-without-glib-poppler-bindings.diff::http://cgit.freedesktop.org/libreoffice/extensions/patch/?id=a9cc06fa45d4cd9547f40a9869c64c912b821b42)
-noextract=(185d60944ea767075d27247c3162b3bc-unowinreg.dll
- b4cae0700aa1c2aef7eb7f345365e6f1-translate-toolkit-1.8.1.tar.bz2
- 0ff7d225d087793c8c2c680d77aac3e7-mdds_0.5.3.tar.bz2
- ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip
- 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip
- 1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
- fdb27bfe2dbe2e7b57ae194d9bf36bab-SampleICC-1.3.2.tar.gz
- 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
- 2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz
- a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
- 3c219630e4302863a9a83d0efde889db-commons-logging-1.1.1-src.tar.gz
- 2ae988b339daec234019a7066f96733e-commons-lang-2.3-src.tar.gz
- 2c9b0f83ed5890af02c0df1c1776f39b-commons-httpclient-3.1-src.tar.gz
- af3c3acf618de6108d65fcdc92b492e1-commons-codec-1.3-src.tar.gz
- eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
- 39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
- 3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
- 97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
- f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
- 8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
- d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
- 3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
- ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
- db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
- ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
- 18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz
- 7e7efc5d4a03126bb9ae3ae9aa2c4e87-Barcode_1.3.1.0.oxt
- 41c9b65ad60af4b3255bbecdfef11736-Diagram_1.1.0.0.oxt
- 451ccf439a36a568653b024534669971-ConvertTextToNumber-1.3.2.oxt
- bbdd5639ada63e3130761daaecae1a10-Validator_1.1.0.0.oxt
- 23bd75552206dfcd8fd4e29137dcac84-WatchWindow_1.2.0.0.oxt
- b8cbca7b3363e6ca2d02bc0ba2b63904-numbertext_0.9.4.oxt
- b632bdd25649cc4067bcb410bae23d2b-hunart_0.3.oxt
- 9d60b6cfa3ef1926848710bbcd11115b-typo_0.4.2.oxt
- dbaafd21de055e582d92d7d32fe9da13-gdocs_2.3.1.oxt
- b7b2d0e04e142f26dd96119c80757d1f-oooblogger_0.1.oxt
- 90401bca927835b6fbae4a707ed187c8-nlpsolver-0.9.tar.bz2
- f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2
- 0625a7d661f899a8ce263fc8a9879108-graphite2-0.9.2.tgz)
-md5sums=('7c2e73f1197d169519f86efe422e5df9'
- '823956297a7e0b7603c585c49bd9fd4e'
- '465b3be0e30f88e1139c45d2e2217927'
- 'a1d5af5be5eb522c8a24feacbb0161fa'
- '8b972e130dfe62eb41d1d71d72de4b76'
- 'a6b22494e3a65a3b242ecb896aa7ab48'
- 'b7d86f8baee5b31af210cc81785e5676'
- 'de6c062d334daab99cf0592aa3568215'
- 'df46914d540ef0126cd746d09c68ca2a'
- '8f308250c397ddc6fdb1aae13e102927'
- '1fd00a0fcfd4a5d1956c3f6a0990d1ce'
- '86914ac8bc30ea721b708b2f2faa3111'
- '1452229e57ac3c4191e798eac4c0a7e0'
- 'bb46bdb682689629d432cdbf5f3f42c2'
- 'bec7f633562762debdf810690002e688'
- '87061613efece1c253906a90cd4dc01f'
- '308284d7d1d1bd6860d128b26e24390b'
- 'fa8b36365a2b2fb110c44886d7069774'
- 'da8a40cac4bd9d4f6f326e0e3b1b7e2a'
- '1f24ab1d39f4a51faf22244c94a6203f'
- '35c94d2df8893241173de1d16b6034c0'
- '798b2ffdc8bcfe7bca2cf92b62caf685'
- 'fdb27bfe2dbe2e7b57ae194d9bf36bab'
- 'ada24d37d8d638b3d8a9985e80bc2978'
- '2a177023f9ea8ec8bd00837605c5df1b'
- 'a7983f859eafb2677d7ff386a023bc40'
- '3c219630e4302863a9a83d0efde889db'
- '2ae988b339daec234019a7066f96733e'
- '2c9b0f83ed5890af02c0df1c1776f39b'
- 'af3c3acf618de6108d65fcdc92b492e1'
- 'eeb2c7ddf0d302fba4bfc6e97eac9624'
- '39bb3fcea1514f1369fcfc87542390fd'
- '3404ab6b1792ae5f16bbd603bd1e1d03'
- '97b2d4dba862397f446b217e2b623e71'
- 'f94d9870737518e3b597f9265f4e9803'
- '8ce2fcd72becf06c41f7201d15373ed9'
- 'd8bd5eed178db6e2b18eeed243f85aa8'
- '3bdf40c0d199af31923e900d082ca2dd'
- 'ace6ab49184e329db254e454a010f56d'
- 'db60e4fde8dd6d6807523deb71ee34dc'
- 'ba2930200c9f019c2d93a8c88c651a0f'
- '18f577b374d60b3c760a3a3350407632'
- '0ff7d225d087793c8c2c680d77aac3e7'
- '185d60944ea767075d27247c3162b3bc'
- 'b4cae0700aa1c2aef7eb7f345365e6f1'
- '90401bca927835b6fbae4a707ed187c8'
- 'f02578f5218f217a9f20e9c30e119c6a'
- '0625a7d661f899a8ce263fc8a9879108'
- '451ccf439a36a568653b024534669971'
- '7e7efc5d4a03126bb9ae3ae9aa2c4e87'
- '41c9b65ad60af4b3255bbecdfef11736'
- 'bbdd5639ada63e3130761daaecae1a10'
- '23bd75552206dfcd8fd4e29137dcac84'
- 'b8cbca7b3363e6ca2d02bc0ba2b63904'
- 'b632bdd25649cc4067bcb410bae23d2b'
- '9d60b6cfa3ef1926848710bbcd11115b'
- 'dbaafd21de055e582d92d7d32fe9da13'
- 'b7b2d0e04e142f26dd96119c80757d1f'
- 'bc228237108cab7745897a9f466b6d39'
- 'eee273f501ff45dc5f1365e78c6d57c0'
- '43b145db28e6c0d73578ae6fd35e510d'
- '37638431e7e40baf2e47966ebb9bc0e9'
- 'ca6032e86229ae798f3744ae244f5bfe'
- '3c6c62e77c30649a3dfe73512947cc9a'
- '64497be966802e62ffe3282d3facf7b7'
- '89ff871e77e10357a976fe9d1ab3a65a'
- 'c4cb0d7f2602396a3f4cac55b8a4e308'
- 'b8f1fb7f3902d22aeaa2575c6b08a62c')
-
-build() {
-
- unset J2REDIR; unset J2SDKDIR; unset JAVA_HOME; unset CLASSPATH; unset EXTRAOPTS
- [ -z "${JAVA_HOME}" ] && . /etc/profile.d/openjdk6.sh || . /etc/profile.d/jdk7-openjdk.sh
- [ -z "${MOZ_PLUGIN_PATH}" ] && . /etc/profile.d/mozilla-common.sh
- [ -z "${ANT_HOME}" ] && . /etc/profile.d/apache-ant.sh
-
- # move all LibO sources into one build directory
- mkdir ${srcdir}/build && cd ${srcdir}/build
- for i in libreoffice-{artwork,base,bootstrap,calc,components,extensions,extras,filters,help,impress,libs-core,libs-extern,libs-extern-sys,libs-gui,postprocess,sdk,testing,ure,writer}-${_LOver}; do #,translations
- mv ${srcdir}/$i/* .
- done
-# mv ${srcdir}/libreoffice-bootstrap-${_LOver}/* .
-# ./bin/unpack-sources ${srcdir}/build
-
- # move external sources into place
- mkdir ${srcdir}/ext_sources && cd ${srcdir}/ext_sources
- for source in "${noextract[@]}"; do
- ln -s ${srcdir}/$source .
- done
-
- cd ${srcdir}/build
-
- # buildfixes & bugfixes
- patch -Np1 -i ${srcdir}/buildfix_boost.diff
- patch -Np1 -i ${srcdir}/buildfix_ct2n.diff
- patch -Np0 -i ${srcdir}/vbahelper.visibility.patch
- patch -Np0 -i ${srcdir}/scp2-more-reasonable-file-access-rights.diff
- patch -Np1 -i ${srcdir}/java-detection.diff
- patch -Np1 -i ${srcdir}/oracle-recognition.diff
- patch -Np1 -i ${srcdir}/poppler-check.diff
- patch -Np1 -i ${srcdir}/pdfimport.diff
- patch -Np1 -i ${srcdir}/poppler-buildfix.diff
- patch -Np1 -i ${srcdir}/build-without-glib-poppler-bindings.diff
-
- # unset C(XX)FLAGS
- # http://www.openoffice.org/issues/show_bug.cgi?id=103205
-# unset CFLAGS
-# unset CXXFLAGS
-
- #use the CFLAGS but remove the LibO overridden ones
- for i in $CFLAGS; do
- case "$i" in
- -O?|-pipe|-Wall|-g|-fexceptions) continue;;
- esac
- ARCH_FLAGS="$ARCH_FLAGS $i"
- done
-
- # python2 fix
- export PYTHON=python2
-
- # http://wiki.documentfoundation.org/Development/How_to_build/Configure_options
-
-# if [ "$CARCH" = "x86_64" ]; then
-# EXTRAOPTS="--without-stlport"
-# else
-# EXTRAOPTS="--with-stlport" # --without-system-boost"
-# # # avoid problems with ixion for now
-# sed -i '/fields-table-formula.diff/d' patches/dev300/apply || return 1
-# fi
-
- # needed for 0003-distro-install-fix-en-US-only-installation.patch
- autoconf -v -f
-
- # non-SMP test build
-# export MAKEFLAGS="-j1"
- ./configure --with-build-version="${_LOver} ArchLinux build-${pkgrel}" --with-vendor="ArchLinux" \
- --with-unix-wrapper="libreoffice" \
- --enable-split-app-modules \
- --with-max-jobs=${MAKEFLAGS/-j/} --with-num-cpus=${MAKEFLAGS/-j/} \
- --with-external-tar="${srcdir}/ext_sources" \
- --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc \
- --with-install-dirname="${pkgbase}" --libdir=/usr/lib --mandir=/usr/share/man \
- --disable-verbose \
- --with-lang="" \
- --enable-cairo\
- --enable-crashdump \
- --enable-dbus \
- --enable-evolution2\
- --enable-graphite --without-system-graphite \
- --enable-gio\
- --disable-gnome-vfs\
- --disable-kde\
- --enable-kde4\
- --enable-ldap \
- --enable-lockdown\
- --enable-opengl \
- --enable-odk\
- --enable-opengl\
- --enable-ext-barcode \
- --enable-ext-diagram \
- --enable-ext-google-docs \
- --enable-ext-hunart \
- --disable-ext-lightproof \
- --disable-ext-mysql-connector \
- --with-system-mysql \
- --enable-ext-nlpsolver \
- --enable-ext-ct2n \
- --enable-ext-numbertext \
- --enable-ext-oooblogger \
- --enable-ext-pdfimport \
- --enable-ext-presenter-console \
- --enable-ext-presenter-minimizer \
- --enable-ext-report-builder \
- --enable-ext-scripting-beanshell \
- --enable-ext-scripting-javascript \
- --enable-ext-scripting-python \
- --enable-ext-typo \
- --enable-ext-validator \
- --enable-ext-watch-window \
- --enable-ext-wiki-publisher \
- --without-fonts\
- --without-afms\
- --without-ppds\
- --without-system-libwps\
- --without-system-mdds\
- --without-myspell-dicts \
- --with-system-dicts \
- --with-external-dict-dir=/usr/share/hunspell \
- --with-external-hyph-dir=/usr/share/hyphen \
- --with-external-thes-dir=/usr/share/mythes \
- --with-system-cppunit\
- --with-system-libwpg \
- --with-system-libwps \
- --with-system-redland\
- --without-system-saxon\
- --with-system-libtextcat \
- --with-external-libtextcat-data \
- --with-openldap\
- --with-ant-home="/usr/share/java/apache-ant"\
- --without-system-boost\
- --with-system-cairo\
- --with-system-libs\
- --with-system-mozilla\
- --with-system-mythes\
- --with-system-xrender-headers\
- --with-system-headers\
- --with-alloc=system\
- --with-system-lucene\
- --with-lucene-core-jar=/usr/share/java/lucene-core.jar\
- --with-lucene-analyzers-jar=/usr/share/java/lucene-analyzers.jar\
- --with-java-target-version=1.5 \
- $EXTRAOPTS || return 1
-
-#--enable-split-opt-features Split file lists for some optional features, .e.g. pyuno, testtool
-
-#--with-servlet-api-jar=JARFILE
-# see http://qa.openoffice.org/issues/show_bug.cgi?id=110136
-# --with-system-saxon\
-# --with-saxon-jar=/usr/share/java/saxon/saxon9he.jar\
-
- touch src.downloaded
- #./download
- unset MAKEFLAGS
- ./bootstrap
- make
-
- # fake installation to create split file lists
- mkdir $srcdir/fakeinstall
- make DESTDIR=${srcdir}/fakeinstall distro-pack-install
-}
-
-#check() {
-# cd ${srcdir}/build
-# make check
-#}
-
-package_libreoffice-common() {
-
- pkgdesc="common files for LibreOffice - a productivity suite that is compatible with other major office suites"
- install=${pkgbase}.install
- depends=('libreoffice-langpack' "curl>=7.20.0" "hunspell>=1.2.8" "python2>=2.7" 'libxaw' "neon>=0.28.6"
- 'pango' 'nspr' 'libjpeg' 'libxrandr' 'libgl' 'libxslt' "icu>=4.6"
- 'redland' 'hyphen' 'gcc-libs' 'sh' 'libtextcat' #'libgraphite'
- 'hicolor-icon-theme' 'desktop-file-utils' 'shared-mime-info' 'gtk2' 'orbit2') # keep gtk2 for install script
- #'java-runtime'
- #'saxon'
- optdepends=('libreoffice-langpack: additional language support'
- 'java-runtime: adds java support'
- 'libcups: adds printing support'
- 'gconf: adds additional gnome support'
- 'nss: adds support for signed files/macros'
- 'pstoedit: translates PostScript and PDF graphics into other vector formats'
- 'poppler: for shipped pdfimport extension'
- 'libmythes: for use in thesaurus'
- 'hsqldb-java: default database format for OpenOffice.org'
- 'beanshell: interactive java -- good for prototyping /macros'
- 'vigra: C++ computer vision library, usable in Basebmp'
- 'libmspack: library for Microsoft compression formats for use in FontOOo'
- 'libwpg: library for importing and converting Corel WordPerfect(tm) Graphics images'
- 'libldap: to get profiles via ldap'
- 'lucene: full-text search engine library for Java needed in the help section'
- 'sane: for scanner access'
- 'unixodbc: adds ODBC database support'
- 'gstreamer0.10-base: + some gstr-plugins to support multimedia content, e.g. in impress')
- backup=(etc/libreoffice/sofficerc
- etc/libreoffice/bootstraprc
- etc/libreoffice/psprint.conf)
- groups=('libreoffice')
- provides=('go-openoffice')
- conflicts=('go-openoffice')
- replaces=('go-openoffice' 'openoffice-base' 'libreoffice')
-
- # create directories from *list.txt file
- for directory in `grep ^%dir ${srcdir}/build/file-lists/common_list.txt`; do
- install -dm755 ${pkgdir}/${directory/\%dir/}
- done
- # install files into the pkg from fakeinstall dir
- for file in `grep -v ^%dir $srcdir/build/file-lists/common_list.txt`; do
- dirname=`dirname $file`
- # check if directory has been already been created - some are missing like manpages
- [ -d ${pkgdir}/$dirname ] || install -dm755 ${pkgdir}/$dirname
- # mv file from fakeinstall to pkgdir
- mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
- done
-
- # # remove version in menu entry and make it visible
-# sed -i -e "/NoDisplay=true/d" ${pkgdir}/usr/share/applications/libreoffice-qstart.desktop
-# echo "Icon=startcenter" >> ${pkgdir}/usr/share/applications/libreoffice-qstart.desktop
-
- # put configuration files into place
- install -dm755 ${pkgdir}/etc/libreoffice
- install -m644 ${pkgdir}/usr/lib/libreoffice/program/{bootstraprc,sofficerc} ${pkgdir}/etc/libreoffice/
- install -m644 ${pkgdir}/usr/lib/libreoffice/basis3.4/share/psprint/psprint.conf ${pkgdir}/etc/libreoffice/
- # install dummy links to make them found by LibO
- cd ${pkgdir}/usr/lib/libreoffice/program/
- ln -vsf /etc/libreoffice/{bootstraprc,sofficerc} .
- cd ${pkgdir}/usr/lib/libreoffice/basis3.4/share/psprint/
- ln -vsf /etc/libreoffice/psprint.conf .
-
- #fix http://bugs.archlinux.org/task/17656
- find ${pkgdir} -perm 444 -exec ls -lh {} \;
- find ${pkgdir} -perm 444 -exec chmod 644 {} \;
- find ${pkgdir} -perm 555 -exec ls -lh {} \;
- find ${pkgdir} -perm 555 -exec chmod 755 {} \;
-}
-
-package_libreoffice-base() {
- pkgdesc="GUI Spreadsheet Applicationdatabase front-end for LibreOffice. Allows creation and management of databases through a GUI."
- depends=('libreoffice-common')
- optdepends=()
- backup=()
- groups=('libreoffice')
- replaces=('libreoffice')
-
- # create directories from *list.txt file
- for directory in `grep ^%dir ${srcdir}/build/file-lists/base_list.txt`; do
- install -dm755 ${pkgdir}/${directory/\%dir/}
- done
- # install files into the pkg from fakeinstall dir
- for file in `grep -v ^%dir $srcdir/build/file-lists/base_list.txt`; do
- dirname=`dirname $file`
- # check if directory has been already been created - some are missing like manpages
- [ -d ${pkgdir}/$dirname ] || install -dm755 ${pkgdir}/$dirname
- # mv file from fakeinstall to pkgdir
- mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
- done
-}
-
-package_libreoffice-calc() {
- pkgdesc="Spreadsheet application for LibreOffice."
- depends=('libreoffice-common' 'lpsolve' )
- optdepends=()
- backup=()
- groups=('libreoffice')
- replaces=('libreoffice')
-
- # create directories from *list.txt file
- for directory in `grep ^%dir ${srcdir}/build/file-lists/calc_list.txt`; do
- install -dm755 ${pkgdir}/${directory/\%dir/}
- done
- # install files into the pkg from fakeinstall dir
- for file in `grep -v ^%dir $srcdir/build/file-lists/calc_list.txt`; do
- dirname=`dirname $file`
- # check if directory has been already been created - some are missing like manpages
- [ -d ${pkgdir}/$dirname ] || install -dm755 ${pkgdir}/$dirname
- # mv file from fakeinstall to pkgdir
- mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
- done
-}
-
-package_libreoffice-draw() {
- pkgdesc="Drawing Application for LibreOffice."
- depends=('libreoffice-common')
- optdepends=()
- backup=()
- groups=('libreoffice')
- replaces=('libreoffice')
-
- # create directories from *list.txt file
- for directory in `grep ^%dir ${srcdir}/build/file-lists/draw_list.txt`; do
- install -dm755 ${pkgdir}/${directory/\%dir/}
- done
- # install files into the pkg from fakeinstall dir
- for file in `grep -v ^%dir $srcdir/build/file-lists/draw_list.txt`; do
- dirname=`dirname $file`
- # check if directory has been already been created - some are missing like manpages
- [ -d ${pkgdir}/$dirname ] || install -dm755 ${pkgdir}/$dirname
- # mv file from fakeinstall to pkgdir
- mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
- done
-}
-
-package_libreoffice-gnome() {
- pkgdesc="Plug-in for LibreOffice that enables integration into the Gnome and other gtk desktop environment."
- depends=('libreoffice-common' 'dbus-glib')
- optdepends=()
- backup=()
- groups=('libreoffice')
-
- # create directories from *list.txt file
- for directory in `grep ^%dir ${srcdir}/build/file-lists/gnome_list.txt`; do
- install -dm755 ${pkgdir}/${directory/\%dir/}
- done
- # install files into the pkg from fakeinstall dir
- for file in `grep -v ^%dir $srcdir/build/file-lists/gnome_list.txt`; do
- dirname=`dirname $file`
- # check if directory has been already been created - some are missing like manpages
- [ -d ${pkgdir}/$dirname ] || install -dm755 ${pkgdir}/$dirname
- # mv file from fakeinstall to pkgdir
- mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
- done
-}
-
-package_libreoffice-impress() {
- pkgdesc="Presentation Application for LibreOffice."
- depends=('libreoffice-common')
- optdepends=('mesa: for the OGLTrans extension')
- backup=()
- groups=('libreoffice')
- replaces=('libreoffice')
-
- # create directories from *list.txt file
- for directory in `grep ^%dir ${srcdir}/build/file-lists/impress_list.txt`; do
- install -dm755 ${pkgdir}/${directory/\%dir/}
- done
- # install files into the pkg from fakeinstall dir
- for file in `grep -v ^%dir $srcdir/build/file-lists/impress_list.txt`; do
- dirname=`dirname $file`
- # check if directory has been already been created - some are missing like manpages
- [ -d ${pkgdir}/$dirname ] || install -dm755 ${pkgdir}/$dirname
- # mv file from fakeinstall to pkgdir
- mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
- done
-}
-
-package_libreoffice-kde4() {
- pkgdesc="Plug-in for LibreOffice that enables integration into the KDE4 desktop environment."
- depends=('libreoffice-common' 'kdelibs')
- optdepends=()
- backup=()
- groups=('libreoffice')
-
- # create directories from *list.txt file
- for directory in `grep ^%dir ${srcdir}/build/file-lists/kde4_list.txt`; do
- install -dm755 ${pkgdir}/${directory/\%dir/}
- done
- # install files into the pkg from fakeinstall dir
- for file in `grep -v ^%dir $srcdir/build/file-lists/kde4_list.txt`; do
- dirname=`dirname $file`
- # check if directory has been already been created - some are missing like manpages
- [ -d ${pkgdir}/$dirname ] || install -dm755 ${pkgdir}/$dirname
- # mv file from fakeinstall to pkgdir
- mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
- done
-}
-
-package_libreoffice-math() {
- pkgdesc="Equation Editor Applicationfor LibreOffice."
- depends=('libreoffice-common')
- optdepends=()
- backup=()
- groups=('libreoffice')
- replaces=('libreoffice')
-
- # create directories from *list.txt file
- for directory in `grep ^%dir ${srcdir}/build/file-lists/math_list.txt`; do
- install -dm755 ${pkgdir}/${directory/\%dir/}
- done
- # install files into the pkg from fakeinstall dir
- for file in `grep -v ^%dir $srcdir/build/file-lists/math_list.txt`; do
- dirname=`dirname $file`
- # check if directory has been already been created - some are missing like manpages
- [ -d ${pkgdir}/$dirname ] || install -dm755 ${pkgdir}/$dirname
- # mv file from fakeinstall to pkgdir
- mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
- done
-}
-
-package_libreoffice-sdk() {
- pkgdesc="Software Development Kit for LibreOffice."
- depends=('libreoffice-common' 'gcc-libs' 'sh' 'make' 'zip' 'gcc' 'java-environment')
- optdepends=()
- backup=()
- groups=('libreoffice')
-
- # create directories from *list.txt file
- for directory in `grep ^%dir ${srcdir}/build/file-lists/sdk_list.txt`; do
- install -dm755 ${pkgdir}/${directory/\%dir/}
- done
- # install files into the pkg from fakeinstall dir
- for file in `grep -v ^%dir $srcdir/build/file-lists/sdk_list.txt`; do
- dirname=`dirname $file`
- # check if directory has been already been created - some are missing like manpages
- [ -d ${pkgdir}/$dirname ] || install -dm755 ${pkgdir}/$dirname
- # mv file from fakeinstall to pkgdir
- mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
- done
-
- # fix ArchLinux LibreOffice installation paths
- sed -i -e "s,@OO_SDK_NAME@,libreoffice-sdk," \
- -e "s,@OO_SDK_HOME@,/usr/lib/libreoffice/basis3.4/sdk," \
- -e "s,@OFFICE_HOME@,/usr/lib/libreoffice," \
- -e "s,@OFFICE_BASE_HOME@,/usr/lib/libreoffice/basis3.4," \
- -e "s,@OO_SDK_URE_HOME@,/usr/lib/libreoffice/ure," \
- -e "s,@OO_SDK_MAKE_HOME@,/usr/bin," \
- -e "s,@OO_SDK_ZIP_HOME@,/usr/bin," \
- -e "s,@OO_SDK_CPP_HOME@,/usr/bin," \
- -e "s,@OO_SDK_CC_55_OR_HIGHER@,," \
- -e "s,@OO_SDK_JAVA_HOME@,\$J2SDKDIR," \
- -e "s,@OO_SDK_OUTPUT_DIR@,\$HOME," \
- -e "s,@SDK_AUTO_DEPLOYMENT@,NO," ${pkgdir}/usr/lib/libreoffice/basis3.4/sdk/setsdkenv_unix.{csh,sh}.in
-}
-
-package_libreoffice-sdk-doc() {
- pkgdesc="Software Development Kit documentation for LibreOffice"
- depends=('libreoffice-common' 'libreoffice-sdk')
- optdepends=()
- backup=()
- groups=('libreoffice')
-
- # create directories from *list.txt file
- for directory in `grep ^%dir ${srcdir}/build/file-lists/sdk_doc_list.txt`; do
- install -dm755 ${pkgdir}/${directory/\%dir/}
- done
- # install files into the pkg from fakeinstall dir
- for file in `grep -v ^%dir $srcdir/build/file-lists/sdk_doc_list.txt`; do
- dirname=`dirname $file`
- # check if directory has been already been created - some are missing like manpages
- [ -d ${pkgdir}/$dirname ] || install -dm755 ${pkgdir}/$dirname
- # mv file from fakeinstall to pkgdir
- mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
- done
-
- #fix permissions
- find ${pkgdir}/usr/lib/libreoffice/basis3.4/sdk/examples -type f -exec chmod -x {} \;
-}
-
-package_libreoffice-writer() {
- pkgdesc="Word Processor Applicationfor LibreOffice."
- depends=('libreoffice-common' 'libwpd>=0.9.2' 'libwps' 'libxml2')
- optdepends=('libwpg: library for importing and converting Corel WordPerfect(tm) Graphics images')
- backup=()
- groups=('libreoffice')
- replaces=('libreoffice')
-
- # create directories from *list.txt file
- for directory in `grep ^%dir ${srcdir}/build/file-lists/writer_list.txt`; do
- install -dm755 ${pkgdir}/${directory/\%dir/}
- done
- # install files into the pkg from fakeinstall dir
- for file in `grep -v ^%dir $srcdir/build/file-lists/writer_list.txt`; do
- dirname=`dirname $file`
- # check if directory has been already been created - some are missing like manpages
- [ -d ${pkgdir}/$dirname ] || install -dm755 ${pkgdir}/$dirname
- # mv file from fakeinstall to pkgdir
- mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
- done
-}
-
-package_libreoffice-en-US() {
- pkgdesc="English (US) language pack for LibreOffice"
- #arch=('any')
- provides=('openoffice-en-US' 'libreoffice-langpack')
- replaces=(openoffice-en-US)
- conflicts=(openoffice-en-US)
-
- # create directories from *list.txt file
- for directory in `grep ^%dir ${srcdir}/build/file-lists/lang_en_US_list.txt`; do
- install -dm755 ${pkgdir}/${directory/\%dir/}
- done
- # install files into the pkg from fakeinstall dir
- for file in `grep -v ^%dir $srcdir/build/file-lists/lang_en_US_list.txt`; do
- dirname=`dirname $file`
- # check if directory has been already been created - some are missing like manpages
- [ -d ${pkgdir}/$dirname ] || install -dm755 ${pkgdir}/$dirname
- # mv file from fakeinstall to pkgdir
- mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
- done
-}
-
-package_libreoffice-extension-barcode() {
-
- pkgdesc="This extension generates UPC-A, EAN-13, ISBN and JAN barcodes in Draw "
- #arch=('any')
- depends=('libreoffice-common')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/7e7efc5d4a03126bb9ae3ae9aa2c4e87-Barcode_1.3.1.0.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/Barcode
- chmod o-w -R ${pkgdir}/usr/lib/libreoffice/share/extensions/Barcode
-}
-
-package_libreoffice-extension-diagram() {
-
- pkgdesc="An OOo Draw and Impress extension that creates your favorite diagrams with a few clicks"
- #arch=('any')
- depends=('libreoffice-common' 'java-environment')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/41c9b65ad60af4b3255bbecdfef11736-Diagram_1.1.0.0.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/diagram
-}
-
-package_libreoffice-extension-google-docs() {
-
- pkgdesc="Google Documents extension for LibreOffice"
- #arch=('any')
- depends=('libreoffice-common' 'java-environment')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/dbaafd21de055e582d92d7d32fe9da13-gdocs_2.3.1.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/google-docs
-}
-
-package_libreoffice-extension-hunart() {
-
- pkgdesc="Hungarian cross-reference toolbar extension"
- #arch=('any')
- depends=('libreoffice-common')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/b632bdd25649cc4067bcb410bae23d2b-hunart_0.3.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/hunart
-}
-
-#package_libreoffice-extension-lightproof() {
-
-# pkgdesc="Lightproof extension for LibreOffice"
- #arch=('any')
-# depends=('libreoffice-common')
-# groups=('libreoffice-extensions')
-
-# install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
-# unzip -q ${srcdir}/${pkgbase}-build-${_LOver}/build/libreoffice-${_LOver}/solver/${_OFFICEUPD}/unxlng*/bin/Lightproof.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/lightproof
-#}
-
-#package_libreoffice-extension-mysql-connector() {
-
-# pkgdesc="MySQL Connector extension for LibreOffice"
- #arch=('any')
-# depends=('libreoffice-common')
-# groups=('libreoffice-extensions')
-
-# install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
-# unzip -q ${srcdir}/${pkgbase}-build-${_LOver}/build/libreoffice-${_LOver}/solver/${_OFFICEUPD}/unxlng*/bin/Mysql-connector.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/mysql-connector
-#}
-
-package_libreoffice-extension-nlpsolver() {
-
- pkgdesc="This extension integrates into Calc and offers new Solver engines to use for optimizing nonlinear programming models"
- #arch=('any')
- depends=('libreoffice-common' 'java-environment')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/build/solver/${_OFFICEUPD}/unxlng*/bin/NLPSolver.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/nlpsolver
-}
-
-package_libreoffice-extension-ct2n() {
-
- pkgdesc="This extension enables you to convert text-cells in Calc with numbers and dates, to real numbers and dates."
- #arch=('any')
- depends=('libreoffice-common')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/build/solver/${_OFFICEUPD}/unxlng*/bin/ConvertTextToNumber.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/ct2n
-}
-
-package_libreoffice-extension-numbertext() {
-
- pkgdesc="NUMBERTEXT/MONEYTEXT extensions"
- #arch=('any')
- depends=('libreoffice-common')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/b8cbca7b3363e6ca2d02bc0ba2b63904-numbertext_0.9.4.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/numbertext
-}
-
-package_libreoffice-extension-oooblogger() {
-
- pkgdesc="An extensions for blogging"
- #arch=('any')
- depends=('libreoffice-common' 'coreutils' 'python')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/b7b2d0e04e142f26dd96119c80757d1f-oooblogger_0.1.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/oooblogger
-}
-
-package_libreoffice-extension-pdfimport() {
-
- pkgdesc="This extension allows you to import and modify PDF documents"
- depends=('libreoffice-common' 'poppler')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/build/solver/${_OFFICEUPD}/unxlng*/bin/pdfimport/pdfimport.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/pdfimport
-}
-
-package_libreoffice-extension-presenter-screen() {
-
- pkgdesc="This extension provides more control over your slide show presentation, such as the ability to see the upcoming slide, the slide notes, and a presentation timer whereas the audience see only the current slide"
- depends=('libreoffice-common' 'java-environment')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/build/solver/${_OFFICEUPD}/unxlng*/bin/presenter-screen.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/presenter-screen
-}
-
-package_libreoffice-extension-presentation-minimizer() {
-
- pkgdesc="This extension reduce the file size of the current presentation"
- depends=('libreoffice-common' 'gcc-libs')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/build/solver/${_OFFICEUPD}/unxlng*/bin/presentation-minimizer.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/presentation-minimizer
-}
-
-package_libreoffice-extension-report-builder() {
-
- pkgdesc="This extension creates smart-looking database reports"
- #arch=('any')
- depends=('libreoffice-common' 'java-environment')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/build/solver/${_OFFICEUPD}/unxlng*/bin/report-builder.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/report-builder
-}
-
-package_libreoffice-extension-scripting-beanshell() {
-
- pkgdesc="LibreOffice extension - Enables support for scripts in BeanShell"
- depends=('libreoffice-common' 'java-environment')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/build/solver/${_OFFICEUPD}/unxlng*/bin/script-provider-for-beanshell.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/script-provider-for-beanshell
-}
-
-package_libreoffice-extension-scripting-javascript() {
-
- pkgdesc="LibreOffice extension - Enables support for scripts in JavaScript"
- depends=('libreoffice-common' 'java-environment')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/build/solver/${_OFFICEUPD}/unxlng*/bin/script-provider-for-javascript.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/script-provider-for-javascript
-}
-
-package_libreoffice-extension-scripting-python() {
-
- pkgdesc="LibreOffice extension - Enables support for scripts in Python"
- depends=('libreoffice-common' 'python')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/build/solver/${_OFFICEUPD}/unxlng*/bin/script-provider-for-python.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/script-provider-for-python
-}
-
-package_libreoffice-extension-typo() {
-
- pkgdesc="Typography toolbar extension"
- #arch=('any')
- depends=('libreoffice-common')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/9d60b6cfa3ef1926848710bbcd11115b-typo_0.4.2.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/typo
- find ${pkgdir} -type d -exec chmod 755 {} \;
- #chmod o+r -R ${pkgdir}/usr/lib/libreoffice/share/extensions/typo
-}
-
-package_libreoffice-extension-validator() {
-
- pkgdesc="Validator extension for LibreOffice"
- #arch=('any')
- depends=('libreoffice-common' 'java-environment')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/bbdd5639ada63e3130761daaecae1a10-Validator_1.1.0.0.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/validator
-}
-
-package_libreoffice-extension-wiki-publisher() {
-
- pkgdesc="This extension enables you to create Wiki articles on MediaWiki servers without having to know the syntax of the MediaWiki markup language"
- #arch=('any')
- depends=('libreoffice-common' 'java-environment')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/build/solver/${_OFFICEUPD}/unxlng*/bin/wiki-publisher.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/wiki-publisher
-}
-
-package_libreoffice-extension-watch-window() {
-
- pkgdesc="A OOo Calc extension to add a Watch Window, which keeps the value of the monitored cell on the screen."
- #arch=('any')
- depends=('libreoffice-common' 'java-environment')
- groups=('libreoffice-extensions')
-
- install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/23bd75552206dfcd8fd4e29137dcac84-WatchWindow_1.2.0.0.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/watch-window
-}
diff --git a/staging/libreoffice/buildfix_boost.diff b/staging/libreoffice/buildfix_boost.diff
deleted file mode 100644
index d8608d0d4..000000000
--- a/staging/libreoffice/buildfix_boost.diff
+++ /dev/null
@@ -1,40 +0,0 @@
-From bae4fdbd105142cd3f317445eddc826da529a732 Mon Sep 17 00:00:00 2001
-From: Caolán McNamara <caolanm@redhat.com>
-Date: Tue, 05 Apr 2011 14:07:02 +0000
-Subject: silence some more of that annoying gcc#47679
-
----
-diff --git a/boost/boost.gcc47679.patch b/boost/boost.gcc47679.patch
-index 1c804aa..9b33a5f 100644
---- a/boost/boost.gcc47679.patch
-+++ b/boost/boost.gcc47679.patch
-@@ -36,3 +36,26 @@
- template <int MaxDigits>
- inline bool allow_more_digits(std::size_t i)
- {
-+--- misc/boost_1_44_0/boost/optional/optional.hpp 2011-04-05 13:19:01.223587256 +0100
-++++ misc/build/boost_1_44_0/boost/optional/optional.hpp 2011-04-05 13:19:01.223587256 +0100
-+@@ -31,6 +31,8 @@
-+
-+ #include "boost/optional/optional_fwd.hpp"
-+
-++#include <string.h>
-++
-+ #if BOOST_WORKAROUND(BOOST_MSVC, == 1200)
-+ // VC6.0 has the following bug:
-+ // When a templated assignment operator exist, an implicit conversion
-+@@ -114,6 +116,11 @@
-+
-+ public:
-+
-++ aligned_storage()
-++ {
-++ memset(&dummy_, 0, sizeof(dummy_));
-++ }
-++
-+ void const* address() const { return &dummy_.data[0]; }
-+ void * address() { return &dummy_.data[0]; }
-+ } ;
---
-cgit v0.8.3-6-g21f6
-
diff --git a/staging/libreoffice/buildfix_ct2n.diff b/staging/libreoffice/buildfix_ct2n.diff
deleted file mode 100644
index 979587f79..000000000
--- a/staging/libreoffice/buildfix_ct2n.diff
+++ /dev/null
@@ -1,17 +0,0 @@
-From 90de903b28cb1884042be0eae3f8a55458c5bc29 Mon Sep 17 00:00:00 2001
-From: Caolán McNamara <caolanm@redhat.com>
-Date: Tue, 12 Apr 2011 19:35:51 +0000
-Subject: duplicate NULLs
-
----
-diff --git a/ct2n/prj/build.lst b/ct2n/prj/build.lst
-index 91f44b7..714d926 100644
---- a/ct2n/prj/build.lst
-+++ b/ct2n/prj/build.lst
-@@ -1,3 +1,3 @@
--ct2n ct2n : solenv NULL NULL
-+ct2n ct2n : solenv NULL
- ct2n ct2n usr1 - all ct2n_mkout NULL
- ct2n ct2n nmake - all ct2n_ct2n NULL
---
-cgit v0.8.3-6-g21f6
diff --git a/staging/libreoffice/libreoffice.install b/staging/libreoffice/libreoffice.install
deleted file mode 100644
index 809472f89..000000000
--- a/staging/libreoffice/libreoffice.install
+++ /dev/null
@@ -1,47 +0,0 @@
-post_install() {
-
-gtk-update-icon-cache -f -q /usr/share/icons/hicolor
-update-desktop-database -q
-update-mime-database usr/share/mime > /dev/null 2>&1
-
-echo " * see https://wiki.archlinux.org/index.php/LibreOffice"
-echo "-------------------------------------------------------------------"
-echo "LibreOffice has been split into several packages:"
-echo "- libreoffice-common"
-echo "- libreoffice-{base,calc,draw,impress,math,writer} - frontend applications"
-echo "- libreoffice-{gnome,kde4} - desktop integration plugins"
-echo "- libreoffice-{sdk,sdk-doc} - add-on and doc for programming using"
-echo " the LibreOffice APIs and for creating"
-echo " extensions (UNO components)."
-echo "-------------------------------------------------------------------"
-echo " * you need to install at least one libreoffice-langpack"
-echo " * you may want to pacman -Ss libreoffice-extensions"
-echo " to see what additional extensions are prepared to install"
-echo " * it's recommended to install {hunspell,mythes,hyphen}-xx pkg
- for spell checking"
-echo " * make sure you have installed some ttf font (ttf-dejavu recommended)"
-}
-
-post_upgrade() {
-# post_install $1
-gtk-update-icon-cache -f -q /usr/share/icons/hicolor
-update-desktop-database -q
-update-mime-database usr/share/mime > /dev/null 2>&1
- if [ "`vercmp $2 3.4.2rc1`" -lt 0 ]; then
- # important upgrade notice
- echo "LibreOffice has been split into several packages:"
- echo "- libreoffice-common"
- echo "- libreoffice-{base,calc,draw,impress,math,writer} - frontend applications"
- echo "- libreoffice-{gnome,kde4} - desktop integration plugins"
- echo "- libreoffice-{sdk,sdk-doc} - add-on and doc for programming using"
- echo " the LibreOffice APIs and for creating"
- echo " extensions (UNO components)."
- echo "Now you need to install at least one libreoffice-langpack!"
- fi
-}
-
-post_remove() {
-update-desktop-database -q
-gtk-update-icon-cache -f -q /usr/share/icons/hicolor
-update-mime-database usr/share/mime > /dev/null 2>&1
-}
diff --git a/staging/libreoffice/scp2-more-reasonable-file-access-rights.diff b/staging/libreoffice/scp2-more-reasonable-file-access-rights.diff
deleted file mode 100644
index fd61cb4ca..000000000
--- a/staging/libreoffice/scp2-more-reasonable-file-access-rights.diff
+++ /dev/null
@@ -1,15 +0,0 @@
---- scp2/inc/macros.inc.old 2011-05-18 17:51:47.000000000 +0200
-+++ scp2/inc/macros.inc 2011-07-18 19:58:27.000000000 +0200
-@@ -92,10 +92,10 @@
- #endif
-
- #define BIN_FILE_BODY \
-- UnixRights = 555
-+ UnixRights = 755
-
- #define TXT_FILE_BODY \
-- UnixRights = 444
-+ UnixRights = 644
-
- #define USER_FILE_BODY \
- UnixRights = 644
diff --git a/staging/libreoffice/vbahelper.visibility.patch b/staging/libreoffice/vbahelper.visibility.patch
deleted file mode 100644
index 5739100d0..000000000
--- a/staging/libreoffice/vbahelper.visibility.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- vbahelper/inc/vbahelper/vbacollectionimpl.hxx 2011-01-28 20:27:51.507604173 +0000
-+++ vbahelper/inc/vbahelper/vbacollectionimpl.hxx 2011-01-28 20:28:26.230045727 +0000
-@@ -238,7 +238,7 @@
-
- // including a HelperInterface implementation
- template< typename Ifc1 >
--class ScVbaCollectionBase : public InheritedHelperInterfaceImpl< Ifc1 >
-+class VBAHELPER_DLLPUBLIC ScVbaCollectionBase : public InheritedHelperInterfaceImpl< Ifc1 >
- {
- typedef InheritedHelperInterfaceImpl< Ifc1 > BaseColBase;
- protected:
---- sc/Library_vbaobj.mk
-+++ sc/Library_vbaobj.mk
-@@ -118,7 +118,6 @@ $(eval $(call gb_Library_add_exception_objects,vbaobj,\
- sc/source/ui/vba/vbaquerytable \
- sc/source/ui/vba/vbarange \
- sc/source/ui/vba/vbasheetobject \
-- sc/source/ui/vba/vbasheetobjects \
- sc/source/ui/vba/vbastyle \
- sc/source/ui/vba/vbastyles \
- sc/source/ui/vba/vbatextboxshape \
-@@ -133,6 +132,11 @@ $(eval $(call gb_Library_add_exception_objects,vbaobj,\
- sc/source/ui/vba/vbawsfunction \
- ))
-
-+$(eval $(call gb_Library_add_cxxobjects,vbaobj,\
-+ sc/source/ui/vba/vbasheetobjects \
-+ , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
-+))
-+
- ifneq (,$(filter LINUX DRAGONFLY OPENBSD FREEBSD NETBSD, $(OS)))
- $(eval $(call gb_Library_set_ldflags,vbaobj,\
- $$(LDFLAGS) \
diff --git a/staging/poppler/PKGBUILD b/staging/poppler/PKGBUILD
deleted file mode 100644
index 11686b551..000000000
--- a/staging/poppler/PKGBUILD
+++ /dev/null
@@ -1,68 +0,0 @@
-# $Id: PKGBUILD 139863 2011-10-05 14:22:51Z jgc $
-# Maintainer: Jan de Groot <jgc@archlinux.org>
-
-pkgbase=poppler
-pkgname=('poppler' 'poppler-glib' 'poppler-qt')
-pkgver=0.18.0
-pkgrel=1
-arch=(i686 x86_64)
-license=('GPL')
-makedepends=('libjpeg' 'gcc-libs' 'cairo' 'fontconfig' 'openjpeg' 'gtk2' 'qt' 'pkgconfig' 'lcms' 'gobject-introspection')
-options=('!libtool' '!emptydirs')
-url="http://poppler.freedesktop.org/"
-source=(http://poppler.freedesktop.org/${pkgbase}-${pkgver}.tar.gz)
-md5sums=('4cd3bf2a0a13fa8eaf00d31368915f77')
-
-build() {
- cd "${srcdir}/${pkgbase}-${pkgver}"
- sed -i -e '/AC_PATH_XTRA/d' configure.ac
- autoreconf
- ./configure --prefix=/usr --sysconfdir=/etc \
- --localstatedir=/var --disable-static \
- --enable-cairo-output \
- --enable-xpdf-headers \
- --enable-libjpeg --enable-zlib \
- --enable-poppler-qt4 \
- --enable-poppler-glib
- make
-}
-
-package_poppler() {
- pkgdesc="PDF rendering library based on xpdf 3.0"
- depends=('libjpeg' 'gcc-libs' 'cairo' 'fontconfig' 'openjpeg' 'lcms' 'poppler-data')
- conflicts=("poppler-qt3<${pkgver}")
-
- cd "${srcdir}/${pkgbase}-${pkgver}"
- sed -e 's/^glib_subdir =.*/glib_subdir =/' \
- -e 's/^qt4_subdir =.*/qt4_subdir =/' -i Makefile
- make DESTDIR="${pkgdir}" install
-
- rm -f "${pkgdir}"/usr/lib/pkgconfig/poppler-{glib,qt4}.pc
-}
-
-package_poppler-glib() {
- pkgdesc="Poppler glib bindings"
- depends=("poppler=${pkgver}" 'glib2')
-
- cd "${srcdir}/${pkgbase}-${pkgver}/poppler"
- make DESTDIR="${pkgdir}" install-libLTLIBRARIES
- cd "${srcdir}/${pkgbase}-${pkgver}/glib"
- make DESTDIR="${pkgdir}" install
- install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
- install -m644 ../poppler-glib.pc "${pkgdir}/usr/lib/pkgconfig/"
- rm -f "${pkgdir}"/usr/lib/libpoppler.*
- rm -f "${pkgdir}/usr/bin/poppler-glib-demo"
-}
-
-package_poppler-qt() {
- pkgdesc="Poppler Qt bindings"
- depends=("poppler=${pkgver}" 'qt')
-
- cd "${srcdir}/${pkgbase}-${pkgver}/poppler"
- make DESTDIR="${pkgdir}" install-libLTLIBRARIES
- cd "${srcdir}/${pkgbase}-${pkgver}/qt4"
- make DESTDIR="${pkgdir}" install
- install -m755 -d "${pkgdir}/usr/lib/pkgconfig"
- install -m644 ../poppler-qt4.pc "${pkgdir}/usr/lib/pkgconfig/"
- rm -f "${pkgdir}"/usr/lib/libpoppler.*
-}
diff --git a/staging/qwtplot3d/PKGBUILD b/staging/qwtplot3d/PKGBUILD
deleted file mode 100644
index 5b4b28295..000000000
--- a/staging/qwtplot3d/PKGBUILD
+++ /dev/null
@@ -1,42 +0,0 @@
-# $Id: PKGBUILD 131787 2011-07-15 09:10:59Z ronald $
-# Maintainer: damir <damir@archlinux.org>
-
-pkgname=qwtplot3d
-pkgver=0.2.7
-pkgrel=2
-pkgdesc="Qt/OpenGL-based C++ programming library containing 3d-widgets"
-arch=("i686" "x86_64")
-license=('custom:zlib')
-url="http://qwtplot3d.sourceforge.net/"
-depends=('qt' 'qwt' 'mesa')
-source=("http://downloads.sourceforge.net/sourceforge/qwtplot3d/qwtplot3d-$pkgver.tgz"
- qwtplot3d-gcc44.patch)
-sha1sums=('4463fafb8420a91825e165da7a296aaabd70abea' '52fa169b651a98550f8a8391ddf52e0eaeb2c215')
-
-build() {
- cd ${srcdir}/${pkgname}
- patch -p1 < ../qwtplot3d-gcc44.patch
-
- # build qwt:
- qmake qwtplot3d.pro
- make
-}
-
-package() {
- cd ${srcdir}/${pkgname}
-
- # install qwtplot3d: (by hand, because the Makefile do not provide a "install:")
- install -d ${pkgdir}/usr/{include/qwtplot3d,lib}
-
- for n in include/* ; do
- cp -d $n ${pkgdir}/usr/include/qwtplot3d
- done
-
- for n in lib/libqwtplot3d.so* ; do
- cp -d $n ${pkgdir}/usr/lib
- done
-
- # install custom license
- install -Dm644 ${srcdir}/${pkgname}/COPYING ${pkgdir}/usr/share/licenses/qwtplot3d/LICENSE
-}
-
diff --git a/staging/qwtplot3d/qwtplot3d-gcc44.patch b/staging/qwtplot3d/qwtplot3d-gcc44.patch
deleted file mode 100644
index a76fe831a..000000000
--- a/staging/qwtplot3d/qwtplot3d-gcc44.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur qwtplot3d-orig/include/qwt3d_function.h qwtplot3d/include/qwt3d_function.h
---- qwtplot3d-orig/include/qwt3d_function.h 2009-07-25 18:18:58.000000000 -0400
-+++ qwtplot3d/include/qwt3d_function.h 2009-07-25 18:19:19.000000000 -0400
-@@ -2,6 +2,7 @@
- #define qwt3d_function_h__2004_03_05_13_51_begin_guarded_code
-
- #include "qwt3d_gridmapping.h"
-+#include <cstdio>
-
- namespace Qwt3D
- {
-Only in qwtplot3d/tmp: qwt3d_function.o
diff --git a/staging/tracker/PKGBUILD b/staging/tracker/PKGBUILD
deleted file mode 100644
index 9c8e3aa20..000000000
--- a/staging/tracker/PKGBUILD
+++ /dev/null
@@ -1,82 +0,0 @@
-# $Id: PKGBUILD 140419 2011-10-13 20:07:47Z heftig $
-# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
-# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
-# Contributor: Alexander Fehr <pizzapunk gmail com>
-
-pkgbase=tracker
-pkgname=(tracker libtracker-sparql)
-pkgver=0.12.5
-_tver=${pkgver%.*}
-pkgrel=1
-pkgdesc="All-in-one indexer, search tool and metadata database"
-arch=('i686' 'x86_64')
-license=('GPL')
-makedepends=('libgee' 'libgnome-keyring' 'upower' 'libexif' 'exempi'
- 'poppler-glib' 'libgsf' 'icu' 'enca' 'networkmanager' 'gtk3'
- 'desktop-file-utils' 'hicolor-icon-theme' 'gobject-introspection'
- 'intltool' 'giflib' 'gstreamer0.10-base' 'totem-plparser'
- 'taglib' 'nautilus' 'gnome-panel' 'libvorbis' 'flac' 'vala')
-url="http://www.gnome.org"
-options=('!libtool' '!emptydirs')
-source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/$_tver/$pkgbase-$pkgver.tar.xz)
-sha256sums=('5fddbda9df10fada07f335751370e46b5e2b5ef971d4da8efd47ea795d7b5c5b')
-
-build() {
- cd "$srcdir/$pkgbase-$pkgver"
-
- ./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --libexecdir=/usr/lib/tracker \
- --disable-unit-tests \
- --enable-libflac \
- --enable-libvorbis
-
- make
-}
-
-package_tracker() {
- depends=("libtracker-sparql=$pkgver-$pkgrel" 'libgee' 'libgnome-keyring'
- 'upower' 'libexif' 'exempi' 'poppler-glib' 'libgsf' 'enca'
- 'networkmanager' 'gtk3' 'desktop-file-utils' 'hicolor-icon-theme')
- optdepends=('giflib: extractor for GIF data'
- 'gstreamer0.10-base: video extractor'
- 'totem-plparser: playlist support'
- 'nautilus: nautilus-extension'
- 'libvorbis: Vorbis metadata extractor'
- 'flac: FLAC metadata extractor'
- 'taglib: writeback for audio files'
- 'gnome-panel: tracker-search-bar')
- groups=('gnome-extra')
- install=tracker.install
-
- cd "$srcdir/$pkgbase-$pkgver"
- make DESTDIR="$pkgdir" install
-
-### Split libtracker-sparql
-
- mkdir -p "$srcdir"/sparql/usr/{include,lib}/tracker-$_tver
- mkdir -p "$srcdir"/sparql/usr/lib/{girepository-1.0,pkgconfig}
- mkdir -p "$srcdir"/sparql/usr/share/{gir-1.0,vala/vapi}
-
- mv "$pkgdir"/usr/lib/libtracker-sparql-* "$srcdir/sparql/usr/lib"
-
- mv "$pkgdir"/usr/lib/tracker-$_tver/*.so* \
- "$srcdir/sparql/usr/lib/tracker-$_tver"
-
- mv "$pkgdir"/usr/share/vala/vapi/tracker-sparql-* \
- "$srcdir/sparql/usr/share/vala/vapi"
-
- mv {"$pkgdir","$srcdir/sparql"}/usr/include/tracker-$_tver/libtracker-sparql
- mv {"$pkgdir","$srcdir/sparql"}/usr/lib/girepository-1.0/Tracker-$_tver.typelib
- mv {"$pkgdir","$srcdir/sparql"}/usr/lib/pkgconfig/tracker-sparql-$_tver.pc
- mv {"$pkgdir","$srcdir/sparql"}/usr/share/gir-1.0/Tracker-$_tver.gir
-}
-
-package_libtracker-sparql() {
- pkgdesc="$pkgdesc (SPARQL library)"
- depends=('sqlite3' 'icu' 'glib2' 'libffi' 'pcre' 'util-linux')
-
- mv "$srcdir"/sparql/* "$pkgdir"
-}
diff --git a/staging/tracker/tracker.install b/staging/tracker/tracker.install
deleted file mode 100644
index 95114273e..000000000
--- a/staging/tracker/tracker.install
+++ /dev/null
@@ -1,13 +0,0 @@
-post_install() {
- usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
- update-desktop-database -q
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
diff --git a/staging/tumbler/PKGBUILD b/staging/tumbler/PKGBUILD
deleted file mode 100644
index 606fb44d8..000000000
--- a/staging/tumbler/PKGBUILD
+++ /dev/null
@@ -1,37 +0,0 @@
-# $Id: PKGBUILD 140051 2011-10-06 06:06:45Z eric $
-# Maintainer: Andreas Radke <andyrtr@archlinux.org>
-# Contributor: Jan Jezek <honzin.jezek@gmail.com>
-
-pkgname=tumbler
-pkgver=0.1.22
-pkgrel=3
-pkgdesc="D-Bus service for applications to request thumbnails"
-url="http://git.xfce.org/xfce/tumbler/"
-license=('GPL2' 'LGPL')
-arch=('i686' 'x86_64')
-groups=('xfce4')
-depends=('poppler-glib' 'dbus-glib' 'bzip2' 'gdk-pixbuf2')
-makedepends=('intltool' 'ffmpegthumbnailer' 'gstreamer0.10')
-optdepends=('ffmpegthumbnailer: for video thumbnails'
- 'gstreamer0.10: for video thumbnails')
-options=('!libtool')
-source=(http://archive.xfce.org/src/apps/${pkgname}/0.1/${pkgname}-${pkgver}.tar.bz2
- fix-video-image.patch)
-md5sums=('e7ba3b8f21f8f7e736f1e214906b4ca9'
- 'be9b0f1c3a4b0be102774c84d5ac29e6')
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- patch -Np1 -i ../fix-video-image.patch
- ./configure --prefix=/usr \
- --sysconfdir=/etc \
- --libexecdir=/usr/lib/xfce4 \
- --disable-static \
- --disable-debug
- make
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
-}
diff --git a/staging/tumbler/fix-video-image.patch b/staging/tumbler/fix-video-image.patch
deleted file mode 100644
index 11c9d867b..000000000
--- a/staging/tumbler/fix-video-image.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From aab140d868c1ebedbb04bbd65deddf94dc21787b Mon Sep 17 00:00:00 2001
-From: Jannis Pohlmann <jannis@xfce.org>
-Date: Mon, 26 Sep 2011 17:28:51 +0000
-Subject: Fix generation of video images by starting the pipeline (bug #7996).
-
-Patch provided by Sam Thursfield<ssssam@gmail.com>.
----
-diff --git a/NEWS b/NEWS
-index 0ff1c1c..48e3896 100644
---- a/NEWS
-+++ b/NEWS
-@@ -1,3 +1,7 @@
-+0.1.xx
-+======
-+- Fix generation of video images by starting the pipeline (bug #7996).
-+
- 0.1.22
- ======
- - Add coding style documentation.
-diff --git a/plugins/gst-thumbnailer/gst-helper.c b/plugins/gst-thumbnailer/gst-helper.c
-index b8a29ab..dead043 100644
---- a/plugins/gst-thumbnailer/gst-helper.c
-+++ b/plugins/gst-thumbnailer/gst-helper.c
-@@ -154,6 +154,8 @@ gst_helper_convert_buffer_to_pixbuf (GstBuffer *buffer,
-
- bus = gst_element_get_bus (GST_ELEMENT (pipeline));
-
-+ gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING);
-+
- i = 0;
- msg = NULL;
- while (msg == NULL && i < 5)
---
-cgit
diff --git a/staging/xournal/PKGBUILD b/staging/xournal/PKGBUILD
deleted file mode 100644
index 8622a5f9c..000000000
--- a/staging/xournal/PKGBUILD
+++ /dev/null
@@ -1,35 +0,0 @@
-# $Id: PKGBUILD 139871 2011-10-05 16:16:06Z bisson $
-# Maintainer: Gaetan Bisson <bisson@archlinux.org>
-
-pkgname=xournal
-pkgver=0.4.5
-pkgrel=5
-pkgdesc='Notetaking and sketching application'
-arch=('i686' 'x86_64')
-url='http://xournal.sourceforge.net/'
-license=('GPL')
-depends=('libgnomecanvas' 'poppler-glib' 'shared-mime-info' 'desktop-file-utils' 'hicolor-icon-theme')
-optdepends=('ghostscript: import PS/PDF files as bitmap backgrounds')
-source=("http://downloads.sourceforge.net/xournal/xournal-${pkgver}.tar.gz"
- 'pdf-export-64.patch'
- 'poppler-api.patch')
-sha1sums=('390cb275774469ed1b04b7268dd625bd456c895e'
- 'f23f53b9f69ba8a5773c53d7bca99abf9d8504f8'
- '5aedd5610b42df96e964bb889d4bf0831c2080bc')
-
-install=install
-
-build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
-
- patch -p1 -i ../pdf-export-64.patch # from xournal CVS, see FS#21693
- patch -p1 -i ../poppler-api.patch
-
- ./configure --prefix=/usr
- make
-}
-
-package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install desktop-install
-}
diff --git a/staging/xournal/install b/staging/xournal/install
deleted file mode 100644
index dfcb68374..000000000
--- a/staging/xournal/install
+++ /dev/null
@@ -1,13 +0,0 @@
-post_install() {
- update-desktop-database -q
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
- update-mime-database usr/share/mime &>/dev/null
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
diff --git a/staging/xournal/pdf-export-64.patch b/staging/xournal/pdf-export-64.patch
deleted file mode 100644
index 9f7075c54..000000000
--- a/staging/xournal/pdf-export-64.patch
+++ /dev/null
@@ -1,89 +0,0 @@
-diff -aur old/src/xo-print.c new/src/xo-print.c
---- old/src/xo-print.c 2009-09-28 23:36:54.000000000 +0200
-+++ new/src/xo-print.c 2009-11-15 06:06:00.000000000 +0100
-@@ -761,7 +761,7 @@
-
- make_xref(xref, xref->last+1, pdfbuf->len);
- g_string_append_printf(pdfbuf,
-- "%d 0 obj\n<< /Length %d /Filter /FlateDecode /Type /Xobject "
-+ "%d 0 obj\n<< /Length %zu /Filter /FlateDecode /Type /Xobject "
- "/Subtype /Image /Width %d /Height %d /ColorSpace /DeviceRGB "
- "/BitsPerComponent 8 >> stream\n",
- xref->last, zpix->len, width, height);
-@@ -840,8 +840,10 @@
- gboolean fallback, is_binary;
- guchar encoding[256];
- gushort glyphs[256];
-- int i, j, num, len1, len2;
-- gsize len;
-+ int i, j, num;
-+ guint32 len1, len2;
-+ guint32 tt_len;
-+ gsize t1_len;
- TrueTypeFont *ttfnt;
- char *seg1, *seg2;
- char *fontdata, *p;
-@@ -862,14 +864,14 @@
- }
- font->num_glyphs_used = num-1;
- if (OpenTTFont(font->filename, 0, &ttfnt) == SF_OK) {
-- if (CreateTTFromTTGlyphs_tomemory(ttfnt, (guint8**)&fontdata, &len, glyphs, encoding, num,
-+ if (CreateTTFromTTGlyphs_tomemory(ttfnt, (guint8**)&fontdata, &tt_len, glyphs, encoding, num,
- 0, NULL, TTCF_AutoName | TTCF_IncludeOS2) == SF_OK) {
- make_xref(xref, xref->last+1, pdfbuf->len);
- nobj_fontprog = xref->last;
- g_string_append_printf(pdfbuf,
-- "%d 0 obj\n<< /Length %d /Length1 %d >> stream\n",
-- nobj_fontprog, (int)len, (int)len);
-- g_string_append_len(pdfbuf, fontdata, len);
-+ "%d 0 obj\n<< /Length %u /Length1 %u >> stream\n",
-+ nobj_fontprog, tt_len, tt_len);
-+ g_string_append_len(pdfbuf, fontdata, tt_len);
- g_string_append(pdfbuf, "endstream\nendobj\n");
- g_free(fontdata);
- }
-@@ -879,7 +881,7 @@
- else fallback = TRUE;
- } else {
- // embed the font file: Type1 case
-- if (g_file_get_contents(font->filename, &fontdata, &len, NULL) && len>=8) {
-+ if (g_file_get_contents(font->filename, &fontdata, &t1_len, NULL) && t1_len>=8) {
- if (fontdata[0]==(char)0x80 && fontdata[1]==(char)0x01) {
- is_binary = TRUE;
- len1 = pfb_get_length((unsigned char *)fontdata+2);
-@@ -898,7 +900,7 @@
- if (*p=='\n' || *p=='\r') p++;
- if (*p=='\n' || *p=='\r') p++;
- len1 = p-fontdata;
-- p = g_strrstr_len(fontdata, len, T1_SEGMENT_3_END);
-+ p = g_strrstr_len(fontdata, t1_len, T1_SEGMENT_3_END);
- if (p==NULL) fallback = TRUE;
- else {
- // rewind 512 zeros
-@@ -936,7 +938,7 @@
- make_xref(xref, xref->last+1, pdfbuf->len);
- nobj_fontprog = xref->last;
- g_string_append_printf(pdfbuf,
-- "%d 0 obj\n<< /Length %d /Length1 %d /Length2 %d /Length3 0 >> stream\n",
-+ "%d 0 obj\n<< /Length %u /Length1 %u /Length2 %u /Length3 0 >> stream\n",
- nobj_fontprog, len1+len2, len1, len2);
- g_string_append_len(pdfbuf, seg1, len1);
- g_string_append_len(pdfbuf, seg2, len2);
-@@ -1258,7 +1260,7 @@
- tmpstr = make_pdfprefix(pdfinfo.pages+(pg->bg->file_page_seq-1),
- pg->width, pg->height);
- g_string_append_printf(pdfbuf,
-- "%d 0 obj\n<< /Length %d >> stream\n%s\nendstream\nendobj\n",
-+ "%d 0 obj\n<< /Length %zu >> stream\n%s\nendstream\nendobj\n",
- n_obj_prefix, tmpstr->len, tmpstr->str);
- g_string_free(tmpstr, TRUE);
- g_string_prepend(pgstrm, "Q Q Q ");
-@@ -1276,7 +1278,7 @@
-
- make_xref(&xref, xref.last+1, pdfbuf->len);
- g_string_append_printf(pdfbuf,
-- "%d 0 obj\n<< /Length %d /Filter /FlateDecode>> stream\n",
-+ "%d 0 obj\n<< /Length %zu /Filter /FlateDecode>> stream\n",
- xref.last, zpgstrm->len);
- g_string_append_len(pdfbuf, zpgstrm->str, zpgstrm->len);
- g_string_free(zpgstrm, TRUE);
diff --git a/staging/xournal/poppler-api.patch b/staging/xournal/poppler-api.patch
deleted file mode 100644
index 9e33c7feb..000000000
--- a/staging/xournal/poppler-api.patch
+++ /dev/null
@@ -1,158 +0,0 @@
-diff -aur old/src/xo-file.c new/src/xo-file.c
---- old/src/xo-file.c 2009-09-29 09:36:05.000000000 +1000
-+++ new/src/xo-file.c 2011-10-06 03:11:17.307822836 +1100
-@@ -975,6 +975,140 @@
- g_free(req);
- }
-
-+/*
-+ * Copied from http://cgit.freedesktop.org/poppler/poppler/tree/glib/poppler-page.cc?h=poppler-0.16#n617
-+ * as a temporary workaround to poppler removing depreciated functions while we wait for
-+ * upstream to rewrite against cairo
-+ */
-+static void
-+copy_cairo_surface_to_pixbuf (cairo_surface_t *surface, GdkPixbuf *pixbuf)
-+{
-+ int cairo_width, cairo_height, cairo_rowstride;
-+ unsigned char *pixbuf_data, *dst, *cairo_data;
-+ int pixbuf_rowstride, pixbuf_n_channels;
-+ unsigned int *src;
-+ int x, y;
-+
-+ cairo_width = cairo_image_surface_get_width (surface);
-+ cairo_height = cairo_image_surface_get_height (surface);
-+ cairo_rowstride = cairo_image_surface_get_stride (surface);
-+ cairo_data = cairo_image_surface_get_data (surface);
-+
-+ pixbuf_data = gdk_pixbuf_get_pixels (pixbuf);
-+ pixbuf_rowstride = gdk_pixbuf_get_rowstride (pixbuf);
-+ pixbuf_n_channels = gdk_pixbuf_get_n_channels (pixbuf);
-+
-+ if (cairo_width > gdk_pixbuf_get_width (pixbuf))
-+ cairo_width = gdk_pixbuf_get_width (pixbuf);
-+ if (cairo_height > gdk_pixbuf_get_height (pixbuf))
-+ cairo_height = gdk_pixbuf_get_height (pixbuf);
-+ for (y = 0; y < cairo_height; y++)
-+ {
-+ src = (unsigned int *) (cairo_data + y * cairo_rowstride);
-+ dst = pixbuf_data + y * pixbuf_rowstride;
-+ for (x = 0; x < cairo_width; x++)
-+ {
-+ dst[0] = (*src >> 16) & 0xff;
-+ dst[1] = (*src >> 8) & 0xff;
-+ dst[2] = (*src >> 0) & 0xff;
-+ if (pixbuf_n_channels == 4)
-+ dst[3] = (*src >> 24) & 0xff;
-+ dst += pixbuf_n_channels;
-+ src++;
-+ }
-+ }
-+}
-+
-+static void
-+_poppler_page_render_to_pixbuf (PopplerPage *page,
-+ int src_x, int src_y,
-+ int src_width, int src_height,
-+ double scale,
-+ int rotation,
-+ gboolean printing,
-+ GdkPixbuf *pixbuf)
-+{
-+ cairo_t *cr;
-+ cairo_surface_t *surface;
-+
-+ surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
-+ src_width, src_height);
-+ cr = cairo_create (surface);
-+ cairo_save (cr);
-+ switch (rotation) {
-+ case 90:
-+ cairo_translate (cr, src_x + src_width, -src_y);
-+ break;
-+ case 180:
-+ cairo_translate (cr, src_x + src_width, src_y + src_height);
-+ break;
-+ case 270:
-+ cairo_translate (cr, -src_x, src_y + src_height);
-+ break;
-+ default:
-+ cairo_translate (cr, -src_x, -src_y);
-+ }
-+
-+ if (scale != 1.0)
-+ cairo_scale (cr, scale, scale);
-+
-+ if (rotation != 0)
-+ cairo_rotate (cr, rotation * G_PI / 180.0);
-+
-+ if (printing)
-+ poppler_page_render_for_printing (page, cr);
-+ else
-+ poppler_page_render (page, cr);
-+ cairo_restore (cr);
-+
-+ cairo_set_operator (cr, CAIRO_OPERATOR_DEST_OVER);
-+ cairo_set_source_rgb (cr, 1., 1., 1.);
-+ cairo_paint (cr);
-+
-+ cairo_destroy (cr);
-+
-+ copy_cairo_surface_to_pixbuf (surface, pixbuf);
-+ cairo_surface_destroy (surface);
-+}
-+
-+/**
-+ * poppler_page_render_to_pixbuf:
-+ * @page: the page to render from
-+ * @src_x: x coordinate of upper left corner
-+ * @src_y: y coordinate of upper left corner
-+ * @src_width: width of rectangle to render
-+ * @src_height: height of rectangle to render
-+ * @scale: scale specified as pixels per point
-+ * @rotation: rotate the document by the specified degree
-+ * @pixbuf: pixbuf to render into
-+ *
-+ * First scale the document to match the specified pixels per point,
-+ * then render the rectangle given by the upper left corner at
-+ * (src_x, src_y) and src_width and src_height.
-+ * This function is for rendering a page that will be displayed.
-+ * If you want to render a page that will be printed use
-+ * poppler_page_render_to_pixbuf_for_printing() instead
-+ *
-+ * Deprecated: 0.16
-+ **/
-+void
-+poppler_page_render_to_pixbuf (PopplerPage *page,
-+ int src_x, int src_y,
-+ int src_width, int src_height,
-+ double scale,
-+ int rotation,
-+ GdkPixbuf *pixbuf)
-+{
-+ g_return_if_fail (POPPLER_IS_PAGE (page));
-+ g_return_if_fail (scale > 0.0);
-+ g_return_if_fail (pixbuf != NULL);
-+
-+ _poppler_page_render_to_pixbuf (page, src_x, src_y,
-+ src_width, src_height,
-+ scale, rotation,
-+ FALSE,
-+ pixbuf);
-+}
- /* process a bg PDF request from the queue, and recurse */
-
- gboolean bgpdf_scheduler_callback(gpointer data)
-diff -aur old/src/xo-file.h new/src/xo-file.h
---- old/src/xo-file.h 2009-09-28 08:45:53.000000000 +1000
-+++ new/src/xo-file.h 2011-10-06 03:11:17.311156160 +1100
-@@ -36,3 +36,10 @@
- void init_config_default(void);
- void load_config_from_file(void);
- void save_config_to_file(void);
-+
-+void poppler_page_render_to_pixbuf (PopplerPage *page,
-+ int src_x, int src_y,
-+ int src_width, int src_height,
-+ double scale,
-+ int rotation,
-+ GdkPixbuf *pixbuf);