1 |
scarabeus 11/07/30 15:16:28 |
2 |
|
3 |
Modified: ChangeLog libreoffice-3.4.2.3.ebuild |
4 |
Added: libreoffice-3.4.9999.ebuild |
5 |
Log: |
6 |
Add support for live ebuilds. Add live ebuild from 3.4 branch. Master branch needs A LOT more work so it won't appear soon. |
7 |
|
8 |
(Portage version: 2.2.0_alpha49/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.76 app-office/libreoffice/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.76&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?rev=1.76&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/ChangeLog?r1=1.75&r2=1.76 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v |
20 |
retrieving revision 1.75 |
21 |
retrieving revision 1.76 |
22 |
diff -u -r1.75 -r1.76 |
23 |
--- ChangeLog 29 Jul 2011 18:56:50 -0000 1.75 |
24 |
+++ ChangeLog 30 Jul 2011 15:16:28 -0000 1.76 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for app-office/libreoffice |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.75 2011/07/29 18:56:50 scarabeus Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.76 2011/07/30 15:16:28 scarabeus Exp $ |
30 |
+ |
31 |
+*libreoffice-3.4.9999 (30 Jul 2011) |
32 |
+ |
33 |
+ 30 Jul 2011; Tomáš Chvátal <scarabeus@g.o> |
34 |
+ libreoffice-3.4.2.3.ebuild, +libreoffice-3.4.9999.ebuild: |
35 |
+ Add support for live ebuilds. Add live ebuild from 3.4 branch. Master branch |
36 |
+ needs A LOT more work so it won't appear soon. |
37 |
|
38 |
29 Jul 2011; Tomáš Chvátal <scarabeus@g.o> |
39 |
libreoffice-3.4.2.3.ebuild, |
40 |
|
41 |
|
42 |
|
43 |
1.12 app-office/libreoffice/libreoffice-3.4.2.3.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.2.3.ebuild?rev=1.12&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.2.3.ebuild?rev=1.12&content-type=text/plain |
47 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.2.3.ebuild?r1=1.11&r2=1.12 |
48 |
|
49 |
Index: libreoffice-3.4.2.3.ebuild |
50 |
=================================================================== |
51 |
RCS file: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.2.3.ebuild,v |
52 |
retrieving revision 1.11 |
53 |
retrieving revision 1.12 |
54 |
diff -u -r1.11 -r1.12 |
55 |
--- libreoffice-3.4.2.3.ebuild 29 Jul 2011 18:56:50 -0000 1.11 |
56 |
+++ libreoffice-3.4.2.3.ebuild 30 Jul 2011 15:16:28 -0000 1.12 |
57 |
@@ -1,6 +1,6 @@ |
58 |
# Copyright 1999-2011 Gentoo Foundation |
59 |
# Distributed under the terms of the GNU General Public License v2 |
60 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.2.3.ebuild,v 1.11 2011/07/29 18:56:50 scarabeus Exp $ |
61 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.2.3.ebuild,v 1.12 2011/07/30 15:16:28 scarabeus Exp $ |
62 |
|
63 |
EAPI=3 |
64 |
|
65 |
@@ -23,25 +23,29 @@ |
66 |
|
67 |
BRANDING="${PN}-branding-gentoo-0.2.tar.xz" |
68 |
|
69 |
-inherit base autotools check-reqs eutils java-pkg-opt-2 kde4-base pax-utils prefix python multilib toolchain-funcs flag-o-matic nsplugins |
70 |
+[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2" |
71 |
+inherit base autotools check-reqs eutils java-pkg-opt-2 kde4-base pax-utils prefix python multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS} |
72 |
+unset SCM_ECLASS |
73 |
|
74 |
DESCRIPTION="LibreOffice, a full office productivity suite." |
75 |
HOMEPAGE="http://www.libreoffice.org" |
76 |
SRC_URI="branding? ( http://dev.gentooexperimental.org/~scarabeus/${BRANDING} )" |
77 |
|
78 |
# Shiny split sources with so many packages... |
79 |
-MODULES="artwork base calc components extensions extras filters help |
80 |
+# Bootstrap MUST be first! |
81 |
+MODULES="bootstrap artwork base calc components extensions extras filters help |
82 |
impress libs-core libs-extern libs-extern-sys libs-gui postprocess sdk testing |
83 |
ure writer translations" |
84 |
-for i in ${DEV_URI}; do |
85 |
- # split out as bootstrap is required to be done first |
86 |
- SRC_URI+=" ${i}/${PN}-bootstrap-${PV}.tar.bz2" |
87 |
- for mod in ${MODULES}; do |
88 |
- SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.bz2" |
89 |
+# Only release has the tarballs |
90 |
+if [[ ${PV} != *9999* ]]; then |
91 |
+ for i in ${DEV_URI}; do |
92 |
+ for mod in ${MODULES}; do |
93 |
+ SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.bz2" |
94 |
+ done |
95 |
+ unset mod |
96 |
done |
97 |
- unset mod |
98 |
-done |
99 |
-unset i |
100 |
+ unset i |
101 |
+fi |
102 |
unset DEV_URI |
103 |
|
104 |
# addons |
105 |
@@ -112,7 +116,7 @@ |
106 |
test +vba webdav" |
107 |
LICENSE="LGPL-3" |
108 |
SLOT="0" |
109 |
-KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
110 |
+[[ ${PV} == *9999* ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
111 |
|
112 |
# translations |
113 |
LANGUAGES="af ar as ast be bg bn bo br brx bs ca ca_XV cs cy da de dgo dz el |
114 |
@@ -295,25 +299,36 @@ |
115 |
} |
116 |
|
117 |
src_unpack() { |
118 |
- local mod dest tmplfile tmplname |
119 |
+ local mod dest tmplfile tmplname mypv |
120 |
|
121 |
if use branding; then |
122 |
unpack "${BRANDING}" |
123 |
fi |
124 |
|
125 |
- #first the bootstrap files |
126 |
- unpack "${PN}-bootstrap-${PV}.tar.bz2" |
127 |
- |
128 |
- # and then all the separate modules |
129 |
- for mod in ${MODULES}; do |
130 |
- unpack "${PN}-${mod}-${PV}.tar.bz2" |
131 |
- mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
132 |
- # punt the empty dirs; it is annoying during debuging :) |
133 |
- rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
134 |
- done |
135 |
- |
136 |
- # don't forget the wrapper... |
137 |
- cp "${FILESDIR}"/wrapper.in "${T}" |
138 |
+ if [[ ${PV} != *9999* ]]; then |
139 |
+ for mod in ${MODULES}; do |
140 |
+ unpack "${PN}-${mod}-${PV}.tar.bz2" |
141 |
+ if [[ ${mod} != bootstrap ]]; then |
142 |
+ mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
143 |
+ rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
144 |
+ fi |
145 |
+ done |
146 |
+ else |
147 |
+ for mod in ${MODULES}; do |
148 |
+ mypv=${PV/.9999} |
149 |
+ [[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}" |
150 |
+ EGIT_PROJECT="${PN}/${mod}" |
151 |
+ EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}" |
152 |
+ EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}" |
153 |
+ EGIT_NOUNPACK="true" |
154 |
+ git-2_src_unpack |
155 |
+ if [[ ${mod} != bootstrap ]]; then |
156 |
+ mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
157 |
+ rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
158 |
+ fi |
159 |
+ done |
160 |
+ unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH |
161 |
+ fi |
162 |
|
163 |
# copy extension templates; o what fun ... |
164 |
if use templates; then |
165 |
|
166 |
|
167 |
|
168 |
1.1 app-office/libreoffice/libreoffice-3.4.9999.ebuild |
169 |
|
170 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.9999.ebuild?rev=1.1&view=markup |
171 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/libreoffice/libreoffice-3.4.9999.ebuild?rev=1.1&content-type=text/plain |
172 |
|
173 |
Index: libreoffice-3.4.9999.ebuild |
174 |
=================================================================== |
175 |
# Copyright 1999-2011 Gentoo Foundation |
176 |
# Distributed under the terms of the GNU General Public License v2 |
177 |
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.9999.ebuild,v 1.1 2011/07/30 15:16:28 scarabeus Exp $ |
178 |
|
179 |
EAPI=3 |
180 |
|
181 |
KDE_REQUIRED="optional" |
182 |
CMAKE_REQUIRED="never" |
183 |
|
184 |
PYTHON_DEPEND="2" |
185 |
PYTHON_USE_WITH="threads,xml" |
186 |
|
187 |
# experimental ; release ; old |
188 |
# Usually the tarballs are moved a lot so this should make |
189 |
# everyone happy. |
190 |
DEV_URI=" |
191 |
http://dev-builds.libreoffice.org/pre-releases/src |
192 |
http://download.documentfoundation.org/libreoffice/src |
193 |
http://download.documentfoundation.org/libreoffice/old/src |
194 |
" |
195 |
EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice" |
196 |
ADDONS_URI="http://dev-www.libreoffice.org/src/" |
197 |
|
198 |
BRANDING="${PN}-branding-gentoo-0.2.tar.xz" |
199 |
|
200 |
[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2" |
201 |
inherit base autotools check-reqs eutils java-pkg-opt-2 kde4-base pax-utils prefix python multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS} |
202 |
unset SCM_ECLASS |
203 |
|
204 |
DESCRIPTION="LibreOffice, a full office productivity suite." |
205 |
HOMEPAGE="http://www.libreoffice.org" |
206 |
SRC_URI="branding? ( http://dev.gentooexperimental.org/~scarabeus/${BRANDING} )" |
207 |
|
208 |
# Shiny split sources with so many packages... |
209 |
# Bootstrap MUST be first! |
210 |
MODULES="bootstrap artwork base calc components extensions extras filters help |
211 |
impress libs-core libs-extern libs-extern-sys libs-gui postprocess sdk testing |
212 |
ure writer translations" |
213 |
# Only release has the tarballs |
214 |
if [[ ${PV} != *9999* ]]; then |
215 |
for i in ${DEV_URI}; do |
216 |
for mod in ${MODULES}; do |
217 |
SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.bz2" |
218 |
done |
219 |
unset mod |
220 |
done |
221 |
unset i |
222 |
fi |
223 |
unset DEV_URI |
224 |
|
225 |
# addons |
226 |
# FIXME: actually review which one of these are used |
227 |
ADDONS_SRC+=" ${ADDONS_URI}/128cfc86ed5953e57fe0f5ae98b62c2e-libtextcat-2.2.tar.gz" |
228 |
ADDONS_SRC+=" ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip" |
229 |
ADDONS_SRC+=" ${ADDONS_URI}/1756c4fa6c616ae15973c104cd8cb256-Adobe-Core35_AFMs-314.tar.gz" |
230 |
ADDONS_SRC+=" ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" |
231 |
ADDONS_SRC+=" ${ADDONS_URI}/24be19595acad0a2cae931af77a0148a-LICENSE_source-9.0.0.7-bj.html" |
232 |
ADDONS_SRC+=" ${ADDONS_URI}/2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz" |
233 |
ADDONS_SRC+=" ${ADDONS_URI}/ca4870d899fd7e943ffc310a5421ad4d-liberation-fonts-ttf-1.06.0.20100721.tar.gz" |
234 |
ADDONS_SRC+=" ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip" |
235 |
ADDONS_SRC+=" ${ADDONS_URI}/35efabc239af896dfb79be7ebdd6e6b9-gentiumbasic-fonts-1.10.zip" |
236 |
ADDONS_SRC+=" ${ADDONS_URI}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip" |
237 |
ADDONS_SRC+=" ${ADDONS_URI}/48470d662650c3c074e1c3fabbc67bbd-README_source-9.0.0.7-bj.txt" |
238 |
ADDONS_SRC+=" ${ADDONS_URI}/4a660ce8466c9df01f19036435425c3a-glibc-2.1.3-stub.tar.gz" |
239 |
ADDONS_SRC+=" ${ADDONS_URI}/599dc4cc65a07ee868cf92a667a913d2-xpdf-3.02.tar.gz" |
240 |
ADDONS_SRC+=" ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip" |
241 |
ADDONS_SRC+=" ${ADDONS_URI}/8294d6c42e3553229af9934c5c0ed997-stax-api-1.0-2-sources.jar" |
242 |
ADDONS_SRC+=" ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip" |
243 |
ADDONS_SRC+=" ${ADDONS_URI}/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip" |
244 |
ADDONS_SRC+=" ${ADDONS_URI}/d4c4d91ab3a8e52a2e69d48d34ef4df4-core.zip" |
245 |
ADDONS_SRC+=" ${ADDONS_URI}/fdb27bfe2dbe2e7b57ae194d9bf36bab-SampleICC-1.3.2.tar.gz" |
246 |
ADDONS_SRC+=" ${ADDONS_URI}/37282537d0ed1a087b1c8f050dc812d9-dejavu-fonts-ttf-2.32.zip" |
247 |
ADDONS_SRC+=" ${ADDONS_URI}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip" |
248 |
ADDONS_SRC+=" ${ADDONS_URI}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip" |
249 |
ADDONS_SRC+=" ${ADDONS_URI}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip" |
250 |
ADDONS_SRC+=" ${ADDONS_URI}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip" |
251 |
ADDONS_SRC+=" ${ADDONS_URI}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip" |
252 |
ADDONS_SRC+=" ${ADDONS_URI}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip" |
253 |
ADDONS_SRC+=" ${ADDONS_URI}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip" |
254 |
ADDONS_SRC+=" ${ADDONS_URI}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip" |
255 |
ADDONS_SRC+=" ${ADDONS_URI}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip" |
256 |
ADDONS_SRC+=" ${ADDONS_URI}/451ccf439a36a568653b024534669971-ConvertTextToNumber-1.3.2.oxt" |
257 |
ADDONS_SRC+=" ${ADDONS_URI}/47e1edaa44269bc537ae8cabebb0f638-JLanguageTool-1.0.0.tar.bz2" |
258 |
ADDONS_SRC+=" ${ADDONS_URI}/90401bca927835b6fbae4a707ed187c8-nlpsolver-0.9.tar.bz2" |
259 |
ADDONS_SRC+=" ${ADDONS_URI}/0f63ee487fda8f21fafa767b3c447ac9-ixion-0.2.0.tar.gz" |
260 |
ADDONS_SRC+=" ${ADDONS_URI}/71474203939fafbe271e1263e61d083e-nss-3.12.8-with-nspr-4.8.6.tar.gz" |
261 |
ADDONS_SRC+=" http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll" |
262 |
ADDONS_SRC+=" http://download.go-oo.org/extern/b4cae0700aa1c2aef7eb7f345365e6f1-translate-toolkit-1.8.1.tar.bz2" |
263 |
ADDONS_SRC+=" http://www.numbertext.org/linux/881af2b7dca9b8259abbca00bbbc004d-LinLibertineG-20110101.zip" |
264 |
SRC_URI+=" ${ADDONS_SRC}" |
265 |
|
266 |
# intersection of available linguas and app-dicts/myspell-* dictionaries |
267 |
SPELL_DIRS="af bg ca cs cy da de el en eo es et fr ga gl he hr hu it ku lt mk nb |
268 |
nl nn pl pt ru sk sl sv tn zu" |
269 |
for X in ${SPELL_DIRS} ; do |
270 |
SPELL_DIRS_DEPEND+=" linguas_${X}? ( app-dicts/myspell-${X} )" |
271 |
done |
272 |
unset X |
273 |
|
274 |
TDEPEND="${EXT_URI}/472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt" |
275 |
TDEPEND+=" linguas_de? ( ${EXT_URI}/53ca5e56ccd4cab3693ad32c6bd13343-Sun-ODF-Template-Pack-de_1.0.0.oxt )" |
276 |
TDEPEND+=" linguas_en_GB? ( ${EXT_URI}/472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt )" |
277 |
TDEPEND+=" linguas_en_ZA? ( ${EXT_URI}/472ffb92d82cf502be039203c606643d-Sun-ODF-Template-Pack-en-US_1.0.0.oxt )" |
278 |
TDEPEND+=" linguas_es? ( ${EXT_URI}/4ad003e7bbda5715f5f38fde1f707af2-Sun-ODF-Template-Pack-es_1.0.0.oxt )" |
279 |
TDEPEND+=" linguas_fr? ( ${EXT_URI}/a53080dc876edcddb26eb4c3c7537469-Sun-ODF-Template-Pack-fr_1.0.0.oxt )" |
280 |
TDEPEND+=" linguas_hu? ( ${EXT_URI}/09ec2dac030e1dcd5ef7fa1692691dc0-Sun-ODF-Template-Pack-hu_1.0.0.oxt )" |
281 |
TDEPEND+=" linguas_it? ( ${EXT_URI}/b33775feda3bcf823cad7ac361fd49a6-Sun-ODF-Template-Pack-it_1.0.0.oxt )" |
282 |
SRC_URI+=" templates? ( ${TDEPEND} )" |
283 |
|
284 |
unset ADDONS_URI |
285 |
unset EXT_URI |
286 |
unset ADDONS_SRC |
287 |
|
288 |
IUSE="binfilter +branding cups custom-cflags dbus debug eds gnome graphite |
289 |
gstreamer gtk kde ldap mysql nsplugin odk offlinehelp opengl python templates |
290 |
test +vba webdav" |
291 |
LICENSE="LGPL-3" |
292 |
SLOT="0" |
293 |
[[ ${PV} == *9999* ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
294 |
|
295 |
# translations |
296 |
LANGUAGES="af ar as ast be bg bn bo br brx bs ca ca_XV cs cy da de dgo dz el |
297 |
en en_GB en_ZA eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km |
298 |
kn kok ko ks ku lo lt lv mai mk ml mn mni mr my nb ne nl nn nr nso oc or |
299 |
pa_IN pl pt pt_BR ro ru rw sat sd sh sk sl sq sr ss st sv sw_TZ ta te tg |
300 |
th tn tr ts ug uk uz ve vi xh zh_CN zh_TW zu" |
301 |
for X in ${LANGUAGES} ; do |
302 |
IUSE+=" linguas_${X}" |
303 |
done |
304 |
unset X |
305 |
|
306 |
COMMON_DEPEND=" |
307 |
app-arch/zip |
308 |
app-arch/unzip |
309 |
>=app-text/hunspell-1.1.4-r1 |
310 |
app-text/mythes |
311 |
app-text/libwpd:0.9[tools] |
312 |
>=app-text/libwps-0.2.2 |
313 |
>=app-text/poppler-0.12.3-r3[xpdf-headers] |
314 |
dev-db/unixODBC |
315 |
dev-libs/expat |
316 |
>=dev-libs/glib-2.18 |
317 |
>=dev-libs/hyphen-2.7.1 |
318 |
>=dev-libs/icu-4.0 |
319 |
>=dev-lang/perl-5.0 |
320 |
>=dev-libs/openssl-0.9.8g |
321 |
dev-libs/redland[ssl] |
322 |
media-libs/freetype:2 |
323 |
>=media-libs/fontconfig-2.3.0 |
324 |
>=media-libs/vigra-1.4 |
325 |
media-libs/libpng |
326 |
media-libs/libwpg:0.2 |
327 |
sci-mathematics/lpsolve |
328 |
>=sys-libs/db-4.8 |
329 |
virtual/jpeg |
330 |
>=x11-libs/cairo-1.0.2 |
331 |
x11-libs/libXaw |
332 |
x11-libs/libXinerama |
333 |
x11-libs/libXrandr |
334 |
x11-libs/libXrender |
335 |
cups? ( net-print/cups ) |
336 |
dbus? ( >=dev-libs/dbus-glib-0.71 ) |
337 |
eds? ( >=gnome-extra/evolution-data-server-1.2 ) |
338 |
gnome? ( |
339 |
>=x11-libs/gtk+-2.10:2 |
340 |
gnome-base/gconf:2 |
341 |
) |
342 |
gtk? ( >=x11-libs/gtk+-2.10:2 ) |
343 |
graphite? ( media-gfx/graphite2 ) |
344 |
gstreamer? ( |
345 |
>=media-libs/gstreamer-0.10 |
346 |
>=media-libs/gst-plugins-base-0.10 |
347 |
) |
348 |
java? ( |
349 |
>=dev-java/bsh-2.0_beta4 |
350 |
dev-java/lucene:2.9 |
351 |
dev-java/lucene-analyzers:2.3 |
352 |
dev-java/saxon:0 |
353 |
) |
354 |
ldap? ( net-nds/openldap ) |
355 |
mysql? ( dev-db/mysql-connector-c++ ) |
356 |
nsplugin? ( |
357 |
net-libs/xulrunner:1.9 |
358 |
>=dev-libs/nspr-4.6.6 |
359 |
>=dev-libs/nss-3.11-r1 |
360 |
) |
361 |
opengl? ( virtual/opengl ) |
362 |
webdav? ( net-libs/neon ) |
363 |
" |
364 |
|
365 |
RDEPEND="${COMMON_DEPEND} |
366 |
!app-office/libreoffice-bin |
367 |
!app-office/openoffice-bin |
368 |
!app-office/openoffice |
369 |
java? ( >=virtual/jre-1.5 ) |
370 |
${SPELL_DIRS_DEPEND} |
371 |
" |
372 |
|
373 |
DEPEND="${COMMON_DEPEND} |
374 |
>=dev-libs/boost-1.36 |
375 |
>=dev-libs/libxml2-2.0 |
376 |
dev-libs/libxslt |
377 |
dev-perl/Archive-Zip |
378 |
dev-util/cppunit |
379 |
>=dev-util/gperf-3 |
380 |
dev-util/intltool |
381 |
dev-util/mdds |
382 |
dev-util/pkgconfig |
383 |
media-gfx/sane-backends |
384 |
>=net-misc/curl-7.12 |
385 |
>=sys-apps/findutils-4.1.20-r1 |
386 |
sys-devel/bison |
387 |
sys-apps/coreutils |
388 |
sys-devel/flex |
389 |
sys-libs/zlib |
390 |
x11-libs/libXtst |
391 |
x11-proto/randrproto |
392 |
x11-proto/xextproto |
393 |
x11-proto/xineramaproto |
394 |
x11-proto/xproto |
395 |
java? ( |
396 |
=virtual/jdk-1.6* |
397 |
>=dev-java/ant-core-1.7 |
398 |
test? ( dev-java/junit:4 ) |
399 |
) |
400 |
" |
401 |
|
402 |
PATCHES=( |
403 |
"${FILESDIR}/${PN}-3.3.1-neon_remove_SSPI_support.diff" |
404 |
"${FILESDIR}/${PN}-libdb5-fix-check.diff" |
405 |
"${FILESDIR}/${PN}-3.4.1-salfix.diff" |
406 |
"${FILESDIR}/sdext-presenter.diff" |
407 |
"${FILESDIR}/${PN}-svx.patch" |
408 |
"${FILESDIR}/${PN}-vbaobj-visibility-fix.patch" |
409 |
"${FILESDIR}/${PN}-solenv-build-crash.patch" |
410 |
"${FILESDIR}/${PN}-as-needed-gtk.patch" |
411 |
"${FILESDIR}/${PN}-translate-toolkit-parallel-solenv.patch" |
412 |
"${FILESDIR}/${PN}-gbuild-use-cxxflags.patch" |
413 |
"${FILESDIR}/${PN}-installed-files-permissions.patch" |
414 |
) |
415 |
|
416 |
# Uncoment me when updating to eapi4 |
417 |
# REQUIRED_USE=" |
418 |
# || ( gtk gnome kde ) |
419 |
# gnome? ( gtk ) |
420 |
# nsplugin? ( gtk ) |
421 |
#" |
422 |
|
423 |
S="${WORKDIR}/${PN}-bootstrap-${PV}" |
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 [[ $(gcc-major-version) -lt 4 ]]; then |
433 |
eerror "Compilation with gcc older than 4.0 is not supported" |
434 |
die "Too old gcc found." |
435 |
fi |
436 |
|
437 |
if use custom-cflags; then |
438 |
ewarn "You are using custom CFLAGS, which is NOT supported and can cause" |
439 |
ewarn "all sorts of build and runtime errors." |
440 |
ewarn |
441 |
ewarn "Before reporting a bug, please make sure you rebuild and try with" |
442 |
ewarn "basic CFLAGS, otherwise the bug will not be accepted." |
443 |
ewarn |
444 |
fi |
445 |
|
446 |
if ! use java; then |
447 |
ewarn "You are building with java-support disabled, this results in some" |
448 |
ewarn "of the LibreOffice functionality being disabled." |
449 |
ewarn "If something you need does not work for you, rebuild with" |
450 |
ewarn "java in your USE-flags." |
451 |
ewarn |
452 |
ewarn "Some java libraries will be provided internally by libreoffice" |
453 |
ewarn "during the build. You should really reconsider enabling java" |
454 |
ewarn "use flag." |
455 |
ewarn |
456 |
fi |
457 |
|
458 |
if ! use gtk; then |
459 |
ewarn "If you want the LibreOffice systray quickstarter to work" |
460 |
ewarn "activate the 'gtk' use flag." |
461 |
ewarn |
462 |
fi |
463 |
|
464 |
ewarn "Libreoffice compilation often fails on parallel issues" |
465 |
ewarn "but the slowdown by enforcing MAKEOPTS=-j1 is too huge." |
466 |
ewarn "If you encounter errors try yourself to disable parallel build." |
467 |
|
468 |
# Check if we have enough RAM and free diskspace to build this beast |
469 |
CHECKREQS_MEMORY="1024" |
470 |
use debug && CHECKREQS_DISK_BUILD="15360" || CHECKREQS_DISK_BUILD="9216" |
471 |
check_reqs |
472 |
} |
473 |
|
474 |
src_unpack() { |
475 |
local mod dest tmplfile tmplname mypv |
476 |
|
477 |
if use branding; then |
478 |
unpack "${BRANDING}" |
479 |
fi |
480 |
|
481 |
if [[ ${PV} != *9999* ]]; then |
482 |
for mod in ${MODULES}; do |
483 |
unpack "${PN}-${mod}-${PV}.tar.bz2" |
484 |
if [[ ${mod} != bootstrap ]]; then |
485 |
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
486 |
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
487 |
fi |
488 |
done |
489 |
else |
490 |
for mod in ${MODULES}; do |
491 |
mypv=${PV/.9999} |
492 |
[[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}" |
493 |
EGIT_PROJECT="${PN}/${mod}" |
494 |
EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}" |
495 |
EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}" |
496 |
EGIT_NOUNPACK="true" |
497 |
git-2_src_unpack |
498 |
if [[ ${mod} != bootstrap ]]; then |
499 |
mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" |
500 |
rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" |
501 |
fi |
502 |
done |
503 |
unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH |
504 |
fi |
505 |
|
506 |
# copy extension templates; o what fun ... |
507 |
if use templates; then |
508 |
dest="${S}/extras/source/extensions" |
509 |
mkdir -p "${dest}" |
510 |
|
511 |
for template in ${TDEPEND}; do |
512 |
if [[ ${template} == *.oxt ]]; then |
513 |
tmplfile="${DISTDIR}/$(basename ${template})" |
514 |
tmplname="$(echo "${template}" | \ |
515 |
cut -f 2- -s -d - | cut -f 1 -d _)" |
516 |
echo ">>> Unpacking ${tmplfile/\*/} to ${dest}" |
517 |
if [[ -f ${tmplfile} && ! -f "${dest}/${tmplname}.oxt" ]]; then |
518 |
cp -v "${tmplfile}" "${dest}/${tmplname}.oxt" || die |
519 |
fi |
520 |
fi |
521 |
done |
522 |
fi |
523 |
} |
524 |
|
525 |
src_prepare() { |
526 |
eprefixify "${T}"/wrapper.in |
527 |
|
528 |
strip-linguas ${LANGUAGES} |
529 |
LINGUAS_OOO=$(echo ${LINGUAS} | sed -e 's/\ben\b/en_US/;s/_/-/g') |
530 |
|
531 |
# Now for our optimization flags ... |
532 |
export ARCH_FLAGS="${CXXFLAGS}" |
533 |
use debug || export LINKFLAGSOPTIMIZE="${LDFLAGS}" |
534 |
|
535 |
# compiler flags |
536 |
use custom-cflags || strip-flags |
537 |
use debug || filter-flags "-g*" |
538 |
# silent miscompiles; LO/OOo adds -O2/1/0 where appropriate |
539 |
filter-flags "-O*" |
540 |
|
541 |
base_src_prepare |
542 |
eautoreconf |
543 |
} |
544 |
|
545 |
src_configure() { |
546 |
local java_opts |
547 |
local internal_libs |
548 |
local extensions |
549 |
local themes="crystal" |
550 |
local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}") |
551 |
|
552 |
# recheck that there is some value in jobs |
553 |
[[ -z ${jbs} ]] && jbs="1" |
554 |
|
555 |
# expand themes we are going to build based on DE useflags |
556 |
use gnome && themes+=" tango" |
557 |
use kde && themes+=" oxygen" |
558 |
|
559 |
# list the extensions we are going to build by default |
560 |
extensions=" |
561 |
--enable-ext-pdfimport |
562 |
--enable-ext-presenter-console |
563 |
--enable-ext-presenter-minimizer |
564 |
" |
565 |
|
566 |
# hsqldb: requires just 1.8.0 not 1.8.1 which we don't ship at all |
567 |
# dmake: not worth of splitting out |
568 |
internal_libs+=" |
569 |
--without-system-hsqldb |
570 |
" |
571 |
|
572 |
# When building without java some things needs to be done |
573 |
# as internal libraries. |
574 |
if ! use java; then |
575 |
internal_libs+=" |
576 |
--without-system-beanshell |
577 |
--without-system-lucene |
578 |
--without-system-saxon |
579 |
--without-junit |
580 |
" |
581 |
else |
582 |
java_opts=" |
583 |
--with-ant-home="${ANT_HOME}" |
584 |
--with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
585 |
--with-java-target-version=$(java-pkg_get-target) |
586 |
--with-jvm-path="${EPREFIX}/usr/$(get_libdir)/" |
587 |
--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) |
588 |
--with-lucene-core-jar=$(java-pkg_getjar lucene-2.9 lucene-core.jar) |
589 |
--with-lucene-analyzers-jar=$(java-pkg_getjar lucene-analyzers-2.3 lucene-analyzers.jar) |
590 |
--with-saxon-jar=$(java-pkg_getjar saxon saxon8.jar) |
591 |
" |
592 |
if use test; then |
593 |
java_opts+=" --with-junit=$(java-pkg_getjar junit-4 junit.jar)" |
594 |
else |
595 |
java_opts+=" --without-junit" |
596 |
fi |
597 |
fi |
598 |
|
599 |
if use branding; then |
600 |
extensions+=" |
601 |
--with-about-bitmap="${WORKDIR}/branding-about.png" |
602 |
--with-intro-bitmap="${WORKDIR}/branding-intro.png" |
603 |
" |
604 |
fi |
605 |
|
606 |
# system headers/libs/...: enforce using system packages |
607 |
# only expections are mozilla and odbc/sane/xrender-header(s). |
608 |
# for jars the exception is db.jar controlled by --with-system-db |
609 |
# --enable-unix-qstart-libpng: use libpng splashscreen that is faster |
610 |
# --disable-broffice: do not use brazillian brand just be uniform |
611 |
# --enable-cairo: ensure that cairo is always required |
612 |
# --enable-*-link: link to the library rather than just dlopen on runtime |
613 |
# --disable-fetch-external: prevent dowloading during compile phase |
614 |
# --disable-gnome-vfs: old gnome virtual fs support |
615 |
# --disable-kdeab: kde3 adressbook |
616 |
# --disable-kde: kde3 support |
617 |
# --disable-pch: precompiled headers cause build crashes |
618 |
# --disable-rpath: relative runtime path is not desired |
619 |
# --disable-static-gtk: ensure that gtk is linked dynamically |
620 |
# --disable-zenity: disable build icon |
621 |
# --with-extension-integration: enable any extension integration support |
622 |
# --with-{max-jobs,num-cpus}: ensuring parallel building |
623 |
# --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
624 |
# --without-stlport: disable deprecated extensions framework |
625 |
econf \ |
626 |
--with-system-headers \ |
627 |
--with-system-libs \ |
628 |
--with-system-jars \ |
629 |
--with-system-db \ |
630 |
--with-system-dicts \ |
631 |
--enable-cairo \ |
632 |
--enable-fontconfig \ |
633 |
--enable-largefile \ |
634 |
--enable-randr \ |
635 |
--enable-randr-link \ |
636 |
--enable-unix-qstart-libpng \ |
637 |
--enable-Xaw \ |
638 |
--enable-xrender-link \ |
639 |
--disable-broffice \ |
640 |
--disable-crashdump \ |
641 |
--disable-dependency-tracking \ |
642 |
--disable-epm \ |
643 |
--disable-fetch-external \ |
644 |
--disable-gnome-vfs \ |
645 |
--disable-kdeab \ |
646 |
--disable-kde \ |
647 |
--disable-online-update \ |
648 |
--disable-pch \ |
649 |
--disable-rpath \ |
650 |
--disable-static-gtk \ |
651 |
--disable-strip-solver \ |
652 |
--disable-zenity \ |
653 |
--with-alloc=system \ |
654 |
--with-build-version="Gentoo official package" \ |
655 |
--with-extension-integration \ |
656 |
--with-external-dict-dir="${EPREFIX}/usr/share/myspell" \ |
657 |
--with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \ |
658 |
--with-external-thes-dir="${EPREFIX}/usr/share/myspell" \ |
659 |
--with-external-tar="${DISTDIR}" \ |
660 |
--with-lang="${LINGUAS_OOO}" \ |
661 |
--with-max-jobs=${jbs} \ |
662 |
--with-num-cpus=1 \ |
663 |
--with-theme="${themes}" \ |
664 |
--with-unix-wrapper=libreoffice \ |
665 |
--with-vendor="Gentoo Foundation" \ |
666 |
--with-x \ |
667 |
--without-afms \ |
668 |
--without-fonts \ |
669 |
--without-myspell-dicts \ |
670 |
--without-ppds \ |
671 |
--without-stlport \ |
672 |
$(use_enable binfilter) \ |
673 |
$(use_enable cups) \ |
674 |
$(use_enable dbus) \ |
675 |
$(use_enable debug crashdump) \ |
676 |
$(use_enable eds evolution2) \ |
677 |
$(use_enable gnome gconf) \ |
678 |
$(use_enable gnome gio) \ |
679 |
$(use_enable gnome lockdown) \ |
680 |
$(use_enable graphite) \ |
681 |
$(use_enable gstreamer) \ |
682 |
$(use_enable gtk) \ |
683 |
$(use_enable gtk systray) \ |
684 |
$(use_enable java ext-scripting-beanshell) \ |
685 |
$(use_enable kde kde4) \ |
686 |
$(use_enable ldap) \ |
687 |
$(use_enable mysql ext-mysql-connector) \ |
688 |
$(use_enable nsplugin mozilla) \ |
689 |
$(use_enable odk) \ |
690 |
$(use_enable opengl) \ |
691 |
$(use_enable python) \ |
692 |
$(use_enable python ext-scripting-python) \ |
693 |
$(use_enable vba) \ |
694 |
$(use_enable vba activex-component) \ |
695 |
$(use_enable webdav neon) \ |
696 |
$(use_with java) \ |
697 |
$(use_with ldap openldap) \ |
698 |
$(use_with mysql system-mysql-cppconn) \ |
699 |
$(use_with nsplugin system-mozilla libxul) \ |
700 |
$(use_with offlinehelp helppack-integration) \ |
701 |
$(use_with templates sun-templates) \ |
702 |
${internal_libs} \ |
703 |
${java_opts} \ |
704 |
${extensions} |
705 |
} |
706 |
|
707 |
src_compile() { |
708 |
# this is not a proper make script and the jobs are passed during configure |
709 |
make || die |
710 |
} |
711 |
|
712 |
src_install() { |
713 |
# This is not Makefile so no buildserver |
714 |
make DESTDIR="${D}" distro-pack-install || die |
715 |
|
716 |
# symlink the plugin to system location |
717 |
if use nsplugin; then |
718 |
inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so |
719 |
fi |
720 |
|
721 |
if use branding; then |
722 |
insinto /usr/$(get_libdir)/${PN}/program |
723 |
newins "${WORKDIR}/branding-sofficerc" sofficerc || die |
724 |
fi |
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 |
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin |
736 |
} |
737 |
|
738 |
pkg_postrm() { |
739 |
kde4-base_pkg_postrm |
740 |
} |