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