summaryrefslogtreecommitdiff
path: root/extra/calligra
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-04-22 00:02:56 +0000
committerroot <root@rshg054.dnsready.net>2012-04-22 00:02:56 +0000
commitaf1e6c210b43ea6b8e043524edccb1d0befd257f (patch)
tree39338a1d60483354554ee34df2afa262f8f201c0 /extra/calligra
parent905dec08e7144fe77aad1161778a6c3b74ff305c (diff)
Sun Apr 22 00:02:56 UTC 2012
Diffstat (limited to 'extra/calligra')
-rw-r--r--extra/calligra/PKGBUILD272
-rw-r--r--extra/calligra/calligra-braindump.install12
-rw-r--r--extra/calligra/calligra-filters.install11
-rw-r--r--extra/calligra/calligra-flow.install12
-rw-r--r--extra/calligra/calligra-karbon.install12
-rw-r--r--extra/calligra/calligra-kexi.install11
-rw-r--r--extra/calligra/calligra-krita.install13
-rw-r--r--extra/calligra/calligra-plan.install12
-rw-r--r--extra/calligra/calligra-sheets.install12
-rw-r--r--extra/calligra/calligra-stage.install12
-rw-r--r--extra/calligra/calligra-tools.install12
-rw-r--r--extra/calligra/calligra-words.install12
-rw-r--r--extra/calligra/calligra.install11
-rw-r--r--extra/calligra/do-not-build-hancomword.patch11
-rw-r--r--extra/calligra/fix-docx-support.patch18
15 files changed, 443 insertions, 0 deletions
diff --git a/extra/calligra/PKGBUILD b/extra/calligra/PKGBUILD
new file mode 100644
index 000000000..a437fa806
--- /dev/null
+++ b/extra/calligra/PKGBUILD
@@ -0,0 +1,272 @@
+# $Id: PKGBUILD 156552 2012-04-20 19:21:46Z andrea $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+
+pkgbase=calligra
+pkgname=('calligra-filters'
+ 'calligra-interfaces'
+ 'calligra-libs'
+ 'calligra-plugins'
+ 'calligra-pics'
+ 'calligra-servicetypes'
+ 'calligra-templates'
+ 'calligra-tools'
+ 'calligra-karbon'
+ 'calligra-kexi'
+ 'calligra-kounavail'
+ 'calligra-plan'
+ 'calligra-stage'
+ 'calligra-krita'
+ 'calligra-sheets'
+ 'calligra-words'
+ 'calligra-handbook'
+ 'calligra-braindump'
+ 'calligra-flow')
+pkgver=2.4.0
+pkgrel=3
+arch=('i686' 'x86_64')
+url='http://www.calligra-suite.org/'
+license=('FDL1.2' 'GPL2' 'LGPL')
+makedepends=('cmake' 'automoc4' 'boost ' 'eigen2'
+ 'kdepimlibs' 'libpqxx' 'freetds' 'xbase'
+ 'kdegraphics-okular' 'gsl' 'kdeedu-marble'
+ 'libwpd' 'libwpg' 'pstoedit' 'glew'
+ 'fftw' 'opengtl' 'lcms2' 'libkdcraw' 'wv2')
+groups=('calligra')
+source=("http://download.kde.org/stable/${pkgbase}-${pkgver}/${pkgbase}-${pkgver}.tar.bz2"
+ 'do-not-build-hancomword.patch'
+ 'fix-docx-support.patch')
+md5sums=('a45b9141c6bb750569e8f6554197dd50'
+ 'cc1a5fba43426003909751035d093362'
+ 'b694e3af26a31c36488d869f9331090c')
+
+build() {
+ cd "${srcdir}"/${pkgbase}-${pkgver}
+ patch -p1 -i "${srcdir}"/do-not-build-hancomword.patch
+ patch -p1 -i "${srcdir}"/fix-docx-support.patch
+
+ cd "${srcdir}"
+ mkdir build
+ cd build
+ cmake ../${pkgbase}-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_active=OFF \
+ -DBUILD_mobile=OFF \
+ -DIHAVEPATCHEDQT=1
+ make
+}
+
+package_calligra-filters() {
+ pkgdesc="Filters for the Calligra office suite"
+ optdepends=('libwpg: Corel WordPerfect Graphics image importer')
+ conflicts=('koffice-filters')
+ replaces=('koffice-filters')
+ install=calligra-filters.install
+
+ cd "${srcdir}"/build/filters
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-interfaces() {
+ pkgdesc="Interfaces for the Calligra office suite"
+ depends=('calligra-libs')
+ conflicts=('koffice-interfaces')
+ replaces=('koffice-interfaces')
+
+ cd "${srcdir}"/build/interfaces
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-libs() {
+ pkgdesc="Libraries for the Calligra office suite"
+ depends=('kdepimlibs' 'lcms2' 'calligra-servicetypes')
+ conflicts=('koffice-libs')
+ replaces=('koffice-libs')
+
+ cd "${srcdir}"/build/libs
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-plugins() {
+ pkgdesc="Plugins for the Calligra office suite"
+ depends=('calligra-libs' 'calligra-filters')
+ optdepends=('kdeedu-marble: map shape for Calligra')
+ conflicts=('koffice-plugins' 'koffice-kchart')
+ replaces=('koffice-plugins' 'koffice-kchart' 'koffice-kformula')
+
+ cd "${srcdir}"/build/plugins
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-pics() {
+ pkgdesc="Icons for the Calligra office suite"
+ conflicts=('koffice-pics')
+ replaces=('koffice-pics')
+ install=calligra.install
+
+ cd "${srcdir}"/build/pics
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-servicetypes() {
+ pkgdesc="Servicetypes for the Calligra office suite"
+ conflicts=('koffice-servicetypes')
+ replaces=('koffice-servicetypes')
+ install=calligra.install
+
+ cd "${srcdir}"/build/servicetypes
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-templates() {
+ pkgdesc="Templates for the Calligra office suite"
+ conflicts=('koffice-templates')
+ replaces=('koffice-templates')
+
+ cd "${srcdir}"/build/templates
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-tools() {
+ pkgdesc="Tools for the Calligra office suite"
+ depends=('calligra-libs')
+ conflicts=('koffice-tools')
+ replaces=('koffice-tools')
+ install=calligra-tools.install
+
+ cd "${srcdir}"/build/tools
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-karbon() {
+ pkgdesc="Create scalable vector drawings"
+ depends=('calligra-libs' 'calligra-templates' 'kdebase-runtime')
+ optdepends=('calligra-filters: import/export filters'
+ 'calligra-tools: extra calligra tools')
+ conflicts=('koffice-karbon' 'koffice-karbon-doc' 'calligra-karbon-doc')
+ replaces=('koffice-karbon' 'koffice-karbon-doc' 'calligra-karbon-doc')
+ install=calligra-karbon.install
+
+ cd "${srcdir}"/build/karbon
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-kexi() {
+ pkgdesc="Develop desktop database applications"
+ depends=('calligra-libs' 'calligra-templates')
+ optdepends=('libmysqlclient: MySQL driver'
+ 'libpqxx: PostgreSQL driver'
+ 'freetds: Sybase & MS SQL driver'
+ 'xbase: XBase driver'
+ 'calligra-sheets: Spreadsheet-to-Kexi-table import plugin'
+ 'kdeedu-marble: map form widget'
+ 'calligra-plugins: extra calligra plugins')
+ conflicts=('koffice-kexi' 'koffice-kexi-doc' 'calligra-kexi-doc')
+ replaces=('koffice-kexi' 'koffice-kexi-doc' 'calligra-kexi-doc')
+ install=calligra-kexi.install
+
+ cd "${srcdir}"/build/kexi
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-kounavail() {
+ pkgdesc="Unavailable Calligra Document"
+ depends=('calligra-libs')
+ conflicts=('koffice-kounavail')
+ replaces=('koffice-kounavail')
+
+ cd "${srcdir}"/build/kounavail
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-plan() {
+ pkgdesc="Calligra Project Management Component"
+ depends=('calligra-words')
+ conflicts=('koffice-kplato' 'calligra-kplato')
+ replaces=('koffice-kplato' 'calligra-kplato')
+ install=calligra-plan.install
+
+ cd "${srcdir}"/build/plan
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-stage() {
+ pkgdesc="Write presentation documents"
+ depends=('calligra-libs' 'calligra-templates' 'kdebase-runtime')
+ optdepends=('calligra-plugins: extra calligra plugins')
+ conflicts=('koffice-kpresenter' 'koffice-kpresenter-doc' 'calligra-stage-doc')
+ replaces=('koffice-kpresenter' 'koffice-kpresenter-doc' 'calligra-stage-doc')
+ install=calligra-stage.install
+
+ cd "${srcdir}"/build/stage
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-krita() {
+ pkgdesc="Edit and paint images"
+ depends=('calligra-templates' 'calligra-plugins' 'kdebase-runtime'
+ 'qimageblitz' 'poppler-qt' 'opengtl' 'glew' 'libkdcraw' 'fftw')
+ conflicts=('koffice-krita' 'calligra-krita-doc')
+ replaces=('koffice-krita' 'calligra-krita-doc')
+ install=calligra-krita.install
+
+ cd "${srcdir}"/build/krita
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-sheets() {
+ pkgdesc="Write spreadsheet documents"
+ depends=('calligra-templates' 'calligra-libs' 'gsl' 'kdebase-runtime')
+ optdepends=('calligra-filters: import/export filters'
+ 'calligra-plugins: extra calligra plugins'
+ 'calligra-tools: extra calligra tools')
+ conflicts=('koffice-kspread' 'koffice-kspread-doc' 'calligra-tables-doc' 'calligra-tables')
+ replaces=('koffice-kspread' 'koffice-kspread-doc' 'calligra-tables-doc' 'calligra-tables')
+ install=calligra-sheets.install
+
+ cd "${srcdir}"/build/sheets
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-words() {
+ pkgdesc="Word Processor"
+ depends=('calligra-templates' 'calligra-pics' 'calligra-kounavail'
+ 'calligra-plugins' 'kdegraphics-okular')
+ optdepends=('calligra-tools: extra calligra tools')
+ conflicts=('koffice-kword')
+ replaces=('koffice-kword')
+ install=calligra-words.install
+
+ cd "${srcdir}"/build/words
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-handbook() {
+ pkgdesc="Documentation for Calligra"
+ conflicts=('koffice-handbook')
+ replaces=('koffice-handbook')
+
+ cd "${srcdir}"/build/doc/calligra
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-braindump() {
+ pkgdesc="Notes and idea gathering"
+ depends=('calligra-libs' 'kdebase-runtime')
+ install=calligra-braindump.install
+
+ cd "${srcdir}"/build/braindump
+ make DESTDIR="${pkgdir}" install
+}
+
+package_calligra-flow() {
+ pkgdesc="Flowchart & Diagram Editing"
+ depends=('calligra-libs' 'kdebase-runtime')
+ conflicts=('calligra-flow-doc')
+ replaces=('calligra-flow-doc')
+ install=calligra-flow.install
+
+ cd "${srcdir}"/build/flow
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/extra/calligra/calligra-braindump.install b/extra/calligra/calligra-braindump.install
new file mode 100644
index 000000000..c2179f6e2
--- /dev/null
+++ b/extra/calligra/calligra-braindump.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+} \ No newline at end of file
diff --git a/extra/calligra/calligra-filters.install b/extra/calligra/calligra-filters.install
new file mode 100644
index 000000000..7c8a8bd2b
--- /dev/null
+++ b/extra/calligra/calligra-filters.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-mime-database usr/share/mime &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
diff --git a/extra/calligra/calligra-flow.install b/extra/calligra/calligra-flow.install
new file mode 100644
index 000000000..6c87527e2
--- /dev/null
+++ b/extra/calligra/calligra-flow.install
@@ -0,0 +1,12 @@
+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/extra/calligra/calligra-karbon.install b/extra/calligra/calligra-karbon.install
new file mode 100644
index 000000000..c2179f6e2
--- /dev/null
+++ b/extra/calligra/calligra-karbon.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+} \ No newline at end of file
diff --git a/extra/calligra/calligra-kexi.install b/extra/calligra/calligra-kexi.install
new file mode 100644
index 000000000..b8c7ebf27
--- /dev/null
+++ b/extra/calligra/calligra-kexi.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
diff --git a/extra/calligra/calligra-krita.install b/extra/calligra/calligra-krita.install
new file mode 100644
index 000000000..33d234a02
--- /dev/null
+++ b/extra/calligra/calligra-krita.install
@@ -0,0 +1,13 @@
+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
+} \ No newline at end of file
diff --git a/extra/calligra/calligra-plan.install b/extra/calligra/calligra-plan.install
new file mode 100644
index 000000000..c2179f6e2
--- /dev/null
+++ b/extra/calligra/calligra-plan.install
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+} \ No newline at end of file
diff --git a/extra/calligra/calligra-sheets.install b/extra/calligra/calligra-sheets.install
new file mode 100644
index 000000000..6c87527e2
--- /dev/null
+++ b/extra/calligra/calligra-sheets.install
@@ -0,0 +1,12 @@
+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/extra/calligra/calligra-stage.install b/extra/calligra/calligra-stage.install
new file mode 100644
index 000000000..6c87527e2
--- /dev/null
+++ b/extra/calligra/calligra-stage.install
@@ -0,0 +1,12 @@
+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/extra/calligra/calligra-tools.install b/extra/calligra/calligra-tools.install
new file mode 100644
index 000000000..6c87527e2
--- /dev/null
+++ b/extra/calligra/calligra-tools.install
@@ -0,0 +1,12 @@
+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/extra/calligra/calligra-words.install b/extra/calligra/calligra-words.install
new file mode 100644
index 000000000..6c87527e2
--- /dev/null
+++ b/extra/calligra/calligra-words.install
@@ -0,0 +1,12 @@
+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/extra/calligra/calligra.install b/extra/calligra/calligra.install
new file mode 100644
index 000000000..e70c054ec
--- /dev/null
+++ b/extra/calligra/calligra.install
@@ -0,0 +1,11 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
diff --git a/extra/calligra/do-not-build-hancomword.patch b/extra/calligra/do-not-build-hancomword.patch
new file mode 100644
index 000000000..0c010b706
--- /dev/null
+++ b/extra/calligra/do-not-build-hancomword.patch
@@ -0,0 +1,11 @@
+--- a/filters/words/CMakeLists.txt
++++ b/filters/words/CMakeLists.txt
+@@ -75,7 +75,6 @@ IF( NOT TINY )
+ add_subdirectory( docbook )
+ # add_subdirectory( html )
+ add_subdirectory( kword1.3 )
+- add_subdirectory( hancomword )
+ add_subdirectory( oowriter )
+ add_subdirectory( palmdoc )
+ add_subdirectory( wml )
+
diff --git a/extra/calligra/fix-docx-support.patch b/extra/calligra/fix-docx-support.patch
new file mode 100644
index 000000000..304e200e3
--- /dev/null
+++ b/extra/calligra/fix-docx-support.patch
@@ -0,0 +1,18 @@
+--- a/libs/odf/KoXmlWriter.h
++++ b/libs/odf/KoXmlWriter.h
+@@ -252,6 +252,14 @@ private:
+ Tag(const char* t = 0, bool ind = true)
+ : tagName(t), hasChildren(false), lastChildIsText(false),
+ openingTagClosed(false), indentInside(ind) {}
++ Tag(const Tag &original)
++ {
++ tagName = original.tagName;
++ hasChildren = original.hasChildren;
++ lastChildIsText = original.lastChildIsText;
++ openingTagClosed = original.openingTagClosed;
++ indentInside = original.indentInside;
++ }
+ const char* tagName;
+ bool hasChildren : 1; ///< element or text children
+ bool lastChildIsText : 1; ///< last child is a text node
+