1 |
suka 09/01/18 19:12:40 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: openoffice-3.0.1_rc2.ebuild |
5 |
Log: |
6 |
Add release candidate for OpenOffice.org 3.0.1 |
7 |
(Portage version: 2.2_rc22/cvs/Linux 2.6.28-gentoo i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.443 app-office/openoffice/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.443&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.443&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?r1=1.442&r2=1.443 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v |
19 |
retrieving revision 1.442 |
20 |
retrieving revision 1.443 |
21 |
diff -u -r1.442 -r1.443 |
22 |
--- ChangeLog 12 Jan 2009 00:07:58 -0000 1.442 |
23 |
+++ ChangeLog 18 Jan 2009 19:12:40 -0000 1.443 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for app-office/openoffice |
26 |
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.442 2009/01/12 00:07:58 suka Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.443 2009/01/18 19:12:40 suka Exp $ |
29 |
+ |
30 |
+*openoffice-3.0.1_rc2 (18 Jan 2009) |
31 |
+ |
32 |
+ 18 Jan 2009; Andreas Proschofsky <suka@g.o> |
33 |
+ +files/gentoo-3.0.1_rc2.diff, +openoffice-3.0.1_rc2.ebuild: |
34 |
+ Add release candidate for OpenOffice.org 3.0.1 |
35 |
|
36 |
12 Jan 2009; Andreas Proschofsky <suka@g.o> |
37 |
files/gentoo-3.0.0.diff, openoffice-3.0.0.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 app-office/openoffice/openoffice-3.0.1_rc2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-3.0.1_rc2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-3.0.1_rc2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: openoffice-3.0.1_rc2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2009 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-3.0.1_rc2.ebuild,v 1.1 2009/01/18 19:12:40 suka Exp $ |
51 |
|
52 |
WANT_AUTOCONF="2.5" |
53 |
WANT_AUTOMAKE="1.9" |
54 |
EAPI="1" |
55 |
|
56 |
inherit autotools check-reqs db-use eutils fdo-mime flag-o-matic java-pkg-opt-2 kde-functions mono multilib toolchain-funcs |
57 |
|
58 |
IUSE="binfilter cups dbus debug eds gnome gstreamer gtk kde ldap mono nsplugin odk opengl pam templates" |
59 |
|
60 |
MY_PV="3.0.1.0" |
61 |
PATCHLEVEL="OOO300" |
62 |
SRC="OOo_${PV}_src" |
63 |
MST="ooo300-m15" |
64 |
DEVPATH="http://download.go-oo.org/${PATCHLEVEL}/${MST}" |
65 |
S="${WORKDIR}/ooo" |
66 |
S_OLD="${WORKDIR}/ooo-build-${MY_PV}" |
67 |
CONFFILE="${S}/distro-configs/Gentoo.conf.in" |
68 |
DESCRIPTION="OpenOffice.org, a full office productivity suite." |
69 |
|
70 |
SRC_URI="${DEVPATH}-artwork.tar.bz2 |
71 |
${DEVPATH}-base.tar.bz2 |
72 |
${DEVPATH}-bootstrap.tar.bz2 |
73 |
${DEVPATH}-calc.tar.bz2 |
74 |
${DEVPATH}-components.tar.bz2 |
75 |
${DEVPATH}-extensions.tar.bz2 |
76 |
${DEVPATH}-filters.tar.bz2 |
77 |
${DEVPATH}-impress.tar.bz2 |
78 |
${DEVPATH}-l10n.tar.bz2 |
79 |
${DEVPATH}-libs_core.tar.bz2 |
80 |
${DEVPATH}-libs_extern.tar.bz2 |
81 |
${DEVPATH}-libs_extern_sys.tar.bz2 |
82 |
${DEVPATH}-libs_gui.tar.bz2 |
83 |
${DEVPATH}-postprocess.tar.bz2 |
84 |
${DEVPATH}-sdk.tar.bz2 |
85 |
${DEVPATH}-testing.tar.bz2 |
86 |
${DEVPATH}-ure.tar.bz2 |
87 |
${DEVPATH}-writer.tar.bz2 |
88 |
templates? ( http://extensions.services.openoffice.org/files/273/0/Sun_ODF_Template_Pack_en-US.oxt |
89 |
http://extensions.services.openoffice.org/files/295/1/Sun_ODF_Template_Pack_de.oxt |
90 |
http://extensions.services.openoffice.org/files/299/0/Sun_ODF_Template_Pack_it.oxt |
91 |
http://extensions.services.openoffice.org/files/297/0/Sun_ODF_Template_Pack_fr.oxt |
92 |
http://extensions.services.openoffice.org/files/301/1/Sun_ODF_Template_Pack_es.oxt ) |
93 |
http://download.go-oo.org/${PATCHLEVEL}/ooo-build-${MY_PV}.tar.gz |
94 |
odk? ( java? ( http://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll ) ) |
95 |
http://download.go-oo.org/SRC680/extras-3.tar.bz2 |
96 |
http://download.go-oo.org/SRC680/biblio.tar.bz2 |
97 |
http://download.go-oo.org/SRC680/lp_solve_5.5.0.12_source.tar.gz |
98 |
http://download.go-oo.org/DEV300/scsolver.2008-10-30.tar.bz2 |
99 |
http://download.go-oo.org/SRC680/libwps-0.1.2.tar.gz |
100 |
http://download.go-oo.org/SRC680/libwpg-0.1.3.tar.gz" |
101 |
|
102 |
LANGS1="af ar as_IN be_BY bg bn br bs ca cs cy da de dz el en_GB en_ZA eo es et fa fi fr ga gl gu_IN he hi_IN hr hu it ja km ko ku lt lv mk ml_IN mr_IN nb ne nl nn nr ns or_IN pa_IN pl pt pt_BR ru rw sh sk sl sr ss st sv sw_TZ ta_IN te_IN tg th ti_ER tn tr ts uk ur_IN ve vi xh zh_CN zh_TW zu" |
103 |
LANGS="${LANGS1} en en_US" |
104 |
|
105 |
for X in ${LANGS} ; do |
106 |
IUSE="${IUSE} linguas_${X}" |
107 |
done |
108 |
|
109 |
HOMEPAGE="http://go-oo.org" |
110 |
|
111 |
LICENSE="LGPL-2" |
112 |
SLOT="0" |
113 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
114 |
|
115 |
COMMON_DEPEND="!app-office/openoffice-bin |
116 |
x11-libs/libXaw |
117 |
x11-libs/libXinerama |
118 |
>=dev-lang/perl-5.0 |
119 |
dbus? ( >=dev-libs/dbus-glib-0.71 ) |
120 |
gnome? ( >=x11-libs/gtk+-2.10 |
121 |
>=gnome-base/gnome-vfs-2.6 |
122 |
>=gnome-base/gconf-2.0 |
123 |
>=x11-libs/cairo-1.0.2 ) |
124 |
gtk? ( >=x11-libs/gtk+-2.10 |
125 |
>=x11-libs/cairo-1.0.2 ) |
126 |
eds? ( >=gnome-extra/evolution-data-server-1.2 ) |
127 |
gstreamer? ( >=media-libs/gstreamer-0.10 |
128 |
>=media-libs/gst-plugins-base-0.10 ) |
129 |
kde? ( kde-base/kdelibs:3.5 ) |
130 |
java? ( >=dev-java/bsh-2.0_beta4 |
131 |
>=dev-db/hsqldb-1.8.0.9 ) |
132 |
mono? ( >=dev-lang/mono-1.2.3.1 ) |
133 |
nsplugin? ( || ( net-libs/xulrunner:1.8 net-libs/xulrunner:1.9 =www-client/seamonkey-1* ) |
134 |
>=dev-libs/nspr-4.6.6 |
135 |
>=dev-libs/nss-3.11-r1 ) |
136 |
opengl? ( virtual/opengl |
137 |
virtual/glu ) |
138 |
>=net-misc/neon-0.24.7 |
139 |
>=dev-libs/openssl-0.9.8g |
140 |
>=media-libs/freetype-2.1.10-r2 |
141 |
>=media-libs/fontconfig-2.3.0 |
142 |
cups? ( net-print/cups ) |
143 |
media-libs/jpeg |
144 |
media-libs/libpng |
145 |
app-arch/zip |
146 |
app-arch/unzip |
147 |
>=app-text/hunspell-1.1.4-r1 |
148 |
dev-libs/expat |
149 |
>=dev-libs/icu-3.8 |
150 |
>=sys-libs/db-4.3 |
151 |
>=app-text/libwpd-0.8.8 |
152 |
>=media-libs/vigra-1.4 |
153 |
>=app-text/poppler-0.8.0" |
154 |
|
155 |
RDEPEND="java? ( >=virtual/jre-1.5 ) |
156 |
${COMMON_DEPEND}" |
157 |
|
158 |
DEPEND="${COMMON_DEPEND} |
159 |
x11-libs/libXrender |
160 |
x11-libs/libXtst |
161 |
x11-proto/printproto |
162 |
x11-proto/xextproto |
163 |
x11-proto/xproto |
164 |
x11-proto/xineramaproto |
165 |
>=sys-apps/findutils-4.1.20-r1 |
166 |
dev-perl/Archive-Zip |
167 |
virtual/perl-Compress-Zlib |
168 |
>=virtual/perl-Compress-Raw-Zlib-2.002 |
169 |
virtual/perl-IO-Compress-Base |
170 |
dev-util/pkgconfig |
171 |
dev-util/intltool |
172 |
>=dev-libs/boost-1.33.1 |
173 |
sys-devel/flex |
174 |
sys-devel/bison |
175 |
dev-libs/libxslt |
176 |
>=dev-libs/libxml2-2.0 |
177 |
>=dev-util/gperf-3 |
178 |
>=net-misc/curl-7.12 |
179 |
sys-libs/zlib |
180 |
sys-apps/coreutils |
181 |
pam? ( sys-libs/pam ) |
182 |
>=dev-lang/python-2.3.4 |
183 |
java? ( || ( =virtual/jdk-1.6* =virtual/jdk-1.5* ) |
184 |
>=dev-java/ant-core-1.7 ) |
185 |
ldap? ( net-nds/openldap )" |
186 |
|
187 |
PROVIDE="virtual/ooo" |
188 |
|
189 |
pkg_setup() { |
190 |
|
191 |
ewarn |
192 |
ewarn " It is important to note that OpenOffice.org is a very fragile " |
193 |
ewarn " build when it comes to CFLAGS. A number of flags have already " |
194 |
ewarn " been filtered out. If you experience difficulty merging this " |
195 |
ewarn " package and use agressive CFLAGS, lower the CFLAGS and try to " |
196 |
ewarn " merge again. Also note that building OOo takes a lot of time and " |
197 |
ewarn " hardware ressources: 4-6 GB free diskspace and 256 MB RAM are " |
198 |
ewarn " the minimum requirements. If you have less, use openoffice-bin " |
199 |
ewarn " instead. " |
200 |
ewarn |
201 |
ewarn " Also if you experience a build break, please make sure to retry " |
202 |
ewarn " with MAKEOPTS="-j1" before filing a bug. " |
203 |
ewarn |
204 |
|
205 |
# Check if we have enough RAM and free diskspace to build this beast |
206 |
CHECKREQS_MEMORY="512" |
207 |
use debug && CHECKREQS_DISK_BUILD="8192" || CHECKREQS_DISK_BUILD="5120" |
208 |
check_reqs |
209 |
|
210 |
strip-linguas ${LANGS} |
211 |
|
212 |
if [[ -z "${LINGUAS}" ]]; then |
213 |
export LINGUAS_OOO="en-US" |
214 |
ewarn |
215 |
ewarn " To get a localized build, set the according LINGUAS variable(s). " |
216 |
ewarn |
217 |
else |
218 |
export LINGUAS_OOO=`echo ${LINGUAS} | \ |
219 |
sed -e 's/\ben\b/en_US/g' -e 's/_/-/g'` |
220 |
fi |
221 |
|
222 |
if use !java; then |
223 |
ewarn " You are building with java-support disabled, this results in some " |
224 |
ewarn " of the OpenOffice.org functionality being disabled. " |
225 |
ewarn " If something you need does not work for you, rebuild with " |
226 |
ewarn " java in your USE-flags. " |
227 |
ewarn |
228 |
fi |
229 |
|
230 |
if use !gtk && use !gnome; then |
231 |
ewarn " If you want the OpenOffice.org systray quickstarter to work " |
232 |
ewarn " activate either the 'gtk' or 'gnome' use flags. " |
233 |
ewarn |
234 |
fi |
235 |
|
236 |
if is-flagq -ffast-math ; then |
237 |
eerror " You are using -ffast-math, which is known to cause problems. " |
238 |
eerror " Please remove it from your CFLAGS, using this globally causes " |
239 |
eerror " all sorts of problems. " |
240 |
eerror " After that you will also have to - at least - rebuild python otherwise " |
241 |
eerror " the openoffice build will break. " |
242 |
die |
243 |
fi |
244 |
|
245 |
if use pam; then |
246 |
if ! built_with_use sys-apps/shadow pam; then |
247 |
eerror " shadow needs to be built with pam-support. " |
248 |
eerror " rebuild it accordingly or remove the pam use-flag " |
249 |
die |
250 |
fi |
251 |
fi |
252 |
|
253 |
if use nsplugin; then |
254 |
if pkg-config --exists libxul; then |
255 |
BRWS="libxul" |
256 |
elif pkg-config --exists xulrunner-xpcom; then |
257 |
BRWS="xulrunner" |
258 |
elif pkg-config --exists seamonkey-xpcom; then |
259 |
BRWS="seamonkey" |
260 |
else |
261 |
die "USE flag [nsplugin] set but no installed xulrunner or seamonkey found!" |
262 |
fi |
263 |
fi |
264 |
|
265 |
# Check python |
266 |
if ! built_with_use dev-lang/python threads |
267 |
then |
268 |
eerror "Python needs to be built with threads." |
269 |
die |
270 |
fi |
271 |
|
272 |
java-pkg-opt-2_pkg_setup |
273 |
|
274 |
# sys-libs/db version used |
275 |
local db_ver="$(db_findver '>=sys-libs/db-4.3')" |
276 |
|
277 |
} |
278 |
|
279 |
src_unpack() { |
280 |
|
281 |
unpack ooo-build-${MY_PV}.tar.gz |
282 |
|
283 |
# Hackish workaround for overlong path problem, see bug #130837 |
284 |
mv "${S_OLD}" "${S}" || die |
285 |
|
286 |
#Some fixes for our patchset |
287 |
cd "${S}" |
288 |
epatch "${FILESDIR}/gentoo-${PV}.diff" |
289 |
epatch "${FILESDIR}/ooo-env_log.diff" |
290 |
cp -f "${FILESDIR}/nojavanostax.diff" "${S}/patches/dev300" || die |
291 |
cp -f "${FILESDIR}/hunspell-one-dir-nocrash.diff" "${S}/patches/dev300" || die |
292 |
|
293 |
#Use flag checks |
294 |
if use java ; then |
295 |
echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE} |
296 |
echo "--with-jdk-home=$(java-config --jdk-home 2>/dev/null)" >> ${CONFFILE} |
297 |
echo "--with-java-target-version=$(java-pkg_get-target)" >> ${CONFFILE} |
298 |
echo "--with-system-beanshell" >> ${CONFFILE} |
299 |
echo "--with-system-hsqldb" >> ${CONFFILE} |
300 |
echo "--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" >> ${CONFFILE} |
301 |
echo "--with-hsqldb-jar=$(java-pkg_getjar hsqldb hsqldb.jar)" >> ${CONFFILE} |
302 |
fi |
303 |
|
304 |
if use nsplugin ; then |
305 |
echo "--enable-mozilla" >> ${CONFFILE} |
306 |
echo "--with-system-mozilla=${BRWS}" >> ${CONFFILE} |
307 |
else |
308 |
echo "--disable-mozilla" >> ${CONFFILE} |
309 |
echo "--without-system-mozilla" >> ${CONFFILE} |
310 |
fi |
311 |
|
312 |
echo "`use_enable binfilter`" >> ${CONFFILE} |
313 |
echo "`use_enable cups`" >> ${CONFFILE} |
314 |
echo "`use_enable dbus`" >> ${CONFFILE} |
315 |
echo "`use_enable eds evolution2`" >> ${CONFFILE} |
316 |
echo "`use_enable gnome gnome-vfs`" >> ${CONFFILE} |
317 |
echo "`use_enable gnome lockdown`" >> ${CONFFILE} |
318 |
echo "`use_enable gstreamer`" >> ${CONFFILE} |
319 |
echo "`use_enable gtk systray`" >> ${CONFFILE} |
320 |
echo "`use_enable ldap`" >> ${CONFFILE} |
321 |
echo "`use_enable opengl`" >> ${CONFFILE} |
322 |
echo "`use_with ldap openldap`" >> ${CONFFILE} |
323 |
echo "`use_enable debug crashdump`" >> ${CONFFILE} |
324 |
echo "`use_enable debug strip-solver`" >> ${CONFFILE} |
325 |
|
326 |
# Extension stuff |
327 |
echo "--with-extension-integration" >> ${CONFFILE} |
328 |
echo "--enable-minimizer" >> ${CONFFILE} |
329 |
echo "--enable-pdfimport" >> ${CONFFILE} |
330 |
echo "--enable-presenter-console" >> ${CONFFILE} |
331 |
|
332 |
# Use splash screen without Sun logo |
333 |
echo "--with-intro-bitmaps=\\\"${S}/build/${MST}/ooo_custom_images/nologo/introabout/intro.bmp\\\"" >> ${CONFFILE} |
334 |
|
335 |
eautoreconf |
336 |
|
337 |
} |
338 |
|
339 |
src_compile() { |
340 |
|
341 |
# Use multiprocessing by default now, it gets tested by upstream |
342 |
export JOBS=`echo "${MAKEOPTS}" | sed -e "s/.*-j\([0-9]\+\).*/\1/"` |
343 |
|
344 |
# Compile problems with these ... |
345 |
filter-flags "-funroll-loops" |
346 |
filter-flags "-fprefetch-loop-arrays" |
347 |
filter-flags "-fno-default-inline" |
348 |
filter-flags "-fstack-protector" |
349 |
filter-flags "-fstack-protector-all" |
350 |
filter-flags "-ftracer" |
351 |
filter-flags "-fforce-addr" |
352 |
|
353 |
filter-flags "-O[s2-9]" |
354 |
|
355 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
356 |
replace-flags "-fomit-frame-pointer" "-momit-leaf-frame-pointer" |
357 |
fi |
358 |
|
359 |
# Build with NVidia cards breaks otherwise |
360 |
use opengl && append-flags "-DGL_GLEXT_PROTOTYPES" |
361 |
|
362 |
# Now for our optimization flags ... |
363 |
export ARCH_FLAGS="${CXXFLAGS}" |
364 |
use debug || export LINKFLAGSOPTIMIZE="${LDFLAGS}" |
365 |
|
366 |
# Make sure gnome-users get gtk-support |
367 |
local GTKFLAG="--disable-gtk --disable-cairo --without-system-cairo" |
368 |
( use gtk || use gnome ) && GTKFLAG="--enable-gtk --enable-cairo --with-system-cairo" |
369 |
|
370 |
cd "${S}" |
371 |
./configure \ |
372 |
--with-distro="Gentoo" \ |
373 |
--with-arch="${ARCH}" \ |
374 |
--with-srcdir="${DISTDIR}" \ |
375 |
--with-lang="${LINGUAS_OOO}" \ |
376 |
--with-num-cpus="${JOBS}" \ |
377 |
--without-binsuffix \ |
378 |
--with-installed-ooo-dirname="openoffice" \ |
379 |
--with-tag="${MST}" \ |
380 |
${GTKFLAG} \ |
381 |
`use_enable mono` \ |
382 |
`use_enable kde` \ |
383 |
`use_enable !debug strip` \ |
384 |
`use_enable odk` \ |
385 |
`use_enable pam` \ |
386 |
`use_with java` \ |
387 |
`use_with templates sun-templates` \ |
388 |
--disable-access \ |
389 |
--disable-post-install-scripts \ |
390 |
--enable-extensions \ |
391 |
--with-system-libwpd \ |
392 |
--mandir=/usr/share/man \ |
393 |
--libdir=/usr/$(get_libdir) \ |
394 |
|| die "Configuration failed!" |
395 |
|
396 |
einfo "Building OpenOffice.org..." |
397 |
use kde && set-kdedir 3 |
398 |
make || die "Build failed" |
399 |
|
400 |
} |
401 |
|
402 |
src_install() { |
403 |
|
404 |
export PYTHONPATH="" |
405 |
|
406 |
einfo "Preparing Installation" |
407 |
make DESTDIR="${D}" install || die "Installation failed!" |
408 |
|
409 |
# Fix the permissions for security reasons |
410 |
# chown -RP root:0 "${D}" |
411 |
|
412 |
# record java libraries |
413 |
use java && java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/basis3.0/program/classes/*.jar |
414 |
|
415 |
} |
416 |
|
417 |
pkg_postinst() { |
418 |
|
419 |
fdo-mime_desktop_database_update |
420 |
fdo-mime_mime_database_update |
421 |
|
422 |
[[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/basis3.0/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/basis3.0/program/soffice.bin |
423 |
|
424 |
# Add available & useful jars to openoffice classpath |
425 |
use java && /usr/$(get_libdir)/openoffice/basis3.0/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null |
426 |
|
427 |
elog |
428 |
elog " Spell checking is provided through our own myspell-ebuilds, " |
429 |
elog " if you want to use it, please install the correct myspell package " |
430 |
elog " according to your language needs. " |
431 |
elog |
432 |
|
433 |
elog " Some aditional functionality can be installed via Extension Manager: " |
434 |
elog " *) PDF Import " |
435 |
elog " *) Presentation Console " |
436 |
elog " *) Presentation Minimizer " |
437 |
elog |
438 |
elog " Please use the packages provided in " |
439 |
elog " /usr/$(get_libdir)/openoffice/share/extension/install/ " |
440 |
elog " instead of those from the SUN extension site. " |
441 |
elog |
442 |
|
443 |
} |