--- openoffice-bin-1.1.3.ebuild 2004-10-30 17:41:42.000000000 +0900 +++ openoffice-bin-1.1.3-r1.ebuild 2004-10-30 21:45:31.904574676 +0900 @@ -2,6 +2,9 @@ # 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 $ +# for strip-linguas function +inherit eutils + # NOTE: There are two big issues that should be addressed. # # 1) Language support and fonts should be addressed. @@ -10,39 +13,59 @@ INSTDIR="${LOC}/OpenOffice.org" 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}" DESCRIPTION="OpenOffice productivity suite" HOMEPAGE="http://www.openoffice.org/" -SRC_URI="x86? ( mirror://openoffice/stable/${PV}/OOo_${PV}_LinuxIntel_install.tar.gz ) \ - amd64? (mirror://openoffice/stable/${PV}/OOo_${PV}_LinuxIntel_install.tar.gz )" +SRC_URI="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 )" SLOT="0" -KEYWORDS="x86 amd64" +KEYWORDS="-* ~x86 ~amd64" 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 >=dev-lang/perl-5.0 virtual/x11 app-arch/zip 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 ) !app-office/openoffice amd64? ( >=app-emulation/emul-linux-x86-xlibs-1.0 )" +DEPEND="${RDEPEND} + sys-apps/findutils" 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 addpredict "/user" addpredict "/share" @@ -122,6 +145,11 @@ ${FILESDIR}/${PV}/ooffice-wrapper-1.3 > ${T}/ooffice doexe ${T}/ooffice + # Fixing font path (/usr/share/fonts) + cd ${D}/${INSTDIR}/program + epatch ${FILESDIR}/${PN}-fontpath-gentoo.diff + cd - + # Component symlinks for app in calc draw impress math writer web setup padmin; do dosym ooffice /usr/bin/oo${app}