1 |
scarabeus 11/11/30 10:21:52 |
2 |
|
3 |
Modified: libreoffice-9999-r2.ebuild |
4 |
libreoffice-3.4.9999-r2.ebuild |
5 |
libreoffice-3.4.3.2-r1.ebuild ChangeLog |
6 |
libreoffice-3.4.4.2-r1.ebuild |
7 |
Added: libreoffice-3.5.0.0.ebuild |
8 |
Log: |
9 |
Add beta0 for 3.5 into testing to get better testing coverage. PPC keywordreq opened. |
10 |
|
11 |
(Portage version: 2.2.0_alpha79/cvs/Linux x86_64, RepoMan options: --force) |
12 |
|
13 |
Revision Changes Path |
14 |
1.9 app-office/libreoffice/libreoffice-9999-r2.ebuild |
15 |
|
16 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-9999-r2.ebuild?rev=1.9&view=markup |
17 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-9999-r2.ebuild?rev=1.9&content-type=text/plain |
18 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-9999-r2.ebuild?r1=1.8&r2=1.9 |
19 |
|
20 |
Index: libreoffice-9999-r2.ebuild |
21 |
=================================================================== |
22 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-9999-r2.ebuild,v |
23 |
retrieving revision 1.8 |
24 |
retrieving revision 1.9 |
25 |
diff -u -r1.8 -r1.9 |
26 |
--- libreoffice-9999-r2.ebuild 23 Nov 2011 16:16:19 -0000 1.8 |
27 |
+++ libreoffice-9999-r2.ebuild 30 Nov 2011 10:21:52 -0000 1.9 |
28 |
@@ -1,6 +1,6 @@ |
29 |
# Copyright 1999-2011 Gentoo Foundation |
30 |
# Distributed under the terms of the GNU General Public License v2 |
31 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-9999-r2.ebuild,v 1.8 2011/11/23 16:16:19 scarabeus Exp $ |
32 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-9999-r2.ebuild,v 1.9 2011/11/30 10:21:52 scarabeus Exp $ |
33 |
|
34 |
EAPI=4 |
35 |
|
36 |
@@ -150,7 +150,7 @@ |
37 |
" |
38 |
|
39 |
PDEPEND=" |
40 |
- >=app-office/libreoffice-l10n-$(get_version_component_range 1-2) |
41 |
+ =app-office/libreoffice-l10n-$(get_version_component_range 1-3)* |
42 |
" |
43 |
|
44 |
# FIXME: cppunit should be moved to test conditional |
45 |
@@ -249,6 +249,9 @@ |
46 |
|
47 |
if [[ ${PV} != *9999* ]]; then |
48 |
for mod in ${MODULES}; do |
49 |
+ if [[ ${mod} == binfilter ]] && ! use binfilter; then |
50 |
+ continue |
51 |
+ fi |
52 |
unpack "${PN}-${mod}-${PV}.tar.bz2" |
53 |
if [[ ${mod} != core ]]; then |
54 |
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
55 |
|
56 |
|
57 |
|
58 |
1.4 app-office/libreoffice/libreoffice-3.4.9999-r2.ebuild |
59 |
|
60 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.9999-r2.ebuild?rev=1.4&view=markup |
61 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.9999-r2.ebuild?rev=1.4&content-type=text/plain |
62 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.9999-r2.ebuild?r1=1.3&r2=1.4 |
63 |
|
64 |
Index: libreoffice-3.4.9999-r2.ebuild |
65 |
=================================================================== |
66 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.9999-r2.ebuild,v |
67 |
retrieving revision 1.3 |
68 |
retrieving revision 1.4 |
69 |
diff -u -r1.3 -r1.4 |
70 |
--- libreoffice-3.4.9999-r2.ebuild 19 Nov 2011 13:53:57 -0000 1.3 |
71 |
+++ libreoffice-3.4.9999-r2.ebuild 30 Nov 2011 10:21:52 -0000 1.4 |
72 |
@@ -1,6 +1,6 @@ |
73 |
# Copyright 1999-2011 Gentoo Foundation |
74 |
# Distributed under the terms of the GNU General Public License v2 |
75 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.9999-r2.ebuild,v 1.3 2011/11/19 13:53:57 scarabeus Exp $ |
76 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.9999-r2.ebuild,v 1.4 2011/11/30 10:21:52 scarabeus Exp $ |
77 |
|
78 |
EAPI=4 |
79 |
|
80 |
@@ -141,7 +141,7 @@ |
81 |
" |
82 |
|
83 |
PDEPEND=" |
84 |
- >=app-office/libreoffice-l10n-$(get_version_component_range 1-2) |
85 |
+ =app-office/libreoffice-l10n-$(get_version_component_range 1-2)* |
86 |
" |
87 |
|
88 |
DEPEND="${COMMON_DEPEND} |
89 |
|
90 |
|
91 |
|
92 |
1.16 app-office/libreoffice/libreoffice-3.4.3.2-r1.ebuild |
93 |
|
94 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.3.2-r1.ebuild?rev=1.16&view=markup |
95 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.3.2-r1.ebuild?rev=1.16&content-type=text/plain |
96 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.3.2-r1.ebuild?r1=1.15&r2=1.16 |
97 |
|
98 |
Index: libreoffice-3.4.3.2-r1.ebuild |
99 |
=================================================================== |
100 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.3.2-r1.ebuild,v |
101 |
retrieving revision 1.15 |
102 |
retrieving revision 1.16 |
103 |
diff -u -r1.15 -r1.16 |
104 |
--- libreoffice-3.4.3.2-r1.ebuild 2 Nov 2011 12:58:35 -0000 1.15 |
105 |
+++ libreoffice-3.4.3.2-r1.ebuild 30 Nov 2011 10:21:52 -0000 1.16 |
106 |
@@ -1,6 +1,6 @@ |
107 |
# Copyright 1999-2011 Gentoo Foundation |
108 |
# Distributed under the terms of the GNU General Public License v2 |
109 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.3.2-r1.ebuild,v 1.15 2011/11/02 12:58:35 scarabeus Exp $ |
110 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.3.2-r1.ebuild,v 1.16 2011/11/30 10:21:52 scarabeus Exp $ |
111 |
|
112 |
EAPI=3 |
113 |
|
114 |
@@ -181,7 +181,7 @@ |
115 |
" |
116 |
|
117 |
PDEPEND=" |
118 |
- >=app-office/libreoffice-l10n-$(get_version_component_range 1-2) |
119 |
+ =app-office/libreoffice-l10n-$(get_version_component_range 1-3)* |
120 |
" |
121 |
|
122 |
DEPEND="${COMMON_DEPEND} |
123 |
|
124 |
|
125 |
|
126 |
1.208 app-office/libreoffice/ChangeLog |
127 |
|
128 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.208&view=markup |
129 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.208&content-type=text/plain |
130 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?r1=1.207&r2=1.208 |
131 |
|
132 |
Index: ChangeLog |
133 |
=================================================================== |
134 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v |
135 |
retrieving revision 1.207 |
136 |
retrieving revision 1.208 |
137 |
diff -u -r1.207 -r1.208 |
138 |
--- ChangeLog 23 Nov 2011 16:16:19 -0000 1.207 |
139 |
+++ ChangeLog 30 Nov 2011 10:21:52 -0000 1.208 |
140 |
@@ -1,6 +1,12 @@ |
141 |
# ChangeLog for app-office/libreoffice |
142 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
143 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.207 2011/11/23 16:16:19 scarabeus Exp $ |
144 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.208 2011/11/30 10:21:52 scarabeus Exp $ |
145 |
+ |
146 |
+*libreoffice-3.5.0.0 (30 Nov 2011) |
147 |
+ |
148 |
+ 30 Nov 2011; Tomáš Chvátal <scarabeus@g.o> |
149 |
+ +libreoffice-3.5.0.0.ebuild, libreoffice-9999-r2.ebuild: |
150 |
+ Add beta0 for 3.5 into testing to get better testing coverage. |
151 |
|
152 |
23 Nov 2011; Tomáš Chvátal <scarabeus@g.o> |
153 |
libreoffice-9999-r2.ebuild: |
154 |
|
155 |
|
156 |
|
157 |
1.4 app-office/libreoffice/libreoffice-3.4.4.2-r1.ebuild |
158 |
|
159 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.4.2-r1.ebuild?rev=1.4&view=markup |
160 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.4.2-r1.ebuild?rev=1.4&content-type=text/plain |
161 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.4.2-r1.ebuild?r1=1.3&r2=1.4 |
162 |
|
163 |
Index: libreoffice-3.4.4.2-r1.ebuild |
164 |
=================================================================== |
165 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.4.2-r1.ebuild,v |
166 |
retrieving revision 1.3 |
167 |
retrieving revision 1.4 |
168 |
diff -u -r1.3 -r1.4 |
169 |
--- libreoffice-3.4.4.2-r1.ebuild 13 Nov 2011 10:21:51 -0000 1.3 |
170 |
+++ libreoffice-3.4.4.2-r1.ebuild 30 Nov 2011 10:21:52 -0000 1.4 |
171 |
@@ -1,6 +1,6 @@ |
172 |
# Copyright 1999-2011 Gentoo Foundation |
173 |
# Distributed under the terms of the GNU General Public License v2 |
174 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.4.2-r1.ebuild,v 1.3 2011/11/13 10:21:51 scarabeus Exp $ |
175 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.4.2-r1.ebuild,v 1.4 2011/11/30 10:21:52 scarabeus Exp $ |
176 |
|
177 |
EAPI=4 |
178 |
|
179 |
@@ -158,7 +158,7 @@ |
180 |
" |
181 |
|
182 |
PDEPEND=" |
183 |
- >=app-office/libreoffice-l10n-$(get_version_component_range 1-2) |
184 |
+ =app-office/libreoffice-l10n-$(get_version_component_range 1-3)* |
185 |
" |
186 |
|
187 |
DEPEND="${COMMON_DEPEND} |
188 |
|
189 |
|
190 |
|
191 |
1.1 app-office/libreoffice/libreoffice-3.5.0.0.ebuild |
192 |
|
193 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.5.0.0.ebuild?rev=1.1&view=markup |
194 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.5.0.0.ebuild?rev=1.1&content-type=text/plain |
195 |
|
196 |
Index: libreoffice-3.5.0.0.ebuild |
197 |
=================================================================== |
198 |
# Copyright 1999-2011 Gentoo Foundation |
199 |
# Distributed under the terms of the GNU General Public License v2 |
200 |
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.5.0.0.ebuild,v 1.1 2011/11/30 10:21:52 scarabeus Exp $ |
201 |
|
202 |
EAPI=4 |
203 |
|
204 |
KDE_REQUIRED="optional" |
205 |
KDE_SCM="git" |
206 |
CMAKE_REQUIRED="never" |
207 |
|
208 |
PYTHON_DEPEND="2" |
209 |
PYTHON_USE_WITH="threads,xml" |
210 |
|
211 |
# experimental ; release ; old |
212 |
# Usually the tarballs are moved a lot so this should make |
213 |
# everyone happy. |
214 |
DEV_URI=" |
215 |
http://dev-builds.libreoffice.org/pre-releases/src |
216 |
http://download.documentfoundation.org/libreoffice/src |
217 |
http://download.documentfoundation.org/libreoffice/old/src |
218 |
" |
219 |
EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice" |
220 |
ADDONS_URI="http://dev-www.libreoffice.org/src/" |
221 |
|
222 |
BRANDING="${PN}-branding-gentoo-0.3.tar.xz" |
223 |
# PATCHSET="${P}-patchset-01.tar.xz" |
224 |
|
225 |
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2" |
226 |
inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils prefix python multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS} |
227 |
unset SCM_ECLASS |
228 |
|
229 |
DESCRIPTION="LibreOffice, a full office productivity suite." |
230 |
HOMEPAGE="http://www.libreoffice.org" |
231 |
SRC_URI="branding? ( http://dev.gentooexperimental.org/~scarabeus/${BRANDING} )" |
232 |
[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}" |
233 |
|
234 |
# Split modules following git/tarballs |
235 |
# Core MUST be first! |
236 |
MODULES="core binfilter" |
237 |
# Only release has the tarballs |
238 |
if [[ ${PV} != *9999* ]]; then |
239 |
for i in ${DEV_URI}; do |
240 |
for mod in ${MODULES}; do |
241 |
if [[ ${mod} == binfilter ]]; then |
242 |
SRC_URI+=" binfilter? ( ${i}/${PN}-${mod}-${PV}.tar.bz2 )" |
243 |
else |
244 |
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.bz2" |
245 |
fi |
246 |
done |
247 |
unset mod |
248 |
done |
249 |
unset i |
250 |
fi |
251 |
unset DEV_URI |
252 |
|
253 |
# Really required addons |
254 |
# These are bundles that can't be removed for now due to huge patchsets. |
255 |
# If you want them gone, patches are welcome. |
256 |
ADDONS_SRC+=" xmlsec? ( ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz )" |
257 |
ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
258 |
ADDONS_SRC+=" java? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
259 |
ADDONS_SRC+=" java? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
260 |
ADDONS_SRC+=" java? ( ${ADDONS_URI}/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip )" |
261 |
ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
262 |
SRC_URI+=" ${ADDONS_SRC}" |
263 |
|
264 |
unset ADDONS_URI |
265 |
unset EXT_URI |
266 |
unset ADDONS_SRC |
267 |
|
268 |
IUSE="binfilter +branding dbus debug eds gnome +graphite gstreamer +gtk |
269 |
+jemalloc kde mysql +nsplugin odk opengl pdfimport postgres svg test +vba |
270 |
+webdav +xmlsec" |
271 |
LICENSE="LGPL-3" |
272 |
SLOT="0" |
273 |
[[ ${PV} == *9999* ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
274 |
|
275 |
NSS_DEPEND=" |
276 |
>=dev-libs/nspr-4.8.8 |
277 |
>=dev-libs/nss-3.12.9 |
278 |
" |
279 |
|
280 |
COMMON_DEPEND=" |
281 |
app-arch/zip |
282 |
app-arch/unzip |
283 |
>=app-text/hunspell-1.3.2-r3 |
284 |
app-text/mythes |
285 |
>=app-text/libexttextcat-3.2 |
286 |
app-text/libwpd:0.9[tools] |
287 |
app-text/libwpg:0.2 |
288 |
>=app-text/libwps-0.2.2 |
289 |
dev-cpp/libcmis |
290 |
dev-db/unixODBC |
291 |
dev-libs/expat |
292 |
>=dev-libs/glib-2.28 |
293 |
>=dev-libs/hyphen-2.7.1 |
294 |
>=dev-libs/icu-4.8.1-r1 |
295 |
>=dev-lang/perl-5.0 |
296 |
>=dev-libs/openssl-1.0.0d |
297 |
>=dev-libs/redland-1.0.14[ssl] |
298 |
>=media-libs/fontconfig-2.8.0 |
299 |
media-libs/freetype:2 |
300 |
>=media-libs/libpng-1.4 |
301 |
media-libs/libvisio |
302 |
net-print/cups |
303 |
sci-mathematics/lpsolve |
304 |
>=sys-libs/db-4.8 |
305 |
virtual/jpeg |
306 |
>=x11-libs/cairo-1.10.0 |
307 |
x11-libs/libXinerama |
308 |
x11-libs/libXrandr |
309 |
x11-libs/libXrender |
310 |
dbus? ( >=dev-libs/dbus-glib-0.92 ) |
311 |
eds? ( gnome-extra/evolution-data-server ) |
312 |
gnome? ( |
313 |
gnome-base/gconf:2 |
314 |
gnome-base/orbit |
315 |
) |
316 |
gtk? ( |
317 |
>=x11-libs/gtk+-2.24:2 |
318 |
>=x11-libs/gtk+-3.2:3 |
319 |
) |
320 |
graphite? ( media-gfx/graphite2 ) |
321 |
gstreamer? ( |
322 |
>=media-libs/gstreamer-0.10 |
323 |
>=media-libs/gst-plugins-base-0.10 |
324 |
) |
325 |
java? ( |
326 |
>=dev-java/bsh-2.0_beta4 |
327 |
dev-java/lucene:2.9 |
328 |
dev-java/lucene-analyzers:2.3 |
329 |
) |
330 |
jemalloc? ( dev-libs/jemalloc ) |
331 |
mysql? ( >=dev-db/mysql-connector-c++-1.1.0 ) |
332 |
opengl? ( virtual/opengl ) |
333 |
pdfimport? ( >=app-text/poppler-0.16[xpdf-headers,cxx] ) |
334 |
postgres? ( >=dev-db/postgresql-base-8.4.0 ) |
335 |
svg? ( gnome-base/librsvg ) |
336 |
webdav? ( net-libs/neon ) |
337 |
xmlsec? ( ${NSS_DEPEND} ) |
338 |
" |
339 |
|
340 |
RDEPEND="${COMMON_DEPEND} |
341 |
!app-office/libreoffice-bin |
342 |
!app-office/openoffice-bin |
343 |
!app-office/openoffice |
344 |
media-fonts/libertine-ttf |
345 |
media-fonts/liberation-fonts |
346 |
java? ( >=virtual/jre-1.6 ) |
347 |
" |
348 |
|
349 |
PDEPEND=" |
350 |
=app-office/libreoffice-l10n-$(get_version_component_range 1-3)* |
351 |
" |
352 |
|
353 |
# FIXME: cppunit should be moved to test conditional |
354 |
# after everything upstream is under gbuild |
355 |
# as dmake execute tests right away |
356 |
DEPEND="${COMMON_DEPEND} |
357 |
>=dev-libs/boost-1.46 |
358 |
>=dev-libs/libxml2-2.7.8 |
359 |
dev-libs/libxslt |
360 |
dev-perl/Archive-Zip |
361 |
dev-util/cppunit |
362 |
>=dev-util/gperf-3 |
363 |
dev-util/intltool |
364 |
dev-util/mdds |
365 |
>=dev-util/pkgconfig-0.26 |
366 |
media-libs/sampleicc |
367 |
>=media-libs/vigra-1.7 |
368 |
>=net-misc/curl-7.21.4 |
369 |
net-misc/npapi-sdk |
370 |
>=sys-apps/findutils-4.4.2 |
371 |
sys-devel/bison |
372 |
sys-apps/coreutils |
373 |
sys-devel/flex |
374 |
sys-devel/gettext |
375 |
>=sys-devel/make-3.82 |
376 |
sys-libs/zlib |
377 |
x11-libs/libXtst |
378 |
x11-proto/randrproto |
379 |
x11-proto/xextproto |
380 |
x11-proto/xineramaproto |
381 |
x11-proto/xproto |
382 |
java? ( |
383 |
=virtual/jdk-1.6* |
384 |
>=dev-java/ant-core-1.7 |
385 |
test? ( dev-java/junit:4 ) |
386 |
) |
387 |
" |
388 |
|
389 |
PATCHES=( |
390 |
) |
391 |
|
392 |
REQUIRED_USE=" |
393 |
nsplugin? ( gtk ) |
394 |
gnome? ( gtk ) |
395 |
eds? ( gnome ) |
396 |
" |
397 |
|
398 |
S="${WORKDIR}/${PN}-core-${PV}" |
399 |
|
400 |
pkg_pretend() { |
401 |
local pgslot |
402 |
|
403 |
if [[ ${MERGE_TYPE} != binary ]]; then |
404 |
CHECKREQS_MEMORY="1G" |
405 |
use debug && CHECKREQS_DISK_BUILD="15G" || CHECKREQS_DISK_BUILD="9G" |
406 |
check-reqs_pkg_pretend |
407 |
|
408 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
409 |
eerror "Compilation with gcc older than 4.0 is not supported" |
410 |
die "Too old gcc found." |
411 |
fi |
412 |
fi |
413 |
|
414 |
# ensure pg version |
415 |
if use postgres; then |
416 |
pgslot=$(postgresql-config show) |
417 |
if [[ ${pgslot//.} < 84 ]] ; then |
418 |
eerror "PostgreSQL slot must be set to 8.4 or higher." |
419 |
eerror " postgresql-config set 8.4" |
420 |
die "PostgreSQL slot is not set to 8.4 or higher." |
421 |
fi |
422 |
fi |
423 |
} |
424 |
|
425 |
pkg_setup() { |
426 |
java-pkg-opt-2_pkg_setup |
427 |
kde4-base_pkg_setup |
428 |
|
429 |
python_set_active_version 2 |
430 |
python_pkg_setup |
431 |
|
432 |
if ! use gtk; then |
433 |
ewarn "If you want the LibreOffice systray quickstarter to work" |
434 |
ewarn "activate the 'gtk' use flag." |
435 |
ewarn |
436 |
fi |
437 |
} |
438 |
|
439 |
src_unpack() { |
440 |
local mod dest tmplfile tmplname mypv |
441 |
|
442 |
[[ -n ${PATCHSET} ]] && unpack ${PATCHSET} |
443 |
if use branding; then |
444 |
unpack "${BRANDING}" |
445 |
fi |
446 |
|
447 |
if [[ ${PV} != *9999* ]]; then |
448 |
for mod in ${MODULES}; do |
449 |
if [[ ${mod} == binfilter ]] && ! use binfilter; then |
450 |
continue |
451 |
fi |
452 |
unpack "${PN}-${mod}-${PV}.tar.bz2" |
453 |
if [[ ${mod} != core ]]; then |
454 |
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
455 |
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
456 |
fi |
457 |
done |
458 |
else |
459 |
for mod in ${MODULES}; do |
460 |
if [[ ${mod} == binfilter ]] && ! use binfilter; then |
461 |
continue |
462 |
fi |
463 |
mypv=${PV/.9999} |
464 |
[[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}" |
465 |
EGIT_PROJECT="${PN}/${mod}" |
466 |
EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}" |
467 |
EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}" |
468 |
EGIT_NOUNPACK="true" |
469 |
git-2_src_unpack |
470 |
if [[ ${mod} != core ]]; then |
471 |
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
472 |
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
473 |
fi |
474 |
done |
475 |
unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH |
476 |
fi |
477 |
} |
478 |
|
479 |
src_prepare() { |
480 |
# optimization flags |
481 |
export ARCH_FLAGS="${CXXFLAGS}" |
482 |
export LINKFLAGSOPTIMIZE="${LDFLAGS}" |
483 |
|
484 |
# patchset |
485 |
if [[ -n ${PATCHSET} ]]; then |
486 |
EPATCH_FORCE="yes" \ |
487 |
EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \ |
488 |
EPATCH_SUFFIX="patch" \ |
489 |
epatch |
490 |
fi |
491 |
|
492 |
base_src_prepare |
493 |
eautoreconf |
494 |
# hack in the autogen.sh |
495 |
touch autogen.lastrun |
496 |
} |
497 |
|
498 |
src_configure() { |
499 |
local java_opts |
500 |
local internal_libs |
501 |
local themes="default" |
502 |
local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}") |
503 |
|
504 |
# recheck that there is some value in jobs |
505 |
[[ -z ${jbs} ]] && jbs="1" |
506 |
|
507 |
# expand themes we are going to build based on DE useflags |
508 |
use gnome && themes+=" tango" |
509 |
use kde && themes+=" oxygen" |
510 |
|
511 |
# sane: just sane.h header that is used for scan in writer, not |
512 |
# linked or anything else, worthless to depend on |
513 |
internal_libs+=" |
514 |
--without-system-sane |
515 |
" |
516 |
|
517 |
if use java; then |
518 |
# hsqldb: system one is too new |
519 |
# saxon: system one does not work properly |
520 |
java_opts=" |
521 |
--without-system-hsqldb |
522 |
--without-system-saxon |
523 |
--with-ant-home="${ANT_HOME}" |
524 |
--with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
525 |
--with-java-target-version=$(java-pkg_get-target) |
526 |
--with-jvm-path="${EPREFIX}/usr/$(get_libdir)/" |
527 |
--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) |
528 |
--with-lucene-core-jar=$(java-pkg_getjar lucene-2.9 lucene-core.jar) |
529 |
--with-lucene-analyzers-jar=$(java-pkg_getjar lucene-analyzers-2.3 lucene-analyzers.jar) |
530 |
" |
531 |
if use test; then |
532 |
java_opts+=" --with-junit=$(java-pkg_getjar junit-4 junit.jar)" |
533 |
else |
534 |
java_opts+=" --without-junit" |
535 |
fi |
536 |
fi |
537 |
|
538 |
if use branding; then |
539 |
internal_libs+=" |
540 |
--with-about-bitmap="${WORKDIR}/branding-about.png" |
541 |
--with-intro-bitmap="${WORKDIR}/branding-intro.png" |
542 |
" |
543 |
fi |
544 |
|
545 |
# system headers/libs/...: enforce using system packages |
546 |
# only expections are mozilla and odbc/sane/xrender-header(s). |
547 |
# for jars the exception is db.jar controlled by --with-system-db |
548 |
# --enable-unix-qstart-libpng: use libpng splashscreen that is faster |
549 |
# --enable-cairo: ensure that cairo is always required |
550 |
# --enable-*-link: link to the library rather than just dlopen on runtime |
551 |
# --enable-release-build: build the libreoffice as release |
552 |
# --disable-fetch-external: prevent dowloading during compile phase |
553 |
# --disable-gnome-vfs: old gnome virtual fs support |
554 |
# --disable-kdeab: kde3 adressbook |
555 |
# --disable-kde: kde3 support |
556 |
# --disable-ldap: ldap requires internal mozilla stuff, same like mozab |
557 |
# --disable-mozilla: disable mozilla build that is used for adresbook, not |
558 |
# affecting the nsplugin that is always ON |
559 |
# --disable-pch: precompiled headers cause build crashes |
560 |
# --disable-rpath: relative runtime path is not desired |
561 |
# --disable-static-gtk: ensure that gtk is linked dynamically |
562 |
# --disable-ugly: disable ugly pieces of code |
563 |
# --disable-zenity: disable build icon |
564 |
# --enable-extension-integration: enable any extension integration support |
565 |
# --with-{max-jobs,num-cpus}: ensuring parallel building |
566 |
# --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
567 |
# --without-stlport: disable deprecated extensions framework |
568 |
# --disable-ext-report-builder: too much java packages pulled in |
569 |
econf \ |
570 |
--docdir="${EPREFIX}/usr/share/doc/${PF}/" \ |
571 |
--with-system-headers \ |
572 |
--with-system-libs \ |
573 |
--with-system-jars \ |
574 |
--with-system-dicts \ |
575 |
--enable-cairo-canvas \ |
576 |
--enable-largefile \ |
577 |
--enable-python=system \ |
578 |
--enable-randr \ |
579 |
--enable-randr-link \ |
580 |
--enable-release-build \ |
581 |
--enable-unix-qstart-libpng \ |
582 |
--disable-crashdump \ |
583 |
--disable-dependency-tracking \ |
584 |
--disable-epm \ |
585 |
--disable-fetch-external \ |
586 |
--disable-gnome-vfs \ |
587 |
--disable-ext-report-builder \ |
588 |
--disable-kdeab \ |
589 |
--disable-kde \ |
590 |
--disable-ldap \ |
591 |
--disable-mozilla \ |
592 |
--disable-online-update \ |
593 |
--disable-pch \ |
594 |
--disable-rpath \ |
595 |
--disable-static-gtk \ |
596 |
--disable-strip-solver \ |
597 |
--disable-ugly \ |
598 |
--disable-zenity \ |
599 |
--with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \ |
600 |
--with-build-version="Gentoo official package" \ |
601 |
--enable-extension-integration \ |
602 |
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \ |
603 |
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \ |
604 |
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \ |
605 |
--with-external-tar="${DISTDIR}" \ |
606 |
--with-lang="" \ |
607 |
--with-max-jobs=${jbs} \ |
608 |
--with-num-cpus=${jbs} \ |
609 |
--with-theme="${themes}" \ |
610 |
--with-unix-wrapper=libreoffice \ |
611 |
--with-vendor="Gentoo Foundation" \ |
612 |
--with-x \ |
613 |
--without-afms \ |
614 |
--without-fonts \ |
615 |
--without-myspell-dicts \ |
616 |
--without-ppds \ |
617 |
--without-stlport \ |
618 |
--without-system-mozilla \ |
619 |
--without-help \ |
620 |
--without-helppack-integration \ |
621 |
--without-sun-templates \ |
622 |
$(use_enable binfilter) \ |
623 |
$(use_enable dbus) \ |
624 |
$(use_enable debug crashdump) \ |
625 |
$(use_enable eds evolution2) \ |
626 |
$(use_enable gnome gconf) \ |
627 |
$(use_enable gnome gio) \ |
628 |
$(use_enable gnome lockdown) \ |
629 |
$(use_enable graphite) \ |
630 |
$(use_enable gstreamer) \ |
631 |
$(use_enable gtk) \ |
632 |
$(use_enable gtk gtk3) \ |
633 |
$(use_enable gtk systray) \ |
634 |
$(use_enable java ext-scripting-beanshell) \ |
635 |
$(use_enable kde kde4) \ |
636 |
$(use_enable mysql ext-mysql-connector) \ |
637 |
$(use_enable nsplugin) \ |
638 |
$(use_enable odk) \ |
639 |
$(use_enable opengl) \ |
640 |
$(use_enable pdfimport ext-pdfimport) \ |
641 |
$(use_enable postgres ext-postgresql-sdbc) \ |
642 |
$(use_enable svg librsvg system) \ |
643 |
$(use_enable test linkoo) \ |
644 |
$(use_enable vba) \ |
645 |
$(use_enable vba activex-component) \ |
646 |
$(use_enable webdav neon) \ |
647 |
$(use_enable xmlsec) \ |
648 |
$(use_with java) \ |
649 |
$(use_with mysql system-mysql-cppconn) \ |
650 |
${internal_libs} \ |
651 |
${java_opts} |
652 |
} |
653 |
|
654 |
src_compile() { |
655 |
# this is not a proper make script and the jobs are passed during configure |
656 |
make build || die |
657 |
} |
658 |
|
659 |
src_test() { |
660 |
make check || die |
661 |
} |
662 |
|
663 |
src_install() { |
664 |
# This is not Makefile so no buildserver |
665 |
make DESTDIR="${D}" distro-pack-install -o build -o check || die |
666 |
|
667 |
# Fix bash completion placement |
668 |
newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN} |
669 |
rm -rf "${ED}"/etc/ |
670 |
|
671 |
# symlink the nsplugin to system location |
672 |
if use nsplugin; then |
673 |
inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so |
674 |
fi |
675 |
|
676 |
if use branding; then |
677 |
insinto /usr/$(get_libdir)/${PN}/program |
678 |
newins "${WORKDIR}/branding-sofficerc" sofficerc |
679 |
fi |
680 |
} |
681 |
|
682 |
pkg_preinst() { |
683 |
# Cache updates - all handled by kde eclass for all environments |
684 |
kde4-base_pkg_preinst |
685 |
} |
686 |
|
687 |
pkg_postinst() { |
688 |
kde4-base_pkg_postinst |
689 |
|
690 |
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin |
691 |
} |
692 |
|
693 |
pkg_postrm() { |
694 |
kde4-base_pkg_postrm |
695 |
} |