summaryrefslogtreecommitdiff
path: root/app-office/libreoffice
diff options
context:
space:
mode:
Diffstat (limited to 'app-office/libreoffice')
-rw-r--r--app-office/libreoffice/Manifest6
-rw-r--r--app-office/libreoffice/libreoffice-6.4.6.2-r2.ebuild (renamed from app-office/libreoffice/libreoffice-6.4.6.2-r1.ebuild)2
-rw-r--r--app-office/libreoffice/libreoffice-6.4.9999.ebuild34
-rw-r--r--app-office/libreoffice/libreoffice-9999.ebuild34
4 files changed, 58 insertions, 18 deletions
diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
index 79ad5750b8b1..9950421c41f2 100644
--- a/app-office/libreoffice/Manifest
+++ b/app-office/libreoffice/Manifest
@@ -31,7 +31,7 @@ DIST libreoffice-help-6.4.3.2.tar.xz 88297704 BLAKE2B bbd1af159c8b8db1909335f370
DIST libreoffice-help-6.4.6.2.tar.xz 88297908 BLAKE2B 919758e81ed46138331b49668f89c6bf7f50253d7632d113aa957f524ae26e2b99f2ba490b405830314822ea91185eb2308018df77c5bd3d7197cbba940ae2ba SHA512 8ada2568a40dc4f1c843cb37dde6abe3bd61b6e5d9910b985096821e1fce5af47d4a10bff8ae91913298e593130bc1f8668b4e1c59c46591d457157e3d4b7501
DIST skia-m83-8ce842d38d0b32149e874d6855c91e8c68ba65a7.tar.xz 8218672 BLAKE2B cfeb805d82ce1f5dd70c7365983fa8107d5ccda9409b2654c032115cdf8a1c32fa0451162b0cceec3dcc0054e3d0d0e13583ea93843b0d0a6eb948cc31c15ce0 SHA512 1018fc1cc8a7edc15745cc20791f9a22e5b318018ba619d6cb5b6995d3e81ab93c910bb3a42734872d3be54893c2ce7db507b2c61088660b2ce6630ff9b36ebb
EBUILD libreoffice-6.4.3.2.ebuild 15773 BLAKE2B 58373db2eb7ec7afe91cdb5cfa9632cedb8ff375ff07474aaffcbbe3c6ce150644d7d49639bfff3c2c8aa1eaa689e1ee3ac5348d8e1272bc0232d8a0a92eaf2a SHA512 15b27b4dbf1e4ba5938e506eca8265a717dd660046be6bdee4e06f8188fb9d51a9483b3b4149734419b9c6528405b47acf5f9c86e0ddec457ddad15e653adeee
-EBUILD libreoffice-6.4.6.2-r1.ebuild 17758 BLAKE2B f4aa064c267ad75951a68cb447d7fa9418b13ff4f55e6de29d096df46fc19c02cb7e6128efd04e55073ffe64348ab99e2fbd9848c5d7970b32f6beb69dff6ab0 SHA512 ccd159f2624c7c0ec36c8e70b09ca3aabcd70fcdea8a680246c61c55490dde8eaf01c95f5627a48e7a144b5b205bf42ca67124093b3d3f690b037a7597cae4dd
-EBUILD libreoffice-6.4.9999.ebuild 16701 BLAKE2B f75ca84ea20c010607f1c5f3ea2291130bfa68d5ff7e3fd573fe2f18cbe47d6cc57c78713f1dfd52fd456804cdf2aa0db4e9c933dc7520c6fe7b1b148a66c6db SHA512 f268ebc8da5246c6295904b05d6810bf4be24c62636a8bc106e848ce0e41d9c3ddcf3deb403e014f3b796b147630de7b3d58b787c496387faebb601fd2a4c2da
-EBUILD libreoffice-9999.ebuild 16785 BLAKE2B 11148bcd232c3adfdfbf8ea1e6aac3fede40916040ddec13bf89c31c2eebb29b0f27b73c829f62faeed458c8f8e4996059e4ea81731a35d50256d534a3098478 SHA512 8b7c261d4e72029bed1b7e7a6c6e7a3b60082f99441c03b8b165a7ebecd0c3047640531786b7fc015677dc85912412ddb2ec6c4b24759b42a74a34d81f12ccc2
+EBUILD libreoffice-6.4.6.2-r2.ebuild 17746 BLAKE2B 1fbd12e4034b2fc079e0b5b31165653e6fdd33f46d5792a816c06e5b181bca94711324086b9e880b7dfffddb3ce2e83df378f06938b33f6cffe952a13679a5f3 SHA512 b7d207ec9bcb96705ea1bd512ddb1dd81e68b87bf56db20b68418f4c74b6e6d7b8cb07acc483db316949b1bcd4626ff6b82af53ad80385f33c90cea69cc00392
+EBUILD libreoffice-6.4.9999.ebuild 17657 BLAKE2B 6609621bd724716dbb53d09b3d0e155834f49d1eea313de67dc9f0218c137d10f93f9e71bea36083fd2ecec03b0ffdb9e5f1a31ab94740ec11c9a476744f55ed SHA512 19073f7c452c6f257e4ceb0fce78b0a9b2790e004e86bd5e5686bfb2a275b3a0da6158a42fe8acf669c68bcebfe640c08223a846ec2eb802328b193fea6f4f30
+EBUILD libreoffice-9999.ebuild 17741 BLAKE2B c51e47cef4ffedfc7ada1a8cc8f97f6797cbfa62ab13877f199f154118a7e096a60afbc0e1f7e547750476dd0d8332f3bce463d9b5b35a169052c55e768f35a1 SHA512 8f7baa12b2a1ad5c929e5729b0ba367dfd54336327fee9001d9c1af8271be4ec9a748bf0a2968ad6e7be81bbd989acb2ef99112feb7ff2fded05664bf74d2978
MISC metadata.xml 1065 BLAKE2B 3ff11b03c5ab432a25d91b6e727f964c82fb31f23663669dbe5f85e2b425bb99ee3d7dd2f2fe3fe95063e0403bb4561487566e213125e861711ef79912747980 SHA512 da4cf59feab680dbcfa9a3e4f7760315c9f99aaff105b9712304c64e2ae3b7c2535f96c3cfb8e9b08124b59e55b460c831a0e116d6ec5bd670cecdfc85323b18
diff --git a/app-office/libreoffice/libreoffice-6.4.6.2-r1.ebuild b/app-office/libreoffice/libreoffice-6.4.6.2-r2.ebuild
index 7f884a56cefa..598c67302cc9 100644
--- a/app-office/libreoffice/libreoffice-6.4.6.2-r1.ebuild
+++ b/app-office/libreoffice/libreoffice-6.4.6.2-r2.ebuild
@@ -557,7 +557,7 @@ src_install() {
cat <<-EOF > "${T}"/uno.py
import sys, os
sys.path.append('${EPREFIX}${lodir}/program')
-os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/libreoffice/program/fundamentalrc')
+os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/program/fundamentalrc')
EOF
sed -e "/^import sys/d" -e "/^import os/d" \
-i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed"
diff --git a/app-office/libreoffice/libreoffice-6.4.9999.ebuild b/app-office/libreoffice/libreoffice-6.4.9999.ebuild
index 6f4a72b4e475..52876b5d2f11 100644
--- a/app-office/libreoffice/libreoffice-6.4.9999.ebuild
+++ b/app-office/libreoffice/libreoffice-6.4.9999.ebuild
@@ -265,7 +265,6 @@ PATCHES=(
# "${WORKDIR}"/${PATCHSET/.tar.xz/}
# not upstreamable stuff
- "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
"${FILESDIR}/${PN}-6.1-nomancompress.patch"
@@ -333,12 +332,6 @@ src_prepare() {
# hack in the autogen.sh
touch autogen.lastrun
- # system pyuno mess
- sed -i \
- -e "s:%eprefix%:${EPREFIX}:g" \
- -e "s:%libdir%:$(get_libdir):g" \
- pyuno/source/module/uno.py \
- pyuno/source/officehelper.py || die
# sed in the tests
sed -i \
-e "s#all : build unitcheck#all : build#g" \
@@ -555,6 +548,33 @@ src_install() {
# bug 703474
insinto /usr/include
doins -r include/LibreOfficeKit
+
+ local lodir=/usr/$(get_libdir)/libreoffice
+ # patching this would break tests
+ cat <<-EOF > "${T}"/uno.py
+import sys, os
+sys.path.append('${EPREFIX}${lodir}/program')
+os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/program/fundamentalrc')
+EOF
+ sed -e "/^import sys/d" -e "/^import os/d" \
+ -i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed"
+ cat "${D}"${lodir}/program/uno.py >> "${T}"/uno.py || die
+ cp "${T}"/uno.py "${D}"${lodir}/program/uno.py || die
+
+ # more system pyuno mess
+ sed -e "/sOffice = \"\" # lets hope for the best/s:\"\":\"${EPREFIX}${lodir}/program\":" \
+ -i "${D}"${lodir}/program/officehelper.py || die
+
+ python_optimize "${D}"${lodir}/program
+ # link python bridge in site-packages, bug 667802
+ local py pyc loprogdir=$(get_libdir)/libreoffice/program
+ for py in uno.py unohelper.py officehelper.py; do
+ dosym ../../../${loprogdir}/${py} $(python_get_sitedir)/${py}
+ while IFS="" read -d $'\0' -r pyc; do
+ pyc=${pyc//*\/}
+ dosym ../../../../${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc}
+ done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0)
+ done
}
pkg_postinst() {
diff --git a/app-office/libreoffice/libreoffice-9999.ebuild b/app-office/libreoffice/libreoffice-9999.ebuild
index 3cd82d82602e..a4e55bc75952 100644
--- a/app-office/libreoffice/libreoffice-9999.ebuild
+++ b/app-office/libreoffice/libreoffice-9999.ebuild
@@ -269,7 +269,6 @@ PATCHES=(
# "${WORKDIR}"/${PATCHSET/.tar.xz/}
# not upstreamable stuff
- "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
"${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
"${FILESDIR}/${PN}-6.1-nomancompress.patch"
)
@@ -333,12 +332,6 @@ src_prepare() {
# hack in the autogen.sh
touch autogen.lastrun
- # system pyuno mess
- sed -i \
- -e "s:%eprefix%:${EPREFIX}:g" \
- -e "s:%libdir%:$(get_libdir):g" \
- pyuno/source/module/uno.py \
- pyuno/source/officehelper.py || die
# sed in the tests
sed -i \
-e "s#all : build unitcheck#all : build#g" \
@@ -555,6 +548,33 @@ src_install() {
# bug 703474
insinto /usr/include
doins -r include/LibreOfficeKit
+
+ local lodir=/usr/$(get_libdir)/libreoffice
+ # patching this would break tests
+ cat <<-EOF > "${T}"/uno.py
+import sys, os
+sys.path.append('${EPREFIX}${lodir}/program')
+os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/program/fundamentalrc')
+EOF
+ sed -e "/^import sys/d" -e "/^import os/d" \
+ -i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed"
+ cat "${D}"${lodir}/program/uno.py >> "${T}"/uno.py || die
+ cp "${T}"/uno.py "${D}"${lodir}/program/uno.py || die
+
+ # more system pyuno mess
+ sed -e "/sOffice = \"\" # lets hope for the best/s:\"\":\"${EPREFIX}${lodir}/program\":" \
+ -i "${D}"${lodir}/program/officehelper.py || die
+
+ python_optimize "${D}"${lodir}/program
+ # link python bridge in site-packages, bug 667802
+ local py pyc loprogdir=$(get_libdir)/libreoffice/program
+ for py in uno.py unohelper.py officehelper.py; do
+ dosym ../../../${loprogdir}/${py} $(python_get_sitedir)/${py}
+ while IFS="" read -d $'\0' -r pyc; do
+ pyc=${pyc//*\/}
+ dosym ../../../../${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc}
+ done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0)
+ done
}
pkg_postinst() {