Gentoo Archives: gentoo-commits

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