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_rc4.ebuild openoffice-3.0.0_rc3.ebuild
Date: Tue, 07 Oct 2008 12:19:11
Message-Id: E1KnBWv-00008x-At@stork.gentoo.org
1 suka 08/10/07 12:19:09
2
3 Modified: ChangeLog
4 Added: openoffice-3.0.0_rc4.ebuild
5 Removed: openoffice-3.0.0_rc3.ebuild
6 Log:
7 Bump to RC4, hopefully the last one
8 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 i686)
9
10 Revision Changes Path
11 1.421 app-office/openoffice/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.421&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.421&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?r1=1.420&r2=1.421
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v
20 retrieving revision 1.420
21 retrieving revision 1.421
22 diff -u -r1.420 -r1.421
23 --- ChangeLog 3 Oct 2008 11:57:28 -0000 1.420
24 +++ ChangeLog 7 Oct 2008 12:19:08 -0000 1.421
25 @@ -1,6 +1,13 @@
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.420 2008/10/03 11:57:28 suka Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.421 2008/10/07 12:19:08 suka Exp $
30 +
31 +*openoffice-3.0.0_rc4 (07 Oct 2008)
32 +
33 + 07 Oct 2008; Andreas Proschofsky <suka@g.o>
34 + -files/gentoo-3.0.0_rc3.diff, +files/gentoo-3.0.0_rc4.diff,
35 + -openoffice-3.0.0_rc3.ebuild, +openoffice-3.0.0_rc4.ebuild:
36 + Bump to RC4, hopefully the last one
37
38 *openoffice-3.0.0_rc3 (03 Oct 2008)
39
40
41
42
43 1.1 app-office/openoffice/openoffice-3.0.0_rc4.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-3.0.0_rc4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-3.0.0_rc4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: openoffice-3.0.0_rc4.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-3.0.0_rc4.ebuild,v 1.1 2008/10/07 12:19:08 suka Exp $
53
54 WANT_AUTOCONF="2.5"
55 WANT_AUTOMAKE="1.9"
56 EAPI="1"
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"
61
62 MY_PV="3.0.0.3.4"
63 PATCHLEVEL="OOO300"
64 SRC="OOo_${PV}_src"
65 MST="ooo300-m9"
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}-extensions.tar.bz2
78 ${DEVPATH}-filters.tar.bz2
79 ${DEVPATH}-impress.tar.bz2
80 ${DEVPATH}-l10n.tar.bz2
81 ${DEVPATH}-libs_core.tar.bz2
82 ${DEVPATH}-libs_extern.tar.bz2
83 ${DEVPATH}-libs_extern_sys.tar.bz2
84 ${DEVPATH}-libs_gui.tar.bz2
85 ${DEVPATH}-postprocess.tar.bz2
86 ${DEVPATH}-sdk.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-3.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-30.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 >=net-misc/neon-0.24.7
142 >=dev-libs/openssl-0.9.8g
143 >=x11-libs/startup-notification-0.5
144 >=media-libs/freetype-2.1.10-r2
145 >=media-libs/fontconfig-2.3.0
146 cups? ( net-print/cups )
147 media-libs/jpeg
148 media-libs/libpng
149 app-arch/zip
150 app-arch/unzip
151 >=app-text/hunspell-1.1.4-r1
152 dev-libs/expat
153 >=dev-libs/icu-3.8
154 >=sys-libs/db-4.3
155 >=app-text/libwpd-0.8.8
156 >=media-libs/vigra-1.4
157 >=app-text/poppler-0.8.0
158 linguas_ja? ( >=media-fonts/kochi-substitute-20030809-r3 )
159 linguas_zh_CN? ( >=media-fonts/arphicfonts-0.1-r2 )
160 linguas_zh_TW? ( >=media-fonts/arphicfonts-0.1-r2 )"
161
162 RDEPEND="java? ( >=virtual/jre-1.5 )
163 ${COMMON_DEPEND}"
164
165 DEPEND="${COMMON_DEPEND}
166 x11-libs/libXrender
167 x11-proto/printproto
168 x11-proto/xextproto
169 x11-proto/xproto
170 x11-proto/xineramaproto
171 >=sys-apps/findutils-4.1.20-r1
172 dev-perl/Archive-Zip
173 dev-perl/Compress-Zlib
174 >=dev-perl/Compress-Raw-Zlib-2.002
175 dev-perl/IO-Compress-Base
176 dev-util/pkgconfig
177 dev-util/intltool
178 >=dev-libs/boost-1.33.1
179 sys-devel/flex
180 sys-devel/bison
181 dev-libs/libxslt
182 >=dev-libs/libxml2-2.0
183 >=dev-util/gperf-3
184 >=net-misc/curl-7.12
185 sys-libs/zlib
186 sys-apps/coreutils
187 media-gfx/imagemagick
188 pam? ( sys-libs/pam )
189 !dev-util/dmake
190 >=dev-lang/python-2.3.4
191 nsplugin? ( || ( net-libs/xulrunner:1.8 net-libs/xulrunner:1.9 =www-client/seamonkey-1* )
192 >=dev-libs/nspr-4.6.6
193 >=dev-libs/nss-3.11-r1 )
194 java? ( || ( =virtual/jdk-1.6* =virtual/jdk-1.5* )
195 >=dev-java/ant-core-1.7 )
196 ldap? ( net-nds/openldap )"
197
198 PROVIDE="virtual/ooo"
199
200 pkg_setup() {
201
202 ewarn
203 ewarn " It is important to note that OpenOffice.org is a very fragile "
204 ewarn " build when it comes to CFLAGS. A number of flags have already "
205 ewarn " been filtered out. If you experience difficulty merging this "
206 ewarn " package and use agressive CFLAGS, lower the CFLAGS and try to "
207 ewarn " merge again. Also note that building OOo takes a lot of time and "
208 ewarn " hardware ressources: 4-6 GB free diskspace and 256 MB RAM are "
209 ewarn " the minimum requirements. If you have less, use openoffice-bin "
210 ewarn " instead. "
211 ewarn
212 ewarn " Also if you experience a build break, please make sure to retry "
213 ewarn " with MAKEOPTS="-j1" before filing a bug. "
214 ewarn
215
216 # Check if we have enough RAM and free diskspace to build this beast
217 CHECKREQS_MEMORY="512"
218 use debug && CHECKREQS_DISK_BUILD="8192" || CHECKREQS_DISK_BUILD="5120"
219 check_reqs
220
221 strip-linguas ${LANGS}
222
223 if [[ -z "${LINGUAS}" ]]; then
224 export LINGUAS_OOO="en-US"
225 ewarn
226 ewarn " To get a localized build, set the according LINGUAS variable(s). "
227 ewarn
228 else
229 export LINGUAS_OOO=`echo ${LINGUAS} | \
230 sed -e 's/\ben\b/en_US/g' -e 's/_/-/g'`
231 fi
232
233 if use !java; then
234 ewarn " You are building with java-support disabled, this results in some "
235 ewarn " of the OpenOffice.org functionality being disabled. "
236 ewarn " If something you need does not work for you, rebuild with "
237 ewarn " java in your USE-flags. "
238 ewarn
239 fi
240
241 if is-flagq -ffast-math ; then
242 eerror " You are using -ffast-math, which is known to cause problems. "
243 eerror " Please remove it from your CFLAGS, using this globally causes "
244 eerror " all sorts of problems. "
245 eerror " After that you will also have to - at least - rebuild python otherwise "
246 eerror " the openoffice build will break. "
247 die
248 fi
249
250 if use pam; then
251 if ! built_with_use sys-apps/shadow pam; then
252 eerror " shadow needs to be built with pam-support. "
253 eerror " rebuild it accordingly or remove the pam use-flag "
254 die
255 fi
256 fi
257
258 if use nsplugin; then
259 if pkg-config --exists libxul; then
260 BRWS="libxul"
261 elif pkg-config --exists xulrunner-xpcom; then
262 BRWS="xulrunner"
263 elif pkg-config --exists seamonkey-xpcom; then
264 BRWS="seamonkey"
265 else
266 die "USE flag [nsplugin] set but no installed xulrunner or seamonkey found!"
267 fi
268 fi
269
270 # Check python
271 if ! built_with_use dev-lang/python threads
272 then
273 eerror "Python needs to be built with threads."
274 die
275 fi
276
277 java-pkg-opt-2_pkg_setup
278
279 # sys-libs/db version used
280 local db_ver="$(db_findver '>=sys-libs/db-4.3')"
281
282 }
283
284 src_unpack() {
285
286 unpack ooo-build-${MY_PV}.tar.gz
287
288 # Hackish workaround for overlong path problem, see bug #130837
289 mv "${S_OLD}" "${S}" || die
290
291 #Some fixes for our patchset
292 cd "${S}"
293 epatch "${FILESDIR}/gentoo-${PV}.diff"
294 epatch "${FILESDIR}/ooo-env_log.diff"
295
296 #Use flag checks
297 if use java ; then
298 echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE}
299 echo "--with-jdk-home=$(java-config --jdk-home 2>/dev/null)" >> ${CONFFILE}
300 echo "--with-java-target-version=$(java-pkg_get-target)" >> ${CONFFILE}
301 echo "--with-system-beanshell" >> ${CONFFILE}
302 echo "--with-system-hsqldb" >> ${CONFFILE}
303 echo "--with-system-rhino" >> ${CONFFILE}
304 echo "--with-system-xalan" >> ${CONFFILE}
305 echo "--with-system-xerces" >> ${CONFFILE}
306 echo "--with-system-xml-apis" >> ${CONFFILE}
307 echo "--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" >> ${CONFFILE}
308 echo "--with-hsqldb-jar=$(java-pkg_getjar hsqldb hsqldb.jar)" >> ${CONFFILE}
309 echo "--with-rhino-jar=$(java-pkg_getjar rhino-1.5 js.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 fi
315
316 if use nsplugin ; then
317 echo "--enable-mozilla" >> ${CONFFILE}
318 echo "--with-system-mozilla=${BRWS}" >> ${CONFFILE}
319 else
320 echo "--disable-mozilla" >> ${CONFFILE}
321 echo "--without-system-mozilla" >> ${CONFFILE}
322 fi
323
324 echo "--disable-binfilter" >> ${CONFFILE}
325 echo "`use_enable cups`" >> ${CONFFILE}
326 echo "`use_enable dbus`" >> ${CONFFILE}
327 echo "`use_enable eds evolution2`" >> ${CONFFILE}
328 echo "`use_enable gnome gnome-vfs`" >> ${CONFFILE}
329 echo "`use_enable gnome lockdown`" >> ${CONFFILE}
330 echo "`use_enable gstreamer`" >> ${CONFFILE}
331 echo "`use_enable gtk systray`" >> ${CONFFILE}
332 echo "`use_enable ldap`" >> ${CONFFILE}
333 echo "`use_enable opengl`" >> ${CONFFILE}
334 echo "`use_enable pam`" >> ${CONFFILE}
335 echo "`use_with ldap openldap`" >> ${CONFFILE}
336 echo "`use_enable debug crashdump`" >> ${CONFFILE}
337 echo "`use_enable debug strip-solver`" >> ${CONFFILE}
338
339 # Use splash screen without Sun logo
340 echo "--with-intro-bitmaps=\\\"${S}/build/${MST}/ooo_custom_images/nologo/introabout/intro.bmp\\\"" >> ${CONFFILE}
341
342 eautoreconf
343
344 }
345
346 src_compile() {
347
348 # Use multiprocessing by default now, it gets tested by upstream
349 export JOBS=`echo "${MAKEOPTS}" | sed -e "s/.*-j\([0-9]\+\).*/\1/"`
350
351 # Compile problems with these ...
352 filter-flags "-funroll-loops"
353 filter-flags "-fprefetch-loop-arrays"
354 filter-flags "-fno-default-inline"
355 filter-flags "-fstack-protector"
356 filter-flags "-fstack-protector-all"
357 filter-flags "-ftracer"
358 filter-flags "-fforce-addr"
359 filter-flags "-O[s2-9]"
360
361 # Build with NVidia cards breaks otherwise
362 use opengl && append-flags "-DGL_GLEXT_PROTOTYPES"
363
364 # Now for our optimization flags ...
365 export ARCH_FLAGS="${CXXFLAGS}"
366 use debug || export LINKFLAGSOPTIMIZE="${LDFLAGS}"
367
368 # Make sure gnome-users get gtk-support
369 local GTKFLAG="--disable-gtk --disable-cairo --without-system-cairo"
370 ( use gtk || use gnome ) && GTKFLAG="--enable-gtk --enable-cairo --with-system-cairo"
371
372 cd "${S}"
373 ./configure \
374 --with-distro="Gentoo" \
375 --with-arch="${ARCH}" \
376 --host="${CHOST}" \
377 --with-srcdir="${DISTDIR}" \
378 --with-lang="${LINGUAS_OOO}" \
379 --with-num-cpus="${JOBS}" \
380 --without-binsuffix \
381 --with-installed-ooo-dirname="openoffice" \
382 --with-tag="${MST}" \
383 ${GTKFLAG} \
384 `use_enable mono` \
385 `use_enable kde` \
386 `use_enable !debug strip` \
387 `use_enable odk` \
388 `use_with java` \
389 --disable-access \
390 --disable-post-install-scripts \
391 --with-system-libwpd \
392 --mandir=/usr/share/man \
393 --libdir=/usr/$(get_libdir) \
394 || die "Configuration failed!"
395
396 einfo "Building OpenOffice.org..."
397 use kde && set-kdedir 3
398 make || die "Build failed"
399
400 }
401
402 src_install() {
403
404 export PYTHONPATH=""
405
406 einfo "Preparing Installation"
407 make DESTDIR="${D}" install || die "Installation failed!"
408
409 # Fix the permissions for security reasons
410 chown -R root:0 "${D}"
411
412 # record java libraries
413 use java && java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/basis3.0/program/classes/*.jar
414
415 }
416
417 pkg_postinst() {
418
419 fdo-mime_desktop_database_update
420 fdo-mime_mime_database_update
421
422 [[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/basis3.0/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/basis3.0/program/soffice.bin
423
424 # Add available & useful jars to openoffice classpath
425 use java && /usr/$(get_libdir)/openoffice/basis3.0/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null
426
427 elog
428 elog " Spell checking is provided through our own myspell-ebuilds, "
429 elog " if you want to use it, please install the correct myspell package "
430 elog " according to your language needs. "
431 elog
432
433 }