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