diff options
author | Andreas Proschofsky <suka@gentoo.org> | 2005-04-08 20:56:48 +0000 |
---|---|---|
committer | Andreas Proschofsky <suka@gentoo.org> | 2005-04-08 20:56:48 +0000 |
commit | 8a62605b56c9c54efea2708649b65c20f51a7c05 (patch) | |
tree | f31fa3b2606bdd9d37069ed39566d0e34f36383c /app-office/openoffice-bin | |
parent | settled installation scheme (diff) | |
download | gentoo-2-8a62605b56c9c54efea2708649b65c20f51a7c05.tar.gz gentoo-2-8a62605b56c9c54efea2708649b65c20f51a7c05.tar.bz2 gentoo-2-8a62605b56c9c54efea2708649b65c20f51a7c05.zip |
Add LINGUAS support to openoffice-bin (2.0-pre)! Yeah! Closes bug #44944 and lots of other longstanding bugs
(Portage version: 2.0.51.19)
Diffstat (limited to 'app-office/openoffice-bin')
-rw-r--r-- | app-office/openoffice-bin/ChangeLog | 11 | ||||
-rw-r--r-- | app-office/openoffice-bin/files/digest-openoffice-bin-1.9.91-r1 | 11 | ||||
-rw-r--r-- | app-office/openoffice-bin/openoffice-bin-1.9.91-r1.ebuild | 132 |
3 files changed, 153 insertions, 1 deletions
diff --git a/app-office/openoffice-bin/ChangeLog b/app-office/openoffice-bin/ChangeLog index 6fae81e4f9af..de16cad9e85c 100644 --- a/app-office/openoffice-bin/ChangeLog +++ b/app-office/openoffice-bin/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for app-office/openoffice-bin # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v 1.67 2005/04/08 16:00:09 suka Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/ChangeLog,v 1.68 2005/04/08 20:56:48 suka Exp $ + +*openoffice-bin-1.9.91-r1 (08 Apr 2005) + + 08 Apr 2005; Andreas Proschofsky <suka@gentoo.org> + +openoffice-bin-1.9.91-r1.ebuild: + New revision, adds LINGUAS support! Additional language packs will be + downloaded and installed if your LINGUAS settings are set correctly. + + Closes bug #44944 and lots of other longstanding bugs. *openoffice-bin-1.9.91 (08 Apr 2005) diff --git a/app-office/openoffice-bin/files/digest-openoffice-bin-1.9.91-r1 b/app-office/openoffice-bin/files/digest-openoffice-bin-1.9.91-r1 new file mode 100644 index 000000000000..ca007d9aafc8 --- /dev/null +++ b/app-office/openoffice-bin/files/digest-openoffice-bin-1.9.91-r1 @@ -0,0 +1,11 @@ +MD5 40c56bb02522f7e71761b5aafc851bfa OOo_1.9.91_LinuxIntel_install.tar.gz 104649340 +MD5 0c89b55cb94264dea1c6ac8a90f43de1 OOo_1.9.m91_LinuxIntel_langpack_de.sh 18099400 +MD5 7484b0c5c11757131db2cd1a2799822a OOo_1.9.m91_LinuxIntel_langpack_es.sh 17518668 +MD5 658f0a49cea7a00e76e2d8c56a1c0244 OOo_1.9.m91_LinuxIntel_langpack_fr.sh 17720047 +MD5 3599db34e02a3d8408b2d5078ca0ebd5 OOo_1.9.m91_LinuxIntel_langpack_it.sh 17509880 +MD5 c6e9bc14b7be0fe7b2d79ba81e71d8a0 OOo_1.9.m91_LinuxIntel_langpack_ja.sh 18213236 +MD5 a243616d4939742695e68081e5c89601 OOo_1.9.m91_LinuxIntel_langpack_ko.sh 17478483 +MD5 e6ee938a0081f98e9586d7b1dee12f7f OOo_1.9.m91_LinuxIntel_langpack_pt-BR.sh 17511393 +MD5 172af4053586d3dbca27a5f519d0a5e1 OOo_1.9.m91_LinuxIntel_langpack_sv.sh 17330020 +MD5 d9b024202a8d797f92a51ee692c63ba5 OOo_1.9.m91_LinuxIntel_langpack_zh-CN.sh 17650641 +MD5 3066d69bfd6dea940279dd38df7779ac OOo_1.9.m91_LinuxIntel_langpack_zh-TW.sh 17699838 diff --git a/app-office/openoffice-bin/openoffice-bin-1.9.91-r1.ebuild b/app-office/openoffice-bin/openoffice-bin-1.9.91-r1.ebuild new file mode 100644 index 000000000000..2f59057d316d --- /dev/null +++ b/app-office/openoffice-bin/openoffice-bin-1.9.91-r1.ebuild @@ -0,0 +1,132 @@ +# 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.91-r1.ebuild,v 1.1 2005/04/08 20:56:48 suka Exp $ + +inherit eutils fdo-mime rpm versionator + +IUSE="gnome java kde" + +INSTDIR="/opt/OpenOffice.org" + +S="${WORKDIR}/RPMS" +DESCRIPTION="OpenOffice productivity suite" + +SNV="$(get_version_component_range 3)" +LANGPACK="OOo_1.9.m${SNV}_LinuxIntel_langpack" + +SRC_URI="mirror://openoffice/developer/680_m${SNV}/OOo_1.9.${SNV}_LinuxIntel_install.tar.gz + linguas_de? ( http://oootranslation.services.openoffice.org/pub/OpenOffice.org/680m${SNV}/${LANGPACK}_de.sh ) + linguas_es? ( http://oootranslation.services.openoffice.org/pub/OpenOffice.org/680m${SNV}/${LANGPACK}_es.sh ) + linguas_fr? ( http://oootranslation.services.openoffice.org/pub/OpenOffice.org/680m${SNV}/${LANGPACK}_fr.sh ) + linguas_it? ( http://oootranslation.services.openoffice.org/pub/OpenOffice.org/680m${SNV}/${LANGPACK}_it.sh ) + linguas_ja? ( http://oootranslation.services.openoffice.org/pub/OpenOffice.org/680m${SNV}/${LANGPACK}_ja.sh ) + linguas_ko? ( http://oootranslation.services.openoffice.org/pub/OpenOffice.org/680m${SNV}/${LANGPACK}_ko.sh ) + linguas_pt_BR? ( http://oootranslation.services.openoffice.org/pub/OpenOffice.org/680m${SNV}/${LANGPACK}_pt-BR.sh ) + linguas_sv? ( http://oootranslation.services.openoffice.org/pub/OpenOffice.org/680m${SNV}/${LANGPACK}_sv.sh ) + linguas_zh_CN? ( http://oootranslation.services.openoffice.org/pub/OpenOffice.org/680m${SNV}/${LANGPACK}_zh-CN.sh ) + linguas_zh_TW? ( http://oootranslation.services.openoffice.org/pub/OpenOffice.org/680m${SNV}/${LANGPACK}_zh-TW.sh )" + +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 OOo_1.9.${SNV}_LinuxIntel_install.tar.gz + + for i in core01 core02 core03 core04 core05 core06 core07 core08 calc draw impress math writer graphicfilter pyuno spellcheck testtool xsltfilter; do + rpm_unpack ${S}/openofficeorg-${i}-1.9.${SNV}-1.i586.rpm + done + + rpm_unpack ${S}/openofficeorg-freedesktop-menus-1.9.${SNV}-1.noarch.rpm + use kde && rpm_unpack ${S}/openofficeorg-suse-menus-1.9.${SNV}-1.noarch.rpm + + use gnome && rpm_unpack ${S}/openofficeorg-gnome-integration-1.9.${SNV}-1.i586.rpm + use java && rpm_unpack ${S}/openofficeorg-javafilter-1.9.${SNV}-1.i586.rpm + + strip-linguas en de es fr it ja ko pt_BR sv zh_CN zh_TW + + export LINGUAS_OOO="${LINGUAS/en}" + + for i in ${LINGUAS_OOO}; do + i="${i/_/-}" + cp /usr/portage/distfiles/${LANGPACK}_${i}.sh ${S} || die + tail -n +146 ${S}/${LANGPACK}_${i}.sh > ${S}/${LANGPACK}_${i}.rpm || die + rpm_unpack ${S}/${LANGPACK}_${i}.rpm + done +} + +src_install () { + # Sandbox issues; bug #8587 + addpredict "/user" + addpredict "/share" + addpredict "/dev/dri" + addpredict "/usr/bin/soffice" + addpredict "/pspfontcache" + addpredict "/root/.gconfd" + addpredict "/opt/OpenOffice.org/foo.tmp" + addpredict "/opt/OpenOffice.org/delme" + + einfo "Installing OpenOffice.org into build root..." + dodir ${INSTDIR} + dodir /usr/share/icons + dodir /usr/share/mime + mv ${WORKDIR}/opt/openoffice.org1.9.${SNV}/* ${D}${INSTDIR} + mv ${WORKDIR}/usr/share/icons/* ${D}/usr/share/icons + mv ${WORKDIR}/usr/share/mime/* ${D}/usr/share/mime + + 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=oopadmin'/g printeradmin.desktop + + for desk in base calc draw impress math writer printeradmin; do + mv ${desk}.desktop openoffice.org-1.9-${desk}.desktop + domenu openoffice.org-1.9-${desk}.desktop + done + + einfo "Removing build root from registry..." + # Install wrapper script + newbin ${FILESDIR}/1.9/ooffice-wrapper-1.9 openoffice.org-1.9 + + # Component symlinks + for app in calc draw impress math writer web padmin; do + dosym openoffice.org-1.9 /usr/bin/oo${app} + done + + dosym openoffice.org-1.9 /usr/bin/openoffice.org-1.9-printeradmin +} + +pkg_postinst() { + + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + + einfo " To start OpenOffice.org, run:" + einfo + einfo " $ openoffice.org-1.9" + einfo + einfo " Also, for individual components, you can use any of:" + einfo + einfo " oocalc, oodraw, ooimpress, oomath, ooweb or oowriter" +} |