Gentoo Archives: gentoo-commits

From: "Andreas Proschofsky (suka)" <suka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/openoffice: ChangeLog openoffice-2.3.1.ebuild openoffice-2.3.1_rc1.ebuild
Date: Tue, 04 Dec 2007 21:25:02
Message-Id: E1IzfG9-0006RQ-EY@stork.gentoo.org
1 suka 07/12/04 21:24:53
2
3 Modified: ChangeLog
4 Added: openoffice-2.3.1.ebuild
5 Removed: openoffice-2.3.1_rc1.ebuild
6 Log:
7 OpenOffice.org 2.3.1 release
8 (Portage version: 2.1.4_rc7)
9
10 Revision Changes Path
11 1.355 app-office/openoffice/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.355&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.355&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?r1=1.354&r2=1.355
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v
20 retrieving revision 1.354
21 retrieving revision 1.355
22 diff -u -r1.354 -r1.355
23 --- ChangeLog 2 Dec 2007 20:32:09 -0000 1.354
24 +++ ChangeLog 4 Dec 2007 21:24:52 -0000 1.355
25 @@ -1,6 +1,25 @@
26 # ChangeLog for app-office/openoffice
27 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.354 2007/12/02 20:32:09 suka Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.355 2007/12/04 21:24:52 suka Exp $
30 +
31 +*openoffice-2.3.1 (04 Dec 2007)
32 +
33 + 04 Dec 2007; Andreas Proschofsky <suka@g.o>
34 + +files/2.3.1/config_office-fix-system-icu-check.diff,
35 + +files/2.3.1/disable-regcomp-python.diff, +files/2.3.1/ooo-env_log.diff,
36 + -files/2.3.1_rc1/disable-regcomp-java.diff,
37 + +files/2.3.1/regcompapply.diff, -files/2.3.1_rc1/regcompapply.diff,
38 + -files/2.3.1_rc1/gentoo-2.3.1_rc1.diff, +files/2.3.1/gentoo-2.3.1.diff,
39 + +files/2.3.1/disable-regcomp-java.diff,
40 + +files/2.3.1/stlport-ppc-buildfix.diff,
41 + +files/2.3.1/stlport-ppc-buildfix-apply.diff,
42 + -files/2.3.1_rc1/disable-regcomp-python.diff,
43 + -files/2.3.1_rc1/ooo-env_log.diff,
44 + -files/2.3.1_rc1/stlport-ppc-buildfix.diff,
45 + -files/2.3.1_rc1/stlport-ppc-buildfix-apply.diff,
46 + -openoffice-2.3.1_rc1.ebuild, +openoffice-2.3.1.ebuild:
47 + New release: OpenOffice.org 2.3.1. This also uses internal icu again, as the
48 + support for the external one is broken atm.
49
50 *openoffice-2.3.1_rc1 (02 Dec 2007)
51
52
53
54
55 1.1 app-office/openoffice/openoffice-2.3.1.ebuild
56
57 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-2.3.1.ebuild?rev=1.1&view=markup
58 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-2.3.1.ebuild?rev=1.1&content-type=text/plain
59
60 Index: openoffice-2.3.1.ebuild
61 ===================================================================
62 # Copyright 1999-2007 Gentoo Foundation
63 # Distributed under the terms of the GNU General Public License v2
64 # $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-2.3.1.ebuild,v 1.1 2007/12/04 21:24:52 suka Exp $
65
66 WANT_AUTOCONF="2.5"
67 WANT_AUTOMAKE="1.9"
68
69 inherit autotools check-reqs db-use eutils fdo-mime flag-o-matic java-pkg-opt-2 kde-functions mono multilib
70
71 IUSE="binfilter cairo cups dbus debug eds firefox gnome gstreamer gtk kde ldap mono sound odk pam seamonkey webdav xulrunner"
72
73 MY_PV="2.3.1"
74 PATCHLEVEL="OOG680"
75 SRC="OOo_${PV}_src"
76 S="${WORKDIR}/ooo"
77 S_OLD="${WORKDIR}/ooo-build-${MY_PV}"
78 CONFFILE="${S}/distro-configs/Gentoo.conf.in"
79 DESCRIPTION="OpenOffice.org, a full office productivity suite."
80
81 SRC_URI="mirror://openoffice/stable/${PV}/${SRC}_core.tar.bz2
82 binfilter? ( mirror://openoffice/stable/${PV}/${SRC}_binfilter.tar.bz2 )
83 http://go-oo.org/packages/${PATCHLEVEL}/ooo-build-${MY_PV}.tar.gz
84 odk? ( mirror://openoffice/stable/${PV}/${SRC}_sdk.tar.bz2
85 java? ( http://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll ) )
86 http://go-oo.org/packages/SRC680/extras-2.tar.bz2
87 http://go-oo.org/packages/SRC680/biblio.tar.bz2
88 http://go-oo.org/packages/xt/xt-20051206-src-only.zip
89 http://go-oo.org/packages/SRC680/lp_solve_5.5.0.10_source.tar.gz
90 http://go-oo.org/packages/SRC680/libwps-0.1.0.tar.gz
91 http://go-oo.org/packages/SRC680/libwpg-0.1.0.tar.gz
92 http://go-oo.org/packages/SRC680/oox.2007-09-05.tar.bz2"
93
94 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_YU sk sl sr_CS 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"
95 LANGS="${LANGS1} en en_US"
96
97 for X in ${LANGS} ; do
98 IUSE="${IUSE} linguas_${X}"
99 done
100
101 for Y in ${LANGS1} ; do
102 SRC_URI="${SRC_URI} linguas_${Y}? ( mirror://openoffice/stable/${PV}/${SRC}_l10n.tar.bz2 )"
103 done
104
105 HOMEPAGE="http://go-oo.org"
106
107 LICENSE="LGPL-2"
108 SLOT="0"
109 KEYWORDS="~amd64 ~ppc -sparc ~x86"
110
111 COMMON_DEPEND="!app-office/openoffice-bin
112 x11-libs/libXaw
113 x11-libs/libXinerama
114 >=dev-lang/perl-5.0
115 dbus? ( >=dev-libs/dbus-glib-0.71 )
116 gnome? ( >=x11-libs/gtk+-2.10
117 >=gnome-base/gnome-vfs-2.6
118 >=gnome-base/gconf-2.0 )
119 gtk? ( >=x11-libs/gtk+-2.10 )
120 cairo? ( >=x11-libs/cairo-1.0.2
121 >=x11-libs/gtk+-2.10 )
122 eds? ( >=gnome-extra/evolution-data-server-1.2 )
123 gstreamer? ( >=media-libs/gstreamer-0.10
124 >=media-libs/gst-plugins-base-0.10 )
125 kde? ( >=kde-base/kdelibs-3.2 )
126 java? ( >=dev-java/bsh-2.0_beta4
127 >=dev-java/xalan-2.7
128 >=dev-java/xerces-2.7
129 =dev-java/xml-commons-external-1.3* )
130 mono? ( >=dev-lang/mono-1.2.3.1 )
131 firefox? ( >=www-client/mozilla-firefox-1.5-r9
132 >=dev-libs/nspr-4.6.6
133 >=dev-libs/nss-3.11-r1 )
134 !firefox? ( seamonkey? ( www-client/seamonkey
135 >=dev-libs/nspr-4.6.6
136 >=dev-libs/nss-3.11-r1 ) )
137 !firefox? ( !seamonkey? ( xulrunner? ( net-libs/xulrunner
138 >=dev-libs/nspr-4.6.6
139 >=dev-libs/nss-3.11-r1 ) ) )
140 sound? ( >=media-libs/portaudio-18.1-r5
141 >=media-libs/libsndfile-1.0.9 )
142 webdav? ( >=net-misc/neon-0.24.7 )
143 >=x11-libs/startup-notification-0.5
144 >=media-libs/freetype-2.1.10-r2
145 >=media-libs/fontconfig-2.3.0
146 cups? ( net-print/cups )
147 media-libs/jpeg
148 media-libs/libpng
149 sys-devel/flex
150 sys-devel/bison
151 app-arch/zip
152 app-arch/unzip
153 >=app-text/hunspell-1.1.4-r1
154 >=app-admin/eselect-oodict-20060706
155 dev-libs/expat
156 >=sys-libs/db-4.3
157 >=dev-libs/STLport-5.1.2
158 >=app-text/libwpd-0.8.8
159 >=media-libs/libsvg-0.1.4
160 linguas_ja? ( >=media-fonts/kochi-substitute-20030809-r3 )
161 linguas_zh_CN? ( >=media-fonts/arphicfonts-0.1-r2 )
162 linguas_zh_TW? ( >=media-fonts/arphicfonts-0.1-r2 )"
163
164 RDEPEND="java? ( >=virtual/jre-1.4 )
165 ${COMMON_DEPEND}"
166
167 DEPEND="${COMMON_DEPEND}
168 x11-libs/libXrender
169 x11-proto/printproto
170 x11-proto/xextproto
171 x11-proto/xproto
172 x11-proto/xineramaproto
173 >=sys-apps/findutils-4.1.20-r1
174 dev-perl/Archive-Zip
175 dev-perl/Compress-Zlib
176 >=dev-perl/Compress-Raw-Zlib-2.002
177 dev-perl/IO-Compress-Base
178 dev-util/pkgconfig
179 dev-util/intltool
180 >=dev-libs/boost-1.33.1
181 dev-libs/libxslt
182 >=dev-libs/libxml2-2.0
183 dev-util/gperf
184 >=net-misc/curl-7.9.8
185 sys-libs/zlib
186 sys-apps/coreutils
187 pam? ( sys-libs/pam )
188 !dev-util/dmake
189 >=dev-lang/python-2.3.4
190 java? ( || ( !amd64? ( =virtual/jdk-1.5* ) =virtual/jdk-1.4* )
191 dev-java/ant-core )
192 ldap? ( net-nds/openldap )"
193
194 PROVIDE="virtual/ooo"
195
196 if use amd64; then
197 # All available Java 1.5 JDKs are broken, in one way or another, on amd64.
198 # Thus we force the use of a Java 1.4 JDK on amd64 (and amd64 only).
199 export JAVA_PKG_NV_DEPEND="=virtual/jdk-1.4*"
200 fi
201
202 pkg_setup() {
203
204 ewarn
205 ewarn " It is important to note that OpenOffice.org is a very fragile "
206 ewarn " build when it comes to CFLAGS. A number of flags have already "
207 ewarn " been filtered out. If you experience difficulty merging this "
208 ewarn " package and use agressive CFLAGS, lower the CFLAGS and try to "
209 ewarn " merge again. Also note that building OOo takes a lot of time and "
210 ewarn " hardware ressources: 4-6 GB free diskspace and 256 MB RAM are "
211 ewarn " the minimum requirements. If you have less, use openoffice-bin "
212 ewarn " instead. "
213 ewarn
214
215 # Check if we have enough RAM and free diskspace to build this beast
216 CHECKREQS_MEMORY="256"
217 use debug && CHECKREQS_DISK_BUILD="8192" || CHECKREQS_DISK_BUILD="5120"
218 check_reqs
219
220 strip-linguas ${LANGS}
221
222 if [[ -z "${LINGUAS}" ]]; then
223 export LINGUAS_OOO="en-US"
224 ewarn
225 ewarn " To get a localized build, set the according LINGUAS variable(s). "
226 ewarn
227 else
228 export LINGUAS_OOO=`echo ${LINGUAS} | \
229 sed -e 's/\ben\b/en_US/g' -e 's/_/-/g'`
230 fi
231
232 if use !java; then
233 ewarn " You are building with java-support disabled, this results in some "
234 ewarn " of the OpenOffice.org functionality (i.e. help) being disabled. "
235 ewarn " If something you need does not work for you, rebuild with "
236 ewarn " java in your USE-flags. "
237 ewarn
238 fi
239
240 if is-flagq -ffast-math ; then
241 eerror " You are using -ffast-math, which is known to cause problems. "
242 eerror " Please remove it from your CFLAGS, using this globally causes "
243 eerror " all sorts of problems. "
244 eerror " After that you will also have to - at least - rebuild python otherwise "
245 eerror " the openoffice build will break. "
246 die
247 fi
248
249 java-pkg-opt-2_pkg_setup
250
251 # sys-libs/db version used
252 local db_ver="$(db_findver '>=sys-libs/db-4.3')"
253
254 }
255
256 src_unpack() {
257
258 unpack ooo-build-${MY_PV}.tar.gz
259
260 # Hackish workaround for overlong path problem, see bug #130837
261 mv ${S_OLD} ${S} || die
262
263 #Some fixes for our patchset
264 cd ${S}
265 epatch ${FILESDIR}/${PV}/gentoo-${PV}.diff
266 epatch ${FILESDIR}/${PV}/ooo-env_log.diff
267
268 if use ppc ; then
269 cp -f ${FILESDIR}/${PV}/disable-regcomp-java.diff ${S}/patches/src680 || die
270 cp -f ${FILESDIR}/${PV}/disable-regcomp-python.diff ${S}/patches/src680 || die
271 epatch ${FILESDIR}/${PV}/regcompapply.diff
272 #Fix for internal STLport
273 cp -f ${FILESDIR}/${PV}/stlport-ppc-buildfix.diff ${S}/patches/src680 || die
274 epatch ${FILESDIR}/${PV}/stlport-ppc-buildfix-apply.diff
275 fi
276
277 #Use flag checks
278 if use java ; then
279 echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE}
280 echo "--with-jdk-home=$(java-config --jdk-home 2>/dev/null)" >> ${CONFFILE}
281 echo "--with-java-target-version=$(java-pkg_get-target)" >> ${CONFFILE}
282 echo "--with-system-beanshell" >> ${CONFFILE}
283 echo "--with-system-xalan" >> ${CONFFILE}
284 echo "--with-system-xerces" >> ${CONFFILE}
285 echo "--with-system-xml-apis" >> ${CONFFILE}
286 echo "--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" >> ${CONFFILE}
287 echo "--with-serializer-jar=$(java-pkg_getjar xalan serializer.jar)" >> ${CONFFILE}
288 echo "--with-xalan-jar=$(java-pkg_getjar xalan xalan.jar)" >> ${CONFFILE}
289 echo "--with-xerces-jar=$(java-pkg_getjar xerces-2 xercesImpl.jar)" >> ${CONFFILE}
290 echo "--with-xml-apis-jar=$(java-pkg_getjar xml-commons-external-1.3 xml-apis.jar)" >> ${CONFFILE}
291 fi
292
293 # Upstream bitmaps are broken, so force ours for now
294 echo "--with-intro-bitmaps=\\\"${S}/src/openintro_gentoo.bmp\\\"" >> ${CONFFILE}
295
296 echo "`use_enable binfilter`" >> ${CONFFILE}
297
298 if use firefox || use seamonkey || use xulrunner ; then
299 echo "--enable-mozilla" >> ${CONFFILE}
300 local browser
301 use xulrunner && browser="xulrunner"
302 use seamonkey && browser="seamonkey"
303 use firefox && browser="firefox"
304
305 echo "--with-system-mozilla=${browser}" >> ${CONFFILE}
306 else
307 echo "--disable-mozilla" >> ${CONFFILE}
308 echo "--without-system-mozilla" >> ${CONFFILE}
309 fi
310
311 echo "`use_enable cups`" >> ${CONFFILE}
312 echo "`use_enable ldap`" >> ${CONFFILE}
313 echo "`use_with ldap openldap`" >> ${CONFFILE}
314 echo "`use_enable eds evolution2`" >> ${CONFFILE}
315 echo "`use_enable gnome gnome-vfs`" >> ${CONFFILE}
316 echo "`use_enable gnome lockdown`" >> ${CONFFILE}
317 echo "`use_enable gnome atkbridge`" >> ${CONFFILE}
318 echo "`use_enable gstreamer`" >> ${CONFFILE}
319 echo "`use_enable dbus`" >> ${CONFFILE}
320 echo "`use_enable webdav neon`" >> ${CONFFILE}
321 echo "`use_with webdav system-neon`" >> ${CONFFILE}
322
323 echo "`use_enable sound pasf`" >> ${CONFFILE}
324 echo "`use_with sound system-portaudio`" >> ${CONFFILE}
325 echo "`use_with sound system-sndfile`" >> ${CONFFILE}
326
327 echo "`use_enable debug crashdump`" >> ${CONFFILE}
328
329 eautoreconf
330
331 }
332
333 src_compile() {
334
335 unset LIBC
336 addpredict "/bin"
337 addpredict "/root/.gconfd"
338 addpredict "/root/.gnome"
339
340 # Should the build use multiprocessing? Not enabled by default, as it tends to break
341 export JOBS="1"
342 if [[ "${WANT_MP}" == "true" ]]; then
343 export JOBS=`echo "${MAKEOPTS}" | sed -e "s/.*-j\([0-9]\+\).*/\1/"`
344 fi
345
346 # Compile problems with these ...
347 filter-flags "-funroll-loops"
348 filter-flags "-fprefetch-loop-arrays"
349 filter-flags "-fno-default-inline"
350 filter-flags "-fstack-protector"
351 filter-flags "-fstack-protector-all"
352 filter-flags "-ftracer"
353 filter-flags "-fforce-addr"
354 replace-flags "-O?" "-O2"
355
356 # Build problems with STLport and regcomp without these
357 use ppc && append-flags "-D_STLP_STRICT_ANSI -fno-schedule-insns"
358
359 # Now for our optimization flags ...
360 export ARCH_FLAGS="${CXXFLAGS}"
361 use debug || export LINKFLAGSOPTIMIZE="${LDFLAGS}"
362
363 # Make sure gnome-users get gtk-support
364 export GTKFLAG="`use_enable gtk`" && use gnome && GTKFLAG="--enable-gtk"
365
366 # We have to disable mono-support for ppc, it's broken
367 export MYCONF="`use_enable mono`"
368 use ppc && MYCONF="--disable-mono" && ewarn "Mono support is currently broken on ppc, so disabling it"
369
370 cd ${S}
371 ./configure ${MYCONF} \
372 --with-distro="Gentoo" \
373 --with-arch="${ARCH}" \
374 --host="${CHOST}" \
375 --with-srcdir="${DISTDIR}" \
376 --with-lang="${LINGUAS_OOO}" \
377 --with-num-cpus="${JOBS}" \
378 --without-binsuffix \
379 --with-installed-ooo-dirname="openoffice" \
380 --with-tag="OOG680_m9" \
381 "${GTKFLAG}" \
382 `use_enable kde` \
383 `use_enable cairo` \
384 `use_with cairo system-cairo` \
385 `use_enable gnome quickstart` \
386 `use_enable pam` \
387 `use_enable !debug strip` \
388 `use_enable odk` \
389 `use_with java` \
390 --disable-access \
391 --disable-post-install-scripts \
392 --enable-hunspell \
393 --enable-openxml \
394 --with-system-hunspell \
395 --with-system-libwpd \
396 --with-system-libsvg \
397 --mandir=/usr/share/man \
398 --libdir=/usr/$(get_libdir) \
399 || die "Configuration failed!"
400
401 einfo "Building OpenOffice.org..."
402 use kde && set-kdedir 3
403 make || die "Build failed"
404
405 }
406
407 src_install() {
408
409 export PYTHONPATH=""
410
411 einfo "Preparing Installation"
412 make DESTDIR=${D} install || die "Installation failed!"
413
414 # Fix the permissions for security reasons
415 chown -R root:0 ${D}
416
417 # record java libraries
418 use java && java-pkg_regjar ${D}/usr/$(get_libdir)/openoffice/program/classes/*.jar
419
420 }
421
422 pkg_postinst() {
423
424 fdo-mime_desktop_database_update
425 fdo-mime_mime_database_update
426
427 eselect oodict update --libdir $(get_libdir)
428
429 [[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/program/soffice.bin
430
431 # Add available & useful jars to openoffice classpath
432 use java && /usr/$(get_libdir)/openoffice/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null
433
434 elog " To start OpenOffice.org, run:"
435 elog
436 elog " $ ooffice"
437 elog
438 elog " Also, for individual components, you can use any of:"
439 elog
440 elog " oobase, oocalc, oodraw, oofromtemplate, ooimpress, oomath,"
441 elog " ooweb or oowriter"
442 elog
443 elog " Spell checking is now provided through our own myspell-ebuilds, "
444 elog " if you want to use it, please install the correct myspell package "
445 elog " according to your language needs. "
446
447 }
448
449
450
451 --
452 gentoo-commits@g.o mailing list