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.3.1-r1.ebuild
Date: Sat, 02 Feb 2008 18:28:45
Message-Id: E1JLN6Y-00015O-0z@stork.gentoo.org
1 suka 08/02/02 18:28:42
2
3 Modified: ChangeLog
4 Added: openoffice-2.3.1-r1.ebuild
5 Log:
6 Revision bump for bug #208001, uses external icu again
7 (Portage version: 2.1.4.1)
8
9 Revision Changes Path
10 1.364 app-office/openoffice/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.364&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.364&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?r1=1.363&r2=1.364
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v
19 retrieving revision 1.363
20 retrieving revision 1.364
21 diff -u -r1.363 -r1.364
22 --- ChangeLog 19 Jan 2008 03:16:46 -0000 1.363
23 +++ ChangeLog 2 Feb 2008 18:28:41 -0000 1.364
24 @@ -1,6 +1,12 @@
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.363 2008/01/19 03:16:46 halcy0n Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.364 2008/02/02 18:28:41 suka Exp $
29 +
30 +*openoffice-2.3.1-r1 (02 Feb 2008)
31 +
32 + 02 Feb 2008; Andreas Proschofsky <suka@g.o>
33 + +files/2.3.1/gentoo-2.3.1-r1.diff, +openoffice-2.3.1-r1.ebuild:
34 + Revision bump for bug #208001, uses external icu again.
35
36 19 Jan 2008; Mark Loeser <halcy0n@g.o> openoffice-2.3.1.ebuild:
37 package.use.mask mono on ppc instead of disabling it in the ebuild (bug
38
39
40
41 1.1 app-office/openoffice/openoffice-2.3.1-r1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-2.3.1-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-2.3.1-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: openoffice-2.3.1-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2008 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-2.3.1-r1.ebuild,v 1.1 2008/02/02 18:28:41 suka Exp $
51
52 WANT_AUTOCONF="2.5"
53 WANT_AUTOMAKE="1.9"
54
55 inherit autotools check-reqs db-use eutils fdo-mime flag-o-matic java-pkg-opt-2 kde-functions mono multilib
56
57 IUSE="binfilter cairo cups dbus debug eds firefox gnome gstreamer gtk kde ldap mono sound odk pam seamonkey webdav xulrunner"
58
59 MY_PV="2.3.1.2"
60 PATCHLEVEL="OOG680"
61 SRC="OOo_${PV}_src"
62 S="${WORKDIR}/ooo"
63 S_OLD="${WORKDIR}/ooo-build-${MY_PV}"
64 CONFFILE="${S}/distro-configs/Gentoo.conf.in"
65 DESCRIPTION="OpenOffice.org, a full office productivity suite."
66
67 SRC_URI="mirror://openoffice/stable/${PV}/${SRC}_core.tar.bz2
68 binfilter? ( mirror://openoffice/stable/${PV}/${SRC}_binfilter.tar.bz2 )
69 http://go-oo.org/packages/${PATCHLEVEL}/ooo-build-${MY_PV}.tar.gz
70 odk? ( mirror://openoffice/stable/${PV}/${SRC}_sdk.tar.bz2
71 java? ( http://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll ) )
72 http://go-oo.org/packages/SRC680/extras-2.tar.bz2
73 http://go-oo.org/packages/SRC680/biblio.tar.bz2
74 http://go-oo.org/packages/xt/xt-20051206-src-only.zip
75 http://go-oo.org/packages/SRC680/lp_solve_5.5.0.10_source.tar.gz
76 http://go-oo.org/packages/SRC680/libwps-0.1.0.tar.gz
77 http://go-oo.org/packages/SRC680/libwpg-0.1.0.tar.gz
78 http://go-oo.org/packages/SRC680/oox.2007-09-05.tar.bz2"
79
80 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_YU sk sl sr_CS 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"
81 LANGS="${LANGS1} en en_US"
82
83 for X in ${LANGS} ; do
84 IUSE="${IUSE} linguas_${X}"
85 done
86
87 for Y in ${LANGS1} ; do
88 SRC_URI="${SRC_URI} linguas_${Y}? ( mirror://openoffice/stable/${PV}/${SRC}_l10n.tar.bz2 )"
89 done
90
91 HOMEPAGE="http://go-oo.org"
92
93 LICENSE="LGPL-2"
94 SLOT="0"
95 KEYWORDS="~amd64 ~ppc -sparc ~x86"
96
97 COMMON_DEPEND="!app-office/openoffice-bin
98 x11-libs/libXaw
99 x11-libs/libXinerama
100 >=dev-lang/perl-5.0
101 dbus? ( >=dev-libs/dbus-glib-0.71 )
102 gnome? ( >=x11-libs/gtk+-2.10
103 >=gnome-base/gnome-vfs-2.6
104 >=gnome-base/gconf-2.0 )
105 gtk? ( >=x11-libs/gtk+-2.10 )
106 cairo? ( >=x11-libs/cairo-1.0.2
107 >=x11-libs/gtk+-2.10 )
108 eds? ( >=gnome-extra/evolution-data-server-1.2 )
109 gstreamer? ( >=media-libs/gstreamer-0.10
110 >=media-libs/gst-plugins-base-0.10 )
111 kde? ( >=kde-base/kdelibs-3.2 )
112 java? ( >=dev-java/bsh-2.0_beta4
113 >=dev-java/xalan-2.7
114 >=dev-java/xerces-2.7
115 =dev-java/xml-commons-external-1.3* )
116 mono? ( >=dev-lang/mono-1.2.3.1 )
117 firefox? ( >=www-client/mozilla-firefox-1.5-r9
118 >=dev-libs/nspr-4.6.6
119 >=dev-libs/nss-3.11-r1 )
120 !firefox? ( seamonkey? ( www-client/seamonkey
121 >=dev-libs/nspr-4.6.6
122 >=dev-libs/nss-3.11-r1 ) )
123 !firefox? ( !seamonkey? ( xulrunner? ( net-libs/xulrunner
124 >=dev-libs/nspr-4.6.6
125 >=dev-libs/nss-3.11-r1 ) ) )
126 sound? ( >=media-libs/portaudio-18.1-r5
127 >=media-libs/libsndfile-1.0.9 )
128 webdav? ( >=net-misc/neon-0.24.7 )
129 >=x11-libs/startup-notification-0.5
130 >=media-libs/freetype-2.1.10-r2
131 >=media-libs/fontconfig-2.3.0
132 cups? ( net-print/cups )
133 media-libs/jpeg
134 media-libs/libpng
135 sys-devel/flex
136 sys-devel/bison
137 app-arch/zip
138 app-arch/unzip
139 >=app-text/hunspell-1.1.4-r1
140 >=app-admin/eselect-oodict-20060706
141 dev-libs/expat
142 >=dev-libs/icu-3.6
143 >=sys-libs/db-4.3
144 >=app-text/libwpd-0.8.8
145 >=media-libs/libsvg-0.1.4
146 linguas_ja? ( >=media-fonts/kochi-substitute-20030809-r3 )
147 linguas_zh_CN? ( >=media-fonts/arphicfonts-0.1-r2 )
148 linguas_zh_TW? ( >=media-fonts/arphicfonts-0.1-r2 )"
149
150 RDEPEND="java? ( >=virtual/jre-1.4 )
151 ${COMMON_DEPEND}"
152
153 DEPEND="${COMMON_DEPEND}
154 x11-libs/libXrender
155 x11-proto/printproto
156 x11-proto/xextproto
157 x11-proto/xproto
158 x11-proto/xineramaproto
159 >=sys-apps/findutils-4.1.20-r1
160 dev-perl/Archive-Zip
161 dev-perl/Compress-Zlib
162 >=dev-perl/Compress-Raw-Zlib-2.002
163 dev-perl/IO-Compress-Base
164 dev-util/pkgconfig
165 dev-util/intltool
166 >=dev-libs/boost-1.33.1
167 dev-libs/libxslt
168 >=dev-libs/libxml2-2.0
169 dev-util/gperf
170 >=net-misc/curl-7.9.8
171 sys-libs/zlib
172 sys-apps/coreutils
173 pam? ( sys-libs/pam )
174 !dev-util/dmake
175 >=dev-lang/python-2.3.4
176 java? ( || ( !amd64? ( =virtual/jdk-1.5* ) =virtual/jdk-1.4* )
177 dev-java/ant-core )
178 ldap? ( net-nds/openldap )"
179
180 PROVIDE="virtual/ooo"
181
182 if use amd64; then
183 # All available Java 1.5 JDKs are broken, in one way or another, on amd64.
184 # Thus we force the use of a Java 1.4 JDK on amd64 (and amd64 only).
185 export JAVA_PKG_NV_DEPEND="=virtual/jdk-1.4*"
186 fi
187
188 pkg_setup() {
189
190 ewarn
191 ewarn " It is important to note that OpenOffice.org is a very fragile "
192 ewarn " build when it comes to CFLAGS. A number of flags have already "
193 ewarn " been filtered out. If you experience difficulty merging this "
194 ewarn " package and use agressive CFLAGS, lower the CFLAGS and try to "
195 ewarn " merge again. Also note that building OOo takes a lot of time and "
196 ewarn " hardware ressources: 4-6 GB free diskspace and 256 MB RAM are "
197 ewarn " the minimum requirements. If you have less, use openoffice-bin "
198 ewarn " instead. "
199 ewarn
200
201 # Check if we have enough RAM and free diskspace to build this beast
202 CHECKREQS_MEMORY="256"
203 use debug && CHECKREQS_DISK_BUILD="8192" || CHECKREQS_DISK_BUILD="5120"
204 check_reqs
205
206 strip-linguas ${LANGS}
207
208 if [[ -z "${LINGUAS}" ]]; then
209 export LINGUAS_OOO="en-US"
210 ewarn
211 ewarn " To get a localized build, set the according LINGUAS variable(s). "
212 ewarn
213 else
214 export LINGUAS_OOO=`echo ${LINGUAS} | \
215 sed -e 's/\ben\b/en_US/g' -e 's/_/-/g'`
216 fi
217
218 if use !java; then
219 ewarn " You are building with java-support disabled, this results in some "
220 ewarn " of the OpenOffice.org functionality (i.e. help) being disabled. "
221 ewarn " If something you need does not work for you, rebuild with "
222 ewarn " java in your USE-flags. "
223 ewarn
224 fi
225
226 if is-flagq -ffast-math ; then
227 eerror " You are using -ffast-math, which is known to cause problems. "
228 eerror " Please remove it from your CFLAGS, using this globally causes "
229 eerror " all sorts of problems. "
230 eerror " After that you will also have to - at least - rebuild python otherwise "
231 eerror " the openoffice build will break. "
232 die
233 fi
234
235 java-pkg-opt-2_pkg_setup
236
237 # sys-libs/db version used
238 local db_ver="$(db_findver '>=sys-libs/db-4.3')"
239
240 }
241
242 src_unpack() {
243
244 unpack ooo-build-${MY_PV}.tar.gz
245
246 # Hackish workaround for overlong path problem, see bug #130837
247 mv "${S_OLD}" "${S}" || die
248
249 #Some fixes for our patchset
250 cd "${S}"
251 epatch "${FILESDIR}/${PV}/gentoo-${PV}-r1.diff"
252 epatch "${FILESDIR}/${PV}/ooo-env_log.diff"
253
254 if use ppc ; then
255 cp -f "${FILESDIR}/${PV}/disable-regcomp-java.diff" "${S}/patches/src680" || die
256 cp -f "${FILESDIR}/${PV}/disable-regcomp-python.diff" "${S}/patches/src680" || die
257 epatch "${FILESDIR}/${PV}/regcompapply.diff"
258 #Fix for internal STLport
259 cp -f "${FILESDIR}/${PV}/stlport-ppc-buildfix.diff" "${S}/patches/src680" || die
260 epatch "${FILESDIR}/${PV}/stlport-ppc-buildfix-apply.diff"
261 fi
262
263 #Use flag checks
264 if use java ; then
265 echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE}
266 echo "--with-jdk-home=$(java-config --jdk-home 2>/dev/null)" >> ${CONFFILE}
267 echo "--with-java-target-version=$(java-pkg_get-target)" >> ${CONFFILE}
268 echo "--with-system-beanshell" >> ${CONFFILE}
269 echo "--with-system-xalan" >> ${CONFFILE}
270 echo "--with-system-xerces" >> ${CONFFILE}
271 echo "--with-system-xml-apis" >> ${CONFFILE}
272 echo "--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" >> ${CONFFILE}
273 echo "--with-serializer-jar=$(java-pkg_getjar xalan serializer.jar)" >> ${CONFFILE}
274 echo "--with-xalan-jar=$(java-pkg_getjar xalan xalan.jar)" >> ${CONFFILE}
275 echo "--with-xerces-jar=$(java-pkg_getjar xerces-2 xercesImpl.jar)" >> ${CONFFILE}
276 echo "--with-xml-apis-jar=$(java-pkg_getjar xml-commons-external-1.3 xml-apis.jar)" >> ${CONFFILE}
277 fi
278
279 # Upstream bitmaps are broken, so force ours for now
280 echo "--with-intro-bitmaps=\\\"${S}/src/openintro_gentoo.bmp\\\"" >> ${CONFFILE}
281
282 echo "`use_enable binfilter`" >> ${CONFFILE}
283
284 if use firefox || use seamonkey || use xulrunner ; then
285 echo "--enable-mozilla" >> ${CONFFILE}
286 local browser
287 use xulrunner && browser="xulrunner"
288 use seamonkey && browser="seamonkey"
289 use firefox && browser="firefox"
290
291 echo "--with-system-mozilla=${browser}" >> ${CONFFILE}
292 else
293 echo "--disable-mozilla" >> ${CONFFILE}
294 echo "--without-system-mozilla" >> ${CONFFILE}
295 fi
296
297 echo "`use_enable cups`" >> ${CONFFILE}
298 echo "`use_enable ldap`" >> ${CONFFILE}
299 echo "`use_with ldap openldap`" >> ${CONFFILE}
300 echo "`use_enable eds evolution2`" >> ${CONFFILE}
301 echo "`use_enable gnome gnome-vfs`" >> ${CONFFILE}
302 echo "`use_enable gnome lockdown`" >> ${CONFFILE}
303 echo "`use_enable gnome atkbridge`" >> ${CONFFILE}
304 echo "`use_enable gstreamer`" >> ${CONFFILE}
305 echo "`use_enable dbus`" >> ${CONFFILE}
306 echo "`use_enable webdav neon`" >> ${CONFFILE}
307 echo "`use_with webdav system-neon`" >> ${CONFFILE}
308
309 echo "`use_enable sound pasf`" >> ${CONFFILE}
310 echo "`use_with sound system-portaudio`" >> ${CONFFILE}
311 echo "`use_with sound system-sndfile`" >> ${CONFFILE}
312
313 echo "`use_enable debug crashdump`" >> ${CONFFILE}
314
315 eautoreconf
316
317 }
318
319 src_compile() {
320
321 unset LIBC
322 addpredict "/bin"
323 addpredict "/root/.gconfd"
324 addpredict "/root/.gnome"
325
326 # Should the build use multiprocessing? Not enabled by default, as it tends to break
327 export JOBS="1"
328 if [[ "${WANT_MP}" == "true" ]]; then
329 export JOBS=`echo "${MAKEOPTS}" | sed -e "s/.*-j\([0-9]\+\).*/\1/"`
330 fi
331
332 # Compile problems with these ...
333 filter-flags "-funroll-loops"
334 filter-flags "-fprefetch-loop-arrays"
335 filter-flags "-fno-default-inline"
336 filter-flags "-fstack-protector"
337 filter-flags "-fstack-protector-all"
338 filter-flags "-ftracer"
339 filter-flags "-fforce-addr"
340 replace-flags "-O?" "-O2"
341
342 # Build problems with STLport and regcomp without these
343 use ppc && append-flags "-D_STLP_STRICT_ANSI -fno-schedule-insns"
344
345 # Now for our optimization flags ...
346 export ARCH_FLAGS="${CXXFLAGS}"
347 use debug || export LINKFLAGSOPTIMIZE="${LDFLAGS}"
348
349 # Make sure gnome-users get gtk-support
350 export GTKFLAG="`use_enable gtk`" && use gnome && GTKFLAG="--enable-gtk"
351
352 cd "${S}"
353 ./configure "${MYCONF}" \
354 --with-distro="Gentoo" \
355 --with-arch="${ARCH}" \
356 --host="${CHOST}" \
357 --with-srcdir="${DISTDIR}" \
358 --with-lang="${LINGUAS_OOO}" \
359 --with-num-cpus="${JOBS}" \
360 --without-binsuffix \
361 --with-installed-ooo-dirname="openoffice" \
362 --with-tag="OOG680_m9" \
363 "${GTKFLAG}" \
364 `use_enable mono` \
365 `use_enable kde` \
366 `use_enable cairo` \
367 `use_with cairo system-cairo` \
368 `use_enable gnome quickstart` \
369 `use_enable pam` \
370 `use_enable !debug strip` \
371 `use_enable odk` \
372 `use_with java` \
373 --disable-access \
374 --disable-post-install-scripts \
375 --enable-hunspell \
376 --enable-openxml \
377 --with-system-hunspell \
378 --with-system-libwpd \
379 --with-system-libsvg \
380 --mandir=/usr/share/man \
381 --libdir=/usr/$(get_libdir) \
382 || die "Configuration failed!"
383
384 einfo "Building OpenOffice.org..."
385 use kde && set-kdedir 3
386 make || die "Build failed"
387
388 }
389
390 src_install() {
391
392 export PYTHONPATH=""
393
394 einfo "Preparing Installation"
395 make DESTDIR="${D}" install || die "Installation failed!"
396
397 # Fix the permissions for security reasons
398 chown -R root:0 "${D}"
399
400 # record java libraries
401 use java && java-pkg_regjar ${D}/usr/$(get_libdir)/openoffice/program/classes/*.jar
402
403 }
404
405 pkg_postinst() {
406
407 fdo-mime_desktop_database_update
408 fdo-mime_mime_database_update
409
410 eselect oodict update --libdir $(get_libdir)
411
412 [[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/program/soffice.bin
413
414 # Add available & useful jars to openoffice classpath
415 use java && /usr/$(get_libdir)/openoffice/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null
416
417 elog " To start OpenOffice.org, run:"
418 elog
419 elog " $ ooffice"
420 elog
421 elog " Also, for individual components, you can use any of:"
422 elog
423 elog " oobase, oocalc, oodraw, oofromtemplate, ooimpress, oomath,"
424 elog " ooweb or oowriter"
425 elog
426 elog " Spell checking is now provided through our own myspell-ebuilds, "
427 elog " if you want to use it, please install the correct myspell package "
428 elog " according to your language needs. "
429
430 }
431
432
433
434 --
435 gentoo-commits@l.g.o mailing list