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