Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 3530 Details for
Bug 4705
Openoffice ebuild with support for german-binary
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Ebuild for OpenOffice 1.0.1 German
openoffice-bin-de-1.0.1.ebuild (text/x-ebuild), 5.60 KB, created by
Juergen Nagel
on 2002-08-29 07:58:10 UTC
(
hide
)
Description:
Ebuild for OpenOffice 1.0.1 German
Filename:
MIME Type:
Creator:
Juergen Nagel
Created:
2002-08-29 07:58:10 UTC
Size:
5.60 KB
patch
obsolete
># Copyright 1999-2002 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License, v2 or later ># Author: Martin Schlemmer <azarah@gentoo.org> ># Updated by: Juergen Nagel <juergen@nagel.homeip.net> > ># NOTE: There are two big issues that should be addressed. ># ># 1) The registry should be generated as done via "./setup -net", ># and not via the tarball. ># ># 2) Language support and fonts should be addressed. ># ># It will also be good to generate regcomp via some other method. > >MY_PV="`echo ${PV} | gawk '{ print toupper($1) }'`" >LOC="/opt" >MAIN_VER="`echo ${PV} |sed -e "s:[a-z]::g"`" >S="${WORKDIR}/install" >DESCRIPTION="OpenOffice productivity suite" > > > ># german > OO_LANG="de_" > OO_SRC_WB="de_DE.zip" > OO_SRC=OOo_${MY_PV}_LinuxIntel_install_de.tar.gz > SRC_URI=" > ftp://ftp.gwdg.de/pub/openoffice/localized/de/${PV}/${OO_SRC} > http://www.ibiblio.org/gentoo/distfiles/openoffice-${PV}-registry.tbz2 > ftp://ftp.gwdg.de/pub/openoffice/contrib/deutsch/${PV}/${OO_SRC_WB} > " > > >HOMEPAGE="http://www.openoffice.org" > >DEPEND="virtual/glibc > >=sys-devel/perl-5.0 > virtual/x11 > app-arch/zip > app-arch/unzip > >=virtual/jdk-1.3.1" > >SLOT="0" > >src_unpack() { > > if [ ${OO_LANG} == "de_" ]; then > echo "**************************************************************" > echo "Deutsches Binary und Woerterbuch werden installiert." > echo "**************************************************************" > fi > > unpack ${OO_SRC} >} > >src_install() { > > # Generate a install script > PREFIX=${D} > REGCOMP=${S}/regcomp > INSTDIR=${S} > DESTDIR=${D}${LOC}/OpenOffice-${PV} > export PREFIX REGCOMP INSTDIR DESTDIR > export RUNARGS="install" > ${FILESDIR}/${PV}/read_ins.pl >${S}/gentoo-install.sh || die > chmod 0755 ${S}/gentoo-install.sh > > # Generate a register and createdb scripts > PREFIX="" > REGCOMP=${LOC}/OpenOffice-${PV}/program/regcomp > INSTDIR=${S} > DESTDIR=${LOC}/OpenOffice-${PV} > export PREFIX REGCOMP INSTDIR DESTDIR > export RUNARGS="register" > ${FILESDIR}/${PV}/read_ins.pl >${S}/gentoo-register.sh || die > chmod 0755 ${S}/gentoo-register.sh > export RUNARGS="createdb" > ${FILESDIR}/${PV}/read_ins.pl >${S}/gentoo-createdb.sh || die > chmod 0755 ${S}/gentoo-createdb.sh > > # Install to ${D} > ${S}/gentoo-install.sh || die "Failed to install data to ${D}!" > > # Install regcomp. For this we need to compile OO without > # CFLAGS/CXXFLAGS. I dont know when the config server API may > # change, so this included regcomp may not work for future > # versions of OO. > cd ${D}${LOC}/OpenOffice-${PV}/program > tar -jxf ${FILESDIR}/${PV}/regcomp-${PV}.tbz2 || \ > die "Could not unpack regcomp!" > > # Unpack the registry needed for NETWORK installation. > # This my need to be updated for future versions of OO. > # Install binary with "./setup -net" to generate. > cd ${D}${LOC}/OpenOffice-${PV}/share/config/registry > rm -rf * > tar -jxpf ${DISTDIR}/openoffice-${PV}-registry.tbz2 || \ > die "Could not unpack registry!" > # Fix paths > cd ${D}${LOC}/OpenOffice-${PV}/share/config/registry/instance/org/openoffice/Office > cp Common.xml Common.xml.orig > sed -e "s:/opt/OpenOffice\.org1\.0:${LOC}/OpenOffice-${PV}:g" \ > Common.xml.orig >Common.xml > rm -f Common.xml.orig > > # Generate ISO resource files. > cd ${D}${LOC}/OpenOffice-${PV}/program/resource > for x in ooo*.res > do > cp ${x} ${x/ooo/iso} > done > > # Create the global fonts.dir file > cd ${D}${LOC}/OpenOffice-${PV}/share/fonts/truetype > cp -f fonts.dir fonts_dir.global > > # Create misc directories > cd ${D}${LOC}/OpenOffice-${PV} > mkdir -p user/config/registry/instance/org/openoffice/{Office,ucb} > mkdir -p user/psprint/{driver,fontmetric} > mkdir -p user/{autocorr,backup,plugin,store,temp,template} > > # Move the register and createdb scripts to ${D} > cp -f ${S}/gentoo-register.sh ${D}${LOC}/OpenOffice-${PV}/program > cp -f ${S}/gentoo-createdb.sh ${D}${LOC}/OpenOffice-${PV}/program > > #darav: add german word list > # "**************************************************************" > if [ ${OO_LANG} == "de_" ]; then > mkdir -p ${D}${LOC}/OpenOffice-${PV}/wordbook > cd ${D}${LOC}/OpenOffice-${PV}/wordbook > unzip ${DISTDIR}/${OO_SRC_WB} || \ > die "Could not unpack german word list!" > mv ${D}${LOC}/OpenOffice-${PV}/wordbook/de_DE/* ${D}${LOC}/OpenOffice-${PV}/wordbook > echo "DICT de DE de_DE" >> ${D}${LOC}/OpenOffice-${PV}/wordbook/dictionary.lst > fi > >} > >pkg_postinst() { > if [ "${ROOT}" = "/" ] > then > for x in bootstraprc configmgrrc instdb.ins sofficerc unorc > do > if [ -e ${LOC}/OpenOffice-${PV}/program/${x} ] > then > rm -f ${LOC}/OpenOffice-${PV}/program/${x} >/dev/null > fi > done > ${LOC}/OpenOffice-${PV}/program/gentoo-createdb.sh || die > echo ">>> Registering components (this may take a few minutes)..." > ${LOC}/OpenOffice-${PV}/program/gentoo-register.sh &>/dev/null || die > fi > > # Make sure these do not get nuked. > cd ${ROOT}${LOC}/OpenOffice-${PV} > mkdir -p user/config/registry/instance/org/openoffice/{Office,ucb} > mkdir -p user/psprint/{driver,fontmetric} > mkdir -p user/{autocorr,backup,plugin,store,temp,template} > > if [ ${OO_LANG} == "de_" ]; then > echo "**************************************************************" > echo "Deutsches Binary und Woerterbuch installiert." > echo "HINWEIS: Dokumenten-Sprache auf Deutsch umstellen !" > echo "HINWEIS: Woerterbuch muss noch aktiviert werden !" > echo " 1)OpenOffice starten" > echo " 2)Extras->Optionen->Spracheinstellungnen->Linguistik" > echo " 3)Open rechts BEARBEITEN klicken und gewuenschte Sprache waehlen" > echo " 4) \"MySpell SpellChecker\" aktivieren" > echo "**************************************************************" > fi > > >} >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 4705
: 3530 |
3532