Gentoo Archives: gentoo-commits

From: "Tomas Chvatal (scarabeus)" <scarabeus@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/libreoffice: libreoffice-3.5.4.2-r1.ebuild libreoffice-3.5.9999.ebuild ChangeLog libreoffice-3.5.4.2.ebuild libreoffice-3.5.3.2.ebuild
Date: Tue, 29 May 2012 09:02:35
Message-Id: 20120529090220.AB1582004B@flycatcher.gentoo.org
1 scarabeus 12/05/29 09:02:20
2
3 Modified: libreoffice-3.5.9999.ebuild ChangeLog
4 Added: libreoffice-3.5.4.2-r1.ebuild
5 Removed: libreoffice-3.5.4.2.ebuild
6 libreoffice-3.5.3.2.ebuild
7 Log:
8 Revision bump to 3.5.4.2-r1 to fix issues with hebrew. Depend on icu-49 hard. Fixes bug#418095.
9
10 (Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
11
12 Revision Changes Path
13 1.47 app-office/libreoffice/libreoffice-3.5.9999.ebuild
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.5.9999.ebuild?rev=1.47&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.5.9999.ebuild?rev=1.47&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.5.9999.ebuild?r1=1.46&r2=1.47
18
19 Index: libreoffice-3.5.9999.ebuild
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.5.9999.ebuild,v
22 retrieving revision 1.46
23 retrieving revision 1.47
24 diff -u -r1.46 -r1.47
25 --- libreoffice-3.5.9999.ebuild 23 May 2012 08:45:10 -0000 1.46
26 +++ libreoffice-3.5.9999.ebuild 29 May 2012 09:02:19 -0000 1.47
27 @@ -1,6 +1,6 @@
28 # Copyright 1999-2012 Gentoo Foundation
29 # Distributed under the terms of the GNU General Public License v2
30 -# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.5.9999.ebuild,v 1.46 2012/05/23 08:45:10 scarabeus Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.5.9999.ebuild,v 1.47 2012/05/29 09:02:19 scarabeus Exp $
32
33 EAPI=4
34
35 @@ -96,7 +96,7 @@
36 dev-libs/expat
37 >=dev-libs/glib-2.28
38 >=dev-libs/hyphen-2.7.1
39 - >=dev-libs/icu-4.8.1.1
40 + >=dev-libs/icu-49
41 >=dev-lang/perl-5.0
42 >=dev-libs/openssl-1.0.0d
43 >=dev-libs/redland-1.0.14[ssl]
44 @@ -196,6 +196,7 @@
45 "${FILESDIR}/${PN}-system-pyuno.patch"
46 "${FILESDIR}/${PN}-3.5-propagate-gb_FULLDEPS.patch"
47 "${FILESDIR}/${PN}-3.5-doublebuild.patch"
48 + "${FILESDIR}/${PN}-3.5-hebrew-icu49.patch"
49 )
50
51 REQUIRED_USE="
52
53
54
55 1.319 app-office/libreoffice/ChangeLog
56
57 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.319&view=markup
58 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.319&content-type=text/plain
59 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?r1=1.318&r2=1.319
60
61 Index: ChangeLog
62 ===================================================================
63 RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v
64 retrieving revision 1.318
65 retrieving revision 1.319
66 diff -u -r1.318 -r1.319
67 --- ChangeLog 27 May 2012 15:30:31 -0000 1.318
68 +++ ChangeLog 29 May 2012 09:02:19 -0000 1.319
69 @@ -1,6 +1,15 @@
70 # ChangeLog for app-office/libreoffice
71 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
72 -# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.318 2012/05/27 15:30:31 dilfridge Exp $
73 +# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.319 2012/05/29 09:02:19 scarabeus Exp $
74 +
75 +*libreoffice-3.5.4.2-r1 (29 May 2012)
76 +
77 + 29 May 2012; Tomáš Chvátal <scarabeus@g.o>
78 + +files/libreoffice-3.5-hebrew-icu49.patch, +libreoffice-3.5.4.2-r1.ebuild,
79 + -libreoffice-3.5.3.2.ebuild, -libreoffice-3.5.4.2.ebuild,
80 + libreoffice-3.5.9999.ebuild:
81 + Revision bump to 3.5.4.2-r1 to fix issues with hebrew. Depend on icu-49 hard.
82 + Fixes bug#418095.
83
84 27 May 2012; Andreas K. Huettel <dilfridge@g.o>
85 files/generate_libreoffice_package.sh:
86
87
88
89 1.1 app-office/libreoffice/libreoffice-3.5.4.2-r1.ebuild
90
91 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.5.4.2-r1.ebuild?rev=1.1&view=markup
92 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.5.4.2-r1.ebuild?rev=1.1&content-type=text/plain
93
94 Index: libreoffice-3.5.4.2-r1.ebuild
95 ===================================================================
96 # Copyright 1999-2012 Gentoo Foundation
97 # Distributed under the terms of the GNU General Public License v2
98 # $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.5.4.2-r1.ebuild,v 1.1 2012/05/29 09:02:19 scarabeus Exp $
99
100 EAPI=4
101
102 KDE_REQUIRED="optional"
103 QT_MINIMAL="4.7.4"
104 KDE_SCM="git"
105 CMAKE_REQUIRED="never"
106
107 PYTHON_DEPEND="2"
108 PYTHON_USE_WITH="threads,xml"
109
110 # experimental ; release ; old
111 # Usually the tarballs are moved a lot so this should make
112 # everyone happy.
113 DEV_URI="
114 http://dev-builds.libreoffice.org/pre-releases/src
115 http://download.documentfoundation.org/libreoffice/src
116 http://download.documentfoundation.org/libreoffice/old/src
117 "
118 EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
119 ADDONS_URI="http://dev-www.libreoffice.org/src/"
120
121 BRANDING="${PN}-branding-gentoo-0.5.tar.xz"
122 # PATCHSET="${P}-patchset-01.tar.xz"
123
124 [[ ${PV} == *9999* ]] && SCM_ECLASS="git-2"
125 inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils prefix python multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS}
126 unset SCM_ECLASS
127
128 DESCRIPTION="LibreOffice, a full office productivity suite."
129 HOMEPAGE="http://www.libreoffice.org"
130 SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
131 [[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
132
133 # Split modules following git/tarballs
134 # Core MUST be first!
135 MODULES="core binfilter help"
136 # Only release has the tarballs
137 if [[ ${PV} != *9999* ]]; then
138 for i in ${DEV_URI}; do
139 for mod in ${MODULES}; do
140 if [[ ${mod} == binfilter ]]; then
141 SRC_URI+=" binfilter? ( ${i}/${PN}-${mod}-${PV}.tar.xz )"
142 else
143 SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
144 fi
145 done
146 unset mod
147 done
148 unset i
149 fi
150 unset DEV_URI
151
152 # Really required addons
153 # These are bundles that can't be removed for now due to huge patchsets.
154 # If you want them gone, patches are welcome.
155 ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz"
156 ADDONS_SRC+=" xmlsec? ( ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz )"
157 ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
158 ADDONS_SRC+=" java? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
159 ADDONS_SRC+=" java? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
160 ADDONS_SRC+=" java? ( ${ADDONS_URI}/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip )"
161 ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
162 SRC_URI+=" ${ADDONS_SRC}"
163
164 unset ADDONS_URI
165 unset EXT_URI
166 unset ADDONS_SRC
167
168 IUSE="binfilter binfilterdebug +branding +cups dbus eds gnome +graphite gstreamer +gtk
169 jemalloc kde mysql nlpsolver +nsplugin odk opengl pdfimport postgres svg test
170 +vba +webdav +xmlsec"
171 LICENSE="LGPL-3"
172 SLOT="0"
173 [[ ${PV} == *9999* ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
174
175 NSS_DEPEND="
176 >=dev-libs/nspr-4.8.8
177 >=dev-libs/nss-3.12.9
178 "
179
180 COMMON_DEPEND="
181 app-arch/zip
182 app-arch/unzip
183 >=app-text/hunspell-1.3.2-r3
184 app-text/mythes
185 >=app-text/libexttextcat-3.2
186 app-text/libwpd:0.9[tools]
187 app-text/libwpg:0.2
188 >=app-text/libwps-0.2.2
189 dev-cpp/libcmis
190 dev-db/unixODBC
191 dev-libs/expat
192 >=dev-libs/glib-2.28
193 >=dev-libs/hyphen-2.7.1
194 >=dev-libs/icu-49
195 >=dev-lang/perl-5.0
196 >=dev-libs/openssl-1.0.0d
197 >=dev-libs/redland-1.0.14[ssl]
198 >=media-libs/fontconfig-2.8.0
199 media-libs/freetype:2
200 >=media-libs/libpng-1.4
201 media-libs/libvisio
202 >=net-misc/curl-7.21.4
203 sci-mathematics/lpsolve
204 >=sys-libs/db-4.8
205 virtual/jpeg
206 >=x11-libs/cairo-1.10.0[X]
207 x11-libs/libXinerama
208 x11-libs/libXrandr
209 x11-libs/libXrender
210 dbus? ( >=dev-libs/dbus-glib-0.92 )
211 eds? ( gnome-extra/evolution-data-server )
212 gnome? (
213 gnome-base/gconf:2
214 gnome-base/orbit
215 )
216 gtk? ( >=x11-libs/gtk+-2.24:2 )
217 graphite? ( media-gfx/graphite2 )
218 gstreamer? (
219 >=media-libs/gstreamer-0.10
220 >=media-libs/gst-plugins-base-0.10
221 )
222 java? (
223 >=dev-java/bsh-2.0_beta4
224 dev-java/lucene:2.9
225 dev-java/lucene-analyzers:2.3
226 )
227 jemalloc? ( dev-libs/jemalloc )
228 mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
229 opengl? ( virtual/opengl )
230 pdfimport? ( >=app-text/poppler-0.16[xpdf-headers,cxx] )
231 postgres? ( >=dev-db/postgresql-base-8.4.0 )
232 svg? ( gnome-base/librsvg )
233 webdav? ( net-libs/neon )
234 xmlsec? ( ${NSS_DEPEND} )
235 "
236
237 RDEPEND="${COMMON_DEPEND}
238 !app-office/libreoffice-bin
239 !app-office/libreoffice-bin-debug
240 !app-office/openoffice-bin
241 !app-office/openoffice
242 media-fonts/libertine-ttf
243 media-fonts/liberation-fonts
244 media-fonts/urw-fonts
245 cups? ( net-print/cups )
246 java? ( >=virtual/jre-1.6 )
247 "
248
249 PDEPEND="
250 >=app-office/libreoffice-l10n-3.5.0
251 "
252
253 # FIXME: cppunit should be moved to test conditional
254 # after everything upstream is under gbuild
255 # as dmake execute tests right away
256 DEPEND="${COMMON_DEPEND}
257 >=dev-libs/boost-1.46
258 >=dev-libs/libxml2-2.7.8
259 dev-libs/libxslt
260 dev-perl/Archive-Zip
261 dev-util/cppunit
262 >=dev-util/gperf-3
263 dev-util/intltool
264 dev-util/mdds
265 virtual/pkgconfig
266 media-libs/sampleicc
267 net-misc/npapi-sdk
268 net-print/cups
269 >=sys-apps/findutils-4.4.2
270 sys-devel/bison
271 sys-apps/coreutils
272 sys-devel/flex
273 sys-devel/gettext
274 >=sys-devel/make-3.82
275 sys-libs/zlib
276 x11-libs/libXt
277 x11-libs/libXtst
278 x11-proto/randrproto
279 x11-proto/xextproto
280 x11-proto/xineramaproto
281 x11-proto/xproto
282 java? (
283 =virtual/jdk-1.6*
284 >=dev-java/ant-core-1.7
285 test? ( dev-java/junit:4 )
286 )
287 "
288
289 PATCHES=(
290 # this can't be upstreamed :(
291 "${FILESDIR}/${PN}-system-pyuno.patch"
292 "${FILESDIR}/${PN}-3.5-propagate-gb_FULLDEPS.patch"
293 "${FILESDIR}/${PN}-3.5-doublebuild.patch"
294 "${FILESDIR}/${PN}-3.5-hebrew-icu49.patch"
295 )
296
297 REQUIRED_USE="
298 nsplugin? ( gtk )
299 gnome? ( gtk )
300 eds? ( gnome )
301 nlpsolver? ( java )
302 "
303
304 S="${WORKDIR}/${PN}-core-${PV}"
305
306 RESTRICT="test"
307
308 pkg_pretend() {
309 local pgslot
310
311 if [[ ${MERGE_TYPE} != binary ]]; then
312 CHECKREQS_MEMORY="512M"
313 CHECKREQS_DISK_BUILD="6G"
314 check-reqs_pkg_pretend
315
316 if [[ $(gcc-major-version) -lt 4 ]]; then
317 eerror "Compilation with gcc older than 4.0 is not supported"
318 die "Too old gcc found."
319 fi
320 fi
321
322 # ensure pg version
323 if use postgres; then
324 pgslot=$(postgresql-config show)
325 if [[ ${pgslot//.} < 90 ]] ; then
326 eerror "PostgreSQL slot must be set to 9.0 or higher."
327 eerror " postgresql-config set 9.0"
328 die "PostgreSQL slot is not set to 9.0 or higher."
329 fi
330 fi
331 }
332
333 pkg_setup() {
334 java-pkg-opt-2_pkg_setup
335 kde4-base_pkg_setup
336
337 python_set_active_version 2
338 python_pkg_setup
339
340 if [[ ${MERGE_TYPE} != binary ]]; then
341 CHECKREQS_MEMORY="512M"
342 CHECKREQS_DISK_BUILD="6G"
343 check-reqs_pkg_pretend
344 fi
345 }
346
347 src_unpack() {
348 local mod dest tmplfile tmplname mypv
349
350 [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
351 if use branding; then
352 unpack "${BRANDING}"
353 fi
354
355 if [[ ${PV} != *9999* ]]; then
356 for mod in ${MODULES}; do
357 if [[ ${mod} == binfilter ]] && ! use binfilter; then
358 continue
359 fi
360 unpack "${PN}-${mod}-${PV}.tar.xz"
361 if [[ ${mod} != core ]]; then
362 mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}"
363 rm -rf "${WORKDIR}/${PN}-${mod}-${PV}"
364 fi
365 done
366 else
367 for mod in ${MODULES}; do
368 if [[ ${mod} == binfilter ]] && ! use binfilter; then
369 continue
370 fi
371 mypv=${PV/.9999}
372 [[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}"
373 EGIT_PROJECT="${PN}/${mod}"
374 EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
375 EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}"
376 EGIT_NOUNPACK="true"
377 git-2_src_unpack
378 if [[ ${mod} != core ]]; then
379 mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}"
380 rm -rf "${WORKDIR}/${PN}-${mod}-${PV}"
381 fi
382 done
383 unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
384 fi
385 }
386
387 src_prepare() {
388 # optimization flags
389 export ARCH_FLAGS="${CXXFLAGS}"
390 export LINKFLAGSOPTIMIZE="${LDFLAGS}"
391
392 # patchset
393 if [[ -n ${PATCHSET} ]]; then
394 EPATCH_FORCE="yes" \
395 EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
396 EPATCH_SUFFIX="patch" \
397 epatch
398 fi
399
400 base_src_prepare
401
402 # please no debug in binfilter, it blows up things insanely
403 if use binfilter && ! use binfilterdebug ; then
404 for name in $(find "${S}/binfilter" -name makefile.mk) ; do
405 sed -i -e '1i\CFLAGS+= -g0' $name || die
406 done
407 fi
408
409 eautoreconf
410 # hack in the autogen.sh
411 touch autogen.lastrun
412 # system pyuno mess
413 sed \
414 -e "s:%eprefix%:${EPREFIX}:g" \
415 -e "s:%libdir%:$(get_libdir):g" \
416 -i pyuno/source/module/uno.py \
417 -i scripting/source/pyprov/officehelper.py || die
418
419 }
420
421 src_configure() {
422 local java_opts
423 local internal_libs
424 local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
425
426 # recheck that there is some value in jobs
427 [[ -z ${jbs} ]] && jbs="1"
428
429 # sane: just sane.h header that is used for scan in writer, not
430 # linked or anything else, worthless to depend on
431 # vigra: just uses templates from there
432 # it is serious pain in the ass for packaging
433 # should be replaced by boost::gil if someone interested
434 internal_libs+="
435 --without-system-sane
436 --without-system-vigra
437 "
438
439 if use java; then
440 # hsqldb: system one is too new
441 # saxon: system one does not work properly
442 java_opts="
443 --without-system-hsqldb
444 --without-system-saxon
445 --with-ant-home="${ANT_HOME}"
446 --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
447 --with-java-target-version=$(java-pkg_get-target)
448 --with-jvm-path="${EPREFIX}/usr/$(get_libdir)/"
449 --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)
450 --with-lucene-core-jar=$(java-pkg_getjar lucene-2.9 lucene-core.jar)
451 --with-lucene-analyzers-jar=$(java-pkg_getjar lucene-analyzers-2.3 lucene-analyzers.jar)
452 "
453 if use test; then
454 java_opts+=" --with-junit=$(java-pkg_getjar junit-4 junit.jar)"
455 else
456 java_opts+=" --without-junit"
457 fi
458 fi
459
460 if use branding; then
461 internal_libs+="
462 --with-about-bitmap="${WORKDIR}/branding-about.png"
463 --with-intro-bitmap="${WORKDIR}/branding-intro.png"
464 "
465 fi
466
467 # system headers/libs/...: enforce using system packages
468 # --enable-unix-qstart-libpng: use libpng splashscreen that is faster
469 # --enable-cairo: ensure that cairo is always required
470 # --enable-*-link: link to the library rather than just dlopen on runtime
471 # --enable-release-build: build the libreoffice as release
472 # --disable-fetch-external: prevent dowloading during compile phase
473 # --disable-gnome-vfs: old gnome virtual fs support
474 # --disable-kdeab: kde3 adressbook
475 # --disable-kde: kde3 support
476 # --disable-ldap: ldap requires internal mozilla stuff, same like mozab
477 # --disable-mozilla: disable mozilla build that is used for adresbook, not
478 # affecting the nsplugin that is always ON
479 # --disable-pch: precompiled headers cause build crashes
480 # --disable-rpath: relative runtime path is not desired
481 # --disable-static-gtk: ensure that gtk is linked dynamically
482 # --disable-ugly: disable ugly pieces of code
483 # --disable-zenity: disable build icon
484 # --enable-extension-integration: enable any extension integration support
485 # --with-{max-jobs,num-cpus}: ensuring parallel building
486 # --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
487 # --without-stlport: disable deprecated extensions framework
488 # --disable-ext-report-builder: too much java packages pulled in
489 econf \
490 --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
491 --with-system-headers \
492 --with-system-libs \
493 --with-system-jars \
494 --with-system-dicts \
495 --enable-cairo-canvas \
496 --enable-largefile \
497 --enable-python=system \
498 --enable-randr \
499 --enable-randr-link \
500 --enable-release-build \
501 --enable-unix-qstart-libpng \
502 --enable-mergelibs \
503 --disable-ccache \
504 --disable-crashdump \
505 --disable-dependency-tracking \
506 --disable-epm \
507 --disable-fetch-external \
508 --disable-gnome-vfs \
509 --disable-ext-report-builder \
510 --disable-kdeab \
511 --disable-kde \
512 --disable-ldap \
513 --disable-mozilla \
514 --disable-online-update \
515 --disable-pch \
516 --disable-rpath \
517 --disable-systray \
518 --disable-static-gtk \
519 --disable-strip-solver \
520 --disable-ugly \
521 --disable-zenity \
522 --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
523 --with-build-version="Gentoo official package" \
524 --enable-extension-integration \
525 --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
526 --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
527 --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
528 --with-external-tar="${DISTDIR}" \
529 --with-lang="" \
530 --with-max-jobs=${jbs} \
531 --with-num-cpus=2 \
532 --with-unix-wrapper=libreoffice \
533 --with-vendor="Gentoo Foundation" \
534 --with-x \
535 --without-afms \
536 --without-fonts \
537 --without-myspell-dicts \
538 --without-stlport \
539 --without-system-mozilla \
540 --without-help \
541 --with-helppack-integration \
542 --without-sun-templates \
543 $(use_enable binfilter) \
544 $(use_enable dbus) \
545 $(use_enable eds evolution2) \
546 $(use_enable gnome gconf) \
547 $(use_enable gnome gio) \
548 $(use_enable gnome lockdown) \
549 $(use_enable graphite) \
550 $(use_enable gstreamer) \
551 $(use_enable gtk) \
552 --disable-gtk3 \
553 $(use_enable java ext-scripting-beanshell) \
554 $(use_enable kde kde4) \
555 $(use_enable mysql ext-mysql-connector) \
556 $(use_enable nlpsolver ext-nlpsolver) \
557 $(use_enable nsplugin) \
558 $(use_enable odk) \
559 $(use_enable opengl) \
560 $(use_enable pdfimport ext-pdfimport) \
561 $(use_enable postgres postgresql-sdbc) \
562 $(use_enable svg librsvg system) \
563 $(use_enable test linkoo) \
564 $(use_enable vba) \
565 $(use_enable vba activex-component) \
566 $(use_enable webdav neon) \
567 $(use_enable xmlsec) \
568 $(use_with java) \
569 $(use_with mysql system-mysql-cppconn) \
570 ${internal_libs} \
571 ${java_opts}
572 }
573
574 src_compile() {
575 # hack for offlinehelp, this needs fixing upstream at some point
576 # it is broken because we send --without-help
577 # https://bugs.freedesktop.org/show_bug.cgi?id=46506
578 (
579 source "${S}/Env.Host.sh" 2&> /dev/null
580
581 local path="${SOLARVER}/${INPATH}/res/img"
582 mkdir -p "${path}" || die
583
584 echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=default_images/res/helpimg > \"${path}/helpimg.ilst\""
585 perl "${S}/helpcontent2/helpers/create_ilst.pl" \
586 -dir=default_images/res/helpimg \
587 > "${path}/helpimg.ilst"
588 [[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug."
589 )
590
591 # not a proper make script
592 make build || die
593 }
594
595 src_test() {
596 make check || 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 rm -rf "${ED}"/etc/
606
607 # symlink the nsplugin to system location
608 if use nsplugin; then
609 inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so
610 fi
611
612 if use branding; then
613 insinto /usr/$(get_libdir)/${PN}/program
614 newins "${WORKDIR}/branding-sofficerc" sofficerc
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
624 pkg_preinst() {
625 # Cache updates - all handled by kde eclass for all environments
626 kde4-base_pkg_preinst
627 }
628
629 pkg_postinst() {
630 kde4-base_pkg_postinst
631
632 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
633 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
634
635 use cups || \
636 ewarn 'You will need net-print/cups to be able to print and export to PDF with libreoffice.'
637
638 use java || \
639 ewarn 'If you plan to use lbase aplication you should enable java or you will get various crashes.'
640 }
641
642 pkg_postrm() {
643 kde4-base_pkg_postrm
644 }