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