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