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