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