|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-1.1.3.ebuild,v 1.3 2004/10/12 15:14:45 suka Exp $ | # $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-1.1.3.ebuild,v 1.3 2004/10/12 15:14:45 suka Exp $ |
| |
|
# for strip-linguas function |
|
inherit eutils |
|
|
# NOTE: There are two big issues that should be addressed. | # NOTE: There are two big issues that should be addressed. |
# | # |
# 1) Language support and fonts should be addressed. | # 1) Language support and fonts should be addressed. |
|
|
| |
INSTDIR="${LOC}/OpenOffice.org" | INSTDIR="${LOC}/OpenOffice.org" |
MY_P="OOo_${PV}_LinuxIntel_install" | MY_P="OOo_${PV}_LinuxIntel_install" |
use ppc && MY_P="OOo_${PV}_LinuxPowerPC_en_installer" |
|
|
# ppc 1.1.3 doesn't exist in mirror://openoffice/contrib/linuxppc/ |
|
# ppc-macos 1.1.3 doesn't exist in mirror://openoffice/contrib/MacOSX/ |
|
# (the latest ppc and ppc-macos binaries are 1.1.2) |
|
# sparc version of en, de, fr installer for 1.1.3 is at |
|
# mirror://openoffice/contrib/linuxsparc/ |
| |
S="${WORKDIR}/${MY_P}" | S="${WORKDIR}/${MY_P}" |
| |
DESCRIPTION="OpenOffice productivity suite" | DESCRIPTION="OpenOffice productivity suite" |
HOMEPAGE="http://www.openoffice.org/" | HOMEPAGE="http://www.openoffice.org/" |
SRC_URI="x86? ( mirror://openoffice/stable/${PV}/OOo_${PV}_LinuxIntel_install.tar.gz ) \ |
SRC_URI="mirror://openoffice/stable/${PV}/OOo_${PV}_LinuxIntel_install.tar.gz |
amd64? (mirror://openoffice/stable/${PV}/OOo_${PV}_LinuxIntel_install.tar.gz )" |
linguas_cs? ( mirror://openoffice/localized/cs/${PV}/OOo_${PV}_LinuxIntel_install_cs.tar.gz ) |
|
linguas_da? ( mirror://openoffice/localized/da/${PV}/OOo_${PV}_LinuxIntel_install_da.tar.gz ) |
|
linguas_de? ( mirror://openoffice/localized/de/${PV}/OOo_${PV}_LinuxIntel_install_de.tar.gz ) |
|
linguas_fr? ( mirror://openoffice/localized/fr/${PV}/OOo_${PV}_LinuxIntel_install_fr.tar.gz ) |
|
linguas_it? ( mirror://openoffice/localized/it/${PV}/OOo_${PV}_LinuxIntel_install_it.tar.gz ) |
|
linguas_ja? ( mirror://openoffice/localized/ja/${PV}/OOo_${PV}_LinuxIntel_install_ja.tar.gz ) |
|
linguas_nl? ( mirror://openoffice/localized/nl/${PV}/OOo_${PV}_LinuxIntel_install_nl.tar.gz ) |
|
linguas_zh_CN? ( mirror://openoffice/localized/zh-cn/${PV}/OOo_${PV}_LinuxIntel_install_zh-CN.tar.gz ) |
|
linguas_zh_TW? ( mirror://openoffice/localized/zh-tw/${PV}/OOo_${PV}_LinuxIntel_install_zh-TW.tar.gz )" |
| |
LICENSE="|| ( LGPL-2 SISSL-1.1 )" | LICENSE="|| ( LGPL-2 SISSL-1.1 )" |
SLOT="0" | SLOT="0" |
KEYWORDS="x86 amd64" |
KEYWORDS="-* ~x86 ~amd64" |
IUSE="kde gnome" | IUSE="kde gnome" |
| |
DEPEND="sys-apps/findutils |
|
virtual/libc |
|
>=dev-lang/perl-5.0 |
|
virtual/x11 |
|
app-arch/zip |
|
app-arch/unzip |
|
|| ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 ) |
|
!app-office/openoffice |
|
amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0 )" |
|
RDEPEND="virtual/libc | RDEPEND="virtual/libc |
>=dev-lang/perl-5.0 | >=dev-lang/perl-5.0 |
virtual/x11 | virtual/x11 |
app-arch/zip | app-arch/zip |
app-arch/unzip | app-arch/unzip |
|
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 ) |
|| ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 ) | || ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 ) |
!app-office/openoffice | !app-office/openoffice |
amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0 )" | amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0 )" |
|
DEPEND="${RDEPEND} |
|
sys-apps/findutils" |
| |
src_install() { | src_install() { |
|
strip-linguas cs da de fr it ja nl zh_CN zh_TW |
|
if [ -n "${LINGUAS}" ] ; then |
|
# use the leftmost value |
|
primary_lang=(${LINGUAS}) |
|
S=${S}_${primary_lang[0]/_/-} |
|
cd ${S} |
|
einfo "Installing OpenOffice.org for ${primary_lang[0]} environment." |
|
else |
|
einfo "Installing OpenOffice.org for English environment." |
|
fi |
|
|
# Sandbox issues; bug #8587 | # Sandbox issues; bug #8587 |
addpredict "/user" | addpredict "/user" |
addpredict "/share" | addpredict "/share" |
|
|
${FILESDIR}/${PV}/ooffice-wrapper-1.3 > ${T}/ooffice | ${FILESDIR}/${PV}/ooffice-wrapper-1.3 > ${T}/ooffice |
doexe ${T}/ooffice | doexe ${T}/ooffice |
| |
|
# Fixing font path (/usr/share/fonts) |
|
cd ${D}/${INSTDIR}/program |
|
epatch ${FILESDIR}/${PN}-fontpath-gentoo.diff |
|
cd - |
|
|
# Component symlinks | # Component symlinks |
for app in calc draw impress math writer web setup padmin; do | for app in calc draw impress math writer web setup padmin; do |
dosym ooffice /usr/bin/oo${app} | dosym ooffice /usr/bin/oo${app} |