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