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