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.1.0_beta6.ebuild openoffice-3.1.0_beta7.ebuild
Date: Fri, 01 May 2009 09:10:57
Message-Id: E1Lzolj-0002Kb-53@stork.gentoo.org
1 suka 09/05/01 09:10:55
2
3 Modified: ChangeLog
4 Added: openoffice-3.1.0_beta7.ebuild
5 Removed: openoffice-3.1.0_beta6.ebuild
6 Log:
7 Newer beta-release for OOo 3.1
8
9 Revision Changes Path
10 1.459 app-office/openoffice/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.459&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.459&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?r1=1.458&r2=1.459
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v
19 retrieving revision 1.458
20 retrieving revision 1.459
21 diff -u -r1.458 -r1.459
22 --- ChangeLog 25 Apr 2009 11:56:53 -0000 1.458
23 +++ ChangeLog 1 May 2009 09:10:55 -0000 1.459
24 @@ -1,6 +1,13 @@
25 # ChangeLog for app-office/openoffice
26 -# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.458 2009/04/25 11:56:53 ranger Exp $
28 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.459 2009/05/01 09:10:55 suka Exp $
30 +
31 +*openoffice-3.1.0_beta7 (01 May 2009)
32 +
33 + 01 May 2009; Andreas Proschofsky <suka@g.o>
34 + -openoffice-3.1.0_beta6.ebuild, +openoffice-3.1.0_beta7.ebuild,
35 + -files/gentoo-3.1.0_beta6.diff, +files/gentoo-3.1.0_beta7.diff:
36 + Newer beta-release for OOo 3.1
37
38 25 Apr 2009; Brent Baude <ranger@g.o> openoffice-3.0.1.ebuild:
39 Marking openoffice-3.0.1 ~ppc64 for bug 244467
40
41
42
43 1.1 app-office/openoffice/openoffice-3.1.0_beta7.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-3.1.0_beta7.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-3.1.0_beta7.ebuild?rev=1.1&content-type=text/plain
47
48 Index: openoffice-3.1.0_beta7.ebuild
49 ===================================================================
50 # Copyright 1999-2009 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.1.0_beta7.ebuild,v 1.1 2009/05/01 09:10:55 suka Exp $
53
54 WANT_AUTOMAKE="1.9"
55 EAPI="2"
56
57 inherit bash-completion check-reqs db-use eutils fdo-mime flag-o-matic java-pkg-opt-2 kde-functions mono multilib toolchain-funcs
58
59 IUSE="binfilter cups dbus debug eds gnome gstreamer gtk kde ldap mono nsplugin odk opengl pam templates"
60
61 MY_PV=3.0.99.7
62 PATCHLEVEL=OOO310
63 SRC=OOo_${PV}_src
64 MST=ooo310-m11
65 DEVPATH=http://download.go-oo.org/${PATCHLEVEL}/${MST}
66 S=${WORKDIR}/ooo
67 S_OLD=${WORKDIR}/ooo-build-${MY_PV}
68 CONFFILE=${S}/distro-configs/Gentoo.conf.in
69 BASIS=basis3.1
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}-extras.tar.bz2
79 ${DEVPATH}-filters.tar.bz2
80 ${DEVPATH}-help.tar.bz2
81 ${DEVPATH}-impress.tar.bz2
82 ${DEVPATH}-libs-core.tar.bz2
83 ${DEVPATH}-libs-extern.tar.bz2
84 ${DEVPATH}-libs-extern-sys.tar.bz2
85 ${DEVPATH}-libs-gui.tar.bz2
86 ${DEVPATH}-postprocess.tar.bz2
87 ${DEVPATH}-sdk.tar.bz2
88 ${DEVPATH}-testing.tar.bz2
89 ${DEVPATH}-ure.tar.bz2
90 ${DEVPATH}-writer.tar.bz2
91 templates? ( http://extensions.services.openoffice.org/files/273/0/Sun_ODF_Template_Pack_en-US.oxt
92 http://extensions.services.openoffice.org/files/295/1/Sun_ODF_Template_Pack_de.oxt
93 http://extensions.services.openoffice.org/files/299/0/Sun_ODF_Template_Pack_it.oxt
94 http://extensions.services.openoffice.org/files/297/0/Sun_ODF_Template_Pack_fr.oxt
95 http://extensions.services.openoffice.org/files/301/1/Sun_ODF_Template_Pack_es.oxt )
96 http://download.go-oo.org/${PATCHLEVEL}/ooo-build-${MY_PV}.tar.gz
97 odk? ( java? ( http://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll ) )
98 http://download.go-oo.org/SRC680/extras-3.tar.bz2
99 http://download.go-oo.org/SRC680/biblio.tar.bz2
100 http://download.go-oo.org/SRC680/lp_solve_5.5.0.12_source.tar.gz
101 http://download.go-oo.org/DEV300/scsolver.2008-10-30.tar.bz2
102 http://download.go-oo.org/SRC680/libwps-0.1.2.tar.gz
103 http://download.go-oo.org/SRC680/libwpg-0.1.3.tar.gz"
104
105 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 he hi_IN hr hu it ja ka kk km ko ku lt lv mk ml_IN mn 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 te_IN tg th ti_ER tn tr ts uk ur_IN ve vi xh zh_CN zh_TW zu"
106 LANGS="${LANGS1} en en_US"
107
108 for X in ${LANGS} ; do
109 IUSE="${IUSE} linguas_${X}"
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 x11-libs/libXrandr
122 >=dev-lang/perl-5.0
123 dbus? ( >=dev-libs/dbus-glib-0.71 )
124 gnome? ( >=x11-libs/gtk+-2.10
125 >=gnome-base/gnome-vfs-2.6
126 >=gnome-base/gconf-2.0
127 >=x11-libs/cairo-1.0.2 )
128 gtk? ( >=x11-libs/gtk+-2.10
129 >=x11-libs/cairo-1.0.2 )
130 eds? ( >=gnome-extra/evolution-data-server-1.2 )
131 gstreamer? ( >=media-libs/gstreamer-0.10
132 >=media-libs/gst-plugins-base-0.10 )
133 kde? ( kde-base/kdelibs:3.5 )
134 java? ( >=dev-java/bsh-2.0_beta4
135 >=dev-db/hsqldb-1.8.0.9 )
136 mono? ( >=dev-lang/mono-1.2.3.1 )
137 nsplugin? ( || ( net-libs/xulrunner:1.8 net-libs/xulrunner:1.9 =www-client/seamonkey-1* )
138 >=dev-libs/nspr-4.6.6
139 >=dev-libs/nss-3.11-r1 )
140 opengl? ( virtual/opengl
141 virtual/glu )
142 >=net-misc/neon-0.24.7
143 >=dev-libs/openssl-0.9.8g
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-4.0
154 >=sys-libs/db-4.3
155 >=app-text/libwpd-0.8.8
156 >=media-libs/vigra-1.4
157 >=virtual/poppler-0.8.0"
158
159 RDEPEND="java? ( >=virtual/jre-1.5 )
160 ${COMMON_DEPEND}"
161
162 DEPEND="${COMMON_DEPEND}
163 x11-libs/libXrender
164 x11-libs/libXtst
165 x11-proto/printproto
166 x11-proto/xextproto
167 x11-proto/xproto
168 x11-proto/xineramaproto
169 >=sys-apps/findutils-4.1.20-r1
170 dev-perl/Archive-Zip
171 virtual/perl-Compress-Zlib
172 >=virtual/perl-Compress-Raw-Zlib-2.002
173 virtual/perl-IO-Compress-Base
174 dev-util/pkgconfig
175 dev-util/intltool
176 >=dev-libs/boost-1.33.1
177 sys-devel/flex
178 sys-devel/bison
179 dev-libs/libxslt
180 >=dev-libs/libxml2-2.0
181 >=dev-util/gperf-3
182 >=net-misc/curl-7.12
183 sys-libs/zlib
184 sys-apps/coreutils
185 pam? ( sys-libs/pam
186 sys-apps/shadow[pam] )
187 >=dev-lang/python-2.3.4[threads]
188 java? ( || ( =virtual/jdk-1.6* =virtual/jdk-1.5* )
189 >=dev-java/ant-core-1.7 )
190 ldap? ( net-nds/openldap )"
191
192 PROVIDE="virtual/ooo"
193
194 pkg_setup() {
195
196 ewarn
197 ewarn " It is important to note that OpenOffice.org is a very fragile "
198 ewarn " build when it comes to CFLAGS. A number of flags have already "
199 ewarn " been filtered out. If you experience difficulty merging this "
200 ewarn " package and use agressive CFLAGS, lower the CFLAGS and try to "
201 ewarn " merge again. Also note that building OOo takes a lot of time and "
202 ewarn " hardware ressources: 4-6 GB free diskspace and 256 MB RAM are "
203 ewarn " the minimum requirements. If you have less, use openoffice-bin "
204 ewarn " instead. "
205 ewarn
206 ewarn " Also if you experience a build break, please make sure to retry "
207 ewarn " with MAKEOPTS="-j1" before filing a bug. "
208 ewarn
209
210 # Check if we have enough RAM and free diskspace to build this beast
211 CHECKREQS_MEMORY="512"
212 use debug && CHECKREQS_DISK_BUILD="8192" || CHECKREQS_DISK_BUILD="6144"
213 check_reqs
214
215 strip-linguas ${LANGS}
216
217 if [[ -z "${LINGUAS}" ]]; then
218 export LINGUAS_OOO="en-US"
219 ewarn
220 ewarn " To get a localized build, set the according LINGUAS variable(s). "
221 ewarn
222 else
223 export LINGUAS_OOO=$(echo ${LINGUAS} | sed -e 's/\ben\b/en_US/g;s/_/-/g')
224 fi
225
226 if use !java; then
227 ewarn " You are building with java-support disabled, this results in some "
228 ewarn " of the OpenOffice.org functionality being disabled. "
229 ewarn " If something you need does not work for you, rebuild with "
230 ewarn " java in your USE-flags. "
231 ewarn
232 fi
233
234 if use !gtk && use !gnome; then
235 ewarn " If you want the OpenOffice.org systray quickstarter to work "
236 ewarn " activate either the 'gtk' or 'gnome' use flags. "
237 ewarn
238 fi
239
240 if is-flagq -ffast-math ; then
241 eerror " You are using -ffast-math, which is known to cause problems. "
242 eerror " Please remove it from your CFLAGS, using this globally causes "
243 eerror " all sorts of problems. "
244 eerror " After that you will also have to - at least - rebuild python otherwise "
245 eerror " the openoffice build will break. "
246 die
247 fi
248
249 if use nsplugin; then
250 if pkg-config --exists libxul; then
251 BRWS="libxul"
252 elif pkg-config --exists xulrunner-xpcom; then
253 BRWS="xulrunner"
254 elif pkg-config --exists seamonkey-xpcom; then
255 BRWS="seamonkey"
256 else
257 die "USE flag [nsplugin] set but no installed xulrunner or seamonkey found!"
258 fi
259 fi
260
261 java-pkg-opt-2_pkg_setup
262
263 # sys-libs/db version used
264 local db_ver=$(db_findver '>=sys-libs/db-4.3')
265
266 }
267
268 src_unpack() {
269
270 unpack ooo-build-${MY_PV}.tar.gz
271
272 # Hackish workaround for overlong path problem, see bug #130837
273 mv "${S_OLD}" "${S}" || die
274
275 #Some fixes for our patchset
276 cd "${S}"
277 epatch "${FILESDIR}/gentoo-${PV}.diff"
278 epatch "${FILESDIR}/ooo-env_log.diff"
279 # cp -f "${FILESDIR}/buildfix-mono-2-2.diff" "${S}/patches/hotfixes" || die
280 cp -f "${FILESDIR}/base64.diff" "${S}/patches/hotfixes" || die
281
282 #Use flag checks
283 if use java ; then
284 echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE}
285 echo "--with-jdk-home=$(java-config --jdk-home 2>/dev/null)" >> ${CONFFILE}
286 echo "--with-java-target-version=$(java-pkg_get-target)" >> ${CONFFILE}
287 echo "--with-jvm-path=/usr/$(get_libdir)/" >> ${CONFFILE}
288 echo "--with-system-beanshell" >> ${CONFFILE}
289 echo "--with-system-hsqldb" >> ${CONFFILE}
290 echo "--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" >> ${CONFFILE}
291 echo "--with-hsqldb-jar=$(java-pkg_getjar hsqldb hsqldb.jar)" >> ${CONFFILE}
292 fi
293
294 if use nsplugin ; then
295 echo "--enable-mozilla" >> ${CONFFILE}
296 echo "--with-system-mozilla=${BRWS}" >> ${CONFFILE}
297 else
298 echo "--disable-mozilla" >> ${CONFFILE}
299 echo "--without-system-mozilla" >> ${CONFFILE}
300 fi
301
302 echo $(use_enable binfilter) >> ${CONFFILE}
303 echo $(use_enable cups) >> ${CONFFILE}
304 echo $(use_enable dbus) >> ${CONFFILE}
305 echo $(use_enable eds evolution2) >> ${CONFFILE}
306 echo $(use_enable gnome gconf) >> ${CONFFILE}
307 echo $(use_enable gnome gnome-vfs) >> ${CONFFILE}
308 echo $(use_enable gnome lockdown) >> ${CONFFILE}
309 echo $(use_enable gstreamer) >> ${CONFFILE}
310 echo $(use_enable gtk systray) >> ${CONFFILE}
311 echo $(use_enable ldap) >> ${CONFFILE}
312 echo $(use_enable opengl) >> ${CONFFILE}
313 echo $(use_with ldap openldap) >> ${CONFFILE}
314 echo $(use_enable debug crashdump) >> ${CONFFILE}
315 echo $(use_enable debug strip-solver) >> ${CONFFILE}
316
317 # Extension stuff
318 echo "--with-extension-integration" >> ${CONFFILE}
319 echo "--enable-minimizer" >> ${CONFFILE}
320 echo "--enable-pdfimport" >> ${CONFFILE}
321 echo "--enable-presenter-console" >> ${CONFFILE}
322
323 echo "--without-writer2latex" >> ${CONFFILE}
324
325 # Use splash screen without Sun logo
326 echo "--with-intro-bitmaps=\\\"${S}/build/${MST}/ooo_custom_images/nologo/introabout/intro.bmp\\\"" >> ${CONFFILE}
327
328 }
329
330 src_configure() {
331
332 # Use multiprocessing by default now, it gets tested by upstream
333 export JOBS=$(echo "${MAKEOPTS}" | sed -e "s/.*-j\([0-9]\+\).*/\1/")
334
335 # Compile problems with these ...
336 filter-flags "-funroll-loops"
337 filter-flags "-fprefetch-loop-arrays"
338 filter-flags "-fno-default-inline"
339 filter-flags "-fstack-protector"
340 filter-flags "-fstack-protector-all"
341 filter-flags "-ftracer"
342 filter-flags "-fforce-addr"
343
344 filter-flags "-O[s2-9]"
345
346 if [[ $(gcc-major-version) -lt 4 ]]; then
347 replace-flags "-fomit-frame-pointer" "-momit-leaf-frame-pointer"
348 fi
349
350 # Build with NVidia cards breaks otherwise
351 use opengl && append-flags "-DGL_GLEXT_PROTOTYPES"
352
353 # Now for our optimization flags ...
354 export ARCH_FLAGS="${CXXFLAGS}"
355 use debug || export LINKFLAGSOPTIMIZE="${LDFLAGS}"
356
357 # Make sure gnome-users get gtk-support
358 local GTKFLAG="--disable-gtk --disable-cairo --without-system-cairo"
359 { use gtk || use gnome; } && GTKFLAG="--enable-gtk --enable-cairo --with-system-cairo"
360
361 cd "${S}"
362 ./configure --with-distro="Gentoo" \
363 --with-arch="${ARCH}" \
364 --with-srcdir="${DISTDIR}" \
365 --with-lang="${LINGUAS_OOO}" \
366 --with-num-cpus="${JOBS}" \
367 --without-binsuffix \
368 --with-installed-ooo-dirname="openoffice" \
369 --with-tag="${MST}" \
370 ${GTKFLAG} \
371 $(use_enable mono) \
372 $(use_enable kde) \
373 $(use_enable !debug strip) \
374 $(use_enable odk) \
375 $(use_enable pam) \
376 $(use_with java) \
377 $(use_with templates sun-templates) \
378 --disable-access \
379 --disable-post-install-scripts \
380 --enable-extensions \
381 --with-system-libwpd \
382 --mandir=/usr/share/man \
383 --libdir=/usr/$(get_libdir) \
384 || die "Configuration failed!"
385
386 }
387
388 src_compile() {
389
390 use kde && set-kdedir 3
391 make || die "Build failed"
392
393 }
394
395 src_install() {
396
397 export PYTHONPATH=""
398
399 einfo "Preparing Installation"
400 make DESTDIR="${D}" install || die "Installation failed!"
401
402 # Fix the permissions for security reasons
403 # chown -RP root:0 "${D}"
404
405 # record java libraries
406 if use java; then
407 java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/${BASIS}/program/classes/*.jar
408 java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/ure/share/java/*.jar
409 fi
410
411 # Upstream places the bash-completion module in /etc. Gentoo places them in
412 # /usr/share/bash-completion. bug 226061
413 dobashcompletion "${D}"/etc/bash_completion.d/ooffice.sh ooffice
414 rm -rf "${D}"/etc/bash_completion.d/ || die "rm failed"
415
416 }
417
418 pkg_postinst() {
419
420 fdo-mime_desktop_database_update
421 fdo-mime_mime_database_update
422 bash-completion_pkg_postinst
423
424 [[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/program/soffice.bin
425
426 # Add available & useful jars to openoffice classpath
427 use java && /usr/$(get_libdir)/openoffice/${BASIS}/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 elog " Some aditional functionality can be installed via Extension Manager: "
436 elog " *) PDF Import "
437 elog " *) Presentation Console "
438 elog " *) Presentation Minimizer "
439 elog
440 elog " Please use the packages provided in "
441 elog " /usr/$(get_libdir)/openoffice/share/extension/install/ "
442 elog " instead of those from the SUN extension site. "
443 elog
444
445 }