diff options
Diffstat (limited to 'extra/libreoffice')
-rw-r--r-- | extra/libreoffice/PKGBUILD | 25 | ||||
-rw-r--r-- | extra/libreoffice/fix-nobody-temp-dir.patch | 11 |
2 files changed, 28 insertions, 8 deletions
diff --git a/extra/libreoffice/PKGBUILD b/extra/libreoffice/PKGBUILD index 2bfcd37be..a4381fd6c 100644 --- a/extra/libreoffice/PKGBUILD +++ b/extra/libreoffice/PKGBUILD @@ -10,13 +10,10 @@ pkgname=('libreoffice-common' 'libreoffice-impress' 'libreoffice-kde4' 'libreoffice-math' - 'libreoffice-sdk' - 'libreoffice-sdk-doc' 'libreoffice-writer' 'libreoffice-en-US' 'libreoffice-postgresql-connector' 'libreoffice-extension-pdfimport' - 'libreoffice-extension-presenter-screen' 'libreoffice-extension-presentation-minimizer' 'libreoffice-extension-report-builder') _LOver=3.5.2.2 @@ -41,6 +38,8 @@ makedepends=( # makedepends # 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://dev-www.libreoffice.org/src" @@ -144,9 +143,14 @@ md5sums=('a21156d5657b8619a523ffdc5cc0003e' 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 "${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 cd ${srcdir}/libreoffice-core-$_LOver @@ -165,6 +169,8 @@ build() { patch -Np1 -i ${srcdir}/gmake_install.diff patch -Np1 -i ${srcdir}/smp_buildfix.diff patch -Np0 -i ${srcdir}/buildfix_icu49.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 @@ -186,9 +192,8 @@ build() { # non-SMP test build # export MAKEFLAGS="-j1" - #./configure --with-build-version="${_LOver} ArchLinux build-${pkgrel}" --with-vendor="ArchLinux" \ # touch autogen.lastrun - ./autogen.sh --with-build-version="${_LOver} ArchLinux build-${pkgrel}" --with-vendor="ArchLinux" \ + ./autogen.sh --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/} \ @@ -229,7 +234,6 @@ build() { --with-external-thes-dir=/usr/share/mythes \ --with-system-beanshell \ --with-system-cppunit\ - --with-system-graphite\ --with-system-libwpg \ --with-system-libwps \ --with-system-redland\ @@ -249,6 +253,7 @@ build() { --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 # --disable-ext-lightproof \ @@ -286,8 +291,8 @@ package_libreoffice-common() { 'nspr' 'libsm' 'redland' 'hyphen' 'graphite' "icu>=49.1" 'hicolor-icon-theme' 'desktop-file-utils' 'shared-mime-info' 'xdg-utils' 'orbit2') #'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' @@ -302,6 +307,10 @@ package_libreoffice-common() { '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) @@ -462,7 +471,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') 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" )); |