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