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