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