git-svn-id: http://svn.calculate.ru/overlay@1304 c91db197-33c1-4113-bf15-f8a5c547ca64

master
ztime 15 years ago
parent 7dad1cb3c2
commit fe008c1bd6

@ -0,0 +1,6 @@
AUX 50-openoffice-infra-bin 68 RMD160 ec3932a2fedd553a2bbd457bc428cb02b6b13caa SHA1 95aabee29491b680517d4d99f66f4d0eae34e5db SHA256 d97d748537b043da24457252331c9a8213a40c54411a4e8bbebe7d609abfe07c
AUX java-set-classpath.in 6571 RMD160 9798856a27f17d2e873b3a64244ba10994ba1d39 SHA1 f17ac77bf2ad467ee468449f12f83d766236ce95 SHA256 69ae498a7d0298461dbfc0650f097d960655bc3618877bfa1c922c4618134342
AUX wrapper.in 96 RMD160 34ca656bc8af3c5b44ed16cebedf5d3297b09a2d SHA1 5861b8434da84efff56e5ceaf53a7668a5f52cea SHA256 97b603968d423e5d8e52c1c14c118647df0a7a858d6a1cb10524af9ea90a9dbc
DIST OOo_2.4.2_LinuxIntel_ru_infra.tar.gz 141834592 RMD160 2bc18cb6fe665449ade01c21436e60327fb65264 SHA1 589375da02176f9bd6bf2a570e3428eb5de9617d SHA256 25bdb70d6dd6c8bce902d3339cefb3c56f3f67ea1123c90884735e8c6fdea297
DIST OOo_2.4.2_LinuxX86-64_ru_infra.tar.gz 152635225 RMD160 eb873d619668d13eff6ae2b80126da30979d2ea5 SHA1 ceb23602917bda4eddbef8c5c9c9355413a5c69b SHA256 bfdad2892212db8543decae758f897a6b5dfc2bc77a43929b26d4941e2e13b57
EBUILD openoffice-infra-bin-2.4.2.ebuild 36721 RMD160 beee98ec21edc7e441bbee639f8eb44265817e55 SHA1 6f9971452d8eea97cf0f424d32c1d04bf8a7a7bc SHA256 8513caad781ea348061ec911233295d7da9f097d9645d893185c6c5da8df7f4a

@ -0,0 +1 @@
SEARCH_DIRS_MASK="/usr/lib/openoffice.org /usr/lib/openoffice.org3"

@ -0,0 +1,66 @@
#!/bin/sh
#*****************************************************************************
#
# java-set-classpath - Utility to update the default CLASSPATH for OpenOffice.org
#
# Initial version by: Petr Mladek <pmladek@suse.cz>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2, as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
#*****************************************************************************
if test "z$1" = "z" ; then
echo "Update the default CLASSPATH for OpenOffice.org"
echo ""
echo "Usage: $0 [dir|jar]..."
echo ""
echo "The utility updates the OpenOffice.org system setting. It adds or removes"
echo "the given directories and jar-files to or from the default CLASSPATH"
echo "depending on if they are available on the system or not."
echo ""
echo "Parameters:"
echo " dir - absolute path to a directory"
echo " jar - absolute path to a jar-file"
exit 0;
fi
JVM_CONFIG_FILE=@OOINSTBASE@/program/jvmfwk3rc
for path in $@ ; do
if test "z${path%%/*}" != "z" ; then
echo "Warning: the path "$path" is not absolute and will be ignored"
continue
fi
if test -e $path ; then
# the file exist
grep "UNO_JAVA_JFW_CLASSPATH_URLS.*file:/*$path\([[:space:]].*\)\?$" $JVM_CONFIG_FILE >/dev/null && continue
# it is not registered
TMP_FILE=`mktemp /tmp/ooset-java-class.XXXXXXXXXX` || exit 1
sed -e "s|^\(.*UNO_JAVA_JFW_CLASSPATH_URLS.*\)$|\1 file:$path|" $JVM_CONFIG_FILE >$TMP_FILE
mv -f $TMP_FILE $JVM_CONFIG_FILE
chmod 644 $JVM_CONFIG_FILE
else
# the file does not exist, remove it from the configuration
TMP_FILE=`mktemp /tmp/ooset-java-class.XXXXXXXXXX` || exit 1;
sed -e "s|^\(.*UNO_JAVA_JFW_CLASSPATH_URLS.*\)file:/*$path\([[:space:]].*\)\?$|\1\2|" \
-e "s/\(UNO_JAVA_JFW_CLASSPATH_URLS=\)[[:space:]]\+/\1/" \
-e "/^.*UNO_JAVA_JFW_CLASSPATH_URLS/s/[[:space:]]\+/ /g" \
-e "/^.*UNO_JAVA_JFW_CLASSPATH_URLS/s/[[:space:]]*$//" $JVM_CONFIG_FILE >$TMP_FILE
mv -f $TMP_FILE $JVM_CONFIG_FILE
chmod 644 $JVM_CONFIG_FILE
fi
done

@ -0,0 +1,4 @@
#!/bin/sh
export OOO_EXTRA_ARG=''
unset PYTHONPATH
/usr/LIBDIR/openoffice/program/soffice "$@"

@ -0,0 +1,115 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-2.4.0.ebuild,v 1.1 2008/03/27 08:14:06 suka Exp $
inherit eutils fdo-mime multilib
IUSE="gnome java human"
DESCRIPTION="Сборка OpenOffice от компании Инфра-ресурс"
SRC_URI="x86? ( http://download.i-rs.ru/pub/openoffice/${PV}/ru/OOo_${PV}_LinuxIntel_ru_infra.tar.gz )
amd64? ( http://download.i-rs.ru/pub/openoffice/${PV}/ru/OOo_${PV}_LinuxX86-64_ru_infra.tar.gz )"
HOMEPAGE="http://www.i-rs.ru/"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
RDEPEND="!app-office/openoffice
!app-office/openoffice-infra
gnome? ( x11-themes/gnome-icon-theme )
human? ( x11-themes/human-icon-theme )
x11-libs/libXaw
sys-libs/glibc
>=dev-lang/perl-5.0
app-arch/zip
app-arch/unzip
>=media-libs/freetype-2.1.10-r2
java? ( >=virtual/jre-1.5 )"
DEPEND="${RDEPEND}
sys-apps/findutils"
PROVIDE="virtual/ooo"
RESTRICT="strip"
src_unpack() {
unpack ${A}
}
src_install () {
#Multilib install dir magic for AMD64
has_multilib_profile && ABI=x86
local instdir="/usr/$(get_libdir)"
local basecomponents="base calc draw impress math writer printeradmin"
local allcomponents
local instdirp=$(echo $(echo ${instdir}|sed 's/\//\\\//g')\\/openoffice.org2.4\\/program )
dodir "${instdir}"
mv "${WORKDIR}"/openoffice.org2.4 "${D}${instdir}"
#Menu entries, icons and mime-types
cd "${D}${instdir}/openoffice.org2.4/share/xdg/"
for desk in ${basecomponents}; do
sed -i -e s/"Exec=openoffice.org2\.4"/"Exec=ooffice"/ ${desk}.desktop || die
sed -i -e s/"Icon=openofficeorg24-"/"Icon=ooo_"/ ${desk}.desktop || die
domenu ${desk}.desktop
done
# Component symlinks
for app in ${basecomponents}; do
if [[ ${app} == "printeradmin" ]]; then
dosym ${instdir}/openoffice.org2.4/program/spadmin.bin /usr/bin/ooffice-printeradmin
else
dosym ${instdir}/openoffice.org2.4/program/s${app} /usr/bin/oo${app}
fi
done
dosym ${instdir}/openoffice.org2.4/program/soffice /usr/bin/soffice
# Install wrapper script
newbin "${FILESDIR}/wrapper.in" ooffice
sed -i -e s/"\/usr\/LIBDIR\/openoffice\/program"/"${instdirp}"/g "${D}/usr/bin/ooffice" || die
# Change user install dir
sed -i -e s/".openoffice.org\/2.4"/.ooo-2.4/g "${D}${instdir}/openoffice.org2.4/program/bootstraprc" || die
# Non-java weirdness see bug #99366
use !java && rm -f "${D}${instdir}/openoffice.org2.4/program/javaldx"
# install java-set-classpath
if use java; then
insinto /usr/$(get_libdir)/openoffice/program
newins "${FILESDIR}/java-set-classpath.in" java-set-classpath
fperms 755 /usr/$(get_libdir)/openoffice/program/java-set-classpath
fi
# prevent revdep-rebuild from attempting to rebuild all the time
insinto /etc/revdep-rebuild && doins "${FILESDIR}/50-openoffice-infra-bin"
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
[[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/program/soffice.bin
elog " Чтобы запустить OpenOffice.org ${PV} Pro, выполните:"
elog
elog " $ ooffice"
elog
elog " Также, для конкретных компонентов, вы можете использовать следующее:"
elog
elog " oobase, oocalc, oodraw, ooimpress, oomath, или oowriter"
}

@ -0,0 +1,118 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice-bin/openoffice-bin-2.4.0.ebuild,v 1.1 2008/03/27 08:14:06 suka Exp $
inherit eutils fdo-mime multilib
IUSE="gnome java human"
DESCRIPTION="Сборка OpenOffice от компании Инфра-ресурс"
SRC_URI="x86? ( http://download.i-rs.ru/pub/openoffice/${PV}/ru/OOo_${PV}_LinuxIntel_ru_infra.tar.gz )
amd64? ( http://download.i-rs.ru/pub/openoffice/${PV}/ru/OOo_${PV}_LinuxX86-64_ru_infra.tar.gz )"
HOMEPAGE="http://www.i-rs.ru/"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="!app-office/openoffice
!app-office/openoffice-infra
gnome? ( x11-themes/gnome-icon-theme )
human? ( x11-themes/human-icon-theme )
x11-libs/libXaw
sys-libs/glibc
>=dev-lang/perl-5.0
app-arch/zip
app-arch/unzip
>=media-libs/freetype-2.1.10-r2
java? ( >=virtual/jre-1.5 )"
DEPEND="${RDEPEND}
sys-apps/findutils"
PROVIDE="virtual/ooo"
RESTRICT="strip"
src_unpack() {
unpack ${A}
}
src_install () {
#Multilib install dir magic for AMD64
has_multilib_profile && ABI=x86
local instdir="/usr/$(get_libdir)"
local basecomponents="base calc draw impress math writer printeradmin"
local allcomponents
local instdirp=$(echo $(echo ${instdir}|sed 's/\//\\\//g')\\/openoffice.org3\\/program )
if [[ "${ARCH}" == "amd64" ]]; then
gentoo_env_set_src="X86-64"
else
gentoo_env_set_src="Intel"
fi
dodir "${instdir}"
mv "${WORKDIR}"/OOo_${PV}_Linux${gentoo_env_set_src}_ru_infra/* "${D}${instdir}"
#Menu entries, icons and mime-types
cd "${D}${instdir}/openoffice.org3/share/xdg/"
for desk in ${basecomponents}; do
sed -i -e s/"Exec=openoffice.org3"/"Exec=ooffice"/ ${desk}.desktop || die
sed -i -e s/"Icon=openofficeorg3-"/"Icon=ooo_"/ ${desk}.desktop || die
domenu ${desk}.desktop
done
# Component symlinks
for app in base calc draw impress math writer; do
dosym ${instdir}/openoffice.org3/program/s${app} /usr/bin/oo${app}
done
dosym ${instdir}/openoffice.org3/program/spadmin /usr/bin/ooffice-printeradmin
dosym ${instdir}/openoffice.org3/program/soffice /usr/bin/soffice
# Install wrapper script
newbin "${FILESDIR}/wrapper.in" ooffice
sed -i -e s/"\/usr\/LIBDIR\/openoffice\/program"/"${instdirp}"/g "${D}/usr/bin/ooffice" || die
# Change user install dir
sed -i -e s/".openoffice.org\/3"/.ooo-3.0/g "${D}${instdir}/openoffice.org3/program/bootstraprc" || die
# Non-java weirdness see bug #99366
use !java && rm -f "${D}${instdir}/openoffice.org3/program/javaldx"
# install java-set-classpath
if use java; then
insinto /usr/$(get_libdir)/openoffice.org/basis3.0/program
newins "${FILESDIR}/java-set-classpath.in" java-set-classpath
fperms 755 /usr/$(get_libdir)/openoffice.org/basis3.0/program/java-set-classpath
fi
# prevent revdep-rebuild from attempting to rebuild all the time
insinto /etc/revdep-rebuild && doins "${FILESDIR}/50-openoffice-infra-bin"
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
[[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/program/soffice.bin
elog " Чтобы запустить OpenOffice.org ${PV} Pro, выполните:"
elog
elog " $ ooffice"
elog
elog " Также, для конкретных компонентов, вы можете использовать следующее:"
elog
elog " oobase, oocalc, oodraw, ooimpress, oomath, или oowriter"
}
Loading…
Cancel
Save