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_rc1.ebuild
Date: Tue, 27 May 2008 21:08:21
Message-Id: E1K16P4-0003u3-GO@stork.gentoo.org
1 suka 08/05/27 21:08:18
2
3 Modified: ChangeLog
4 Added: openoffice-2.4.1_rc1.ebuild
5 Log:
6 First release candidate for OpenOffice.org 2.4.1, masked for testing
7 (Portage version: 2.1.5.2)
8
9 Revision Changes Path
10 1.397 app-office/openoffice/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.397&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.397&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?r1=1.396&r2=1.397
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v
19 retrieving revision 1.396
20 retrieving revision 1.397
21 diff -u -r1.396 -r1.397
22 --- ChangeLog 23 May 2008 12:56:01 -0000 1.396
23 +++ ChangeLog 27 May 2008 21:08:18 -0000 1.397
24 @@ -1,6 +1,13 @@
25 # ChangeLog for app-office/openoffice
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.396 2008/05/23 12:56:01 suka Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.397 2008/05/27 21:08:18 suka Exp $
29 +
30 +*openoffice-2.4.1_rc1 (27 May 2008)
31 +
32 + 27 May 2008; Andreas Proschofsky <suka@g.o>
33 + +files/2.4.1_rc1/ooo-env_log.diff, +files/2.4.1_rc1/gentoo-2.4.1_rc1.diff,
34 + +openoffice-2.4.1_rc1.ebuild:
35 + First release candidate for OpenOffice.org 2.4.1, masked for testing
36
37 23 May 2008; Andreas Proschofsky <suka@g.o>
38 openoffice-2.4.0.ebuild:
39
40
41
42 1.1 app-office/openoffice/openoffice-2.4.1_rc1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-2.4.1_rc1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-2.4.1_rc1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openoffice-2.4.1_rc1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-2.4.1_rc1.ebuild,v 1.1 2008/05/27 21:08:18 suka Exp $
52
53 WANT_AUTOCONF="2.5"
54 WANT_AUTOMAKE="1.9"
55
56 inherit autotools check-reqs db-use eutils fdo-mime flag-o-matic java-pkg-opt-2 kde-functions mono multilib
57
58 IUSE="binfilter cups dbus debug eds firefox gnome gstreamer gtk kde ldap mono odk opengl pam seamonkey webdav xulrunner"
59
60 MY_PV="2.4.1.1"
61 MY_PV2="2.4.1rc1"
62 PATCHLEVEL="OOH680"
63 SRC="OOo_${MY_PV2}_src"
64 MST="OOH680_m16"
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/contrib/rc/${MY_PV2}/${SRC}_core.tar.bz2
71 binfilter? ( mirror://openoffice/contrib/rc/${MY_PV2}/${SRC}_binfilter.tar.bz2 )
72 http://download.go-oo.org/${PATCHLEVEL}/ooo-build-${MY_PV}.tar.gz
73 odk? ( mirror://openoffice/contrib/rc/${MY_PV2}/${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 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"
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/contrib/rc/${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 opengl? ( virtual/opengl
124 virtual/glu )
125 xulrunner? ( >=net-libs/xulrunner-1.8
126 >=dev-libs/nspr-4.6.6
127 >=dev-libs/nss-3.11-r1 )
128 !xulrunner? ( firefox? ( >=dev-libs/nspr-4.6.6
129 >=dev-libs/nss-3.11-r1 ) )
130 !xulrunner? ( !firefox? ( seamonkey? ( =www-client/seamonkey-1*
131 >=dev-libs/nspr-4.6.6
132 >=dev-libs/nss-3.11-r1 ) ) )
133 webdav? ( >=net-misc/neon-0.24.7
134 >=dev-libs/openssl-0.9.8g )
135 >=x11-libs/startup-notification-0.5
136 >=media-libs/freetype-2.1.10-r2
137 >=media-libs/fontconfig-2.3.0
138 cups? ( net-print/cups )
139 media-libs/jpeg
140 media-libs/libpng
141 sys-devel/flex
142 sys-devel/bison
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 dev-libs/libxslt
177 >=dev-libs/libxml2-2.0
178 !xulrunner? ( firefox? ( =www-client/mozilla-firefox-2* ) )
179 >=dev-util/gperf-3
180 >=net-misc/curl-7.12
181 sys-libs/zlib
182 sys-apps/coreutils
183 media-gfx/imagemagick
184 pam? ( sys-libs/pam )
185 !dev-util/dmake
186 >=dev-lang/python-2.3.4
187 java? ( || ( =virtual/jdk-1.6* =virtual/jdk-1.5* =virtual/jdk-1.4* )
188 dev-java/ant-core )
189 ldap? ( net-nds/openldap )"
190
191 PROVIDE="virtual/ooo"
192
193 pkg_setup() {
194
195 ewarn
196 ewarn " It is important to note that OpenOffice.org is a very fragile "
197 ewarn " build when it comes to CFLAGS. A number of flags have already "
198 ewarn " been filtered out. If you experience difficulty merging this "
199 ewarn " package and use agressive CFLAGS, lower the CFLAGS and try to "
200 ewarn " merge again. Also note that building OOo takes a lot of time and "
201 ewarn " hardware ressources: 4-6 GB free diskspace and 256 MB RAM are "
202 ewarn " the minimum requirements. If you have less, use openoffice-bin "
203 ewarn " instead. "
204 ewarn
205
206 # Check if we have enough RAM and free diskspace to build this beast
207 CHECKREQS_MEMORY="512"
208 use debug && CHECKREQS_DISK_BUILD="8192" || CHECKREQS_DISK_BUILD="5120"
209 check_reqs
210
211 strip-linguas ${LANGS}
212
213 if [[ -z "${LINGUAS}" ]]; then
214 export LINGUAS_OOO="en-US"
215 ewarn
216 ewarn " To get a localized build, set the according LINGUAS variable(s). "
217 ewarn
218 else
219 export LINGUAS_OOO=`echo ${LINGUAS} | \
220 sed -e 's/\ben\b/en_US/g' -e 's/_/-/g'`
221 fi
222
223 if use !java; then
224 ewarn " You are building with java-support disabled, this results in some "
225 ewarn " of the OpenOffice.org functionality (i.e. help) being disabled. "
226 ewarn " If something you need does not work for you, rebuild with "
227 ewarn " java in your USE-flags. "
228 ewarn
229 fi
230
231 if is-flagq -ffast-math ; then
232 eerror " You are using -ffast-math, which is known to cause problems. "
233 eerror " Please remove it from your CFLAGS, using this globally causes "
234 eerror " all sorts of problems. "
235 eerror " After that you will also have to - at least - rebuild python otherwise "
236 eerror " the openoffice build will break. "
237 die
238 fi
239
240 if use pam; then
241 if ! built_with_use sys-apps/shadow pam; then
242 eerror " shadow needs to be built with pam-support. "
243 eerror " rebuild it accordingly or remove the pam use-flag "
244 die
245 fi
246 fi
247
248 if use xulrunner; then
249 if pkg-config --exists xulrunner-xpcom; then
250 XULR="xulrunner"
251 elif pkg-config --exists libxul; then
252 XULR="libxul"
253 else
254 die "USE flag [xulrunner] set but not found!"
255 fi
256 fi
257
258 java-pkg-opt-2_pkg_setup
259
260 # sys-libs/db version used
261 local db_ver="$(db_findver '>=sys-libs/db-4.3')"
262
263 }
264
265 src_unpack() {
266
267 unpack ooo-build-${MY_PV}.tar.gz
268
269 # Hackish workaround for overlong path problem, see bug #130837
270 mv "${S_OLD}" "${S}" || die
271
272 #Some fixes for our patchset
273 cd "${S}"
274 epatch "${FILESDIR}/${PV}/gentoo-${PV}.diff"
275 epatch "${FILESDIR}/${PV}/ooo-env_log.diff"
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-system-hsqldb" >> ${CONFFILE}
287 echo "--with-system-rhino" >> ${CONFFILE}
288 echo "--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" >> ${CONFFILE}
289 echo "--with-serializer-jar=$(java-pkg_getjar xalan-serializer serializer.jar)" >> ${CONFFILE}
290 echo "--with-xalan-jar=$(java-pkg_getjar xalan xalan.jar)" >> ${CONFFILE}
291 echo "--with-xerces-jar=$(java-pkg_getjar xerces-2 xercesImpl.jar)" >> ${CONFFILE}
292 echo "--with-xml-apis-jar=$(java-pkg_getjar xml-commons-external-1.3 xml-apis.jar)" >> ${CONFFILE}
293 echo "--with-hsqldb-jar=$(java-pkg_getjar hsqldb hsqldb.jar)" >> ${CONFFILE}
294 echo "--with-rhino-jar=$(java-pkg_getjar rhino-1.5 js.jar)" >> ${CONFFILE}
295 fi
296
297 if use firefox || use seamonkey || use xulrunner ; then
298 echo "--enable-mozilla" >> ${CONFFILE}
299 local browser
300 use seamonkey && browser="seamonkey"
301 use firefox && browser="firefox"
302 use xulrunner && browser="${XULR}"
303
304 echo "--with-system-mozilla=${browser}" >> ${CONFFILE}
305 else
306 echo "--disable-mozilla" >> ${CONFFILE}
307 echo "--without-system-mozilla" >> ${CONFFILE}
308 fi
309
310 echo "`use_enable binfilter`" >> ${CONFFILE}
311 echo "`use_enable cups`" >> ${CONFFILE}
312 echo "`use_enable dbus`" >> ${CONFFILE}
313 echo "`use_enable eds evolution2`" >> ${CONFFILE}
314 echo "`use_enable gnome gnome-vfs`" >> ${CONFFILE}
315 echo "`use_enable gnome lockdown`" >> ${CONFFILE}
316 echo "`use_enable gnome atkbridge`" >> ${CONFFILE}
317 echo "`use_enable gstreamer`" >> ${CONFFILE}
318 echo "`use_enable ldap`" >> ${CONFFILE}
319 echo "`use_enable opengl`" >> ${CONFFILE}
320 echo "`use_with ldap openldap`" >> ${CONFFILE}
321 echo "`use_enable webdav neon`" >> ${CONFFILE}
322 echo "`use_with webdav system-neon`" >> ${CONFFILE}
323 echo "`use_with webdav system-openssl`" >> ${CONFFILE}
324
325 echo "`use_enable debug crashdump`" >> ${CONFFILE}
326
327 # Original branding results in black splash screens for some, so forcing ours
328 echo "--with-intro-bitmaps=\\\"${S}/src/openintro_gentoo.bmp\\\"" >> ${CONFFILE}
329
330 eautoreconf
331
332 }
333
334 src_compile() {
335
336 # Should the build use multiprocessing? Not enabled by default, as it tends to break
337 export JOBS="1"
338 if [[ "${WANT_MP}" == "true" ]]; then
339 export JOBS=`echo "${MAKEOPTS}" | sed -e "s/.*-j\([0-9]\+\).*/\1/"`
340 fi
341
342 # Compile problems with these ...
343 filter-flags "-funroll-loops"
344 filter-flags "-fprefetch-loop-arrays"
345 filter-flags "-fno-default-inline"
346 filter-flags "-fstack-protector"
347 filter-flags "-fstack-protector-all"
348 filter-flags "-ftracer"
349 filter-flags "-fforce-addr"
350 filter-flags "-O[s2-9]"
351
352 # Build with NVidia cards breaks otherwise
353 use opengl && append-flags "-DGL_GLEXT_PROTOTYPES"
354
355 # Now for our optimization flags ...
356 export ARCH_FLAGS="${CXXFLAGS}"
357 use debug || export LINKFLAGSOPTIMIZE="${LDFLAGS}"
358
359 # Make sure gnome-users get gtk-support
360 local GTKFLAG="--disable-gtk --disable-cairo --without-system-cairo"
361 ( use gtk || use gnome ) && GTKFLAG="--enable-gtk --enable-cairo --with-system-cairo"
362
363 cd "${S}"
364 ./configure \
365 --with-distro="Gentoo" \
366 --with-arch="${ARCH}" \
367 --host="${CHOST}" \
368 --with-srcdir="${DISTDIR}" \
369 --with-lang="${LINGUAS_OOO}" \
370 --with-num-cpus="${JOBS}" \
371 --without-binsuffix \
372 --with-installed-ooo-dirname="openoffice" \
373 --with-tag="${MST}" \
374 ${GTKFLAG} \
375 `use_enable mono` \
376 `use_enable kde` \
377 `use_enable pam` \
378 `use_enable !debug strip` \
379 `use_enable odk` \
380 `use_with java` \
381 --disable-access \
382 --disable-post-install-scripts \
383 --enable-hunspell \
384 --enable-openxml \
385 --with-system-hunspell \
386 --with-system-libwpd \
387 --with-system-libsvg \
388 --mandir=/usr/share/man \
389 --libdir=/usr/$(get_libdir) \
390 || die "Configuration failed!"
391
392 einfo "Building OpenOffice.org..."
393 use kde && set-kdedir 3
394 make || die "Build failed"
395
396 }
397
398 src_install() {
399
400 export PYTHONPATH=""
401
402 einfo "Preparing Installation"
403 make DESTDIR="${D}" install || die "Installation failed!"
404
405 # Fix the permissions for security reasons
406 chown -R root:0 "${D}"
407
408 # record java libraries
409 use java && java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/program/classes/*.jar
410
411 # trying to work around javaldx problems on start
412 cp ${S}/build/${MST}/solver/*/*/lib/sunjavapluginrc ${D}/usr/$(get_libdir)/openoffice/program/ || die "Java config not found!"
413
414 }
415
416 pkg_postinst() {
417
418 fdo-mime_desktop_database_update
419 fdo-mime_mime_database_update
420
421 eselect oodict update --libdir $(get_libdir)
422
423 [[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/program/soffice.bin
424
425 # Add available & useful jars to openoffice classpath
426 use java && /usr/$(get_libdir)/openoffice/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null
427
428 elog " To start OpenOffice.org, run:"
429 elog
430 elog " $ ooffice"
431 elog
432 elog " Also, for individual components, you can use any of:"
433 elog
434 elog " oobase, oocalc, oodraw, oofromtemplate, ooimpress, oomath,"
435 elog " ooweb or oowriter"
436 elog
437 elog " Spell checking is now provided through our own myspell-ebuilds, "
438 elog " if you want to use it, please install the correct myspell package "
439 elog " according to your language needs. "
440
441 }
442
443
444
445 --
446 gentoo-commits@l.g.o mailing list