aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Bernardo <samuelbernardo.mail@gmail.com>2017-02-02 21:12:48 +0000
committerSamuel Bernardo <samuelbernardo.mail@gmail.com>2017-02-02 21:12:48 +0000
commitffeef70f3cf6ca0ab49d502406081455e5e6252b (patch)
treef910e92edae38b85d1fd11c02a4bdf8e0c27cb3e /app-office
parentadd idea-ultimate 2016.3.4 (diff)
downloadssnb-ffeef70f3cf6ca0ab49d502406081455e5e6252b.tar.gz
ssnb-ffeef70f3cf6ca0ab49d502406081455e5e6252b.tar.bz2
ssnb-ffeef70f3cf6ca0ab49d502406081455e5e6252b.zip
openoffice-bin version 4.1.3
Diffstat (limited to 'app-office')
-rw-r--r--app-office/openoffice-bin/Manifest10
-rw-r--r--app-office/openoffice-bin/files/50-openoffice-bin3
-rw-r--r--app-office/openoffice-bin/files/wrapper.in4
-rw-r--r--app-office/openoffice-bin/metadata.xml14
-rw-r--r--app-office/openoffice-bin/openoffice-bin-4.1.3.ebuild186
5 files changed, 217 insertions, 0 deletions
diff --git a/app-office/openoffice-bin/Manifest b/app-office/openoffice-bin/Manifest
new file mode 100644
index 0000000..b269527
--- /dev/null
+++ b/app-office/openoffice-bin/Manifest
@@ -0,0 +1,10 @@
+AUX 50-openoffice-bin 155 SHA256 62d474190ad4f88d78dfdb12eb9fab9b17a94d8635fae40f9035e00ee6660f93 SHA512 2166980e57158d75fc20b6260d16d94c83199c98b751939cb2089ca86fff71157c61ed75cc9ba3e0b532b112e84a7cba393aabae1809609e5cce471a4b94242f WHIRLPOOL 9a8ca91fe16ecec770e55c6106d75029102acb417fbbbec93ff6fe508dc9c072857e16b81e45610a370dde4dd96bf07dd1e01d6d9653fde412a2f66a2f1ed1b0
+AUX wrapper.in 119 SHA256 377c5d9ab219855e54999a0321cb2a43f19693d56f99bd73cafab605e47e5ae4 SHA512 616ad676b95797dbef1bb4e0b7c4dce7070909bc148eecb1eb8f144881378bebb4c03f3d9ecf9046000287c5417259b89b4194c6b851dab99d06009173ec6919 WHIRLPOOL 232dad81c30f7d7e7372f9bb7b48cf1114ba46226b6d01b5cb4de3f80ef99fb90685c0965b239eafda6c576f7d7151458feff7b3c7412161a0d95b8be20699a2
+DIST Apache_OpenOffice_4.1.3_Linux_x86-64_install-rpm_en-US.tar.gz 161035912 SHA256 772d211d201a98bbd8f9108490ec99065f5b458a9a961ba55bb1cbe2e4bf6ac8 SHA512 f05d090cd12b1d3a1661ed2e583d74f0f0d8ea16369d8abf9b9cdcc60cdbbcb08f023ae29c0227966645083f82c8bd0dbc2a00fbce9dcba96ee7eddb005ace8d WHIRLPOOL cb71769a1981d93c0ff001ae3fea52a63338818bd48ed54b53ee9207375808e149defdea0630ed3253cc8279c822ac907eddfe21cc9d721f8b1ea72d6dd53b09
+DIST Apache_OpenOffice_4.1.3_Linux_x86-64_langpack-rpm_eu.tar.gz 12695135 SHA256 6697d647bd1029106b68885ca0224aeee87d3ad0f0b930ad71557daea31eb250 SHA512 c46ca443059ee7edf655f73603d2a7e1325735327e98a696a0c93b85b61ad24c9432d452d2266362de157994096622a66dfebb17bfdabfe60cac8d8ec7610655 WHIRLPOOL de5316d4255249d563a60a4d5ad88f13a9345c94c21160377d7392904e91484fb58603537f05ddf5578f7d94044e427863fc22ee7f52155545de2593bc7eda00
+DIST Apache_OpenOffice_4.1.3_Linux_x86-64_langpack-rpm_pt.tar.gz 12660235 SHA256 345f474bbb6f90a7fbb4b673c9b8a9872d5a832b768c8dc2dd4dca23a0eeb611 SHA512 101d4663c1e914c2bc25c979777a2b4edee6e33d2dd64bfe58dfcf799a340d7726d54ede2e9abcb40f26c2532f7c8f12ee91ed9964c3ef8533c4a496e8555368 WHIRLPOOL 7203f44b6dba485dcd8751f2a50bea3a7ae8df818f766f34df7a18434919e2af60d2f231786ce42a8d9ec82ed7b6994627b8d989f347da63e704d805c9359a0a
+DIST Apache_OpenOffice_4.1.3_Linux_x86_install-rpm_en-US.tar.gz 153742619 SHA256 28093ff67d462181cdb82c5e3049a4fb36f74d820ebd6c8c6b3db482ead0b637 SHA512 98ce8cc4d57b37bcc9d0b338973a863d6870eb1280b422fe33ff4d22a3238e89599565ad6c025485b0e63c7b781d94ce7e50606c0526a2d374036022836bd86f WHIRLPOOL 1f187655f3c77d794be6a177eb5b28a8d7dca269cd82598ef488d13d82fd4b4a624f4d7429058ad0e74f4600714a1570d8c5aad9fad961309ea1d4f7de82826e
+DIST Apache_OpenOffice_4.1.3_Linux_x86_langpack-rpm_eu.tar.gz 12706025 SHA256 1ea2da554bf7a97dbdf37c6f05b7be0b778b60965db1cc8239f0cecd474fc384 SHA512 fe37ee91114e71330d36a1f094a2f823ef4ee6d0f9943952baa2376d282f1948558b1be3b7c83b772228acd1f8574b8a44d297b9983aab01864b41534d7f32b5 WHIRLPOOL d815472307dd19af65aacd5f5dd896faacc90f431150f615fccec32450d0b63fc767ec8c1a7cbe334c95f2932c6d62c49c0ce7b72e996a0951f7e6d464aab9f6
+DIST Apache_OpenOffice_4.1.3_Linux_x86_langpack-rpm_pt.tar.gz 12670392 SHA256 5f3c5bdd5a874b159d29043c99f1847a57941940320c929d18d1844cb775a449 SHA512 5dfff6b6d52a12ce780d457277501b61a216f0c5d10461e98adc980dbe2199b66606323ba474e52d9c46203fb895a8a8912e7c0c3176b1f7162b94d945143bd5 WHIRLPOOL aef1d3d4e530eae93a7bd4cb714487df412e45d099c5715c517f18727dc17d923521349a846681f9d3f28d04a745c201d440327a2b8c7b3e1b3cd40699f929bd
+EBUILD openoffice-bin-4.1.3.ebuild 5118 SHA256 7d820f416086a8583677ca77fccf622ceab74ce350ba6ec05fdaf996e7248312 SHA512 8c33ae09060680211f692786f979ade76ea2db1b94fea5ac8b46019c24d14a746988a3685f448e6e0eb0b62fbcd4b6cfa3592cd67a4ec3540192f9e524054f62 WHIRLPOOL 9db8268f05a21db19583569a47d7855bb4af263e2cd752b640b7fe3fd385fd50c40abc88a7c4c129dcaddce3bf00776eb4b26dadc91d789b75b62b1bd1a890db
+MISC metadata.xml 654 SHA256 a6980fad71851d511ad5c74675b0259aa01a6a3163214155aedaf8809a6e974e SHA512 e797f235f01e6f92a5bf7f10db539429aceca40b1c2fb703b736e83ee356126671977a8145907a43e84eb05e3914923ded9b0db4d4755954d9f4f519040b7162 WHIRLPOOL 4176df9c96e32e9dd9c4c2554bf773d8ad7be65eb8dbd6b4412e4dd95d9eab354ba9d16506bbe102d690e846cd82892f8fe904ebc038d4fb2811ad554e5c5d34
diff --git a/app-office/openoffice-bin/files/50-openoffice-bin b/app-office/openoffice-bin/files/50-openoffice-bin
new file mode 100644
index 0000000..5b7877b
--- /dev/null
+++ b/app-office/openoffice-bin/files/50-openoffice-bin
@@ -0,0 +1,3 @@
+SEARCH_DIRS_MASK="@GENTOO_PORTAGE_EPREFIX@/usr/lib/openoffice
+@GENTOO_PORTAGE_EPREFIX@/usr/lib32/openoffice
+@GENTOO_PORTAGE_EPREFIX@/usr/lib64/openoffice"
diff --git a/app-office/openoffice-bin/files/wrapper.in b/app-office/openoffice-bin/files/wrapper.in
new file mode 100644
index 0000000..0cd84a1
--- /dev/null
+++ b/app-office/openoffice-bin/files/wrapper.in
@@ -0,0 +1,4 @@
+#!/bin/sh
+export OOO_EXTRA_ARG=''
+unset PYTHONPATH
+@GENTOO_PORTAGE_EPREFIX@/usr/LIBDIR/openoffice/program/soffice "$@"
diff --git a/app-office/openoffice-bin/metadata.xml b/app-office/openoffice-bin/metadata.xml
new file mode 100644
index 0000000..0649533
--- /dev/null
+++ b/app-office/openoffice-bin/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chithanh@gentoo.org</email>
+ <name>Chí-Thanh Christopher Nguyễn</name>
+ </maintainer>
+ <longdescription>Openoffice is the opensource version of staroffice.
+This is the binary version of Openoffice. Use this if you don't want to wait
+for the source version to build, but be advised that this may not perform as quickly once installed as a natively compiled version.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">openofficeorg.mirror</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-office/openoffice-bin/openoffice-bin-4.1.3.ebuild b/app-office/openoffice-bin/openoffice-bin-4.1.3.ebuild
new file mode 100644
index 0000000..5b91683
--- /dev/null
+++ b/app-office/openoffice-bin/openoffice-bin-4.1.3.ebuild
@@ -0,0 +1,186 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib versionator
+
+IUSE="gnome java"
+
+MAJORMINOR="$(get_version_component_range 1-2)"
+BUILDID="9783"
+BVER="${PV/_rc*/}-${BUILDID}"
+BVER2="${PV}-${BUILDID}"
+BASIS="ooobasis${MAJORMINOR}"
+BASIS2="basis${MAJORMINOR}"
+NM="openoffice"
+NM1="${NM}-brand"
+NM2="${NM}$(get_major_version)"
+NM3="${NM2}.$(get_version_component_range 2-3)"
+FILEPATH="mirror://sourceforge/openofficeorg.mirror"
+if [ "${ARCH}" = "amd64" ] ; then
+ XARCH="x86_64"
+else
+ XARCH="i586"
+fi
+UP="en-US/RPMS"
+
+DESCRIPTION="Apache OpenOffice productivity suite"
+HOMEPAGE="http://www.openoffice.org/"
+SRC_URI="amd64? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz )
+ x86? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86_install-rpm_en-US.tar.gz )"
+
+# TODO: supports ca_XR (Valencian RACV) locale too
+LANGS="eu pt"
+
+for X in ${LANGS} ; do
+ [[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? (
+ amd64? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86-64_langpack-rpm_${X/_/-}.tar.gz )
+ x86? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86_langpack-rpm_${X/_/-}.tar.gz ) )"
+ IUSE="${IUSE} linguas_${X}"
+done
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+ !app-office/openoffice
+ !prefix? ( sys-libs/glibc )
+ app-arch/unzip
+ app-arch/zip
+ >=dev-lang/perl-5.0
+ dev-lang/python:2.7
+ >=media-libs/freetype-2.1.10-r2
+ x11-libs/libXaw
+ x11-libs/libXinerama"
+
+DEPEND="${RDEPEND}
+ sys-apps/findutils"
+
+PDEPEND="java? ( >=virtual/jre-1.5 )"
+
+RESTRICT="strip"
+
+QA_PREBUILT="usr/$(get_libdir)/${NM}/program/*"
+QA_TEXTRELS="usr/$(get_libdir)/${NM}/program/libvclplug_genli.so"
+
+S=${WORKDIR}
+
+src_unpack() {
+
+ unpack ${A}
+
+ cp "${FILESDIR}"/{50-${PN},wrapper.in} "${T}"
+ eprefixify "${T}"/{50-${PN},wrapper.in}
+
+ for i in base calc core01 core02 core03 core04 core05 core06 core07 draw graphicfilter images impress math ogltrans ooofonts ooolinguistic pyuno ure writer xsltfilter ; do
+ rpm_unpack "./${UP}/${NM}-${i}-${BVER}.${XARCH}.rpm"
+ done
+
+ rpm_unpack "./${UP}/${NM}-${BVER}.${XARCH}.rpm"
+
+ for j in base calc draw impress math writer; do
+ rpm_unpack "./${UP}/${NM1}-${j}-${BVER}.${XARCH}.rpm"
+ done
+
+ rpm_unpack "./${UP}/desktop-integration/${NM3}-freedesktop-menus-${BVER2}.noarch.rpm"
+
+ use gnome && rpm_unpack "./${UP}/${NM}-gnome-integration-${BVER}.${XARCH}.rpm"
+ use java && rpm_unpack "./${UP}/${NM}-javafilter-${BVER}.${XARCH}.rpm"
+
+ # English support installed by default
+ rpm_unpack "./${UP}/${NM}-en-US-${BVER}.${XARCH}.rpm"
+ rpm_unpack "./${UP}/${NM1}-en-US-${BVER}.${XARCH}.rpm"
+ for s in base calc draw help impress math res writer ; do
+ rpm_unpack "./${UP}/${NM}-en-US-${s}-${BVER}.${XARCH}.rpm"
+ done
+
+ # Localization
+ strip-linguas ${LANGS}
+ for l in ${LINGUAS}; do
+ m="${l/_/-}"
+ if [[ ${m} != "en" ]] ; then
+ LANGDIR="${m}/RPMS/"
+ rpm_unpack "./${LANGDIR}/${NM}-${m}-${BVER}.${XARCH}.rpm"
+ rpm_unpack "./${LANGDIR}/${NM1}-${m}-${BVER}.${XARCH}.rpm"
+ for n in base calc draw help impress math res writer; do
+ rpm_unpack "./${LANGDIR}/${NM}-${m}-${n}-${BVER}.${XARCH}.rpm"
+ done
+
+ fi
+ done
+
+}
+
+src_install () {
+
+ INSTDIR="/usr/$(get_libdir)/${NM}"
+ dodir ${INSTDIR}
+ # mv "${WORKDIR}"/opt/${NM}/* "${ED}${INSTDIR}" || die
+ mv "${WORKDIR}"/opt/${NM2}/* "${ED}${INSTDIR}" || die
+
+ #Menu entries, icons and mime-types
+ cd "${ED}${INSTDIR}/share/xdg/"
+ for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do
+ if [ "${desk}" = "javafilter" ] ; then
+ use java || { rm javafilter.desktop; continue; }
+ fi
+ mv ${desk}.desktop ${NM}-${desk}.desktop
+ sed -i -e "s/${NM2} /ooffice /g" ${NM}-${desk}.desktop || die
+ domenu ${NM}-${desk}.desktop
+ done
+ insinto /usr/share
+ doins -r "${WORKDIR}"/usr/share/icons
+ doins -r "${WORKDIR}"/usr/share/mime
+
+ # Make sure the permissions are right
+ use prefix || fowners -R root:0 /
+
+ # Install wrapper script
+ newbin "${T}/wrapper.in" ooffice
+ sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/ooffice" || die
+
+ # Component symlinks
+ for app in base calc draw impress math writer; do
+ cp "${ED}/usr/bin/ooffice" "${ED}/usr/bin/oo${app}"
+ sed -i -e s/soffice/s${app}/ "${ED}/usr/bin/oo${app}" || die
+ done
+
+ dosym ${INSTDIR}/program/spadmin /usr/bin/ooffice-printeradmin
+ dosym ${INSTDIR}/program/soffice /usr/bin/soffice
+
+ # Non-java weirdness see bug #99366
+ use !java && rm -f "${ED}${INSTDIR}/program/javaldx"
+
+ # prevent revdep-rebuild from attempting to rebuild all the time
+ insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
+
+ # remove soffice bin to avoid collision with libreoffice
+ rm -rf "${ED}${EPREFIX}/usr/bin/soffice"
+
+}
+
+pkg_preinst() {
+
+ use gnome && gnome2_icon_savelist
+
+}
+
+pkg_postinst() {
+
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ use gnome && gnome2_icon_cache_update
+
+ pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/${NM}/program/soffice.bin
+
+}
+
+pkg_postrm() {
+
+ fdo-mime_desktop_database_update
+ use gnome && gnome2_icon_cache_update
+
+}