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-4.1.3.2.ebuild ChangeLog libreoffice-4.0.5.2.ebuild libreoffice-4.0.9999.ebuild libreoffice-4.1.2.2-r1.ebuild
Date: Thu, 31 Oct 2013 15:46:12
Message-Id: 20131031154604.231A120047@flycatcher.gentoo.org
1 scarabeus 13/10/31 15:46:04
2
3 Modified: ChangeLog
4 Added: libreoffice-4.1.3.2.ebuild
5 Removed: libreoffice-4.0.5.2.ebuild
6 libreoffice-4.0.9999.ebuild
7 libreoffice-4.1.2.2-r1.ebuild
8 Log:
9 Version bump to 4.1.3.2 and cleanup older. Force due to unsynced cvs tree.
10
11 (Portage version: 2.2.7/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 8EEE3BE8)
12
13 Revision Changes Path
14 1.515 app-office/libreoffice/ChangeLog
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.515&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.515&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?r1=1.514&r2=1.515
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v
23 retrieving revision 1.514
24 retrieving revision 1.515
25 diff -u -r1.514 -r1.515
26 --- ChangeLog 27 Oct 2013 12:04:50 -0000 1.514
27 +++ ChangeLog 31 Oct 2013 15:46:03 -0000 1.515
28 @@ -1,6 +1,14 @@
29 # ChangeLog for app-office/libreoffice
30 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.514 2013/10/27 12:04:50 ago Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.515 2013/10/31 15:46:03 scarabeus Exp $
33 +
34 +*libreoffice-4.1.3.2 (31 Oct 2013)
35 +
36 + 31 Oct 2013; Tomáš Chvátal <scarabeus@g.o> +libreoffice-4.1.3.2.ebuild,
37 + -files/libreoffice-4.1.0.4-neon-build.patch,
38 + -files/libreoffice-4.1.2.2-idfattrib.patch, -libreoffice-4.0.5.2.ebuild,
39 + -libreoffice-4.0.9999.ebuild, -libreoffice-4.1.2.2-r1.ebuild:
40 + Version bump to 4.1.3.2 and cleanup older. Force due to unsynced cvs tree.
41
42 27 Oct 2013; Agostino Sarubbo <ago@g.o> libreoffice-4.1.2.3.ebuild:
43 Stable for x86, wrt bug #486204
44
45
46
47 1.1 app-office/libreoffice/libreoffice-4.1.3.2.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-4.1.3.2.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-4.1.3.2.ebuild?rev=1.1&content-type=text/plain
51
52 Index: libreoffice-4.1.3.2.ebuild
53 ===================================================================
54 # Copyright 1999-2013 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-4.1.3.2.ebuild,v 1.1 2013/10/31 15:46:03 scarabeus Exp $
57
58 EAPI=5
59
60 KDE_REQUIRED="optional"
61 QT_MINIMAL="4.7.4"
62 KDE_SCM="git"
63 CMAKE_REQUIRED="never"
64
65 PYTHON_COMPAT=( python2_7 python3_3 )
66 PYTHON_REQ_USE="threads,xml"
67
68 # experimental ; release ; old
69 # Usually the tarballs are moved a lot so this should make
70 # everyone happy.
71 DEV_URI="
72 http://dev-builds.libreoffice.org/pre-releases/src
73 http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
74 http://download.documentfoundation.org/libreoffice/old/${PV}/
75 "
76 EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
77 ADDONS_URI="http://dev-www.libreoffice.org/src/"
78
79 BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
80 # PATCHSET="${P}-patchset-01.tar.xz"
81
82 [[ ${PV} == *9999* ]] && SCM_ECLASS="git-2"
83 inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS}
84 unset SCM_ECLASS
85
86 DESCRIPTION="LibreOffice, a full office productivity suite."
87 HOMEPAGE="http://www.libreoffice.org"
88 SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
89 [[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
90
91 # Split modules following git/tarballs
92 # Core MUST be first!
93 # Help is used for the image generator
94 MODULES="core help"
95 # Only release has the tarballs
96 if [[ ${PV} != *9999* ]]; then
97 for i in ${DEV_URI}; do
98 for mod in ${MODULES}; do
99 if [[ ${mod} == core ]]; then
100 SRC_URI+=" ${i}/${P}.tar.xz"
101 else
102 SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
103 fi
104 done
105 unset mod
106 done
107 unset i
108 fi
109 unset DEV_URI
110
111 # Really required addons
112 # These are bundles that can't be removed for now due to huge patchsets.
113 # If you want them gone, patches are welcome.
114 ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz"
115 ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
116 ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
117 ADDONS_SRC+=" libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" # no release for 8 years, should we package it?
118 ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" # Does not build with 1.6 rhino at all
119 ADDONS_SRC+=" libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" # requirement of rhino
120 ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" # not packageable
121 SRC_URI+=" ${ADDONS_SRC}"
122
123 unset ADDONS_URI
124 unset EXT_URI
125 unset ADDONS_SRC
126
127 IUSE="bluetooth +branding +cups dbus debug eds gnome gstreamer +gtk
128 gtk3 jemalloc kde mysql odk opengl postgres telepathy test +vba +webdav"
129
130 LO_EXTS="nlpsolver presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher"
131 # Unpackaged separate extensions:
132 # diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
133 # hunart: only on ooo extensions -> fubared download path somewhere on sf
134 # numbertext, typo, validator, watch-window: ^^
135 # oooblogger: no homepage or anything
136 # Extensions that need extra work:
137 for lo_xt in ${LO_EXTS}; do
138 IUSE+=" libreoffice_extensions_${lo_xt}"
139 done
140 unset lo_xt
141
142 LICENSE="|| ( LGPL-3 MPL-1.1 )"
143 SLOT="0"
144 [[ ${PV} == *9999* ]] || \
145 KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux"
146
147 COMMON_DEPEND="
148 ${PYTHON_DEPS}
149 app-arch/zip
150 app-arch/unzip
151 >=app-text/hunspell-1.3.2-r3
152 app-text/mythes
153 >=app-text/libexttextcat-3.2
154 app-text/liblangtag
155 app-text/libmspub
156 >=app-text/libmwaw-0.1.7
157 app-text/libodfgen
158 app-text/libwpd:0.9[tools]
159 app-text/libwpg:0.2
160 >=app-text/libwps-0.2.2
161 >=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
162 >=dev-cpp/clucene-2.3.3.4-r2
163 >=dev-cpp/libcmis-0.3.1:0.3
164 dev-db/unixODBC
165 >=dev-libs/boost-1.46:=
166 dev-libs/expat
167 >=dev-libs/hyphen-2.7.1
168 >=dev-libs/icu-4.8.1.1:=
169 >=dev-libs/liborcus-0.5.1:=
170 >=dev-libs/nspr-4.8.8
171 >=dev-libs/nss-3.12.9
172 >=dev-lang/perl-5.0
173 >=dev-libs/openssl-1.0.0d
174 >=dev-libs/redland-1.0.16[ssl]
175 media-gfx/graphite2
176 >=media-libs/fontconfig-2.8.0
177 media-libs/freetype:2
178 >=media-libs/harfbuzz-0.9.10:=[icu(+)]
179 media-libs/lcms:2
180 >=media-libs/libpng-1.4
181 >=media-libs/libcdr-0.0.5
182 media-libs/libvisio
183 >=net-misc/curl-7.21.4
184 net-nds/openldap
185 sci-mathematics/lpsolve
186 virtual/jpeg:0
187 >=x11-libs/cairo-1.10.0[X]
188 x11-libs/libXinerama
189 x11-libs/libXrandr
190 x11-libs/libXrender
191 bluetooth? ( net-wireless/bluez )
192 cups? ( net-print/cups )
193 dbus? ( >=dev-libs/dbus-glib-0.92 )
194 eds? ( gnome-extra/evolution-data-server )
195 gnome? ( gnome-base/gconf:2 )
196 gtk? (
197 x11-libs/gdk-pixbuf[X]
198 >=x11-libs/gtk+-2.24:2
199 )
200 gtk3? ( >=x11-libs/gtk+-3.2:3 )
201 gstreamer? (
202 media-libs/gstreamer:1.0
203 media-libs/gst-plugins-base:1.0
204 )
205 jemalloc? ( dev-libs/jemalloc )
206 libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
207 libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
208 libreoffice_extensions_wiki-publisher? (
209 dev-java/commons-codec:0
210 dev-java/commons-httpclient:3
211 dev-java/commons-lang:2.1
212 dev-java/commons-logging:0
213 dev-java/tomcat-servlet-api:3.0
214 )
215 mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
216 opengl? (
217 virtual/glu
218 virtual/opengl
219 )
220 postgres? ( >=dev-db/postgresql-base-9.0[kerberos] )
221 telepathy? (
222 dev-libs/glib:2
223 >=net-libs/telepathy-glib-0.18.0
224 >=x11-libs/gtk+-2.24:2
225 )
226 webdav? ( net-libs/neon )
227 "
228
229 RDEPEND="${COMMON_DEPEND}
230 !app-office/libreoffice-bin
231 !app-office/libreoffice-bin-debug
232 !<app-office/openoffice-bin-3.4.0-r1
233 !app-office/openoffice
234 media-fonts/libertine-ttf
235 media-fonts/liberation-fonts
236 media-fonts/urw-fonts
237 java? ( >=virtual/jre-1.6 )
238 "
239
240 if [[ ${PV} != *9999* ]]; then
241 PDEPEND="~app-office/libreoffice-l10n-${PV}"
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/libxml2-2.7.8
253 dev-libs/libxslt
254 dev-perl/Archive-Zip
255 dev-util/cppunit
256 >=dev-util/gperf-3
257 dev-util/intltool
258 =dev-util/mdds-0.8*:=
259 virtual/pkgconfig
260 net-misc/npapi-sdk
261 >=sys-apps/findutils-4.4.2
262 sys-devel/bison
263 sys-apps/coreutils
264 sys-devel/flex
265 sys-devel/gettext
266 >=sys-devel/make-3.82
267 sys-devel/ucpp
268 sys-libs/zlib
269 x11-libs/libXt
270 x11-libs/libXtst
271 x11-proto/randrproto
272 x11-proto/xextproto
273 x11-proto/xineramaproto
274 x11-proto/xproto
275 java? (
276 >=virtual/jdk-1.6
277 >=dev-java/ant-core-1.7
278 )
279 odk? ( app-doc/doxygen )
280 test? ( dev-util/cppunit )
281 "
282
283 PATCHES=(
284 # not upstreamable stuff
285 "${FILESDIR}/${PN}-3.7-system-pyuno.patch"
286 )
287
288 REQUIRED_USE="
289 ${PYTHON_REQUIRED_USE}
290 bluetooth? ( dbus )
291 gnome? ( gtk )
292 eds? ( gnome )
293 telepathy? ( gtk )
294 libreoffice_extensions_nlpsolver? ( java )
295 libreoffice_extensions_scripting-beanshell? ( java )
296 libreoffice_extensions_scripting-javascript? ( java )
297 libreoffice_extensions_wiki-publisher? ( java )
298 "
299
300 CHECKREQS_MEMORY="512M"
301 CHECKREQS_DISK_BUILD="6G"
302
303 pkg_pretend() {
304 local pgslot
305
306 if [[ ${MERGE_TYPE} != binary ]]; then
307 check-reqs_pkg_pretend
308
309 if [[ $(gcc-major-version) -lt 4 ]] || \
310 ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]] ) \
311 ; then
312 eerror "Compilation with gcc older than 4.6 is not supported"
313 die "Too old gcc found."
314 fi
315 fi
316
317 # ensure pg version
318 if use postgres && has_version dev-db/postgresql-base; then
319 pgslot=$(postgresql-config show)
320 if [[ ${pgslot//.} < 90 ]] ; then
321 eerror "PostgreSQL slot must be set to 9.0 or higher."
322 eerror " postgresql-config set 9.0"
323 die "PostgreSQL slot is not set to 9.0 or higher."
324 fi
325 fi
326 }
327
328 pkg_setup() {
329 java-pkg-opt-2_pkg_setup
330 kde4-base_pkg_setup
331 python-single-r1_pkg_setup
332
333 [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
334 }
335
336 src_unpack() {
337 local mod mod2 dest tmplfile tmplname mypv
338
339 [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
340 use branding && unpack "${BRANDING}"
341
342 if [[ ${PV} != *9999* ]]; then
343 unpack "${P}.tar.xz"
344 for mod in ${MODULES}; do
345 [[ ${mod} == core ]] && continue
346 unpack "${PN}-${mod}-${PV}.tar.xz"
347 done
348 else
349 for mod in ${MODULES}; do
350 mypv=${PV/.9999}
351 [[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}"
352 EGIT_PROJECT="${PN}/${mod}"
353 EGIT_SOURCEDIR="${WORKDIR}/${P}"
354 [[ ${mod} != core ]] && EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}"
355 EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}"
356 EGIT_NOUNPACK="true"
357 git-2_src_unpack
358 if [[ ${mod} != core ]]; then
359 mod2=${mod}
360 # mapping does not match on help
361 [[ ${mod} == help ]] && mod2="helpcontent2"
362 mkdir -p "${S}/${mod2}/" || die
363 mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}/${mod2}" || die
364 rm -rf "${WORKDIR}/${PN}-${mod}-${PV}"
365 fi
366 done
367 unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH
368 fi
369 }
370
371 src_prepare() {
372 # optimization flags
373 export GMAKE_OPTIONS="${MAKEOPTS}"
374 # System python 2.7 enablement:
375 export PYTHON_CFLAGS=$(python_get_CFLAGS)
376 export PYTHON_LIBS=$(python_get_LIBS)
377
378 # patchset
379 if [[ -n ${PATCHSET} ]]; then
380 EPATCH_FORCE="yes" \
381 EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
382 EPATCH_SUFFIX="patch" \
383 epatch
384 fi
385
386 base_src_prepare
387
388 AT_M4DIR="m4" eautoreconf
389 # hack in the autogen.sh
390 touch autogen.lastrun
391
392 # system pyuno mess
393 sed \
394 -e "s:%eprefix%:${EPREFIX}:g" \
395 -e "s:%libdir%:$(get_libdir):g" \
396 -i pyuno/source/module/uno.py \
397 -i scripting/source/pyprov/officehelper.py || die
398 # sed in the tests
399 sed -i \
400 -e 's#all : build unitcheck#all : build#g' \
401 solenv/gbuild/Module.mk || die
402 sed -i \
403 -e 's#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g' \
404 -e 's#Makefile.gbuild all slowcheck#Makefile.gbuild all#g' \
405 Makefile.in || die
406
407 if use branding; then
408 # hack...
409 mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
410 fi
411 }
412
413 src_configure() {
414 local java_opts
415 local internal_libs
416 local lo_ext
417 local ext_opts
418 local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}")
419
420 # recheck that there is some value in jobs
421 [[ -z ${jbs} ]] && jbs="1"
422
423 # sane: just sane.h header that is used for scan in writer, not
424 # linked or anything else, worthless to depend on
425 # vigra: just uses templates from there
426 # it is serious pain in the ass for packaging
427 # should be replaced by boost::gil if someone interested
428 internal_libs+="
429 --without-system-sane
430 --without-system-vigra
431 "
432
433 # libreoffice extensions handling
434 for lo_xt in ${LO_EXTS}; do
435 if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
436 ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
437 else
438 ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
439 fi
440 done
441
442 if use java; then
443 # hsqldb: system one is too new
444 java_opts="
445 --without-junit
446 --without-system-hsqldb
447 --with-ant-home="${ANT_HOME}"
448 --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
449 --with-jvm-path="${EPREFIX}/usr/$(get_libdir)/"
450 "
451
452 use libreoffice_extensions_scripting-beanshell && \
453 java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
454
455 use libreoffice_extensions_scripting-javascript && \
456 java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
457
458 if use libreoffice_extensions_wiki-publisher; then
459 java_opts+="
460 --with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
461 --with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
462 --with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
463 --with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
464 --with-servlet-api-jar=$(java-pkg_getjar tomcat-servlet-api-3.0 servlet-api.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-rpath: relative runtime path is not desired
479 # --disable-systray: quickstarter does not actually work at all so do not
480 # promote it
481 # --enable-extension-integration: enable any extension integration support
482 # --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
483 # --disable-report-builder: too much java packages pulled in without pkgs
484 econf \
485 --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
486 --with-system-headers \
487 --with-system-libs \
488 --with-system-jars \
489 --with-system-dicts \
490 --enable-cairo-canvas \
491 --enable-graphite \
492 --enable-largefile \
493 --enable-mergelibs \
494 --enable-python=system \
495 --enable-randr \
496 --enable-randr-link \
497 --enable-release-build \
498 --enable-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-rpath \
511 --disable-systray \
512 --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
513 --with-build-version="Gentoo official package" \
514 --enable-extension-integration \
515 --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
516 --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
517 --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
518 --with-external-tar="${DISTDIR}" \
519 --with-lang="" \
520 --with-parallelism=${jbs} \
521 --with-system-ucpp \
522 --with-vendor="Gentoo Foundation" \
523 --with-x \
524 --without-afms \
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 cups) \
532 $(use_enable debug) \
533 $(use_enable dbus) \
534 $(use_enable eds evolution2) \
535 $(use_enable gnome gconf) \
536 $(use_enable gnome gio) \
537 $(use_enable gnome lockdown) \
538 $(use_enable gstreamer) \
539 $(use_enable gtk) \
540 $(use_enable gtk3) \
541 $(use_enable kde kde4) \
542 $(use_enable mysql ext-mariadb-connector) \
543 $(use_enable odk) \
544 $(use_enable opengl) \
545 $(use_enable postgres postgresql-sdbc) \
546 $(use_enable telepathy) \
547 $(use_enable test linkoo) \
548 $(use_enable vba) \
549 $(use_enable webdav neon) \
550 $(use_with java) \
551 $(use_with mysql system-mysql-cppconn) \
552 $(use_with odk doxygen) \
553 ${internal_libs} \
554 ${java_opts} \
555 ${ext_opts}
556 }
557
558 src_compile() {
559 # hack for offlinehelp, this needs fixing upstream at some point
560 # it is broken because we send --without-help
561 # https://bugs.freedesktop.org/show_bug.cgi?id=46506
562 (
563 grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk"
564 source "${T}/config_host.mk" 2&> /dev/null
565
566 local path="${SOLARVER}/${INPATH}/res/img"
567 mkdir -p "${path}" || die
568
569 echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
570 perl "${S}/helpcontent2/helpers/create_ilst.pl" \
571 -dir=icon-themes/galaxy/res/helpimg \
572 > "${path}/helpimg.ilst"
573 [[ -s "${path}/helpimg.ilst" ]] || ewarn "The help images list is empty, something is fishy, report a bug."
574 )
575
576 local target
577 use test && target="build" || target="build-nocheck"
578
579 # this is not a proper make script
580 make ${target} || die
581 }
582
583 src_test() {
584 make unitcheck || die
585 make slowcheck || die
586 }
587
588 src_install() {
589 # This is not Makefile so no buildserver
590 make DESTDIR="${D}" distro-pack-install -o build -o check || die
591
592 # Fix bash completion placement
593 newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN}
594 rm -rf "${ED}"/etc/
595
596 if use branding; then
597 insinto /usr/$(get_libdir)/${PN}/program
598 newins "${WORKDIR}/branding-sofficerc" sofficerc
599 fi
600
601 # symlink the nsplugin to proper location
602 # use gtk && inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so
603
604 # Hack for offlinehelp, this needs fixing upstream at some point.
605 # It is broken because we send --without-help
606 # https://bugs.freedesktop.org/show_bug.cgi?id=46506
607 insinto /usr/$(get_libdir)/libreoffice/help
608 doins xmlhelp/util/*.xsl
609
610 # Remove desktop files for support to old installs that can't parse mime
611 rm -rf "${ED}"/usr/share/mimelnk/
612 }
613
614 pkg_preinst() {
615 # Cache updates - all handled by kde eclass for all environments
616 kde4-base_pkg_preinst
617 }
618
619 pkg_postinst() {
620 kde4-base_pkg_postinst
621
622 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
623 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
624
625 use java || \
626 ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
627 }
628
629 pkg_postrm() {
630 kde4-base_pkg_postrm
631 }