1 |
commit: 74932bc474b8638533493c27a95ac293b0cc3fb1 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 3 11:07:18 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 3 11:07:18 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74932bc4 |
7 |
|
8 |
app-office/libreoffice: Drop 7.1.5.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
app-office/libreoffice/Manifest | 2 - |
14 |
.../files/libreoffice-7.1.5.2-bison-3.8.patch | 53 -- |
15 |
app-office/libreoffice/libreoffice-7.1.5.2.ebuild | 665 --------------------- |
16 |
3 files changed, 720 deletions(-) |
17 |
|
18 |
diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest |
19 |
index 7b592716c7af..48c19050357c 100644 |
20 |
--- a/app-office/libreoffice/Manifest |
21 |
+++ b/app-office/libreoffice/Manifest |
22 |
@@ -19,11 +19,9 @@ DIST eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip 427800 BLAKE2B d3ac085a3 |
23 |
DIST f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip 211919 BLAKE2B 2c72493e44d3ad1714d294fb7baaa85d33fef2eb4ce75bf507b65f78f1d9d399bb5eb72cee188a8abc4b234eb2845a26755791fb3ac104ffe6e55013ab41ca8b SHA512 c1a15ebbfe817ec79d4b3f1c97d096bf8511737d7d35d97302856ccfb3de14a1cd16bd31000415d9ab24bbd9ef770d37855cee4b819ff0e8fca2f2766920a114 |
24 |
DIST libcmis-0.5.2.tar.xz 484404 BLAKE2B 7de242393c28fc8289bb598b34e704eb2affaaa8b9e470e10044dbfd3812391f29e1421df8d7ac3869955698ddbc9575feebcfbac27bb074a60ccc0527dca1c3 SHA512 295ab15115e75b1f6074f17d3538afe0de9b2b77ab454f5c63cb05e8df11886d82942fbf21ba01486052e3f6c75b0636b99d8e660cd3472dc4b87c31d3cd557b |
25 |
DIST libcuckoo-93217f8d391718380c508a722ab9acd5e9081233.tar.gz 5005888 BLAKE2B 836ec268c19c27ac079ea1084587c3e999f39ad2188be1a5cf8337ad0473ffda6c32d0695254d3797d1607707329befa88da6043f424544487238e550eda8590 SHA512 4159dfb4d08e359feb23127e12db590260913e70774161ac9513abb5183ad6ed6d2bdfbe56fc8aa68e2fc57ee29eae67aa0180e1a7d955016884ecba2ca60ff8 |
26 |
-DIST libreoffice-7.1.5.2.tar.xz 244350068 BLAKE2B ac3c7f5cabcb27ce3ed31febb04ce54b93bc8b4fa716259d1b93d5364e75b85af3352ad70a023b56271e769f5537b3f3151e837ee13498e08f1871e5b47d778c SHA512 dad5ffd344a7bad88ed8e77df4fb17b42237715e7b1feb7a7de164f2fbf6698feefedeb57974d8275067a06c0da60e9b07a333ccc1bb2f6d55a6b52408bd9b5f |
27 |
DIST libreoffice-7.1.7.2.tar.xz 244585600 BLAKE2B 65cb8f5ddbae5aa8fb37a54cc0fab8d541a030f6f94141f4e4355f1dfb24a927ffb713e5213e382152fe444e115f27b41f297ca37e320193c5e0289a01ee5430 SHA512 fa55bea912b4efa73cd1ad8bcc611a71146ab42534a348a7c695916d74f1912ad13a2d9ccb4f3f4ee4d604a0747619b75bbcc5e2b14bc306d53b3a1f27525093 |
28 |
DIST libreoffice-7.2.3.2.tar.xz 252752188 BLAKE2B aa3118e1b719078e1a0963edf9829bcbc8b6e8ea6752ca69b407a95307c8cd2f8b068eb707fbc176bd5bb4c5c9382a990863a44fd676a60b09204782993fe544 SHA512 b59e679025115cf176faf8a153833ed5ebac374372ba46bef46da22657dda399b88b3d503bfaf9964184d2dde4b19d3852d53c27cf6ceb0dd4967077b45eb5f6 |
29 |
DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f |
30 |
-DIST libreoffice-help-7.1.5.2.tar.xz 111785852 BLAKE2B 18962fe9260f6cf8ec7b1676f077b9f43e0277769b31b8e2c22cf83ac2963f3e92448901bc12f56dfb579da8a8a1ce20d6bd34c4bc3449f7e0972c03d22f63be SHA512 c669b6c4bfc3c6f46e4ee0bf86b158054f7178b9785273d9aba8183236b2ff6dbaf5584d5e4fb09bba3a8d010373599e7473a4ba15c229087c689198ceeee1c7 |
31 |
DIST libreoffice-help-7.1.7.2.tar.xz 111785664 BLAKE2B 947860ebbcdf8bd0ee96ebad688057d776d049ccad066951bf0361bcc1f9a1f8187eed266061ad161f479a3691263dc4f179f4b81aa666fdc1a4a380d28425a4 SHA512 20c464ff9cea68b37f6988faea84e9d72ba174706e75d91bbcac514011c65ab55d4f3a9f21fbb8f04f02908237b16d7a6983624c5ab8f27ee4f83aa7eb621268 |
32 |
DIST libreoffice-help-7.2.3.2.tar.xz 111989408 BLAKE2B 862af98e7fddcf8ed30c16e111aba1e13c7e143398c55cb07c0612648e0fd8b73cdd1a1303efce6050fda49737eca6c645aae9e75fd4f3add6928326624c5db1 SHA512 64ab9d676cc86116ec8aac1157aee33551932f2047f1c47cde865e50e39438f497b7b08073c3f058fae4870325950bad1a5063a55b8897ecb09c046c98bf7264 |
33 |
DIST skia-m88-59bafeeaa7de9eb753e3778c414e01dcf013dcd8.tar.xz 10420480 BLAKE2B 83bcc9ff3a3a916ccb92f49ef69f99386e89b636d37679ab17735625c56c4bb31ca89a7034d9282c905b405e0b31215de5fd3734061d323d48db440e4ad52643 SHA512 8e5c37b895d7f5fe15f491005ac46b39efe3bfb3af5dc805bf1226b2112496bdb9e433cc3b313f8fc185fe1f898d126b8a557d23485615cdbe917f0b76855f3d |
34 |
|
35 |
diff --git a/app-office/libreoffice/files/libreoffice-7.1.5.2-bison-3.8.patch b/app-office/libreoffice/files/libreoffice-7.1.5.2-bison-3.8.patch |
36 |
deleted file mode 100644 |
37 |
index b60b99a6c6c8..000000000000 |
38 |
--- a/app-office/libreoffice/files/libreoffice-7.1.5.2-bison-3.8.patch |
39 |
+++ /dev/null |
40 |
@@ -1,53 +0,0 @@ |
41 |
-From 45227d9b79dc4f2a2aa6874cd4e3c02b7934b197 Mon Sep 17 00:00:00 2001 |
42 |
-From: Stephan Bergmann <sbergman@××××××.com> |
43 |
-Date: Tue, 14 Sep 2021 12:20:48 +0200 |
44 |
-Subject: Adapt to Bison 3.8 internal yyn -> yyrule rename |
45 |
- |
46 |
-see |
47 |
-<https://git.savannah.gnu.org/cgit/bison.git/commit/?id=f30067ed51f23802fc91761ede1506dfa72b2865> |
48 |
-"glr2.cc: log the execution of deferred actions" including "Rename argument yyn |
49 |
-as yyrule for clarity." |
50 |
- |
51 |
-YYBISON was defined as 1 rather than as a representation of the Bison version |
52 |
-prior to |
53 |
-<https://git.savannah.gnu.org/cgit/bison.git/commit/?id=21c147b6e5372563b7c4741deadaddb9354f4b09> |
54 |
-"yacc.c: provide the Bison version as an integral macro", which shouldn't be a |
55 |
-problem here. And YYBISON is apparently completely undefined with |
56 |
-/usr/bin/bison on macOS. |
57 |
- |
58 |
-(The preceding comment always mentioned "yyi" and "yyrmap" in apparent mismatch |
59 |
-with the actually used "yyn" and "yyr1" ever since |
60 |
-c25ec0608a167bcf1d891043f02273761c351701 "initial import", so just leave it |
61 |
-untouched.) |
62 |
- |
63 |
-Change-Id: I4f901407aa21ed4abec84e661d813ee7599f02f0 |
64 |
-Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122082 |
65 |
-Tested-by: Jenkins |
66 |
-Reviewed-by: Stephan Bergmann <sbergman@××××××.com> |
67 |
---- |
68 |
- connectivity/source/parse/sqlbison.y | 6 ++++++ |
69 |
- 1 file changed, 6 insertions(+) |
70 |
- |
71 |
-diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y |
72 |
-index d14f36e7794f..c4be0bc00bd0 100644 |
73 |
---- a/connectivity/source/parse/sqlbison.y |
74 |
-+++ b/connectivity/source/parse/sqlbison.y |
75 |
-@@ -74,9 +74,15 @@ inline connectivity::OSQLInternalNode* newNode(const OUString& _newValue, |
76 |
- |
77 |
- // yyi is the internal number of the rule that is currently being reduced |
78 |
- // This can be mapped to external rule number via the yyrmap. |
79 |
-+#if defined YYBISON && YYBISON >= 30800 |
80 |
-+#define SQL_NEW_RULE newNode("", SQLNodeType::Rule, yyr1[yyrule]) |
81 |
-+#define SQL_NEW_LISTRULE newNode("", SQLNodeType::ListRule, yyr1[yyrule]) |
82 |
-+#define SQL_NEW_COMMALISTRULE newNode("", SQLNodeType::CommaListRule, yyr1[yyrule]) |
83 |
-+#else |
84 |
- #define SQL_NEW_RULE newNode("", SQLNodeType::Rule, yyr1[yyn]) |
85 |
- #define SQL_NEW_LISTRULE newNode("", SQLNodeType::ListRule, yyr1[yyn]) |
86 |
- #define SQL_NEW_COMMALISTRULE newNode("", SQLNodeType::CommaListRule, yyr1[yyn]) |
87 |
-+#endif |
88 |
- |
89 |
- |
90 |
- extern connectivity::OSQLParser* xxx_pGLOBAL_SQLPARSER; |
91 |
--- |
92 |
-cgit v1.2.1 |
93 |
- |
94 |
|
95 |
diff --git a/app-office/libreoffice/libreoffice-7.1.5.2.ebuild b/app-office/libreoffice/libreoffice-7.1.5.2.ebuild |
96 |
deleted file mode 100644 |
97 |
index 3e5f21d722bc..000000000000 |
98 |
--- a/app-office/libreoffice/libreoffice-7.1.5.2.ebuild |
99 |
+++ /dev/null |
100 |
@@ -1,665 +0,0 @@ |
101 |
-# Copyright 1999-2021 Gentoo Authors |
102 |
-# Distributed under the terms of the GNU General Public License v2 |
103 |
- |
104 |
-EAPI=7 |
105 |
- |
106 |
-PYTHON_COMPAT=( python3_{8..10} ) |
107 |
-PYTHON_REQ_USE="threads(+),xml" |
108 |
- |
109 |
-MY_PV="${PV/_alpha/.alpha}" |
110 |
-MY_PV="${MY_PV/_beta/.beta}" |
111 |
-# experimental ; release ; old |
112 |
-# Usually the tarballs are moved a lot so this should make everyone happy. |
113 |
-DEV_URI=" |
114 |
- https://dev-builds.libreoffice.org/pre-releases/src |
115 |
- https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/ |
116 |
- https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src |
117 |
-" |
118 |
-ADDONS_URI="https://dev-www.libreoffice.org/src/" |
119 |
- |
120 |
-BRANDING="${PN}-branding-gentoo-0.8.tar.xz" |
121 |
-# PATCHSET="${P}-patchset-01.tar.xz" |
122 |
- |
123 |
-[[ ${MY_PV} == *9999* ]] && inherit git-r3 |
124 |
-inherit autotools bash-completion-r1 check-reqs eapi8-dosym flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils |
125 |
- |
126 |
-DESCRIPTION="A full office productivity suite" |
127 |
-HOMEPAGE="https://www.libreoffice.org" |
128 |
-SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
129 |
-[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}" |
130 |
- |
131 |
-# Split modules following git/tarballs; Core MUST be first! |
132 |
-# Help is used for the image generator |
133 |
-# Only release has the tarballs |
134 |
-if [[ ${MY_PV} != *9999* ]]; then |
135 |
- for i in ${DEV_URI}; do |
136 |
- SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz" |
137 |
- SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz" |
138 |
- done |
139 |
- unset i |
140 |
-fi |
141 |
-unset DEV_URI |
142 |
- |
143 |
-# Really required addons |
144 |
-# These are bundles that can't be removed for now due to huge patchsets. |
145 |
-# If you want them gone, patches are welcome. |
146 |
-ADDONS_SRC=( |
147 |
- # not packaged in Gentoo, https://www.netlib.org/fp/dtoa.c |
148 |
- "${ADDONS_URI}/dtoa-20180411.tgz" |
149 |
- # not packaged in Gentoo, https://skia.org/ |
150 |
- "${ADDONS_URI}/skia-m88-59bafeeaa7de9eb753e3778c414e01dcf013dcd8.tar.xz" |
151 |
- # QR code generating library for >=libreoffice-6.4, bug #691740 |
152 |
- "${ADDONS_URI}/QR-Code-generator-1.4.0.tar.gz" |
153 |
- "base? ( |
154 |
- ${ADDONS_URI}/commons-logging-1.2-src.tar.gz |
155 |
- ${ADDONS_URI}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip |
156 |
- ${ADDONS_URI}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip |
157 |
- ${ADDONS_URI}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip |
158 |
- ${ADDONS_URI}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip |
159 |
- ${ADDONS_URI}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip |
160 |
- ${ADDONS_URI}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip |
161 |
- ${ADDONS_URI}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip |
162 |
- ${ADDONS_URI}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip |
163 |
- ${ADDONS_URI}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip |
164 |
- ${ADDONS_URI}/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip |
165 |
- ${ADDONS_URI}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip |
166 |
- )" |
167 |
- "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
168 |
- # no release for 8 years, should we package it? |
169 |
- "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" |
170 |
- # Does not build with 1.6 rhino at all |
171 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
172 |
- # requirement of rhino |
173 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
174 |
- # not packageable |
175 |
- "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
176 |
-) |
177 |
-SRC_URI+=" ${ADDONS_SRC[*]}" |
178 |
- |
179 |
-unset ADDONS_URI |
180 |
-unset ADDONS_SRC |
181 |
- |
182 |
-# Extensions that need extra work: |
183 |
-LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
184 |
- |
185 |
-IUSE="accessibility base bluetooth +branding clang coinmp +cups custom-cflags +dbus debug eds firebird |
186 |
-googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test vulkan |
187 |
-$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
188 |
- |
189 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
190 |
- base? ( firebird java ) |
191 |
- bluetooth? ( dbus ) |
192 |
- gtk? ( dbus ) |
193 |
- libreoffice_extensions_nlpsolver? ( java ) |
194 |
- libreoffice_extensions_scripting-beanshell? ( java ) |
195 |
- libreoffice_extensions_scripting-javascript? ( java ) |
196 |
- libreoffice_extensions_wiki-publisher? ( java ) |
197 |
-" |
198 |
- |
199 |
-RESTRICT="!test? ( test )" |
200 |
- |
201 |
-LICENSE="|| ( LGPL-3 MPL-1.1 )" |
202 |
-SLOT="0" |
203 |
- |
204 |
-[[ ${MY_PV} == *9999* ]] || \ |
205 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 x86 ~amd64-linux" |
206 |
- |
207 |
-BDEPEND=" |
208 |
- dev-util/intltool |
209 |
- sys-devel/bison |
210 |
- sys-devel/flex |
211 |
- sys-devel/gettext |
212 |
- virtual/pkgconfig |
213 |
- odk? ( >=app-doc/doxygen-1.8.4 ) |
214 |
-" |
215 |
-COMMON_DEPEND="${PYTHON_DEPS} |
216 |
- app-arch/unzip |
217 |
- app-arch/zip |
218 |
- app-crypt/gpgme[cxx] |
219 |
- app-text/hunspell:= |
220 |
- >=app-text/libabw-0.1.0 |
221 |
- >=app-text/libebook-0.1 |
222 |
- app-text/libepubgen |
223 |
- >=app-text/libetonyek-0.1 |
224 |
- app-text/libexttextcat |
225 |
- app-text/liblangtag |
226 |
- >=app-text/libmspub-0.1.0 |
227 |
- >=app-text/libmwaw-0.3.1 |
228 |
- >=app-text/libnumbertext-1.0.6 |
229 |
- >=app-text/libodfgen-0.1.0 |
230 |
- app-text/libqxp |
231 |
- app-text/libstaroffice |
232 |
- app-text/libwpd:0.10[tools] |
233 |
- app-text/libwpg:0.3 |
234 |
- >=app-text/libwps-0.4 |
235 |
- app-text/mythes |
236 |
- >=dev-cpp/clucene-2.3.3.4-r2 |
237 |
- >=dev-cpp/libcmis-0.5.2 |
238 |
- dev-db/unixODBC |
239 |
- >=games-engines/box2d-2.4.1:0 |
240 |
- dev-lang/perl |
241 |
- >=dev-libs/boost-1.72.0:=[nls] |
242 |
- dev-libs/expat |
243 |
- dev-libs/hyphen |
244 |
- dev-libs/icu:= |
245 |
- dev-libs/libassuan |
246 |
- dev-libs/libgpg-error |
247 |
- dev-libs/liborcus:0/0.16 |
248 |
- dev-libs/librevenge |
249 |
- dev-libs/libxml2 |
250 |
- dev-libs/libxslt |
251 |
- dev-libs/nspr |
252 |
- dev-libs/nss |
253 |
- >=dev-libs/redland-1.0.16 |
254 |
- >=dev-libs/xmlsec-1.2.28[nss] |
255 |
- media-gfx/fontforge |
256 |
- media-gfx/graphite2 |
257 |
- media-libs/fontconfig |
258 |
- media-libs/freetype:2 |
259 |
- >=media-libs/harfbuzz-0.9.42:=[graphite,icu] |
260 |
- media-libs/lcms:2 |
261 |
- >=media-libs/libcdr-0.1.0 |
262 |
- >=media-libs/libepoxy-1.3.1[X] |
263 |
- >=media-libs/libfreehand-0.1.0 |
264 |
- media-libs/libpagemaker |
265 |
- >=media-libs/libpng-1.4:0= |
266 |
- >=media-libs/libvisio-0.1.0 |
267 |
- media-libs/libzmf |
268 |
- >=net-libs/neon-0.31.1:= |
269 |
- net-misc/curl |
270 |
- sci-mathematics/lpsolve |
271 |
- sys-libs/zlib |
272 |
- virtual/glu |
273 |
- virtual/jpeg:0 |
274 |
- virtual/opengl |
275 |
- x11-libs/cairo[X] |
276 |
- x11-libs/libXinerama |
277 |
- x11-libs/libXrandr |
278 |
- x11-libs/libXrender |
279 |
- accessibility? ( |
280 |
- $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_USEDEP}]') |
281 |
- ) |
282 |
- bluetooth? ( |
283 |
- dev-libs/glib:2 |
284 |
- net-wireless/bluez |
285 |
- ) |
286 |
- clang? ( |
287 |
- || ( |
288 |
- ( sys-devel/clang:12 |
289 |
- sys-devel/llvm:12 |
290 |
- =sys-devel/lld-12* ) |
291 |
- ( sys-devel/clang:11 |
292 |
- sys-devel/llvm:11 |
293 |
- =sys-devel/lld-11* ) |
294 |
- ( sys-devel/clang:10 |
295 |
- sys-devel/llvm:10 |
296 |
- =sys-devel/lld-10* ) |
297 |
- ) |
298 |
- ) |
299 |
- coinmp? ( sci-libs/coinor-mp ) |
300 |
- cups? ( net-print/cups ) |
301 |
- dbus? ( sys-apps/dbus[X] ) |
302 |
- eds? ( |
303 |
- dev-libs/glib:2 |
304 |
- gnome-base/dconf |
305 |
- gnome-extra/evolution-data-server |
306 |
- ) |
307 |
- firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] ) |
308 |
- gstreamer? ( |
309 |
- media-libs/gstreamer:1.0 |
310 |
- media-libs/gst-plugins-base:1.0 |
311 |
- ) |
312 |
- gtk? ( |
313 |
- dev-libs/glib:2 |
314 |
- dev-libs/gobject-introspection |
315 |
- gnome-base/dconf |
316 |
- media-libs/mesa[egl(+)] |
317 |
- x11-libs/gtk+:3[X] |
318 |
- x11-libs/pango |
319 |
- ) |
320 |
- kde? ( |
321 |
- dev-qt/qtcore:5 |
322 |
- dev-qt/qtgui:5 |
323 |
- dev-qt/qtwidgets:5 |
324 |
- dev-qt/qtx11extras:5 |
325 |
- kde-frameworks/kconfig:5 |
326 |
- kde-frameworks/kcoreaddons:5 |
327 |
- kde-frameworks/ki18n:5 |
328 |
- kde-frameworks/kio:5 |
329 |
- kde-frameworks/kwindowsystem:5 |
330 |
- ) |
331 |
- ldap? ( net-nds/openldap ) |
332 |
- libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) |
333 |
- libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
334 |
- mariadb? ( dev-db/mariadb-connector-c ) |
335 |
- !mariadb? ( dev-db/mysql-connector-c ) |
336 |
- pdfimport? ( app-text/poppler:=[cxx] ) |
337 |
- postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
338 |
-" |
339 |
-# FIXME: cppunit should be moved to test conditional |
340 |
-# after everything upstream is under gbuild |
341 |
-# as dmake execute tests right away |
342 |
-# tests apparently also need google-carlito-fonts (not packaged) |
343 |
-DEPEND="${COMMON_DEPEND} |
344 |
- >=dev-libs/libatomic_ops-7.2d |
345 |
- dev-perl/Archive-Zip |
346 |
- >=dev-util/cppunit-1.14.0 |
347 |
- >=dev-util/gperf-3.1 |
348 |
- dev-util/mdds:1/1.5 |
349 |
- media-libs/glm |
350 |
- sys-devel/ucpp |
351 |
- x11-base/xorg-proto |
352 |
- x11-libs/libXt |
353 |
- x11-libs/libXtst |
354 |
- java? ( |
355 |
- dev-java/ant-core |
356 |
- || ( |
357 |
- dev-java/openjdk:11 |
358 |
- dev-java/openjdk-bin:11 |
359 |
- ) |
360 |
- ) |
361 |
- test? ( |
362 |
- app-crypt/gnupg |
363 |
- dev-util/cppunit |
364 |
- media-fonts/dejavu |
365 |
- media-fonts/liberation-fonts |
366 |
- ) |
367 |
-" |
368 |
-RDEPEND="${COMMON_DEPEND} |
369 |
- !app-office/libreoffice-bin |
370 |
- !app-office/libreoffice-bin-debug |
371 |
- media-fonts/liberation-fonts |
372 |
- || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) |
373 |
- java? ( || ( |
374 |
- dev-java/openjdk:11 |
375 |
- dev-java/openjdk-jre-bin:11 |
376 |
- >=virtual/jre-1.8 |
377 |
- ) ) |
378 |
- kde? ( kde-frameworks/breeze-icons:* ) |
379 |
-" |
380 |
-if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then |
381 |
- PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*" |
382 |
-else |
383 |
- # Translations are not reliable on live ebuilds |
384 |
- # rather force people to use english only. |
385 |
- PDEPEND="!app-office/libreoffice-l10n" |
386 |
-fi |
387 |
- |
388 |
-PATCHES=( |
389 |
- # "${WORKDIR}"/${PATCHSET/.tar.xz/} |
390 |
- |
391 |
- # not upstreamable stuff |
392 |
- "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
393 |
- "${FILESDIR}/${PN}-6.1-nomancompress.patch" |
394 |
- "${FILESDIR}/${PN}-7.0.3.1-qt5detect.patch" |
395 |
- |
396 |
- # master branch |
397 |
- "${FILESDIR}/${PN}-7.1.3.2-bashism.patch" # bug 780432 |
398 |
- "${FILESDIR}/${P}-bison-3.8.patch" # bug 812923 |
399 |
-) |
400 |
- |
401 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
402 |
- |
403 |
-_check_reqs() { |
404 |
- CHECKREQS_MEMORY="512M" |
405 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
406 |
- CHECKREQS_DISK_BUILD="22G" |
407 |
- else |
408 |
- CHECKREQS_DISK_BUILD="6G" |
409 |
- fi |
410 |
- check-reqs_$1 |
411 |
-} |
412 |
- |
413 |
-pkg_pretend() { |
414 |
- if use x86; then |
415 |
- elog "Unfortunately for packaging reasons on x86, various Java-based wizards," |
416 |
- elog "most notably Report Builder in LibreOffice Base, will not be available." |
417 |
- elog "See also: https://bugs.gentoo.org/785640" |
418 |
- else |
419 |
- use base || |
420 |
- ewarn "If you plan to use Base application you must enable USE base." |
421 |
- use java || |
422 |
- ewarn "Without USE java, several wizards are not going to be available." |
423 |
- fi |
424 |
- |
425 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend |
426 |
-} |
427 |
- |
428 |
-pkg_setup() { |
429 |
- java-pkg-opt-2_pkg_setup |
430 |
- python-single-r1_pkg_setup |
431 |
- xdg_environment_reset |
432 |
- |
433 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup |
434 |
-} |
435 |
- |
436 |
-src_unpack() { |
437 |
- default |
438 |
- |
439 |
- if [[ ${MY_PV} = *9999* ]]; then |
440 |
- local base_uri branch mypv |
441 |
- base_uri="https://anongit.freedesktop.org/git" |
442 |
- branch="master" |
443 |
- mypv=${MY_PV/.9999} |
444 |
- [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}" |
445 |
- git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" |
446 |
- git-r3_checkout "${base_uri}/${PN}/core" |
447 |
- LOCOREGIT_VERSION=${EGIT_VERSION} |
448 |
- |
449 |
- git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" |
450 |
- git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help |
451 |
- fi |
452 |
-} |
453 |
- |
454 |
-src_prepare() { |
455 |
- default |
456 |
- |
457 |
- # sandbox violations on many systems, we don't need it. Bug #646406 |
458 |
- sed -i \ |
459 |
- -e "/KF5_CONFIG/s/kf5-config/no/" \ |
460 |
- configure.ac || die "Failed to disable kf5-config" |
461 |
- |
462 |
- AT_M4DIR="m4" eautoreconf |
463 |
- # hack in the autogen.sh |
464 |
- touch autogen.lastrun |
465 |
- |
466 |
- # sed in the tests |
467 |
- sed -i \ |
468 |
- -e "s#all : build unitcheck#all : build#g" \ |
469 |
- solenv/gbuild/Module.mk || die |
470 |
- sed -i \ |
471 |
- -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
472 |
- -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
473 |
- Makefile.in || die |
474 |
- |
475 |
- sed -i \ |
476 |
- -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
477 |
- -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
478 |
- bin/distro-install-desktop-integration || die |
479 |
- |
480 |
- if use branding; then |
481 |
- # hack... |
482 |
- mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die |
483 |
- fi |
484 |
- |
485 |
- # Don't list pdfimport support in desktop when built with none, bug # 605464 |
486 |
- if ! use pdfimport; then |
487 |
- sed -i \ |
488 |
- -e ":MimeType: s:application/pdf;::" \ |
489 |
- -e ":Keywords: s:pdf;::" \ |
490 |
- sysui/desktop/menus/draw.desktop || die |
491 |
- fi |
492 |
-} |
493 |
- |
494 |
-src_configure() { |
495 |
- # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys |
496 |
- # Note: these are for Gentoo use ONLY. For your own distribution, please get |
497 |
- # your own set of keys. Feel free to contact chromium@g.o for more info. |
498 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
499 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
500 |
- |
501 |
- # Show flags set at the beginning |
502 |
- einfo "Preset CFLAGS: ${CFLAGS}" |
503 |
- einfo "Preset LDFLAGS: ${LDFLAGS}" |
504 |
- |
505 |
- if use clang ; then |
506 |
- # Force clang |
507 |
- einfo "Enforcing the use of clang due to USE=clang ..." |
508 |
- AR=llvm-ar |
509 |
- CC=${CHOST}-clang |
510 |
- CXX=${CHOST}-clang++ |
511 |
- NM=llvm-nm |
512 |
- RANLIB=llvm-ranlib |
513 |
- LDFLAGS+=" -fuse-ld=lld" |
514 |
- else |
515 |
- # Force gcc |
516 |
- einfo "Enforcing the use of gcc due to USE=-clang ..." |
517 |
- AR=gcc-ar |
518 |
- CC=${CHOST}-gcc |
519 |
- CXX=${CHOST}-g++ |
520 |
- NM=gcc-nm |
521 |
- RANLIB=gcc-ranlib |
522 |
- fi |
523 |
- |
524 |
- if use custom-cflags ; then |
525 |
- elog "USE=custom-cflags has been selected. You are on your own to make sure that" |
526 |
- elog "the build succeeds. Good luck!" |
527 |
- else |
528 |
- strip-flags |
529 |
- fi |
530 |
- |
531 |
- export LO_CLANG_CC=${CC} |
532 |
- export LO_CLANG_CXX=${CXX} |
533 |
- |
534 |
- # Show flags set at the end |
535 |
- einfo " Used CFLAGS: ${CFLAGS}" |
536 |
- einfo " Used LDFLAGS: ${LDFLAGS}" |
537 |
- |
538 |
- # Ensure we use correct toolchain |
539 |
- tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG |
540 |
- |
541 |
- if use vulkan && ! use clang ; then |
542 |
- ewarn "Building skia with gcc may lead to performance issues. Disable vulkan or enable clang." |
543 |
- fi |
544 |
- |
545 |
- # optimization flags |
546 |
- export GMAKE_OPTIONS="${MAKEOPTS}" |
547 |
- # System python enablement: |
548 |
- export PYTHON_CFLAGS=$(python_get_CFLAGS) |
549 |
- export PYTHON_LIBS=$(python_get_LIBS) |
550 |
- |
551 |
- use kde && export QT5DIR="$(qt5_get_bindir)/.." |
552 |
- |
553 |
- local gentoo_buildid="Gentoo official package" |
554 |
- if [[ -n ${LOCOREGIT_VERSION} ]]; then |
555 |
- gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})" |
556 |
- fi |
557 |
- |
558 |
- # system headers/libs/...: enforce using system packages |
559 |
- # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad |
560 |
- # --enable-cairo: ensure that cairo is always required |
561 |
- # --enable-*-link: link to the library rather than just dlopen on runtime |
562 |
- # --enable-release-build: build the libreoffice as release |
563 |
- # --disable-fetch-external: prevent dowloading during compile phase |
564 |
- # --enable-extension-integration: enable any extension integration support |
565 |
- # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
566 |
- # --disable-report-builder: too much java packages pulled in without pkgs |
567 |
- # --without-system-sane: just sane.h header that is used for scan in writer, |
568 |
- # not linked or anything else, worthless to depend on |
569 |
- # --disable-pdfium: not yet packaged |
570 |
- # --without-system-qrcodegen: has no real build system and LO is the only user |
571 |
- local myeconfargs=( |
572 |
- --with-system-dicts |
573 |
- --with-system-epoxy |
574 |
- --with-system-headers |
575 |
- --with-system-jars |
576 |
- --with-system-libs |
577 |
- --enable-build-opensymbol |
578 |
- --enable-cairo-canvas |
579 |
- --enable-largefile |
580 |
- --enable-mergelibs |
581 |
- --enable-neon |
582 |
- --enable-python=system |
583 |
- --enable-randr |
584 |
- --enable-release-build |
585 |
- --disable-breakpad |
586 |
- --disable-bundle-mariadb |
587 |
- --disable-ccache |
588 |
- --disable-epm |
589 |
- --disable-fetch-external |
590 |
- --disable-gtk3-kde5 |
591 |
- --disable-online-update |
592 |
- --disable-openssl |
593 |
- --disable-pdfium |
594 |
- --disable-vlc |
595 |
- --with-extra-buildid="${gentoo_buildid}" |
596 |
- --enable-extension-integration |
597 |
- --with-external-dict-dir="${EPREFIX}/usr/share/myspell" |
598 |
- --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" |
599 |
- --with-external-thes-dir="${EPREFIX}/usr/share/myspell" |
600 |
- --with-external-tar="${DISTDIR}" |
601 |
- --with-lang="" |
602 |
- --with-parallelism=$(makeopts_jobs) |
603 |
- --with-system-ucpp |
604 |
- --with-tls=nss |
605 |
- --with-vendor="Gentoo Foundation" |
606 |
- --with-x |
607 |
- --without-fonts |
608 |
- --without-myspell-dicts |
609 |
- --with-help="html" |
610 |
- --without-helppack-integration |
611 |
- --with-system-gpgmepp |
612 |
- --without-system-jfreereport |
613 |
- --without-system_apache_commons |
614 |
- --without-system-sane |
615 |
- --without-system-qrcodegen |
616 |
- $(use_enable base report-builder) |
617 |
- $(use_enable bluetooth sdremote-bluetooth) |
618 |
- $(use_enable coinmp) |
619 |
- $(use_enable cups) |
620 |
- $(use_enable dbus) |
621 |
- $(use_enable debug) |
622 |
- $(use_enable eds evolution2) |
623 |
- $(use_enable firebird firebird-sdbc) |
624 |
- $(use_enable gstreamer gstreamer-1-0) |
625 |
- $(use_enable gtk gtk3) |
626 |
- $(use_enable kde kf5) |
627 |
- $(use_enable kde qt5) |
628 |
- $(use_enable ldap) |
629 |
- $(use_enable odk) |
630 |
- $(use_enable pdfimport) |
631 |
- $(use_enable postgres postgresql-sdbc) |
632 |
- $(use_enable vulkan skia) |
633 |
- $(use_with accessibility lxml) |
634 |
- $(use_with coinmp system-coinmp) |
635 |
- $(use_with googledrive gdrive-client-id ${google_default_client_id}) |
636 |
- $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) |
637 |
- $(use_with java) |
638 |
- $(use_with odk doxygen) |
639 |
- ) |
640 |
- |
641 |
- if use eds || use gtk; then |
642 |
- myeconfargs+=( --enable-dconf --enable-gio ) |
643 |
- else |
644 |
- myeconfargs+=( --disable-dconf --disable-gio ) |
645 |
- fi |
646 |
- |
647 |
- # libreoffice extensions handling |
648 |
- for lo_xt in ${LO_EXTS}; do |
649 |
- if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
650 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) ) |
651 |
- else |
652 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) ) |
653 |
- fi |
654 |
- done |
655 |
- |
656 |
- if use java; then |
657 |
- # hsqldb: system one is too new |
658 |
- myeconfargs+=( |
659 |
- --without-junit |
660 |
- --without-system-hsqldb |
661 |
- --with-ant-home="${ANT_HOME}" |
662 |
- ) |
663 |
- if has_version "dev-java/openjdk:11"; then |
664 |
- myeconfargs+=( -with-jdk-home="${EPREFIX}/usr/$(get_libdir)/openjdk-11" ) |
665 |
- elif has_version "dev-java/openjdk-bin:11"; then |
666 |
- myeconfargs+=( --with-jdk-home="/opt/openjdk-bin-11" ) |
667 |
- fi |
668 |
- |
669 |
- use libreoffice_extensions_scripting-beanshell && \ |
670 |
- myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) ) |
671 |
- |
672 |
- use libreoffice_extensions_scripting-javascript && \ |
673 |
- myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) |
674 |
- fi |
675 |
- |
676 |
- is-flagq "-flto*" && myeconfargs+=( --enable-lto ) |
677 |
- |
678 |
- MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \ |
679 |
- econf "${myeconfargs[@]}" |
680 |
-} |
681 |
- |
682 |
-src_compile() { |
683 |
- # more and more LO stuff tries to use OpenGL, including tests during build |
684 |
- # bug 501508, bug 540624, bug 545974 and probably more |
685 |
- addpredict /dev/dri |
686 |
- addpredict /dev/ati |
687 |
- addpredict /dev/nvidiactl |
688 |
- |
689 |
- local target |
690 |
- use test && target="build" || target="build-nocheck" |
691 |
- |
692 |
- # this is not a proper make script |
693 |
- make ${target} || die |
694 |
-} |
695 |
- |
696 |
-src_test() { |
697 |
- make unitcheck || die |
698 |
- make slowcheck || die |
699 |
-} |
700 |
- |
701 |
-src_install() { |
702 |
- # This is not Makefile so no buildserver |
703 |
- emake DESTDIR="${D}" distro-pack-install -o build -o check |
704 |
- |
705 |
- # bug 593514 |
706 |
- if use gtk; then |
707 |
- dosym libreoffice/program/liblibreofficekitgtk.so \ |
708 |
- /usr/$(get_libdir)/liblibreofficekitgtk.so |
709 |
- fi |
710 |
- |
711 |
- # bash completion aliases |
712 |
- bashcomp_alias \ |
713 |
- libreoffice \ |
714 |
- unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
715 |
- |
716 |
- if use branding; then |
717 |
- insinto /usr/$(get_libdir)/${PN}/program |
718 |
- newins "${WORKDIR}/branding-sofficerc" sofficerc |
719 |
- dodir /etc/env.d |
720 |
- echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die |
721 |
- fi |
722 |
- |
723 |
- # bug 703474 |
724 |
- insinto /usr/include |
725 |
- doins -r include/LibreOfficeKit |
726 |
- |
727 |
- local lodir=/usr/$(get_libdir)/libreoffice |
728 |
- # patching this would break tests |
729 |
- cat <<-EOF > "${T}"/uno.py |
730 |
-import sys, os |
731 |
-sys.path.append('${EPREFIX}${lodir}/program') |
732 |
-os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/program/fundamentalrc') |
733 |
-EOF |
734 |
- sed -e "/^import sys/d" -e "/^import os/d" \ |
735 |
- -i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed" |
736 |
- cat "${D}"${lodir}/program/uno.py >> "${T}"/uno.py || die |
737 |
- cp "${T}"/uno.py "${D}"${lodir}/program/uno.py || die |
738 |
- |
739 |
- # more system pyuno mess |
740 |
- sed -e "/sOffice = \"\" # lets hope for the best/s:\"\":\"${EPREFIX}${lodir}/program\":" \ |
741 |
- -i "${D}"${lodir}/program/officehelper.py || die |
742 |
- |
743 |
- python_optimize "${D}"${lodir}/program |
744 |
- # link python bridge in site-packages, bug 667802 |
745 |
- local py pyc loprogdir=/usr/$(get_libdir)/libreoffice/program |
746 |
- for py in uno.py unohelper.py officehelper.py; do |
747 |
- dosym8 -r ${loprogdir}/${py} $(python_get_sitedir)/${py} |
748 |
- while IFS="" read -d $'\0' -r pyc; do |
749 |
- pyc=${pyc//*\/} |
750 |
- dosym8 -r ${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc} |
751 |
- done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0) |
752 |
- done |
753 |
-} |
754 |
- |
755 |
-pkg_postinst() { |
756 |
- xdg_icon_cache_update |
757 |
- xdg_desktop_database_update |
758 |
- xdg_mimeinfo_database_update |
759 |
-} |
760 |
- |
761 |
-pkg_postrm() { |
762 |
- xdg_icon_cache_update |
763 |
- xdg_desktop_database_update |
764 |
- xdg_mimeinfo_database_update |
765 |
-} |