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