Gentoo Archives: gentoo-commits

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