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