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