-MD5 2ba088818526784de145122600a8eb30 openoffice-bin-1.9.130.ebuild 5867
MD5 8efb95641f1e2a31d2128f0d1361556d openoffice-bin-2.0.0_rc1.ebuild 6547
MD5 754b2a399f6c90c5a6f17d2efc30131d openoffice-bin-1.1.5.ebuild 4718
-MD5 42e2bc368264e44f4d27f3f4b52fa4b9 openoffice-bin-1.9.128.ebuild 5848
MD5 b986cfdd8585ed8adde6bcff8f427361 openoffice-bin-1.1.1.ebuild 5857
MD5 d39203cfa3918278f573580eae65e184 openoffice-bin-1.1.4-r1.ebuild 5006
MD5 38711fe363f196926af8c425066798d9 ChangeLog 17143
MD5 753fd14ec632a7fe71ab9abef357f93f files/digest-openoffice-bin-1.1.4-r1 141
MD5 2b70af485f57d1db6983b006f16a0587 files/digest-openoffice-bin-1.1.1 171
MD5 5828bbd9e0139dae2ff43c23a65a844b files/digest-openoffice-bin-1.1.5 82
-MD5 ff3f24d27e7a0cf0b541503caeedc201 files/digest-openoffice-bin-1.9.128 2688
-MD5 c8d7b48fff85b181fcb793aab5a23b67 files/digest-openoffice-bin-1.9.130 2760
MD5 e03d40bf3ce0e7ed62819425202e5849 files/digest-openoffice-bin-2.0.0_rc1 4647
-MD5 5dda7100c72b8c59a43001c9a39fba77 files/1.9/ooo-wrapper2 3950
MD5 4b2f3102e273ff72e281ed0d481b1526 files/1.1.1/ooffice-wrapper-1.3 9166
MD5 4045e7a45d5209ff0ac93c5c5db0114b files/1.1.4/ooffice-wrapper-1.3 6659
MD5 475dbfca78a66962143b39d3aac7915a files/1.1.5/ooffice-wrapper-1.3 6659
+++ /dev/null
-#!/usr/bin/perl -w
-#*****************************************************************************
-#
-# ooffice - Wrapper script for OpenOffice.org
-#
-# Based on the Mandrake work.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2, as
-# published by the Free Software Foundation.
-#
-# 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.
-#
-#*****************************************************************************
-
-use strict;
-use IO::Handle;
-use Fcntl ':flock';
-
-my $Debug = $ENV{OOO_DEBUG};
-my $DebugRH = $ENV{OOO_RH_DEBUG};
-
-# Define the vendor of this particular OOo pacakge
-my $VendorName = 'Gentoo';
-# Define system installation directory
-# Autoconf totally sucks for @libdir@ type substitution
-my $SystemInstallDir = '/usr/lib/openoffice';
-# Suffix for parallel installable versioning
-my $BinSuffix = '2';
-# ooo-build version
-my $OOO_BUILDVERSION = 'PV';
-# Debugging
-
-if ( $DebugRH ) {
- $Debug = 1;
- $VendorName = "RedHat";
-}
-if ($Debug && $BinSuffix =~ /^\@/) {
- $SystemInstallDir = "/usr/lib/ooo-1.9";
- $BinSuffix = '1.9';
-}
-
-#=============================================================================
-# Main
-#=============================================================================
-
-# Parse command line arguments
-my @ooo_argv;
-my $session_quickstart;
-my $widgets_set;
-while ($ARGV[0]) {
- $_ = shift;
- if (m/^--session-quickstart/) {
- $session_quickstart = 1;
- } elsif (m/^--widgets-set/) {
- $widgets_set = shift;
- (defined $widgets_set) || die "Error: The option --widgets-set requires a value\n" .
- "For example: --widgets-set gtk\n";
- } elsif (m/^--version/) {
- print "This is OpenOffice.org built with ooo-build-$OOO_BUILDVERSION\n";
- exit 0;
- } else {
- push @ooo_argv, $_;
- }
-}
-
-if (!@ooo_argv) {
- my $arg;
- if ($0 =~ m/\/oo(calc|draw|impress|math|web|writer|base)$BinSuffix$/) {
- $arg = "-$1";
- } elsif ($0 =~ m/\/oofromtemplate$BinSuffix$/) {
- $arg = "slot:5500";
- }
-
- if ($arg) {
- push @ooo_argv, "$arg";
- $Debug && print "Append arg: $arg\n";
- }
-} else {
- $Debug && print "Ignoring type - since have filenames\n";
-}
-
-if (defined $widgets_set) {
- $ENV{SAL_USE_VCLPLUGIN} = $widgets_set;
-}
-
-# overcome ghastly up-stream evilness
-$ENV{SAL_NOEXPANDFPICKER}='TRUE';
-
-if ($session_quickstart) {
- $Debug && print "Execute quickstarter\n";
- push @ooo_argv, '-quickstart';
-}
-
-# FIXME: the following two fixes should be done by OOo itself
-# create the user config directory with safe rights 700 if it we find
-# the right path and the directory does not exist
-if (open BOOTSTRAPRC, "/usr/lib/openoffice/program/bootstraprc") {
- while (my $line = <BOOTSTRAPRC>) {
- chomp $line;
- if (($line =~ m/^\s*UserInstallation\s*=\s*([^\s]*)\s*$/) && ($1)) {
- my $userConfDir=$1;
- $userConfDir =~ s|\$SYSUSERCONFIG|$ENV{HOME}|;
- $userConfDir =~ s|file://||;
- mkdir ($userConfDir,0700) unless (-d $userConfDir);
- last;
- }
- }
- close BOOTSTRAPRC;
-}
-# touch ~/.recently-used with safe rights 700 if it does not exist
-if (! -f "$ENV{HOME}/.recently-used") {
- open (RECENTLY_USED, ">$ENV{HOME}/.recently-used") &&
- close RECENTLY_USED &&
- chmod 0600, "$ENV{HOME}/.recently-used";
-}
-
-if (!(-f '/proc/version')) {
- print STDERR "\n\n --- Warning - OO.o will not work without a mounted /proc filesystem --- \n\n\n";
-}
-
-# And here we go.
-exec "$SystemInstallDir/program/soffice", @ooo_argv
+++ /dev/null
-MD5 a621c5f3a3257294e798f44060a5a31c OOo_1.9.128_LinuxIntel_install.tar.gz 106836032
-MD5 e2ef4885e8c1528358017da8e2387387 openoffice.org-af-1.9.128-1.i586.tar.gz 14035869
-MD5 bc8bb4831fe9545cbfcc35c5028978ef openoffice.org-bg-1.9.128-1.i586.tar.gz 14593056
-MD5 1c233f47bc98892a179d5f79a883e8f8 openoffice.org-cs-1.9.128-1.i586.tar.gz 14665241
-MD5 b79a2aace67f2c9cf7fe2e4589a755fe openoffice.org-cy-1.9.128-1.i586.tar.gz 13955346
-MD5 9de77eb8e0a021d9648292271adb5692 openoffice.org-da-1.9.128-1.i586.tar.gz 14516913
-MD5 3f1050fd0f32c03e2b738de426a506d6 openoffice.org-de-1.9.128-1.i586.tar.gz 15515161
-MD5 4255d3c536b72db6221e00d4a435d287 openoffice.org-en-GB-1.9.128-1.i586.tar.gz 14105764
-MD5 10fb709ea4e067d4767c3c0e273f79cd OOo_1.9.128_LinuxIntel_langpack_es.tar.gz 14835367
-MD5 a33f3dde79fd0a97217d6a8d89cbcc85 openoffice.org-et-1.9.128-1.i586.tar.gz 14754192
-MD5 0be0f114bc7c826ef28ba1562fe61ee8 openoffice.org-fi-1.9.128-1.i586.tar.gz 14034824
-MD5 4a86761b904abc8724904094cba06a0a openoffice.org-fr-1.9.128-1.i586.tar.gz 15029958
-MD5 f647eddf1094980b9d17e68f531a796a openoffice.org-hr-1.9.128-1.i586.tar.gz 14312494
-MD5 fff80cea24dbc4ca9d433ac463235922 openoffice.org-hu-1.9.128-1.i586.tar.gz 14086200
-MD5 b3f60da4a090e7c1254ef9917d28e46b OOo_1.9.128_LinuxIntel_langpack_it.tar.gz 14802960
-MD5 47e700c33178ebf440ea769105d99d1e OOo_1.9.128_LinuxIntel_langpack_ja.tar.gz 15583966
-MD5 375808d6d257162c08610fbcbabe88a6 openoffice.org-km-1.9.128-1.i586.tar.gz 16817005
-MD5 97bb099db64f7bf174295275f2f485ca OOo_1.9.128_LinuxIntel_langpack_ko.tar.gz 14724953
-MD5 c943703d40875988d8e6419213e6773b openoffice.org-lt-1.9.128-1.i586.tar.gz 13959046
-MD5 b1d8f701f88871f544df17aad569b81f openoffice.org-nb-1.9.128-1.i586.tar.gz 14001370
-MD5 e9d5e064fe04c4d7e5a51992fb8f7529 openoffice.org-nl-1.9.128-1.i586.tar.gz 13934329
-MD5 6471f93e141be0c596ef58b8d379014d openoffice.org-nn-1.9.128-1.i586.tar.gz 13983015
-MD5 5626937666a2fb5b2aace4d2863aba67 openoffice.org-ns-1.9.128-1.i586.tar.gz 13946180
-MD5 46e9407c00a6793fb4316557371b575c openoffice.org-sk-1.9.128-1.i586.tar.gz 14627212
-MD5 69eff8f6986b901b59bef7401a8fd3f0 openoffice.org-sl-1.9.128-1.i586.tar.gz 13962611
-MD5 75b7191f671fa01101b5d55299810102 OOo_1.9.128_LinuxIntel_langpack_sv.tar.gz 14625667
-MD5 857b9f7654d6ffb98b59c13cfb98177c openoffice.org-tn-1.9.128-1.i586.tar.gz 14050250
-MD5 628e91398028908c88dc18bc12449692 openoffice.org-xh-1.9.128-1.i586.tar.gz 14081473
-MD5 24ce0ea49060b56f1260dd530ffb60e2 OOo_1.9.128_LinuxIntel_langpack_zh-CN.tar.gz 14907586
-MD5 d749590598eab2204b7c8963474c3f00 OOo_1.9.128_LinuxIntel_langpack_zh-TW.tar.gz 15071952
-MD5 1561a156ab8c8ea29ec2fa5089cade48 openoffice.org-zu-1.9.128-1.i586.tar.gz 14006588
+++ /dev/null
-MD5 ad5aebdbf31265e29c7f1c5cfdc82c0d OOo_1.9.130_LinuxIntel_install.tar.gz 106287138
-MD5 0461a8f6fe27b8efa16f7809ca56e70e openoffice.org-af-1.9.130-1.i586.tar.gz 13329106
-MD5 4c4eb2f467bb3387a960089586151c87 openoffice.org-bg-1.9.130-1.i586.tar.gz 13888924
-MD5 f99295a747b8fd900badb8dbe91f329e openoffice.org-bn-1.9.130-1.i586.tar.gz 13244409
-MD5 4dd7856d180878fad6bb8d00abcd1803 openoffice.org-br-1.9.130-1.i586.tar.gz 14299557
-MD5 7a22eb8eb2b342d2816c567dcd92cd72 openoffice.org-cs-1.9.130-1.i586.tar.gz 13929217
-MD5 d43fe73fc7978009807edb93f74e1552 openoffice.org-cy-1.9.130-1.i586.tar.gz 13238303
-MD5 6f40c40340c7aec199fa11729ac6416c openoffice.org-da-1.9.130-1.i586.tar.gz 13805141
-MD5 b23e495399ab1914a33b47badc08be8b openoffice.org-de-1.9.130-1.i586.tar.gz 14800391
-MD5 7f63ec9805f87ef3958b086d2f4887d3 openoffice.org-en-GB-1.9.130-1.i586.tar.gz 13399676
-MD5 5a87a94970d587f680b063d2fcd31313 openoffice.org-et-1.9.130-1.i586.tar.gz 14049674
-MD5 9899dadc740a3a1bbba8355a7df83fd0 openoffice.org-fi-1.9.130-1.i586.tar.gz 13321745
-MD5 00f25176e08d81799aa90e80c95b03de openoffice.org-fr-1.9.130-1.i586.tar.gz 14319533
-MD5 b9b52ed5759dea8309d49d9113fef726 openoffice.org-ga-1.9.130-1.i586.tar.gz 13530964
-MD5 1f37c398cc4e2ba6f7aeae7771854586 openoffice.org-hr-1.9.130-1.i586.tar.gz 13604541
-MD5 dc9921c60664427fc50fba8c6da3ebe3 openoffice.org-hu-1.9.130-1.i586.tar.gz 13376349
-MD5 b0a494bcaf261736505a3d24db42e768 openoffice.org-it-1.9.130-1.i586.tar.gz 14087713
-MD5 7325fb26bfa75c684bdc4939b9ced77d openoffice.org-km-1.9.130-1.i586.tar.gz 16079409
-MD5 5d239598e0ebddb9dd4e98935c30f923 openoffice.org-lt-1.9.130-1.i586.tar.gz 13247867
-MD5 cead49062f06bd5ce106663ee188f3aa openoffice.org-nb-1.9.130-1.i586.tar.gz 13296470
-MD5 5b92fd56dfc7268fec49c3595bd945a1 openoffice.org-ne-1.9.130-1.i586.tar.gz 13318855
-MD5 daad8d6afad39b5aea14c225c2d7f998 openoffice.org-nl-1.9.130-1.i586.tar.gz 14400129
-MD5 a67b9b33dc1227ed5a60b3d9c5949d82 openoffice.org-nn-1.9.130-1.i586.tar.gz 13271211
-MD5 1269e055ed9e6e814ae90a6c15dd7a81 openoffice.org-ns-1.9.130-1.i586.tar.gz 13232021
-MD5 09391a3047b6334e012a5f0fda708aac openoffice.org-sh-YU-1.9.130-1.i586.tar.gz 13227775
-MD5 060b7719865232c642880dafa8fdd611 openoffice.org-sk-1.9.130-1.i586.tar.gz 13915325
-MD5 c956cc060de203a5cfff2219d61f0328 openoffice.org-sl-1.9.130-1.i586.tar.gz 13247833
-MD5 e98ba8b1e33275404b782413a8f3b907 openoffice.org-sr-CS-1.9.130-1.i586.tar.gz 13276319
-MD5 227f1d6aa97bc35853e79225659b03b4 openoffice.org-sv-1.9.130-1.i586.tar.gz 13890586
-MD5 419397acb75064abc2e365a367e7e6d1 openoffice.org-tn-1.9.130-1.i586.tar.gz 13336621
-MD5 e6dce046126002de19b4cec2a6496d47 openoffice.org-xh-1.9.130-1.i586.tar.gz 13373758
-MD5 e58bab9134de4b0df44f204d1cde60b9 openoffice.org-zu-1.9.130-1.i586.tar.gz 13294677
+++ /dev/null
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-1.9.128.ebuild,v 1.4 2005/09/14 05:39:06 suka Exp $
-
-inherit eutils fdo-mime rpm versionator
-
-IUSE="gnome java kde"
-
-INSTDIR="/usr/lib/openoffice"
-SNV="$(get_version_component_range 3)"
-S="${WORKDIR}/SRC680_m${SNV}_native_packed-1_en-US.8951/RPMS"
-DESCRIPTION="OpenOffice productivity suite"
-
-LANGPACK="OOo_${PV}_LinuxIntel_langpack"
-LANGPACKPATH="http://oootranslation.services.openoffice.org/pub/OpenOffice.org/680m${SNV}/${LANGPACK}"
-LANGLOC="http://ftp.linux.cz/pub/localization/OpenOffice.org/devel/680/SRC680_m${SNV}/Build-1/OOo_SRC680_m${SNV}_native_LinuxIntel_langpacks_rpm"
-LANGSUFFIX="${PV}-1.i586.tar.gz"
-
-SRC_URI="mirror://openoffice/developer/680_m${SNV}/OOo_${PV}_LinuxIntel_install.tar.gz
- linguas_af? ( ${LANGLOC}/openoffice.org-af-${LANGSUFFIX} )
- linguas_bg? ( ${LANGLOC}/openoffice.org-bg-${LANGSUFFIX} )
- linguas_cs? ( ${LANGLOC}/openoffice.org-cs-${LANGSUFFIX} )
- linguas_cy? ( ${LANGLOC}/openoffice.org-cy-${LANGSUFFIX} )
- linguas_da? ( ${LANGLOC}/openoffice.org-da-${LANGSUFFIX} )
- linguas_de? ( ${LANGLOC}/openoffice.org-de-${LANGSUFFIX} )
- linguas_en_GB? ( ${LANGLOC}/openoffice.org-en-GB-${LANGSUFFIX} )
- linguas_es? ( ${LANGPACKPATH}_es.tar.gz )
- linguas_et? ( ${LANGLOC}/openoffice.org-et-${LANGSUFFIX} )
- linguas_fi? ( ${LANGLOC}/openoffice.org-fi-${LANGSUFFIX} )
- linguas_fr? ( ${LANGLOC}/openoffice.org-fr-${LANGSUFFIX} )
- linguas_hr? ( ${LANGLOC}/openoffice.org-hr-${LANGSUFFIX} )
- linguas_hu? ( ${LANGLOC}/openoffice.org-hu-${LANGSUFFIX} )
- linguas_it? ( ${LANGPACKPATH}_it.tar.gz )
- linguas_ja? ( ${LANGPACKPATH}_ja.tar.gz )
- linguas_km? ( ${LANGLOC}/openoffice.org-km-${LANGSUFFIX} )
- linguas_ko? ( ${LANGPACKPATH}_ko.tar.gz )
- linguas_lt? ( ${LANGLOC}/openoffice.org-lt-${LANGSUFFIX} )
- linguas_nb? ( ${LANGLOC}/openoffice.org-nb-${LANGSUFFIX} )
- linguas_nl? ( ${LANGLOC}/openoffice.org-nl-${LANGSUFFIX} )
- linguas_nn? ( ${LANGLOC}/openoffice.org-nn-${LANGSUFFIX} )
- linguas_ns? ( ${LANGLOC}/openoffice.org-ns-${LANGSUFFIX} )
- linguas_sk? ( ${LANGLOC}/openoffice.org-sk-${LANGSUFFIX} )
- linguas_sl? ( ${LANGLOC}/openoffice.org-sl-${LANGSUFFIX} )
- linguas_sv? ( ${LANGPACKPATH}_sv.tar.gz )
- linguas_tn? ( ${LANGLOC}/openoffice.org-tn-${LANGSUFFIX} )
- linguas_xh? ( ${LANGLOC}/openoffice.org-xh-${LANGSUFFIX} )
- linguas_zh_CN? ( ${LANGPACKPATH}_zh-CN.tar.gz )
- linguas_zh_TW? ( ${LANGPACKPATH}_zh-TW.tar.gz )
- linguas_zu? ( ${LANGLOC}/openoffice.org-zu-${LANGSUFFIX} )"
-
-HOMEPAGE="http://www.openoffice.org/"
-
-LICENSE="|| ( LGPL-2 SISSL-1.1 )"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-
-RDEPEND="!app-office/openoffice
- virtual/x11
- virtual/libc
- >=dev-lang/perl-5.0
- app-arch/zip
- app-arch/unzip
- java? ( >=virtual/jre-1.4.1 )
- amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0 )
- linguas_ja? ( >=media-fonts/kochi-substitute-20030809-r3 )
- linguas_zh_CN? ( >=media-fonts/arphicfonts-0.1-r2 )
- linguas_zh_TW? ( >=media-fonts/arphicfonts-0.1-r2 )"
-
-DEPEND="${RDEPEND}
- sys-apps/findutils"
-
-PROVIDE="virtual/ooo"
-
-src_unpack() {
-
- unpack ${A}
-
- for i in base core01 core02 core03 core04 core05 core06 core07 core08 core09 core10 calc draw impress math writer graphicfilter pyuno spellcheck testtool xsltfilter core03u core04u core05u ; do
- rpm_unpack ${S}/openoffice.org-${i}-${PV}-1.i586.rpm
- done
-
- rpm_unpack ${S}/desktop-integration/openoffice.org-freedesktop-menus-${PV}-1.noarch.rpm
- use kde && rpm_unpack ${S}/desktop-integration/openoffice.org-suse-menus-${PV}-1.noarch.rpm
-
- use gnome && rpm_unpack ${S}/openoffice.org-gnome-integration-${PV}-1.i586.rpm
- use java && rpm_unpack ${S}/openoffice.org-javafilter-${PV}-1.i586.rpm
-
- strip-linguas en af bg cs cy da de en_GB es et fi fr hr hu it ja km ko lt nb nl nn ns pt_BR sk sl sv tn xh zh_CN zh_TW zu
-
- for i in ${LINGUAS}; do
- i="${i/_/-}"
- if [ ${i} != "en" ] ; then
- rpm_unpack openoffice.org-${i}-${PV}-1.i586.rpm
- rpm_unpack openoffice.org-${i}-help-${PV}-1.i586.rpm
- rpm_unpack openoffice.org-${i}-res-${PV}-1.i586.rpm
- fi
- done
-
-}
-
-src_install () {
-
- einfo "Installing OpenOffice.org into build root..."
- dodir ${INSTDIR}
- dodir /usr/share/icons
- dodir /usr/share/mime
- mv ${WORKDIR}/opt/openoffice.org${PV}/* ${D}${INSTDIR}
- mv ${WORKDIR}/usr/share/icons/* ${D}/usr/share/icons
-
- use kde && dodir /usr/share/mimelnk/application && mv ${WORKDIR}/opt/kde3/share/mimelnk/application/* ${D}/usr/share/mimelnk/application
-
- #Menu entries
- cd ${D}${INSTDIR}/share/xdg/
-
- sed -i -e s/'Exec=openoffice.org-1.9-printeradmin'/'Exec=oopadmin2'/g printeradmin.desktop || die
-
- for desk in base calc draw impress math writer printeradmin; do
- mv ${desk}.desktop openoffice.org-1.9-${desk}.desktop
- sed -i -e s/openoffice.org-1.9/ooffice2/g openoffice.org-1.9-${desk}.desktop || die
- domenu openoffice.org-1.9-${desk}.desktop
- done
-
- # Install wrapper script
- newbin ${FILESDIR}/1.9/ooo-wrapper2 ooffice2
- sed -i -e s/PV/${PV}/g ${D}/usr/bin/ooffice2 || die
-
- # Component symlinks
- for app in base calc draw fromtemplate impress math web writer; do
- dosym ooffice2 /usr/bin/oo${app}2
- done
-
- dosym ${INSTDIR}/program/spadmin.bin /usr/bin/oopadmin2
-
- # Change user install dir
- sed -i -e s/.openoffice.org${PV}/.ooo-2.0-pre/g ${D}${INSTDIR}/program/bootstraprc || die
-
- # Fixing some icon dir permissions
- chmod +r -R ${D}/usr/share/icons/ || die
-
- # Non-java weirdness see bug #99366
- use java || rm -f ${D}${INSTDIR}/program/javaldx
-}
-
-pkg_postinst() {
-
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
-
- einfo " To start OpenOffice.org, run:"
- einfo
- einfo " $ ooffice2"
- einfo
- einfo " Also, for individual components, you can use any of:"
- einfo
- einfo " oobase2, oocalc2, oodraw2, oofromtemplate2, ooimpress2, oomath2,"
- einfo " ooweb2 or oowriter2"
-}
+++ /dev/null
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-1.9.130.ebuild,v 1.3 2005/09/24 07:24:37 suka Exp $
-
-inherit eutils fdo-mime rpm versionator
-
-IUSE="gnome java kde"
-
-INSTDIR="/usr/lib/openoffice"
-SNV="$(get_version_component_range 3)"
-S="${WORKDIR}/SRC680_m${SNV}_native_packed-1_en-US.8955/RPMS"
-DESCRIPTION="OpenOffice productivity suite"
-
-LANGPACK="OOo_${PV}_LinuxIntel_langpack"
-LANGPACKPATH="http://oootranslation.services.openoffice.org/pub/OpenOffice.org/680m${SNV}/${LANGPACK}"
-LANGLOC="http://ftp.linux.cz/pub/localization/OpenOffice.org/devel/680/SRC680_m${SNV}/Build-1/OOo_SRC680_m${SNV}_native_LinuxIntel_langpacks_rpm"
-LANGSUFFIX="${PV}-1.i586.tar.gz"
-
-SRC_URI="mirror://openoffice/developer/680_m${SNV}/OOo_${PV}_LinuxIntel_install.tar.gz
- linguas_af? ( ${LANGLOC}/openoffice.org-af-${LANGSUFFIX} )
- linguas_bg? ( ${LANGLOC}/openoffice.org-bg-${LANGSUFFIX} )
- linguas_bn? ( ${LANGLOC}/openoffice.org-bn-${LANGSUFFIX} )
- linguas_br? ( ${LANGLOC}/openoffice.org-br-${LANGSUFFIX} )
- linguas_cs? ( ${LANGLOC}/openoffice.org-cs-${LANGSUFFIX} )
- linguas_cy? ( ${LANGLOC}/openoffice.org-cy-${LANGSUFFIX} )
- linguas_da? ( ${LANGLOC}/openoffice.org-da-${LANGSUFFIX} )
- linguas_de? ( ${LANGLOC}/openoffice.org-de-${LANGSUFFIX} )
- linguas_en_GB? ( ${LANGLOC}/openoffice.org-en-GB-${LANGSUFFIX} )
- linguas_et? ( ${LANGLOC}/openoffice.org-et-${LANGSUFFIX} )
- linguas_fi? ( ${LANGLOC}/openoffice.org-fi-${LANGSUFFIX} )
- linguas_fr? ( ${LANGLOC}/openoffice.org-fr-${LANGSUFFIX} )
- linguas_ga? ( ${LANGLOC}/openoffice.org-ga-${LANGSUFFIX} )
- linguas_hr? ( ${LANGLOC}/openoffice.org-hr-${LANGSUFFIX} )
- linguas_hu? ( ${LANGLOC}/openoffice.org-hu-${LANGSUFFIX} )
- linguas_it? ( ${LANGLOC}/openoffice.org-it-${LANGSUFFIX} )
- linguas_km? ( ${LANGLOC}/openoffice.org-km-${LANGSUFFIX} )
- linguas_lt? ( ${LANGLOC}/openoffice.org-lt-${LANGSUFFIX} )
- linguas_nb? ( ${LANGLOC}/openoffice.org-nb-${LANGSUFFIX} )
- linguas_ne? ( ${LANGLOC}/openoffice.org-ne-${LANGSUFFIX} )
- linguas_nl? ( ${LANGLOC}/openoffice.org-nl-${LANGSUFFIX} )
- linguas_nn? ( ${LANGLOC}/openoffice.org-nn-${LANGSUFFIX} )
- linguas_ns? ( ${LANGLOC}/openoffice.org-ns-${LANGSUFFIX} )
- linguas_sh_YU? ( ${LANGLOC}/openoffice.org-sh-YU-${LANGSUFFIX} )
- linguas_sk? ( ${LANGLOC}/openoffice.org-sk-${LANGSUFFIX} )
- linguas_sl? ( ${LANGLOC}/openoffice.org-sl-${LANGSUFFIX} )
- linguas_sr_CS? ( ${LANGLOC}/openoffice.org-sr-CS-${LANGSUFFIX} )
- linguas_sv? ( ${LANGLOC}/openoffice.org-sv-${LANGSUFFIX} )
- linguas_tn? ( ${LANGLOC}/openoffice.org-tn-${LANGSUFFIX} )
- linguas_xh? ( ${LANGLOC}/openoffice.org-xh-${LANGSUFFIX} )
- linguas_zu? ( ${LANGLOC}/openoffice.org-zu-${LANGSUFFIX} )"
-
-HOMEPAGE="http://www.openoffice.org/"
-
-LICENSE="LGPL-2"
-SLOT="0"
-KEYWORDS="~x86 ~amd64"
-
-RDEPEND="!app-office/openoffice
- virtual/x11
- virtual/libc
- >=dev-lang/perl-5.0
- app-arch/zip
- app-arch/unzip
- java? ( >=virtual/jre-1.4.1 )
- amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0 )
- linguas_ja? ( >=media-fonts/kochi-substitute-20030809-r3 )
- linguas_zh_CN? ( >=media-fonts/arphicfonts-0.1-r2 )
- linguas_zh_TW? ( >=media-fonts/arphicfonts-0.1-r2 )"
-
-DEPEND="${RDEPEND}
- sys-apps/findutils"
-
-PROVIDE="virtual/ooo"
-
-src_unpack() {
-
- unpack ${A}
-
- for i in base core01 core02 core03 core04 core05 core06 core07 core08 core09 core10 calc draw impress math writer graphicfilter pyuno spellcheck testtool xsltfilter core03u core04u core05u ; do
- rpm_unpack ${S}/openoffice.org-${i}-${PV}-1.i586.rpm
- done
-
- rpm_unpack ${S}/desktop-integration/openoffice.org-freedesktop-menus-${PV}-1.noarch.rpm
- use kde && rpm_unpack ${S}/desktop-integration/openoffice.org-suse-menus-${PV}-1.noarch.rpm
-
- use gnome && rpm_unpack ${S}/openoffice.org-gnome-integration-${PV}-1.i586.rpm
- use java && rpm_unpack ${S}/openoffice.org-javafilter-${PV}-1.i586.rpm
-
- strip-linguas en af bg bn br cs cy da de en_GB et fi fr ga hr hu it km lt nb ne nl nn ns sh_YU sk sl sr_CS sv tn xh zu
-
- for i in ${LINGUAS}; do
- i="${i/_/-}"
- if [ ${i} != "en" ] ; then
- rpm_unpack openoffice.org-${i}-${PV}-1.i586.rpm
- rpm_unpack openoffice.org-${i}-help-${PV}-1.i586.rpm
- rpm_unpack openoffice.org-${i}-res-${PV}-1.i586.rpm
- fi
- done
-
-}
-
-src_install () {
-
- einfo "Installing OpenOffice.org into build root..."
- dodir ${INSTDIR}
- dodir /usr/share/icons
- dodir /usr/share/mime
- mv ${WORKDIR}/opt/openoffice.org${PV}/* ${D}${INSTDIR}
- mv ${WORKDIR}/usr/share/icons/* ${D}/usr/share/icons
-
- #Menu entries
- cd ${D}${INSTDIR}/share/xdg/
-
- sed -i -e s/'Exec=openoffice.org-1.9-printeradmin'/'Exec=oopadmin2'/g printeradmin.desktop || die
-
- for desk in base calc draw impress math writer printeradmin; do
- mv ${desk}.desktop openoffice.org-1.9-${desk}.desktop
- sed -i -e s/openoffice.org-1.9/ooffice2/g openoffice.org-1.9-${desk}.desktop || die
- domenu openoffice.org-1.9-${desk}.desktop
- done
-
- # Install wrapper script
- newbin ${FILESDIR}/1.9/ooo-wrapper2 ooffice2
- sed -i -e s/PV/${PV}/g ${D}/usr/bin/ooffice2 || die
-
- # Component symlinks
- for app in base calc draw fromtemplate impress math web writer; do
- dosym ooffice2 /usr/bin/oo${app}2
- done
-
- dosym ${INSTDIR}/program/spadmin.bin /usr/bin/oopadmin2
-
- # Change user install dir
- sed -i -e s/.openoffice.org${PV}/.ooo-2.0-pre/g ${D}${INSTDIR}/program/bootstraprc || die
-
- # Fixing some icon dir permissions
- chmod +r -R ${D}/usr/share/icons/ || die
-
- # Non-java weirdness see bug #99366
- use java || rm -f ${D}${INSTDIR}/program/javaldx
-}
-
-pkg_postinst() {
-
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
-
- einfo " To start OpenOffice.org, run:"
- einfo
- einfo " $ ooffice2"
- einfo
- einfo " Also, for individual components, you can use any of:"
- einfo
- einfo " oobase2, oocalc2, oodraw2, oofromtemplate2, ooimpress2, oomath2,"
- einfo " ooweb2 or oowriter2"
-}