Gentoo Archives: gentoo-commits

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