Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice/
Date: Fri, 03 Jun 2016 12:50:44
Message-Id: 1464958213.ff3fe3fc9e194b261f3e9a2b949f875d5d867136.polynomial-c@gentoo
1 commit: ff3fe3fc9e194b261f3e9a2b949f875d5d867136
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Wed May 25 23:25:47 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 3 12:50:13 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff3fe3fc
7
8 app-office/libreoffice: Drop 5.0 stable branch
9
10 Package-Manager: portage-2.2.28
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-office/libreoffice/libreoffice-5.0.9999.ebuild | 606 ---------------------
14 1 file changed, 606 deletions(-)
15
16 diff --git a/app-office/libreoffice/libreoffice-5.0.9999.ebuild b/app-office/libreoffice/libreoffice-5.0.9999.ebuild
17 deleted file mode 100644
18 index 7851fad..0000000
19 --- a/app-office/libreoffice/libreoffice-5.0.9999.ebuild
20 +++ /dev/null
21 @@ -1,606 +0,0 @@
22 -# Copyright 1999-2016 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -# $Id$
25 -
26 -EAPI=5
27 -
28 -KDE_REQUIRED="optional"
29 -QT_MINIMAL="4.7.4"
30 -KDE_SCM="git"
31 -CMAKE_REQUIRED="never"
32 -
33 -PYTHON_COMPAT=( python{2_7,3_4,3_5} )
34 -PYTHON_REQ_USE="threads,xml"
35 -
36 -# experimental ; release ; old
37 -# Usually the tarballs are moved a lot so this should make
38 -# everyone happy.
39 -DEV_URI="
40 - http://dev-builds.libreoffice.org/pre-releases/src
41 - http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
42 - http://download.documentfoundation.org/libreoffice/old/${PV}/
43 -"
44 -EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
45 -ADDONS_URI="http://dev-www.libreoffice.org/src/"
46 -
47 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
48 -# PATCHSET="${P}-patchset-01.tar.xz"
49 -
50 -[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
51 -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 ${SCM_ECLASS}
52 -unset SCM_ECLASS
53 -
54 -DESCRIPTION="A full office productivity suite"
55 -HOMEPAGE="http://www.libreoffice.org"
56 -SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
57 -[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
58 -
59 -# Split modules following git/tarballs
60 -# Core MUST be first!
61 -# Help is used for the image generator
62 -MODULES="core help"
63 -# Only release has the tarballs
64 -if [[ ${PV} != *9999* ]]; then
65 - for i in ${DEV_URI}; do
66 - for mod in ${MODULES}; do
67 - if [[ ${mod} == core ]]; then
68 - SRC_URI+=" ${i}/${P}.tar.xz"
69 - else
70 - SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
71 - fi
72 - done
73 - unset mod
74 - done
75 - unset i
76 -fi
77 -unset DEV_URI
78 -
79 -# Really required addons
80 -# These are bundles that can't be removed for now due to huge patchsets.
81 -# If you want them gone, patches are welcome.
82 -ADDONS_SRC=(
83 - "${ADDONS_URI}/d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz"
84 - "${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
85 - "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
86 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
87 - # no release for 8 years, should we package it?
88 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
89 - # Does not build with 1.6 rhino at all
90 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
91 - # requirement of rhino
92 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
93 - # not packageable
94 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
95 -)
96 -SRC_URI+=" ${ADDONS_SRC[*]}"
97 -
98 -unset ADDONS_URI
99 -unset EXT_URI
100 -unset ADDONS_SRC
101 -
102 -IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer
103 -+gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc"
104 -
105 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
106 -# Unpackaged separate extensions:
107 -# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
108 -# hunart: only on ooo extensions -> fubared download path somewhere on sf
109 -# numbertext, typo, validator, watch-window: ^^
110 -# oooblogger: no homepage or anything
111 -# Extensions that need extra work:
112 -for lo_xt in ${LO_EXTS}; do
113 - IUSE+=" libreoffice_extensions_${lo_xt}"
114 -done
115 -unset lo_xt
116 -
117 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
118 -SLOT="0"
119 -[[ ${PV} == *9999* ]] || \
120 -KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
121 -
122 -COMMON_DEPEND="
123 - ${PYTHON_DEPS}
124 - app-arch/zip
125 - app-arch/unzip
126 - >=app-text/hunspell-1.3.2-r3
127 - app-text/mythes
128 - >=app-text/libabw-0.1.0
129 - >=app-text/libexttextcat-3.2
130 - >=app-text/libebook-0.1.1
131 - >=app-text/libetonyek-0.1.2
132 - app-text/liblangtag
133 - >=app-text/libmspub-0.1.0
134 - >=app-text/libmwaw-0.3.5
135 - >=app-text/libodfgen-0.1.0
136 - app-text/libwpd:0.10[tools]
137 - app-text/libwpg:0.3
138 - =app-text/libwps-0.4*
139 - >=app-text/poppler-0.16:=[cxx]
140 - >=dev-cpp/clucene-2.3.3.4-r2
141 - =dev-cpp/libcmis-0.5*
142 - dev-db/unixODBC
143 - >=dev-libs/boost-1.55:=
144 - dev-libs/expat
145 - >=dev-libs/hyphen-2.7.1
146 - >=dev-libs/icu-4.8.1.1:=
147 - =dev-libs/liborcus-0.7*
148 - >=dev-libs/librevenge-0.0.1
149 - >=dev-libs/nspr-4.8.8
150 - >=dev-libs/nss-3.12.9
151 - >=dev-lang/perl-5.0
152 - !libressl? ( >=dev-libs/openssl-1.0.0d:0 )
153 - libressl? ( dev-libs/libressl )
154 - >=dev-libs/redland-1.0.16
155 - media-gfx/graphite2
156 - >=media-libs/fontconfig-2.8.0
157 - media-libs/freetype:2
158 - >=media-libs/glew-1.10
159 - >=media-libs/harfbuzz-0.9.18:=[icu(+)]
160 - media-libs/lcms:2
161 - >=media-libs/libpng-1.4:0=
162 - >=media-libs/libcdr-0.1.0
163 - >=media-libs/libfreehand-0.1.0
164 - media-libs/libpagemaker
165 - >=media-libs/libvisio-0.1.0
166 - >=net-misc/curl-7.21.4
167 - net-libs/neon
168 - net-nds/openldap
169 - sci-mathematics/lpsolve
170 - virtual/jpeg:0
171 - >=x11-libs/cairo-1.10.0[X,-xlib-xcb]
172 - x11-libs/libXinerama
173 - x11-libs/libXrandr
174 - x11-libs/libXrender
175 - virtual/glu
176 - virtual/opengl
177 - bluetooth? ( net-wireless/bluez )
178 - coinmp? ( sci-libs/coinor-mp )
179 - collada? ( >=media-libs/opencollada-1.2.2_p20150207 )
180 - cups? ( net-print/cups )
181 - dbus? ( >=dev-libs/dbus-glib-0.92 )
182 - eds? ( gnome-extra/evolution-data-server )
183 - firebird? ( >=dev-db/firebird-2.5 )
184 - gltf? ( media-libs/libgltf )
185 - gnome? ( gnome-base/gconf:2 )
186 - gtk? (
187 - x11-libs/gdk-pixbuf
188 - >=x11-libs/gtk+-2.24:2
189 - )
190 - gtk3? ( >=x11-libs/gtk+-3.8:3 )
191 - gstreamer? (
192 - media-libs/gstreamer:1.0
193 - media-libs/gst-plugins-base:1.0
194 - )
195 - jemalloc? ( dev-libs/jemalloc )
196 - libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
197 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
198 - libreoffice_extensions_wiki-publisher? (
199 - dev-java/commons-codec:0
200 - dev-java/commons-httpclient:3
201 - dev-java/commons-lang:2.1
202 - dev-java/commons-logging:0
203 - )
204 - mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
205 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
206 - telepathy? (
207 - dev-libs/glib:2
208 - >=net-libs/telepathy-glib-0.18.0
209 - >=x11-libs/gtk+-2.24:2
210 - )
211 -"
212 -
213 -RDEPEND="${COMMON_DEPEND}
214 - !app-office/libreoffice-bin
215 - !app-office/libreoffice-bin-debug
216 - !<app-office/openoffice-bin-3.4.0-r1
217 - !app-office/openoffice
218 - media-fonts/libertine
219 - media-fonts/liberation-fonts
220 - media-fonts/urw-fonts
221 - java? ( >=virtual/jre-1.6 )
222 - kde? ( $(add_kdeapps_dep kioclient) )
223 - vlc? ( media-video/vlc )
224 -"
225 -
226 -if [[ ${PV} != *9999* ]]; then
227 - PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
228 -else
229 - # Translations are not reliable on live ebuilds
230 - # rather force people to use english only.
231 - PDEPEND="!app-office/libreoffice-l10n"
232 -fi
233 -
234 -# FIXME: cppunit should be moved to test conditional
235 -# after everything upstream is under gbuild
236 -# as dmake execute tests right away
237 -DEPEND="${COMMON_DEPEND}
238 - >=dev-libs/libatomic_ops-7.2d
239 - >=dev-libs/libxml2-2.7.8
240 - dev-libs/libxslt
241 - dev-perl/Archive-Zip
242 - dev-util/cppunit
243 - >=dev-util/gperf-3
244 - dev-util/intltool
245 - >=dev-util/mdds-0.12.0:0=
246 - media-libs/glm
247 - net-misc/npapi-sdk
248 - sys-devel/bison
249 - sys-devel/flex
250 - sys-devel/gettext
251 - !<sys-devel/make-3.82
252 - sys-devel/ucpp
253 - sys-libs/zlib
254 - virtual/pkgconfig
255 - x11-libs/libXt
256 - x11-libs/libXtst
257 - x11-proto/randrproto
258 - x11-proto/xextproto
259 - x11-proto/xineramaproto
260 - x11-proto/xproto
261 - java? (
262 - >=virtual/jdk-1.6
263 - >=dev-java/ant-core-1.7
264 - )
265 - odk? ( >=app-doc/doxygen-1.8.4 )
266 - test? ( dev-util/cppunit )
267 -"
268 -
269 -REQUIRED_USE="
270 - ${PYTHON_REQUIRED_USE}
271 - bluetooth? ( dbus )
272 - collada? ( gltf )
273 - gnome? ( gtk )
274 - eds? ( gnome )
275 - telepathy? ( gtk )
276 - libreoffice_extensions_nlpsolver? ( java )
277 - libreoffice_extensions_scripting-beanshell? ( java )
278 - libreoffice_extensions_scripting-javascript? ( java )
279 - libreoffice_extensions_wiki-publisher? ( java )
280 -"
281 -
282 -PATCHES=(
283 - # not upstreamable stuff
284 - "${FILESDIR}/${PN}-4.4-system-pyuno.patch"
285 -)
286 -
287 -CHECKREQS_MEMORY="512M"
288 -if [[ ${MERGE_TYPE} != binary ]] ; then CHECKREQS_DISK_BUILD="6G" ; fi
289 -
290 -pkg_pretend() {
291 - local pgslot
292 -
293 - use java || \
294 - ewarn "If you plan to use lbase application you should enable java or you will get various crashes."
295 -
296 - if [[ ${MERGE_TYPE} != binary ]]; then
297 - check-reqs_pkg_pretend
298 -
299 - if [[ $(gcc-major-version) -lt 4 ]] || {
300 - [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]]; }
301 - then
302 - eerror "Compilation with gcc older than 4.6 is not supported"
303 - die "Too old gcc found."
304 - fi
305 - fi
306 -
307 - # Ensure pg version but we have to be sure the pg is installed (first
308 - # install on clean system)
309 - if use postgres && has_version dev-db/postgresql; then
310 - pgslot=$(postgresql-config show)
311 - if [[ ${pgslot//.} -lt 90 ]] ; then
312 - eerror "PostgreSQL slot must be set to 9.0 or higher."
313 - eerror " postgresql-config set 9.0"
314 - die "PostgreSQL slot is not set to 9.0 or higher."
315 - fi
316 - fi
317 -}
318 -
319 -pkg_setup() {
320 - java-pkg-opt-2_pkg_setup
321 - kde4-base_pkg_setup
322 - python-single-r1_pkg_setup
323 -
324 - [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
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 - # patchset
356 - if [[ -n ${PATCHSET} ]]; then
357 - EPATCH_FORCE="yes" \
358 - EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
359 - EPATCH_SUFFIX="patch" \
360 - epatch
361 - fi
362 -
363 - epatch "${PATCHES[@]}"
364 - epatch_user
365 -
366 - AT_M4DIR="m4" eautoreconf
367 - # hack in the autogen.sh
368 - touch autogen.lastrun
369 -
370 - # system pyuno mess
371 - sed -i \
372 - -e "s:%eprefix%:${EPREFIX}:g" \
373 - -e "s:%libdir%:$(get_libdir):g" \
374 - pyuno/source/module/uno.py \
375 - pyuno/source/officehelper.py || die
376 - # sed in the tests
377 - sed -i \
378 - -e "s#all : build unitcheck#all : build#g" \
379 - solenv/gbuild/Module.mk || die
380 - sed -i \
381 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
382 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
383 - Makefile.in || die
384 -
385 - if use branding; then
386 - # hack...
387 - mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
388 - fi
389 -}
390 -
391 -src_configure() {
392 - local java_opts
393 - local internal_libs
394 - local lo_ext
395 - local ext_opts
396 -
397 - # optimization flags
398 - export GMAKE_OPTIONS="${MAKEOPTS}"
399 - # System python 2.7 enablement:
400 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
401 - export PYTHON_LIBS=$(python_get_LIBS)
402 -
403 - if use collada; then
404 - export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
405 - export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
406 - fi
407 -
408 - # sane: just sane.h header that is used for scan in writer, not
409 - # linked or anything else, worthless to depend on
410 - # vigra: just uses templates from there
411 - # it is serious pain in the ass for packaging
412 - # should be replaced by boost::gil if someone interested
413 - internal_libs+="
414 - --without-system-sane
415 - --without-system-vigra
416 - "
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 -
443 - if use libreoffice_extensions_wiki-publisher; then
444 - java_opts+="
445 - --with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
446 - --with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
447 - --with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
448 - --with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
449 - "
450 - fi
451 - fi
452 -
453 - # system headers/libs/...: enforce using system packages
454 - # --enable-cairo: ensure that cairo is always required
455 - # --enable-graphite: disabling causes build breakages
456 - # --enable-*-link: link to the library rather than just dlopen on runtime
457 - # --enable-release-build: build the libreoffice as release
458 - # --disable-fetch-external: prevent dowloading during compile phase
459 - # --disable-gnome-vfs: old gnome virtual fs support
460 - # --disable-kdeab: kde3 adressbook
461 - # --disable-kde: kde3 support
462 - # --disable-systray: quickstarter does not actually work at all so do not
463 - # promote it
464 - # --enable-extension-integration: enable any extension integration support
465 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
466 - # --disable-report-builder: too much java packages pulled in without pkgs
467 - econf \
468 - --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
469 - --with-system-headers \
470 - --with-system-libs \
471 - --with-system-jars \
472 - --with-system-dicts \
473 - --enable-cairo-canvas \
474 - --enable-graphite \
475 - --enable-largefile \
476 - --enable-mergelibs \
477 - --enable-neon \
478 - --enable-python=system \
479 - --enable-randr \
480 - --enable-randr-link \
481 - --enable-release-build \
482 - --disable-hardlink-deliver \
483 - --disable-ccache \
484 - --disable-crashdump \
485 - --disable-dependency-tracking \
486 - --disable-epm \
487 - --disable-fetch-external \
488 - --disable-gnome-vfs \
489 - --disable-gstreamer-0-10 \
490 - --disable-report-builder \
491 - --disable-kdeab \
492 - --disable-kde \
493 - --disable-online-update \
494 - --disable-systray \
495 - --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
496 - --with-build-version="Gentoo official package" \
497 - --enable-extension-integration \
498 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
499 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
500 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
501 - --with-external-tar="${DISTDIR}" \
502 - --with-lang="" \
503 - --with-parallelism=$(makeopts_jobs) \
504 - --with-system-ucpp \
505 - --with-vendor="Gentoo Foundation" \
506 - --with-x \
507 - --without-fonts \
508 - --without-myspell-dicts \
509 - --without-help \
510 - --with-helppack-integration \
511 - --without-sun-templates \
512 - $(use_enable bluetooth sdremote-bluetooth) \
513 - $(use_enable coinmp) \
514 - $(use_enable collada) \
515 - $(use_enable cups) \
516 - $(use_enable debug) \
517 - $(use_enable dbus) \
518 - $(use_enable eds evolution2) \
519 - $(use_enable firebird firebird-sdbc) \
520 - $(use_enable gltf) \
521 - $(use_enable gnome gconf) \
522 - $(use_enable gnome gio) \
523 - $(use_enable gnome lockdown) \
524 - $(use_enable gstreamer gstreamer-1-0) \
525 - $(use_enable gtk) \
526 - $(use_enable gtk3) \
527 - $(use_enable kde kde4) \
528 - $(use_enable mysql ext-mariadb-connector) \
529 - $(use_enable odk) \
530 - $(use_enable postgres postgresql-sdbc) \
531 - $(use_enable telepathy) \
532 - $(use_enable vlc) \
533 - $(use_with coinmp system-coinmp) \
534 - $(use_with collada system-opencollada) \
535 - $(use_with gltf system-libgltf) \
536 - $(use_with java) \
537 - $(use_with mysql system-mysql-cppconn) \
538 - $(use_with odk doxygen) \
539 - ${internal_libs} \
540 - ${java_opts} \
541 - ${ext_opts}
542 -}
543 -
544 -src_compile() {
545 - # more and more LO stuff tries to use OpenGL, including tests during build
546 - # bug 501508, bug 540624, bug 545974 and probably more
547 - addpredict /dev/dri
548 - addpredict /dev/ati
549 - addpredict /dev/nvidiactl
550 -
551 - # hack for offlinehelp, this needs fixing upstream at some point
552 - # it is broken because we send --without-help
553 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
554 - (
555 - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
556 - source "${T}/config_host.mk" 2&> /dev/null
557 -
558 - local path="${WORKDIR}/helpcontent2/source/auxiliary/"
559 - mkdir -p "${path}" || die
560 -
561 - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
562 - perl "${S}/helpcontent2/helpers/create_ilst.pl" \
563 - -dir=icon-themes/galaxy/res/helpimg \
564 - > "${path}/helpimg.ilst"
565 - [[ -s "${path}/helpimg.ilst" ]] || \
566 - ewarn "The help images list is empty, something is fishy, report a bug."
567 - )
568 -
569 - local target
570 - use test && target="build" || target="build-nocheck"
571 -
572 - # this is not a proper make script
573 - make ${target} || die
574 -}
575 -
576 -src_test() {
577 - make unitcheck || die
578 - make slowcheck || die
579 -}
580 -
581 -src_install() {
582 - # This is not Makefile so no buildserver
583 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
584 -
585 - # Fix bash completion placement
586 - newbashcomp "${ED}"etc/bash_completion.d/libreoffice.sh ${PN}
587 - bashcomp_alias \
588 - libreoffice \
589 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
590 - rm -rf "${ED}"etc/ || die
591 -
592 - if use branding; then
593 - insinto /usr/$(get_libdir)/${PN}/program
594 - newins "${WORKDIR}/branding-sofficerc" sofficerc
595 - dodir /etc/env.d
596 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
597 - fi
598 -
599 - # Hack for offlinehelp, this needs fixing upstream at some point.
600 - # It is broken because we send --without-help
601 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
602 - insinto /usr/$(get_libdir)/libreoffice/help
603 - doins xmlhelp/util/*.xsl
604 -
605 - # Remove desktop files for support to old installs that can't parse mime
606 - rm -r "${ED}"usr/share/mimelnk/ || die
607 -
608 - # FIXME: Hack add missing file
609 - exeinto /usr/$(get_libdir)/${PN}/program
610 - doexe "${S}"/instdir/program/libsaxlo.so
611 -
612 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
613 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
614 -}
615 -
616 -pkg_preinst() {
617 - # Cache updates - all handled by kde eclass for all environments
618 - kde4-base_pkg_preinst
619 -}
620 -
621 -pkg_postinst() {
622 - kde4-base_pkg_postinst
623 -}
624 -
625 -pkg_postrm() {
626 - kde4-base_pkg_postrm
627 -}