Gentoo Archives: gentoo-commits

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