|
Lines 2-7
Link Here
|
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $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 $ |
3 |
# $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 $ |
| 4 |
|
4 |
|
|
|
5 |
# for strip-linguas function |
| 6 |
inherit eutils |
| 7 |
|
| 5 |
# NOTE: There are two big issues that should be addressed. |
8 |
# NOTE: There are two big issues that should be addressed. |
| 6 |
# |
9 |
# |
| 7 |
# 1) Language support and fonts should be addressed. |
10 |
# 1) Language support and fonts should be addressed. |
|
Lines 10-48
Link Here
|
| 10 |
|
13 |
|
| 11 |
INSTDIR="${LOC}/OpenOffice.org" |
14 |
INSTDIR="${LOC}/OpenOffice.org" |
| 12 |
MY_P="OOo_${PV}_LinuxIntel_install" |
15 |
MY_P="OOo_${PV}_LinuxIntel_install" |
| 13 |
use ppc && MY_P="OOo_${PV}_LinuxPowerPC_en_installer" |
16 |
|
|
|
17 |
# ppc 1.1.3 doesn't exist in mirror://openoffice/contrib/linuxppc/ |
| 18 |
# ppc-macos 1.1.3 doesn't exist in mirror://openoffice/contrib/MacOSX/ |
| 19 |
# (the latest ppc and ppc-macos binaries are 1.1.2) |
| 20 |
# sparc version of en, de, fr installer for 1.1.3 is at |
| 21 |
# mirror://openoffice/contrib/linuxsparc/ |
| 14 |
|
22 |
|
| 15 |
S="${WORKDIR}/${MY_P}" |
23 |
S="${WORKDIR}/${MY_P}" |
| 16 |
|
24 |
|
| 17 |
DESCRIPTION="OpenOffice productivity suite" |
25 |
DESCRIPTION="OpenOffice productivity suite" |
| 18 |
HOMEPAGE="http://www.openoffice.org/" |
26 |
HOMEPAGE="http://www.openoffice.org/" |
| 19 |
SRC_URI="x86? ( mirror://openoffice/stable/${PV}/OOo_${PV}_LinuxIntel_install.tar.gz ) \ |
27 |
SRC_URI="mirror://openoffice/stable/${PV}/OOo_${PV}_LinuxIntel_install.tar.gz |
| 20 |
amd64? (mirror://openoffice/stable/${PV}/OOo_${PV}_LinuxIntel_install.tar.gz )" |
28 |
linguas_cs? ( mirror://openoffice/localized/cs/${PV}/OOo_${PV}_LinuxIntel_install_cs.tar.gz ) |
|
|
29 |
linguas_da? ( mirror://openoffice/localized/da/${PV}/OOo_${PV}_LinuxIntel_install_da.tar.gz ) |
| 30 |
linguas_de? ( mirror://openoffice/localized/de/${PV}/OOo_${PV}_LinuxIntel_install_de.tar.gz ) |
| 31 |
linguas_fr? ( mirror://openoffice/localized/fr/${PV}/OOo_${PV}_LinuxIntel_install_fr.tar.gz ) |
| 32 |
linguas_it? ( mirror://openoffice/localized/it/${PV}/OOo_${PV}_LinuxIntel_install_it.tar.gz ) |
| 33 |
linguas_ja? ( mirror://openoffice/localized/ja/${PV}/OOo_${PV}_LinuxIntel_install_ja.tar.gz ) |
| 34 |
linguas_nl? ( mirror://openoffice/localized/nl/${PV}/OOo_${PV}_LinuxIntel_install_nl.tar.gz ) |
| 35 |
linguas_zh_CN? ( mirror://openoffice/localized/zh-cn/${PV}/OOo_${PV}_LinuxIntel_install_zh-CN.tar.gz ) |
| 36 |
linguas_zh_TW? ( mirror://openoffice/localized/zh-tw/${PV}/OOo_${PV}_LinuxIntel_install_zh-TW.tar.gz )" |
| 21 |
|
37 |
|
| 22 |
LICENSE="|| ( LGPL-2 SISSL-1.1 )" |
38 |
LICENSE="|| ( LGPL-2 SISSL-1.1 )" |
| 23 |
SLOT="0" |
39 |
SLOT="0" |
| 24 |
KEYWORDS="x86 amd64" |
40 |
KEYWORDS="-* ~x86 ~amd64" |
| 25 |
IUSE="kde gnome" |
41 |
IUSE="kde gnome" |
| 26 |
|
42 |
|
| 27 |
DEPEND="sys-apps/findutils |
|
|
| 28 |
virtual/libc |
| 29 |
>=dev-lang/perl-5.0 |
| 30 |
virtual/x11 |
| 31 |
app-arch/zip |
| 32 |
app-arch/unzip |
| 33 |
|| ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 ) |
| 34 |
!app-office/openoffice |
| 35 |
amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0 )" |
| 36 |
RDEPEND="virtual/libc |
43 |
RDEPEND="virtual/libc |
| 37 |
>=dev-lang/perl-5.0 |
44 |
>=dev-lang/perl-5.0 |
| 38 |
virtual/x11 |
45 |
virtual/x11 |
| 39 |
app-arch/zip |
46 |
app-arch/zip |
| 40 |
app-arch/unzip |
47 |
app-arch/unzip |
|
|
48 |
linguas_ja? ( >=media-fonts/kochi-substitute-20030809-r3 ) |
| 49 |
linguas_zh_CN? ( >=media-fonts/arphicfonts-0.1-r2 ) |
| 50 |
linguas_zh_TW? ( >=media-fonts/arphicfonts-0.1-r2 ) |
| 41 |
|| ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 ) |
51 |
|| ( >=virtual/jdk-1.3.1 >=virtual/jre-1.3.1 ) |
| 42 |
!app-office/openoffice |
52 |
!app-office/openoffice |
| 43 |
amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0 )" |
53 |
amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0 )" |
|
|
54 |
DEPEND="${RDEPEND} |
| 55 |
sys-apps/findutils" |
| 44 |
|
56 |
|
| 45 |
src_install() { |
57 |
src_install() { |
|
|
58 |
strip-linguas cs da de fr it ja nl zh_CN zh_TW |
| 59 |
if [ -n "${LINGUAS}" ] ; then |
| 60 |
# use the leftmost value |
| 61 |
primary_lang=(${LINGUAS}) |
| 62 |
S=${S}_${primary_lang[0]/_/-} |
| 63 |
cd ${S} |
| 64 |
einfo "Installing OpenOffice.org for ${primary_lang[0]} environment." |
| 65 |
else |
| 66 |
einfo "Installing OpenOffice.org for English environment." |
| 67 |
fi |
| 68 |
|
| 46 |
# Sandbox issues; bug #8587 |
69 |
# Sandbox issues; bug #8587 |
| 47 |
addpredict "/user" |
70 |
addpredict "/user" |
| 48 |
addpredict "/share" |
71 |
addpredict "/share" |
|
Lines 122-127
Link Here
|
| 122 |
${FILESDIR}/${PV}/ooffice-wrapper-1.3 > ${T}/ooffice |
145 |
${FILESDIR}/${PV}/ooffice-wrapper-1.3 > ${T}/ooffice |
| 123 |
doexe ${T}/ooffice |
146 |
doexe ${T}/ooffice |
| 124 |
|
147 |
|
|
|
148 |
# Fixing font path (/usr/share/fonts) |
| 149 |
cd ${D}/${INSTDIR}/program |
| 150 |
epatch ${FILESDIR}/${PN}-fontpath-gentoo.diff |
| 151 |
cd - |
| 152 |
|
| 125 |
# Component symlinks |
153 |
# Component symlinks |
| 126 |
for app in calc draw impress math writer web setup padmin; do |
154 |
for app in calc draw impress math writer web setup padmin; do |
| 127 |
dosym ooffice /usr/bin/oo${app} |
155 |
dosym ooffice /usr/bin/oo${app} |