diff options
author | Andreas Proschofsky <suka@gentoo.org> | 2004-04-02 14:15:44 +0000 |
---|---|---|
committer | Andreas Proschofsky <suka@gentoo.org> | 2004-04-02 14:15:44 +0000 |
commit | d57ea6cdbd4d3821ab36bfe908104bc78648d5e6 (patch) | |
tree | 182b04973f3a328f3192346f6d0772b9274e451c /app-office | |
parent | New ebuild: openoffice-ximian-bin, needs initial testing (diff) | |
download | historical-d57ea6cdbd4d3821ab36bfe908104bc78648d5e6.tar.gz historical-d57ea6cdbd4d3821ab36bfe908104bc78648d5e6.tar.bz2 historical-d57ea6cdbd4d3821ab36bfe908104bc78648d5e6.zip |
Initial commit, needs some more testing
Diffstat (limited to 'app-office')
9 files changed, 622 insertions, 0 deletions
diff --git a/app-office/openoffice-ximian-bin/ChangeLog b/app-office/openoffice-ximian-bin/ChangeLog new file mode 100644 index 000000000000..cae1a770145b --- /dev/null +++ b/app-office/openoffice-ximian-bin/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for app-office/openoffice-ximian-bin +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-ximian-bin/ChangeLog,v 1.1 2004/04/02 14:15:43 suka Exp $ + +*openoffice-ximian-bin-1.1.52 (02 Apr 2004) + + 02 Apr 2004; suka@gentoo.org metadata.xml, + openoffice-ximian-bin-1.1.52.ebuild, files/1.1.1/DicOOo.sxw, + files/1.1.1/ximian-openoffice.applications, + files/1.1.1/ximian-openoffice.keys, files/1.1.1/xooffice-wrapper-1.3: + Initial commit. This provides the wonderful openoffice-ximian without the need + to compile it + diff --git a/app-office/openoffice-ximian-bin/Manifest b/app-office/openoffice-ximian-bin/Manifest new file mode 100644 index 000000000000..20cfd8b05d3f --- /dev/null +++ b/app-office/openoffice-ximian-bin/Manifest @@ -0,0 +1,8 @@ +MD5 388c82dba64318f1d21451fcb9ca5b28 openoffice-ximian-bin-1.1.52.ebuild 5074 +MD5 76a0067d18bdd0972ca894c983dbecd7 ChangeLog 613 +MD5 873dfcb3f5c44688deeb32472cef90c3 metadata.xml 268 +MD5 8ee72ad56fa593f36ecb2f2d5756ad78 files/digest-openoffice-ximian-bin-1.1.52 177 +MD5 6ecbfeab440a03f031dbfa0631404aa0 files/1.1.1/ximian-openoffice.applications 980 +MD5 d1a499cfa276614323b547e013d5c6a0 files/1.1.1/ximian-openoffice.keys 6298 +MD5 3ddc9b8931d1842fad3c0dd468e70846 files/1.1.1/xooffice-wrapper-1.3 9221 +MD5 d81e72b4b1e953b67ca20b17aa8e75f6 files/1.1.1/DicOOo.sxw 85349 diff --git a/app-office/openoffice-ximian-bin/files/1.1.1/DicOOo.sxw b/app-office/openoffice-ximian-bin/files/1.1.1/DicOOo.sxw Binary files differnew file mode 100644 index 000000000000..4cb7c2f605c4 --- /dev/null +++ b/app-office/openoffice-ximian-bin/files/1.1.1/DicOOo.sxw diff --git a/app-office/openoffice-ximian-bin/files/1.1.1/ximian-openoffice.applications b/app-office/openoffice-ximian-bin/files/1.1.1/ximian-openoffice.applications new file mode 100644 index 000000000000..5e56216d203a --- /dev/null +++ b/app-office/openoffice-ximian-bin/files/1.1.1/ximian-openoffice.applications @@ -0,0 +1,8 @@ +ximian-openoffice + command=xooffice + name=Ximian OpenOffice.org + can_open_multiple_files=true + expects_uris=true + uses_gnomevfs=true + requires_terminal=false + mime_types=application/vnd.lotus-1-2-3,application/vnd.ms-excel,application/rtf,application/msword,application/vnd.ms-powerpoint,application/vnd.stardivision.calc,application/vnd.stardivision.chart,application/vnd.stardivision.draw,application/vnd.stardivision.impress,application/vnd.stardivision.mail,application/vnd.stardivision.math,application/vnd.stardivision.writer,application/vnd.sun.xml.calc,application/vnd.sun.xml.calc.template,application/vnd.sun.xml.draw,application/vnd.sun.xml.draw.template,application/vnd.sun.xml.impress,application/vnd.sun.xml.impress.template,application/vnd.sun.xml.math,application/vnd.sun.xml.writer,application/vnd.sun.xml.writer.global,application/vnd.sun.xml.writer.template,image/x-emf,image/x-pcx,image/x-photo-cd,image/x-pict diff --git a/app-office/openoffice-ximian-bin/files/1.1.1/ximian-openoffice.keys b/app-office/openoffice-ximian-bin/files/1.1.1/ximian-openoffice.keys new file mode 100644 index 000000000000..a669749676f2 --- /dev/null +++ b/app-office/openoffice-ximian-bin/files/1.1.1/ximian-openoffice.keys @@ -0,0 +1,129 @@ +application/vnd.lotus-1-2-3 + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.ms-excel + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/rtf + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/msword + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.ms-powerpoint + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.stardivision.calc + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.stardivision.chart + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.stardivision.draw + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.stardivision.impress + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.stardivision.mail + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.stardivision.math + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.stardivision.writer + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.sun.xml.calc + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.sun.xml.calc.template + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.sun.xml.draw + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.sun.xml.draw.template + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.sun.xml.impress + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.sun.xml.impress.template + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.sun.xml.math + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.sun.xml.writer + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.sun.xml.writer.global + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +application/vnd.sun.xml.writer.template + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +image/x-emf + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +image/x-pcx + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +image/x-photo-cd + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice + +image/x-pict + short_list_application_ids_for_novice_user_level=ximian-openoffice + short_list_application_ids_for_intermediate_user_level=ximian-openoffice + short_list_application_ids_for_advanced_user_level=ximian-openoffice diff --git a/app-office/openoffice-ximian-bin/files/1.1.1/xooffice-wrapper-1.3 b/app-office/openoffice-ximian-bin/files/1.1.1/xooffice-wrapper-1.3 new file mode 100644 index 000000000000..144c4e7aa281 --- /dev/null +++ b/app-office/openoffice-ximian-bin/files/1.1.1/xooffice-wrapper-1.3 @@ -0,0 +1,270 @@ +#!/bin/sh +# +# Wrapper script for openoffice +# +# (C) Peter 'Nidd' Novodvorsky, 2001,2002 +# (C) Martin 'empty' Quinson, 2002. +# Modifications by Chris Halls +# Modifications by Lucien Saviot + +# 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 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 + +# this string should be exactly as in ~/.xversionrc +PV=<pv> +OOVERSION="OpenOffice.org ${PV}" + +## +## Source system configuration file +## +[ -r /etc/openoffice/openoffice.conf ] && . /etc/openoffice/openoffice.conf + +if [ ! -x "$HOME/.xopenoffice/1.1.1" ] ; then + echo "You are starting this version of Ximian OpenOffice.org for the first time" + echo "As the user install has changed again you will have to redo your settings" +fi + +### +### Get user settings directory from ~/.xversionrc and echo directory name to stdout +### get_settings_dir <Version> +### return: 0 - directory found, +### 1 - ~/.xversionrc non existent +### 2 - entry exists in ~/.xversionrc but directory not found +### 3 - ~/.xversionrc exists but no entry found +get_settings_dir() +{ + [ -r ${HOME}/.xversionrc ] || exit 1 + # warning, .xversionrc is DOS encoded so strip ^M + settings_dir="`tr -d '\r' < ~/.xversionrc | sed -n "/^$1=/s%^$1=file://\(.*\)$%\1%p"`" + echo "$settings_dir" + [ -n "$settings_dir" ] || exit 3 + [ -d "$settings_dir" ] || exit 2 +} + +## +## where does OO live for this user ? +## +OOHOME="`get_settings_dir "$OOVERSION"`" +if [ $? -eq 2 ] ; then + # .xversionrc contains a version yet the directory does not exist + echo "I'm confused because I can't find OpenOffice's user files." + echo "Your ~/.xversionrc file tells they should be under $OOHOME," + echo "but they are not. Please fix the situation manually." + echo "You may want to edit ~/.xversionrc to indicate where is OO" + echo "installed, or remove it if you did remove your installation" + echo "directory manually (you bad one)." + exit 1 +fi + +## +## Unset SESSION_MANAGER if gnome-session is the session manager +## See http://www.openoffice.org/issues/show_bug.cgi?id=4494 +## +SMPID=`echo $SESSION_MANAGER | sed --quiet "s,local.*/,,p"` +if [ -n "$SMPID" ] && [ -L /proc/"$SMPID"/exe ]; then + + SESMGR="`readlink -f /proc/$SMPID/exe`" + case "$SESMGR" in + /usr/bin/gnome-session*) + echo "Gnome session manager detected - session management disabled" + unset SESSION_MANAGER + ;; + esac +fi + +## +## Add known Debian fonts locations to search path +## +## Please report if you have problems with fonts, or know of non-defoma integrated packages that place fonts in other +## paths. +## + +# Default font path. This is used if SAL_FONTPATH_USER is not defined. +DEBOO_FONTPATH="/usr/lib/X11/fonts/misc/;/usr/lib/X11/fonts/cyrillic/;\ +/usr/lib/X11/fonts/100dpi/:unscaled;/usr/lib/X11/fonts/75dpi/:unscaled;\ +/usr/lib/X11/fonts/Type1/;/usr/lib/X11/fonts/CID;/usr/lib/X11/fonts/Speedo/;\ +/usr/lib/X11/fonts/100dpi/;/usr/lib/X11/fonts/75dpi/;\ +/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType;\ +/usr/lib/X11/fonts/TrueType;\ +/usr/share/fonts/truetype/kochi;\ +/usr/lib/X11/fonts/TrueType/larabie-straight;\ +/usr/lib/X11/fonts/TrueType/larabie-uncommon" + +SAL_FONTPATH_USER=${SAL_FONTPATH_USER:-"$DEBOO_FONTPATH"} +export SAL_FONTPATH_USER + +## search LOCALE +if [ -n "$LC_ALL" ]; then + LOCALE="$LC_ALL" + # OOo doesn't understand LC_ALL, so set LANG + LANG="$LC_ALL" +elif [ -n "$LANG" ]; then + LOCALE="$LANG" +elif [ -n "$LC_MESSAGES" ]; then + LOCALE="$LC_MESSAGES" + LANG="$LC_MESSAGES" +else + LOCALE="en_US" +fi + +# Set locale to en_US if locale is C +if [ "x$LOCALE" = "xC" ] ; then LOCALE="en_US"; fi + +LOCALEOO=`echo $LOCALE | sed 's/_/-/'` + +## +## install OO for this user if needed +## +if [ -z "$OOHOME" ] ; then + if [ -e /etc/ximian-openoffice/autoresponse-<pv>.conf ] && \ + grep -q DESTINATIONPATH /etc/ximian-openoffice/autoresponse-<pv>.conf ; then + +# Do not take old settings as migration results in broken behaviour +# +# UPDATEFLAG="" +# if oldhome="`get_settings_dir "OpenOffice.org 1.0.3"`" ; then +# OOHOME="$oldhome" +# echo "Using settings from 1.0.3: /${oldhome}" +# /bin/echo -e "OpenOffice.org <pv>=file://$oldhome\r" >> ~/.xversionrc +# UPDATEFLAG="-update:/$oldhome" +# fi + + # first install + OOHOME=`grep DESTINATIONPATH /etc/ximian-openoffice/autoresponse-<pv>.conf | \ + sed -e 's/DESTINATIONPATH=//' -e "s|<home>|$HOME|"` + + if [ -d "$OOHOME" ]; then + echo "openoffice.org: You have no entry for $OOVERSION in ~/.xversionrc, " + echo "yet the directory $OOHOME exists." + echo "Please remove $OOHOME and try again." + exit 1 + fi + + echo "running openoffice.org setup..." + if ! /opt/Ximian-OpenOffice/program/setup ${UPDATEFLAG} -R:/etc/ximian-openoffice/autoresponse-<pv>.conf >& /dev/null; then + echo "setup failed.. abort" + exit 1 + fi + + + echo "Setup complete. Running openoffice.org..." + +else + echo "openoffice.org: Damnit! I can't find OpenOffice's user files. Did you break" + echo "the /etc/ximian-openoffice/autoresponse-<pv>.conf file manually ?" + echo "This file should contain DESTINATIONPATH" + exit 1 + fi +fi + +## +## If no file is specified on the command line, which application to start? +## The wrapper can be called from several links in /usr/bin +## +if [ $# = 0 ]; then + case `basename $0` in + xoocalc) set -- private:factory/scalc;; + xoodraw) set -- private:factory/sdraw;; + xooimpress) set -- private:factory/simpress;; + xoomath) set -- private:factory/smath;; + xoowriter) set -- private:factory/swriter;; + xoohtml) set -- private:factory/swriter/web;; + xoomaster) set -- private:factory/swriter/Global;; + esac +fi + +## Previous dead installation? +[ -d $HOME/.xopenoffice/user ] && echo "Warning: you have a user settings directory from 1.0.0 in ~/.xopenoffice/user - this is no longer used" + +# There is no locale import file +## Change the ooLocale key in SETUPFILE acording to LOCALE +#TMPFILE=`mktemp -t oooLocale.XXXXXXXXXX` && { +# cat >${TMPFILE} <<EOF +#<?xml version="1.0" encoding="UTF-8"?> +#<oor:node xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Setup" oor:package="org.openoffice"> +# <node oor:name="L10N"> +# <prop oor:name="ooLocale" oor:type="xs:string"> +# <value>$LOCALEOO</value> +# </prop> +# </node> +#</oor:node> +#EOF +# ooconfigimport $TMPFILE >/dev/null +# rm -f ${TMPFILE} +#} + +# Check whether the programs actually link to anything, or are from an old +# version. + +if [ ! -s $OOHOME/setup ]; then + echo "${OOHOME}/setup links to nothing, resetting link" + ln -sf /opt/Ximian-OpenOffice/program/setup ${OOHOME}/setup +fi +if [ ! -s $OOHOME/soffice ]; then + echo "${OOHOME}/soffice links to nothing, resetting link" + ln -sf /opt/Ximian-OpenOffice/program/soffice ${OOHOME}/soffice +fi +if [ ! -s $OOHOME/spadmin ]; then + echo "${OOHOME}/spadmin links to nothing, resetting link" + ln -sf /opt/Ximian-OpenOffice/program/soffice ${OOHOME}/spadmin +fi + + +## +## That's it. Launch the beast (with the given args) +## +LANG=$LOCALE +export LANG +case `basename $0` in + xoosetup) exec "$OOHOME/setup" + ;; + xoopadmin) exec "$OOHOME/spadmin" + ;; + *) exec "$OOHOME/soffice" "$@" + ;; +esac +## Changelog +# 2003/04/01 halls +# * Version 1.1beta +# 2003/02/03 halls +# * Check for nonexistent ooLocale every run +# 2003/01/09 halls +# * Version 1.0.2 +# 12/15 saviot +# * Change ooLocale at startup in Setup.xml +# <ooLocale cfg:type="string"/> doesn't work for help. +# 12/03 challs +# * Add Debian font paths to user font path +# 11/14 saviot +# * correct handling of UI language +# * don't change Linguistic.xml after first startup(#168780) +# * TODO: provide better defaults on first startup +# 10/03 challs +# * Fix use with LC_ALL +# 07/10 challs +# * use 1.0.1 directory and improve error checking +# 07/02 challs +# * use readlink in /proc/PID/exe to get +# real session manager name +# 06/12 challs +# * merge into main package +# * change $@ to "$@" +# * source configuration file: +# /etc/openoffice/openoffice.conf +# 06/12 mquinson +# * strace only when DEBUG is set to yes +# * readd the $@ to pass the args to soffice +# 06/06 mquinson +# * Make sure the OLDLOCALE is never empty +# * handle the case where the locale is C diff --git a/app-office/openoffice-ximian-bin/files/digest-openoffice-ximian-bin-1.1.52 b/app-office/openoffice-ximian-bin/files/digest-openoffice-ximian-bin-1.1.52 new file mode 100644 index 000000000000..a4afd12d2cd0 --- /dev/null +++ b/app-office/openoffice-ximian-bin/files/digest-openoffice-ximian-bin-1.1.52 @@ -0,0 +1,2 @@ +MD5 584192cb9c9a405a5674a19aa61834d3 ooo-1.1.1-0.ximian.8.1.1.snap.1.1.52.1.i586.rpm 70394245 +MD5 5415fcc3a7657daa15f6c9db5edea50b ooo-fonts-1.1.3-0.ximian.8.2.noarch.rpm 70077 diff --git a/app-office/openoffice-ximian-bin/metadata.xml b/app-office/openoffice-ximian-bin/metadata.xml new file mode 100644 index 000000000000..e2900f5c5482 --- /dev/null +++ b/app-office/openoffice-ximian-bin/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>openoffice</herd> +<longdescription>This package provides the ximian flavour of openoffice in binary form</longdescription> +</pkgmetadata> diff --git a/app-office/openoffice-ximian-bin/openoffice-ximian-bin-1.1.52.ebuild b/app-office/openoffice-ximian-bin/openoffice-ximian-bin-1.1.52.ebuild new file mode 100644 index 000000000000..a7f2676c5b67 --- /dev/null +++ b/app-office/openoffice-ximian-bin/openoffice-ximian-bin-1.1.52.ebuild @@ -0,0 +1,186 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-ximian-bin/openoffice-ximian-bin-1.1.52.ebuild,v 1.1 2004/04/02 14:15:43 suka Exp $ + +inherit rpm + +OO_VER=1.1.1 +INSTDIR="/opt/Ximian-OpenOffice" +S="${WORKDIR}/usr" +DESCRIPTION="Ximian-ized version of OpenOffice.org, a full office productivity suite." +SRC_URI="ftp://ftp.ximian.com/pub/xd-unstable/suse-90-i586/ooo-1.1.1-0.ximian.8.1.1.snap.1.1.52.1.i586.rpm + ftp://ftp.ximian.com/pub/xd-unstable/suse-90-i586/ooo-fonts-1.1.3-0.ximian.8.2.noarch.rpm" + +HOMEPAGE="http://ooo.ximian.com" +LICENSE="LGPL-2 | SISSL-1.1" +SLOT="0" +KEYWORDS="~x86" +IUSE="gnome kde" + +RDEPEND=">=sys-libs/glibc-2.1 + !=sys-libs/glibc-2.3.1* + >=dev-lang/perl-5.0 + >=x11-libs/gtk+-2.0 + >=gnome-base/libgnome-2.2 + >=gnome-base/gnome-vfs-2.0 + >=net-print/libgnomecups-0.1.4 + >=net-print/gnome-cups-manager-0.16 + >=dev-libs/libxml2-2.0 + >=media-libs/libart_lgpl-2.3.13 + >=x11-libs/startup-notification-0.5 + media-fonts/ttf-bitstream-vera + media-libs/fontconfig + media-libs/libpng + sys-devel/flex + sys-devel/bison + virtual/x11 + app-arch/zip + app-arch/unzip + dev-libs/expat + virtual/lpr + ppc? ( >=sys-libs/glibc-2.2.5-r7 + >=sys-devel/gcc-3.2.1 ) + >=media-libs/freetype-2.1.4" + +DEPEND="${RDEPEND} + dev-util/intltool" + +src_unpack() { + rpm_src_unpack +} + +src_install() { + + # Sandbox issues; bug #11838 + addpredict "/user" + addpredict "/share" + addpredict "/dev/dri" + addpredict "/usr/bin/soffice" + addpredict "/pspfontcache" + + # Autoresponse file for main installation + cat > ${T}/rsfile-global <<-"END_RS" + [ENVIRONMENT] + INSTALLATIONMODE=INSTALL_NETWORK + INSTALLATIONTYPE=STANDARD + DESTINATIONPATH=<destdir> + OUTERPATH= + LOGFILE= + LANGUAGELIST=<LANGUAGE> + + [JAVA] + JavaSupport=preinstalled_or_none + END_RS + + # Autoresponse file for user installation + cat > ${T}/rsfile-local <<-"END_RS" + [ENVIRONMENT] + INSTALLATIONMODE=INSTALL_WORKSTATION + INSTALLATIONTYPE=WORKSTATION + DESTINATIONPATH=<home>/.xopenoffice/<pv> + + [JAVA] + JavaSupport=none + END_RS + + # Fixing install location in response file + sed -e "s|<destdir>|${D}${INSTDIR}|" \ + ${T}/rsfile-global > ${T}/autoresponse + + einfo "Installing Ximian-OpenOffice.org into build root..." + dodir ${INSTDIR} + cd ${S}/lib/ooo-1.1 + cp -R * ${D}${INSTDIR} + + #Fix for parallel install + sed -i -e s/sversionrc/xversionrc/g ${D}${INSTDIR}/program/bootstraprc ${D}${INSTDIR}/program/instdb.ins + + echo + einfo "Removing build root from registry..." + # Remove totally useless stuff. + rm -f ${D}${INSTDIR}/program/{setup.log,sopatchlevel.sh} + # Remove build root from registry and co + egrep -rl "${D}" ${D}${INSTDIR}/* | \ + xargs -i perl -pi -e "s|${D}||g" {} || : + + einfo "Fixing permissions..." + # Fix permissions + find ${D}${INSTDIR}/ -type f -exec chmod a+r {} \; + chmod a+x ${D}${INSTDIR}/share/config/webcast/*.pl + find ${D}${INSTDIR}/ -type d -exec chmod a+rx {} \; + + # Fix symlinks + dosym program/setup ${INSTDIR}/setup + + # Install user autoresponse file + insinto /etc/ximian-openoffice + sed -e "s|<pv>|${OO_VER}|g" ${T}/rsfile-local > ${T}/autoresponse-${OO_VER}.conf + doins ${T}/autoresponse-${OO_VER}.conf + + # Install wrapper script + exeinto /usr/bin + sed -e "s|<pv>|${OO_VER}|g" \ + ${FILESDIR}/${OO_VER}/xooffice-wrapper-1.3 > ${T}/xooffice + doexe ${T}/xooffice + + # Component symlinks + for app in calc draw impress html math writer setup; do + dosym xooffice /usr/bin/xoo${app} + done + + # Install ximian icons + cd ${S}/share/pixmaps + insinto /usr/share/pixmaps + doins *.png + + cd ${S}/share/gnome/ximian/applications/ + rm -f *1.1* + sed -i -e s/'=oo'/'=xoo'/g *.desktop + + einfo "Installing Menu shortcuts and mime info (need \"gnome\" or \"kde\" in USE)..." + if [ -n "`use gnome`" ] + then + insinto /usr/share/applications + doins *.desktop + insinto /usr/share/application-registry + doins ${FILESDIR}/${OO_VER}/ximian-openoffice.applications + insinto /usr/share/mime-info + doins ${FILESDIR}/${OO_VER}/ximian-openoffice.keys + fi + + if [ -n "`use kde`" ] + then + insinto /usr/share/applnk/Ximian-OpenOffice.org + doins *.desktop + fi + + # Install corrected Symbol Font + insinto /usr/X11R6/lib/X11/fonts/truetype/ + doins ${S}/share/fonts/default/TrueType/symbol/*.ttf + + # Install missing Dictionary installer + insinto ${INSTDIR}/share/dict/ooo + doins ${FILESDIR}/${OO_VER}/DicOOo.sxw + + # Remove unneeded stuff + rm -rf ${D}${INSTDIR}/share/cde + + # Make sure these do not get nuked. + keepdir ${INSTDIR}/user/registry/res/en-us/org/openoffice/{Office,ucb} + keepdir ${INSTDIR}/user/psprint/{driver,fontmetric} + keepdir ${INSTDIR}/user/{autocorr,backup,plugin,store,temp,template} +} + +pkg_postinst() { + + einfo "******************************************************************" + einfo " To start Ximian-OpenOffice.org, run:" + einfo + einfo " $ xooffice" + einfo + einfo " Also, for individual components, you can use any of:" + einfo + einfo " xoocalc, xoodraw, xooimpress, xoomath, xooweb or xoowriter" + einfo + einfo "******************************************************************" +} |