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