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