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.1_rc2.ebuild openoffice-2.4.1_rc1.ebuild
Date: Sun, 01 Jun 2008 19:14:41
Message-Id: E1K2t0l-0005Iu-BW@stork.gentoo.org
1 suka 08/06/01 19:14:35
2
3 Modified: ChangeLog
4 Added: openoffice-2.4.1_rc2.ebuild
5 Removed: openoffice-2.4.1_rc1.ebuild
6 Log:
7 Bump to second release candidate for OOo 2.4.1
8 (Portage version: 2.1.5.3)
9
10 Revision Changes Path
11 1.400 app-office/openoffice/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.400&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.400&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?r1=1.399&r2=1.400
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v
20 retrieving revision 1.399
21 retrieving revision 1.400
22 diff -u -r1.399 -r1.400
23 --- ChangeLog 29 May 2008 12:24:40 -0000 1.399
24 +++ ChangeLog 1 Jun 2008 19:14:34 -0000 1.400
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.399 2008/05/29 12:24:40 suka Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.400 2008/06/01 19:14:34 suka Exp $
30 +
31 +*openoffice-2.4.1_rc2 (01 Jun 2008)
32 +
33 + 01 Jun 2008; Andreas Proschofsky <suka@g.o>
34 + -files/2.4.1_rc1/gentoo-2.4.1_rc1.diff, +files/gentoo-2.4.1_rc2.diff,
35 + -files/2.4.1_rc1/ooo-env_log.diff, +files/ooo-env_log.diff,
36 + -openoffice-2.4.1_rc1.ebuild, +openoffice-2.4.1_rc2.ebuild:
37 + Bump to second release candidate for OOo 2.4.1
38
39 29 May 2008; Andreas Proschofsky <suka@g.o>
40 openoffice-2.4.0.ebuild, openoffice-2.4.1_rc1.ebuild:
41
42
43
44 1.1 app-office/openoffice/openoffice-2.4.1_rc2.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-2.4.1_rc2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-2.4.1_rc2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: openoffice-2.4.1_rc2.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.1_rc2.ebuild,v 1.1 2008/06/01 19:14:34 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 opengl pam seamonkey xulrunner"
61
62 MY_PV="2.4.1.3"
63 MY_PV2="2.4.1rc2"
64 PATCHLEVEL="OOH680"
65 SRC="OOo_${MY_PV2}_src"
66 MST="OOH680_m17"
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/contrib/rc/${MY_PV2}/${SRC}_core.tar.bz2
73 binfilter? ( mirror://openoffice/contrib/rc/${MY_PV2}/${SRC}_binfilter.tar.bz2 )
74 http://download.go-oo.org/${PATCHLEVEL}/ooo-build-${MY_PV}.tar.gz
75 odk? ( mirror://openoffice/contrib/rc/${MY_PV2}/${SRC}_sdk.tar.bz2
76 java? ( http://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll ) )
77 http://download.go-oo.org/SRC680/extras-2.tar.bz2
78 http://download.go-oo.org/SRC680/biblio.tar.bz2
79 http://download.go-oo.org/SRC680/lp_solve_5.5.0.10_source.tar.gz
80 http://download.go-oo.org/SRC680/libwps-0.1.2.tar.gz
81 http://download.go-oo.org/SRC680/libwpg-0.1.2.tar.gz
82 http://download.go-oo.org/SRC680/oox.2008-02-29.tar.bz2
83 http://download.go-oo.org/SRC680/writerfilter.2008-02-29.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 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"
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/contrib/rc/${MY_PV2}/${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 >=x11-libs/cairo-1.0.2 )
111 gtk? ( >=x11-libs/gtk+-2.10
112 >=x11-libs/cairo-1.0.2 )
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* )
117 java? ( >=dev-java/bsh-2.0_beta4
118 >=dev-java/xalan-2.7
119 >=dev-java/xalan-serializer-2.7
120 >=dev-java/xerces-2.7
121 =dev-java/xml-commons-external-1.3*
122 >=dev-db/hsqldb-1.8.0.9
123 =dev-java/rhino-1.5* )
124 mono? ( >=dev-lang/mono-1.2.3.1 )
125 opengl? ( virtual/opengl
126 virtual/glu )
127 xulrunner? ( >=net-libs/xulrunner-1.8
128 >=dev-libs/nspr-4.6.6
129 >=dev-libs/nss-3.11-r1 )
130 !xulrunner? ( firefox? ( >=dev-libs/nspr-4.6.6
131 >=dev-libs/nss-3.11-r1 ) )
132 !xulrunner? ( !firefox? ( seamonkey? ( =www-client/seamonkey-1*
133 >=dev-libs/nspr-4.6.6
134 >=dev-libs/nss-3.11-r1 ) ) )
135 >=net-misc/neon-0.24.7
136 >=dev-libs/openssl-0.9.8g
137 >=x11-libs/startup-notification-0.5
138 >=media-libs/freetype-2.1.10-r2
139 >=media-libs/fontconfig-2.3.0
140 cups? ( net-print/cups )
141 media-libs/jpeg
142 media-libs/libpng
143 app-arch/zip
144 app-arch/unzip
145 >=app-text/hunspell-1.1.4-r1
146 >=app-admin/eselect-oodict-20060706
147 dev-libs/expat
148 >=dev-libs/icu-3.8
149 >=sys-libs/db-4.3
150 >=app-text/libwpd-0.8.8
151 >=media-libs/libsvg-0.1.4
152 >=media-libs/vigra-1.4
153 linguas_ja? ( >=media-fonts/kochi-substitute-20030809-r3 )
154 linguas_zh_CN? ( >=media-fonts/arphicfonts-0.1-r2 )
155 linguas_zh_TW? ( >=media-fonts/arphicfonts-0.1-r2 )"
156
157 RDEPEND="java? ( >=virtual/jre-1.4 )
158 !xulrunner? ( firefox? ( || ( =www-client/mozilla-firefox-2*
159 =www-client/mozilla-firefox-bin-2* ) ) )
160 ${COMMON_DEPEND}"
161
162 DEPEND="${COMMON_DEPEND}
163 x11-libs/libXrender
164 x11-proto/printproto
165 x11-proto/xextproto
166 x11-proto/xproto
167 x11-proto/xineramaproto
168 >=sys-apps/findutils-4.1.20-r1
169 dev-perl/Archive-Zip
170 dev-perl/Compress-Zlib
171 >=dev-perl/Compress-Raw-Zlib-2.002
172 dev-perl/IO-Compress-Base
173 dev-util/pkgconfig
174 dev-util/intltool
175 >=dev-libs/boost-1.33.1
176 sys-devel/flex
177 sys-devel/bison
178 dev-libs/libxslt
179 >=dev-libs/libxml2-2.0
180 !xulrunner? ( firefox? ( =www-client/mozilla-firefox-2* ) )
181 >=dev-util/gperf-3
182 >=net-misc/curl-7.12
183 sys-libs/zlib
184 sys-apps/coreutils
185 media-gfx/imagemagick
186 pam? ( sys-libs/pam )
187 !dev-util/dmake
188 >=dev-lang/python-2.3.4
189 java? ( || ( =virtual/jdk-1.6* =virtual/jdk-1.5* =virtual/jdk-1.4* )
190 dev-java/ant-core )
191 ldap? ( net-nds/openldap )"
192
193 PROVIDE="virtual/ooo"
194
195 pkg_setup() {
196
197 ewarn
198 ewarn " It is important to note that OpenOffice.org is a very fragile "
199 ewarn " build when it comes to CFLAGS. A number of flags have already "
200 ewarn " been filtered out. If you experience difficulty merging this "
201 ewarn " package and use agressive CFLAGS, lower the CFLAGS and try to "
202 ewarn " merge again. Also note that building OOo takes a lot of time and "
203 ewarn " hardware ressources: 4-6 GB free diskspace and 256 MB RAM are "
204 ewarn " the minimum requirements. If you have less, use openoffice-bin "
205 ewarn " instead. "
206 ewarn
207
208 # Check if we have enough RAM and free diskspace to build this beast
209 CHECKREQS_MEMORY="512"
210 use debug && CHECKREQS_DISK_BUILD="8192" || CHECKREQS_DISK_BUILD="5120"
211 check_reqs
212
213 strip-linguas ${LANGS}
214
215 if [[ -z "${LINGUAS}" ]]; then
216 export LINGUAS_OOO="en-US"
217 ewarn
218 ewarn " To get a localized build, set the according LINGUAS variable(s). "
219 ewarn
220 else
221 export LINGUAS_OOO=`echo ${LINGUAS} | \
222 sed -e 's/\ben\b/en_US/g' -e 's/_/-/g'`
223 fi
224
225 if use !java; then
226 ewarn " You are building with java-support disabled, this results in some "
227 ewarn " of the OpenOffice.org functionality (i.e. help) being disabled. "
228 ewarn " If something you need does not work for you, rebuild with "
229 ewarn " java in your USE-flags. "
230 ewarn
231 fi
232
233 if is-flagq -ffast-math ; then
234 eerror " You are using -ffast-math, which is known to cause problems. "
235 eerror " Please remove it from your CFLAGS, using this globally causes "
236 eerror " all sorts of problems. "
237 eerror " After that you will also have to - at least - rebuild python otherwise "
238 eerror " the openoffice build will break. "
239 die
240 fi
241
242 if use pam; then
243 if ! built_with_use sys-apps/shadow pam; then
244 eerror " shadow needs to be built with pam-support. "
245 eerror " rebuild it accordingly or remove the pam use-flag "
246 die
247 fi
248 fi
249
250 if use xulrunner; then
251 if pkg-config --exists xulrunner-xpcom; then
252 XULR="xulrunner"
253 elif pkg-config --exists libxul; then
254 XULR="libxul"
255 else
256 die "USE flag [xulrunner] set but not found!"
257 fi
258 fi
259
260 java-pkg-opt-2_pkg_setup
261
262 # sys-libs/db version used
263 local db_ver="$(db_findver '>=sys-libs/db-4.3')"
264
265 }
266
267 src_unpack() {
268
269 unpack ooo-build-${MY_PV}.tar.gz
270
271 # Hackish workaround for overlong path problem, see bug #130837
272 mv "${S_OLD}" "${S}" || die
273
274 #Some fixes for our patchset
275 cd "${S}"
276 epatch "${FILESDIR}/gentoo-${PV}.diff"
277 epatch "${FILESDIR}/ooo-env_log.diff"
278
279 #Use flag checks
280 if use java ; then
281 echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE}
282 echo "--with-jdk-home=$(java-config --jdk-home 2>/dev/null)" >> ${CONFFILE}
283 echo "--with-java-target-version=$(java-pkg_get-target)" >> ${CONFFILE}
284 echo "--with-system-beanshell" >> ${CONFFILE}
285 echo "--with-system-xalan" >> ${CONFFILE}
286 echo "--with-system-xerces" >> ${CONFFILE}
287 echo "--with-system-xml-apis" >> ${CONFFILE}
288 echo "--with-system-hsqldb" >> ${CONFFILE}
289 echo "--with-system-rhino" >> ${CONFFILE}
290 echo "--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" >> ${CONFFILE}
291 echo "--with-serializer-jar=$(java-pkg_getjar xalan-serializer serializer.jar)" >> ${CONFFILE}
292 echo "--with-xalan-jar=$(java-pkg_getjar xalan xalan.jar)" >> ${CONFFILE}
293 echo "--with-xerces-jar=$(java-pkg_getjar xerces-2 xercesImpl.jar)" >> ${CONFFILE}
294 echo "--with-xml-apis-jar=$(java-pkg_getjar xml-commons-external-1.3 xml-apis.jar)" >> ${CONFFILE}
295 echo "--with-hsqldb-jar=$(java-pkg_getjar hsqldb hsqldb.jar)" >> ${CONFFILE}
296 echo "--with-rhino-jar=$(java-pkg_getjar rhino-1.5 js.jar)" >> ${CONFFILE}
297 fi
298
299 if use firefox || use seamonkey || use xulrunner ; then
300 echo "--enable-mozilla" >> ${CONFFILE}
301 local browser
302 use seamonkey && browser="seamonkey"
303 use firefox && browser="firefox"
304 use xulrunner && browser="${XULR}"
305
306 echo "--with-system-mozilla=${browser}" >> ${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 gnome atkbridge`" >> ${CONFFILE}
319 echo "`use_enable gstreamer`" >> ${CONFFILE}
320 echo "`use_enable ldap`" >> ${CONFFILE}
321 echo "`use_enable opengl`" >> ${CONFFILE}
322 echo "`use_with ldap openldap`" >> ${CONFFILE}
323 echo "--enable-neon" >> ${CONFFILE}
324 echo "--with-system-neon" >> ${CONFFILE}
325 echo "--with-system-openssl" >> ${CONFFILE}
326
327 echo "`use_enable debug crashdump`" >> ${CONFFILE}
328
329 # Original branding results in black splash screens for some, so forcing ours
330 echo "--with-intro-bitmaps=\\\"${S}/src/openintro_gentoo.bmp\\\"" >> ${CONFFILE}
331
332 eautoreconf
333
334 }
335
336 src_compile() {
337
338 # Should the build use multiprocessing? Not enabled by default, as it tends to break
339 export JOBS="1"
340 if [[ "${WANT_MP}" == "true" ]]; then
341 export JOBS=`echo "${MAKEOPTS}" | sed -e "s/.*-j\([0-9]\+\).*/\1/"`
342 fi
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 filter-flags "-O[s2-9]"
353
354 # Build with NVidia cards breaks otherwise
355 use opengl && append-flags "-DGL_GLEXT_PROTOTYPES"
356
357 # Now for our optimization flags ...
358 export ARCH_FLAGS="${CXXFLAGS}"
359 use debug || export LINKFLAGSOPTIMIZE="${LDFLAGS}"
360
361 # Make sure gnome-users get gtk-support
362 local GTKFLAG="--disable-gtk --disable-cairo --without-system-cairo"
363 ( use gtk || use gnome ) && GTKFLAG="--enable-gtk --enable-cairo --with-system-cairo"
364
365 cd "${S}"
366 ./configure \
367 --with-distro="Gentoo" \
368 --with-arch="${ARCH}" \
369 --host="${CHOST}" \
370 --with-srcdir="${DISTDIR}" \
371 --with-lang="${LINGUAS_OOO}" \
372 --with-num-cpus="${JOBS}" \
373 --without-binsuffix \
374 --with-installed-ooo-dirname="openoffice" \
375 --with-tag="${MST}" \
376 ${GTKFLAG} \
377 `use_enable mono` \
378 `use_enable kde` \
379 `use_enable pam` \
380 `use_enable !debug strip` \
381 `use_enable odk` \
382 `use_with java` \
383 --disable-access \
384 --disable-post-install-scripts \
385 --enable-hunspell \
386 --enable-openxml \
387 --with-system-hunspell \
388 --with-system-libwpd \
389 --with-system-libsvg \
390 --mandir=/usr/share/man \
391 --libdir=/usr/$(get_libdir) \
392 || die "Configuration failed!"
393
394 einfo "Building OpenOffice.org..."
395 use kde && set-kdedir 3
396 make || die "Build failed"
397
398 }
399
400 src_install() {
401
402 export PYTHONPATH=""
403
404 einfo "Preparing Installation"
405 make DESTDIR="${D}" install || die "Installation failed!"
406
407 # Fix the permissions for security reasons
408 chown -R root:0 "${D}"
409
410 # record java libraries
411 use java && java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/program/classes/*.jar
412
413 }
414
415 pkg_postinst() {
416
417 fdo-mime_desktop_database_update
418 fdo-mime_mime_database_update
419
420 eselect oodict update --libdir $(get_libdir)
421
422 [[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/program/soffice.bin
423
424 # Add available & useful jars to openoffice classpath
425 use java && /usr/$(get_libdir)/openoffice/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null
426
427 elog " To start OpenOffice.org, run:"
428 elog
429 elog " $ ooffice"
430 elog
431 elog " Also, for individual components, you can use any of:"
432 elog
433 elog " oobase, oocalc, oodraw, oofromtemplate, ooimpress, oomath,"
434 elog " ooweb or oowriter"
435 elog
436 elog " Spell checking is now provided through our own myspell-ebuilds, "
437 elog " if you want to use it, please install the correct myspell package "
438 elog " according to your language needs. "
439
440 }
441
442
443
444 --
445 gentoo-commits@l.g.o mailing list