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