


I tried this method, and emerging rpm worked fine. However when I try to install the rpms I get the followingteilo wrote:I do this all the time on my x86 and my x86_64 machine.
owing command: rpm -i -v --nodeps *.rpm
6) Wait till it finishes
I don't like the rpm2targz method. Takes too long, and is cumbersome for so many packages.
Code: Select all
hoover RPMS # rpm -i -v --nodeps *.rpm 
Code: Select all
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit rpm eutils
MY_PV="${PV/_beta/bc}"
strip-linguas de es fr it ja ko pt sv
if [ -n "${LINGUAS}" ]
then
MY_LINGUAS="_${LINGUAS:0:2}"
fi
DESCRIPTION="OpenOffice productivity suite"
HOMEPAGE="http://www.openoffice.org"
SRC_URI="mirror://openoffice/contrib/rc/${MY_PV}/OOo_${MY_PV}_LinuxIntel_install${MY_LINGUAS}.tar.gz"
LICENSE="|| ( LGPL-2 SISSL-1.1 )"
SLOT="2"
KEYWORDS="~x86"
IUSE="java kde gnome"
DEPEND="virtual/x11
sys-libs/lib-compat
>=media-libs/freetype-2
java? ( >=virtual/jre-1.4.1 )"
PROVIDE="virtual/ooo"
RESTRICT="nostrip"
src_unpack() {
unpack ${A}
rm RPMS/*suse*
useq gnome || rm RPMS/*gnome*
}
src_install() {
cd ${WORKDIR}
for rpm in RPMS/*.rpm
do
einfo "Installing ${rpm}"
rpm_unpack ${rpm} || die "rpm_unpack failed"
rm ${rpm}
done
rm -r usr/bin
rm -r usr/share/applnk-redhat
rm -r usr/share/applications
useq gnome || rm -r usr/share/icons/gnome
if ! useq kde
then
for icondir in hicolor HighContrast locolor
do
rm -r usr/share/icons/${icondir}
done
fi
mv ${WORKDIR}/opt ${WORKDIR}/usr ${D}
dodir /usr/bin
dosym /opt/openoffice.org1.9.79/program/soffice.bin /usr/bin/ooffice-2
dosym /opt/openoffice.org1.9.79/program/spadmin.bin /usr/bin/oopadmin-2
}
pkg_postinst() {
echo
einfo "To start OpenOffice.org, run:"
einfo " $ ooffice-2"
echo
einfo "For managing printers, use:"
einfo " $ oopadmin-2"
echo
}
It tries to fetch OOo_2.0bc_LinuxIntel_install_.tar.gz if you don't have linguas set (default english). Nice ebuild though, the slotting is handy.Earthwings wrote:Here's another ebuild. It supports mirrors and localisation in german, spanish, french, italian, japan, korean, portuguese and swedish (make sure LINGUAS is set accordingly). It's slotted so that you can install it alongside the 1.1.x version, binaries are postfixed -2 (i.e. run it with ooffice-2, oopadmin-2) to avoid collisions. Have fun![]()

Ups. Should be fixed now.firephoto wrote:It tries to fetch OOo_2.0bc_LinuxIntel_install_.tar.gz if you don't have linguas set (default english). Nice ebuild though, the slotting is handy.Earthwings wrote:Here's another ebuild. It supports mirrors and localisation in german, spanish, french, italian, japan, korean, portuguese and swedish (make sure LINGUAS is set accordingly). It's slotted so that you can install it alongside the 1.1.x version, binaries are postfixed -2 (i.e. run it with ooffice-2, oopadmin-2) to avoid collisions. Have fun![]()