summaryrefslogtreecommitdiff
path: root/extra/libreoffice
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libreoffice')
-rw-r--r--extra/libreoffice/PKGBUILD87
-rw-r--r--extra/libreoffice/fix-nobody-temp-dir.patch11
2 files changed, 51 insertions, 47 deletions
diff --git a/extra/libreoffice/PKGBUILD b/extra/libreoffice/PKGBUILD
index 393d6716e..aea20a745 100644
--- a/extra/libreoffice/PKGBUILD
+++ b/extra/libreoffice/PKGBUILD
@@ -10,55 +10,57 @@ pkgname=('libreoffice-common'
'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-typo')
+[ "${CARCH}" != "mips64el" ] && pkgname+=('libreoffice-sdk' \
+ 'libreoffice-sdk-doc' \
+ 'libreoffice-extension-diagram' \
+ 'libreoffice-extension-google-docs' \
+ 'libreoffice-extension-nlpsolver' \
+ 'libreoffice-extension-presenter-screen' \
+ 'libreoffice-extension-report-builder' \
+ 'libreoffice-extension-scripting-beanshell' \
+ 'libreoffice-extension-scripting-javascript' \
+ 'libreoffice-extension-validator' \
+ 'libreoffice-extension-watch-window' \
'libreoffice-extension-wiki-publisher')
_LOver=3.4.4.2
pkgver=3.4.4
pkgrel=3
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
#_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'
- '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'
+ 'sane' 'perl-archive-zip' 'zip' 'p7zip-libre' 'xulrunner' 'unixodbc' 'boost'
+ 'gperf' 'poppler>=0.18.0' 'kdelibs' 'gconf' 'cppunit' #'libmysqlclient'
+ 'vigra' 'libldap' 'libmythes' 'libwpg' 'imagemagick'
+ 'gstreamer0.10-base'
#'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' 'graphite'
+ 'pango' 'nspr' 'libjpeg' 'libxrandr' 'dbus-glib' "icu>=4.6" 'libxslt'
+ 'redland' 'hyphen' 'lpsolve' 'gcc-libs' 'sh' 'libtextcat' # 'graphite'
'hicolor-icon-theme' 'desktop-file-utils' 'shared-mime-info' 'gtk2' 'orbit2' 'translate-toolkit' # keep gtk2 for install script
'ttf-dejavu') # to satisfy regression tests
# http://download.documentfoundation.org/mirrors/all.html
# http://wiki.documentfoundation.org/Mirrors
+[ "${CARCH}" != "mips64el" ] && makedepends+=('hsqldb-java' 'apache-ant' 'beanshell' 'junit' 'mesa' 'java-environment' 'libgl' 'lucene')
+
#_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"
@@ -205,10 +207,15 @@ md5sums=('be8b13f83045f0a53b69fe76d6d72e9c'
build() {
+ if [ "${CARCH}" != "mips64el" ] ; then
unset J2REDIR; unset J2SDKDIR; unset JAVA_HOME; unset CLASSPATH; unset EXTRAOPTS
[ -z "${JAVA_HOME}" ] && . /etc/profile.d/jdk.sh || . /etc/profile.d/openjdk6.sh
[ -z "${MOZ_PLUGIN_PATH}" ] && . /etc/profile.d/mozilla-common.sh
[ -z "${ANT_HOME}" ] && . /etc/profile.d/apache-ant.sh
+ extraconf="--enable-opengl --enable-ext-scripting-beanshell --with-system-lucene --with-ant-home=\"/usr/share/java/apache-ant\" --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 --enable-odk --enable-ext-diagram --enable-ext-google-docs --enable-ext-nlpsolver --enable-ext-report-builder --enable-ext-scripting-javascript --enable-ext-validator --enable-ext-watch-window --enable-ext-wiki-publisher"
+ else
+ extraconf="--disable-opengl --without-java --without-system-lucene --without-system-hsqldb --without-system-beanshell --without-system-jfreereport --without-system-saxon --without-system-mesa-headers --without-junit"
+ fi
# move all LibO sources into one build directory
mkdir ${srcdir}/build && cd ${srcdir}/build
@@ -233,6 +240,8 @@ build() {
patch -Np0 -i ${srcdir}/scp2-more-reasonable-file-access-rights.diff
patch -Np1 -i ${srcdir}/oracle-recognition.diff
patch -Np1 -i ${srcdir}/RemovetheoslSecuritygetHomeDircheck.diff
+ # Checks if --hash-style is accepted, not if --hash-style=both is accepted.
+ [ "${CARCH}" = "mips64el" ] && sed -i 's/--hash-style=both/--hash-style=sysv/' ${srcdir}/build/solenv/gbuild/platform/unxgcc.mk
# unset C(XX)FLAGS
# http://www.openoffice.org/issues/show_bug.cgi?id=103205
@@ -265,7 +274,7 @@ build() {
# non-SMP test build
# export MAKEFLAGS="-j1"
- ./configure --with-build-version="${_LOver} ArchLinux build-${pkgrel}" --with-vendor="ArchLinux" \
+ ./configure --with-build-version="${_LOver} Parabola GNU/Linux-libre build-${pkgrel}" --with-vendor="Parabola GNU/Linux-libre" \
--with-unix-wrapper="libreoffice" \
--enable-split-app-modules \
--with-max-jobs=${MAKEFLAGS/-j/} --with-num-cpus=${MAKEFLAGS/-j/} \
@@ -284,31 +293,19 @@ build() {
--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\
@@ -320,7 +317,6 @@ build() {
--with-external-hyph-dir=/usr/share/hyphen \
--with-external-thes-dir=/usr/share/mythes \
--with-system-cppunit\
- --with-system-graphite\
--with-system-libwpg \
--with-system-libwps \
--with-system-redland\
@@ -328,8 +324,7 @@ build() {
--with-system-libtextcat \
--with-external-libtextcat-data \
--with-openldap\
- --with-ant-home="/usr/share/java/apache-ant"\
- --with-system-boost\
+ --without-system-boost\
--with-system-cairo\
--with-system-libs\
--with-system-mozilla\
@@ -337,10 +332,7 @@ build() {
--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 \
+ $extraconf \
$EXTRAOPTS || return 1
#--enable-split-opt-features Split file lists for some optional features, .e.g. pyuno, testtool
@@ -371,29 +363,30 @@ 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' 'graphite'
+ 'pango' 'nspr' 'libjpeg' 'libxrandr' 'libxslt' "icu>=4.6"
+ 'redland' 'hyphen' 'gcc-libs' 'sh' 'libtextcat' #'graphite'
'hicolor-icon-theme' 'desktop-file-utils' 'shared-mime-info' 'gtk2' 'orbit2') # keep gtk2 for install script
#'java-runtime'
#'saxon'
+ [ "${CARCH}" != "mips64el" ] && depends+=('libgl')
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')
+ [ "${CARCH}" != "mips64el" ] && optdepends+=('java-runtime: adds java support' \
+ 'hsqldb-java: default database format for OpenOffice.org' \
+ 'beanshell: interactive java -- good for prototyping /macros' \
+ 'lucene: full-text search engine library for Java needed in the help section')
backup=(etc/libreoffice/sofficerc
etc/libreoffice/bootstraprc
etc/libreoffice/psprint.conf)
@@ -526,7 +519,7 @@ package_libreoffice-gnome() {
package_libreoffice-impress() {
pkgdesc="Presentation Application for LibreOffice."
depends=('libreoffice-common')
- optdepends=('mesa: for the OGLTrans extension')
+ [ "${CARCH}" != "mips64el" ] && optdepends=('mesa: for the OGLTrans extension')
backup=()
groups=('libreoffice')
replaces=('libreoffice')
@@ -608,7 +601,7 @@ package_libreoffice-sdk() {
mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
done
- # fix ArchLinux LibreOffice installation paths
+ # fix 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," \
diff --git a/extra/libreoffice/fix-nobody-temp-dir.patch b/extra/libreoffice/fix-nobody-temp-dir.patch
new file mode 100644
index 000000000..a36465c05
--- /dev/null
+++ b/extra/libreoffice/fix-nobody-temp-dir.patch
@@ -0,0 +1,11 @@
+--- bridges/source/cpp_uno/shared/vtablefactory.cxx.orig 2011-11-05 19:38:58.812005183 +0100
++++ bridges/source/cpp_uno/shared/vtablefactory.cxx 2011-11-05 19:40:01.654548478 +0100
+@@ -263,7 +263,7 @@
+
+ for (int i = strDirectory.getLength() == 0 ? 1 : 0; i < 2; ++i)
+ {
+- if (!strDirectory.getLength())
++ if (strDirectory.getLength() < 2)
+ strDirectory = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/tmp" ));
+
+ strDirectory += rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "/.execoooXXXXXX" ));