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