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.1_beta1.ebuild
Date: Tue, 04 Aug 2009 13:13:47
Message-Id: E1MYJpo-0004Us-QG@stork.gentoo.org
1 suka 09/08/04 13:13:44
2
3 Modified: ChangeLog
4 Added: openoffice-3.1.1_beta1.ebuild
5 Log:
6 Beta Release for OpenOffice.org 3.1.1 with KDE4-support (untested)
7 (Portage version: 2.2_rc35/cvs/Linux i686)
8
9 Revision Changes Path
10 1.473 app-office/openoffice/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.473&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?rev=1.473&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/ChangeLog?r1=1.472&r2=1.473
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v
19 retrieving revision 1.472
20 retrieving revision 1.473
21 diff -u -r1.472 -r1.473
22 --- ChangeLog 27 Jul 2009 09:06:16 -0000 1.472
23 +++ ChangeLog 4 Aug 2009 13:13:44 -0000 1.473
24 @@ -1,6 +1,13 @@
25 # ChangeLog for app-office/openoffice
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.472 2009/07/27 09:06:16 suka Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.473 2009/08/04 13:13:44 suka Exp $
29 +
30 +*openoffice-3.1.1_beta1 (04 Aug 2009)
31 +
32 + 04 Aug 2009; Andreas Proschofsky <suka@g.o>
33 + +openoffice-3.1.1_beta1.ebuild, +files/gentoo-3.1.1_beta1.diff:
34 + Beta Release for OpenOffice.org 3.1.1 with KDE4-support (untested). So
35 + please test and give feedback.
36
37 27 Jul 2009; Andreas Proschofsky <suka@g.o>
38 openoffice-3.1.0-r1.ebuild:
39
40
41
42 1.1 app-office/openoffice/openoffice-3.1.1_beta1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-3.1.1_beta1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/openoffice/openoffice-3.1.1_beta1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: openoffice-3.1.1_beta1.ebuild
48 ===================================================================
49 # Copyright 1999-2009 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-3.1.1_beta1.ebuild,v 1.1 2009/08/04 13:13:44 suka Exp $
52
53 WANT_AUTOMAKE="1.9"
54 EAPI="2"
55
56 inherit bash-completion check-reqs db-use eutils fdo-mime flag-o-matic java-pkg-opt-2 kde4-functions mono multilib toolchain-funcs
57
58 IUSE="binfilter cups dbus debug eds gnome gstreamer gtk kde ldap mono nsplugin odk opengl pam templates"
59
60 MY_PV=3.1.0.99.1
61 PATCHLEVEL=OOO310
62 SRC=OOo_${PV}_src
63 MST=ooo310-m16
64 DEVPATH=http://download.go-oo.org/${PATCHLEVEL}/${MST}
65 S=${WORKDIR}/ooo
66 S_OLD=${WORKDIR}/ooo-build-${MY_PV}
67 CONFFILE=${S}/distro-configs/Gentoo.conf.in
68 BASIS=basis3.1
69 DESCRIPTION="OpenOffice.org, a full office productivity suite."
70
71 SRC_URI="${DEVPATH}-artwork.tar.bz2
72 ${DEVPATH}-base.tar.bz2
73 ${DEVPATH}-bootstrap.tar.bz2
74 ${DEVPATH}-calc.tar.bz2
75 ${DEVPATH}-components.tar.bz2
76 ${DEVPATH}-extensions.tar.bz2
77 ${DEVPATH}-extras.tar.bz2
78 ${DEVPATH}-filters.tar.bz2
79 ${DEVPATH}-help.tar.bz2
80 ${DEVPATH}-impress.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 templates? ( http://extensions.services.openoffice.org/files/273/0/Sun_ODF_Template_Pack_en-US.oxt
91 http://extensions.services.openoffice.org/files/295/1/Sun_ODF_Template_Pack_de.oxt
92 http://extensions.services.openoffice.org/files/299/0/Sun_ODF_Template_Pack_it.oxt
93 http://extensions.services.openoffice.org/files/297/0/Sun_ODF_Template_Pack_fr.oxt
94 http://extensions.services.openoffice.org/files/301/1/Sun_ODF_Template_Pack_es.oxt )
95 http://download.go-oo.org/${PATCHLEVEL}/ooo-build-${MY_PV}.tar.gz
96 odk? ( java? ( http://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll ) )
97 http://download.go-oo.org/SRC680/extras-3.tar.bz2
98 http://download.go-oo.org/SRC680/biblio.tar.bz2
99 http://download.go-oo.org/SRC680/lp_solve_5.5.0.12_source.tar.gz
100 http://download.go-oo.org/DEV300/scsolver.2008-10-30.tar.bz2
101 http://download.go-oo.org/DEV300/ooo_oxygen_images-2009-06-17.tar.gz
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 brx bs ca cs cy da de dgo dz el en en_GB en_ZA eo es et eu fa fi fr ga gl gu he hi_IN hr hu id it ja ka kk km kn_IN ko kok ks ku lt mai mk ml_IN mn mni mr_IN nb ne nl nn nr ns oc or_IN pa_IN pl pt pt_BR ru rw sa_IN sat sd sh sk sl sr ss st sv sw_TZ ta ta_IN te_IN tg th ti_ER tn tr ts uk ur_IN uz 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 >=dev-libs/glib-2.18
124 dbus? ( >=dev-libs/dbus-glib-0.71 )
125 gnome? ( >=x11-libs/gtk+-2.10
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:4.2 )
134 java? ( >=dev-java/bsh-2.0_beta4
135 >=dev-db/hsqldb-1.8.0.9
136 dev-java/lucene:2.3
137 dev-java/lucene-analyzers:2.3
138 dev-java/rhino:1.5 )
139 mono? ( || ( >dev-lang/mono-2.4-r1 <dev-lang/mono-2.4 ) )
140 nsplugin? ( || ( net-libs/xulrunner:1.8 net-libs/xulrunner:1.9 =www-client/seamonkey-1* )
141 >=dev-libs/nspr-4.6.6
142 >=dev-libs/nss-3.11-r1 )
143 opengl? ( virtual/opengl
144 virtual/glu )
145 >=net-misc/neon-0.24.7
146 >=dev-libs/openssl-0.9.8g
147 >=media-libs/freetype-2.1.10-r2
148 >=media-libs/fontconfig-2.3.0
149 cups? ( net-print/cups )
150 media-libs/jpeg
151 media-libs/libpng
152 app-arch/zip
153 app-arch/unzip
154 >=app-text/hunspell-1.1.4-r1
155 dev-libs/expat
156 >=dev-libs/icu-4.0
157 >=sys-libs/db-4.3
158 >=app-text/libwpd-0.8.8
159 >=dev-libs/redland-1.0.8
160 >=media-libs/vigra-1.4
161 >=virtual/poppler-0.8.0"
162
163 RDEPEND="java? ( >=virtual/jre-1.5 )
164 ${COMMON_DEPEND}"
165
166 DEPEND="${COMMON_DEPEND}
167 x11-libs/libXrender
168 x11-libs/libXtst
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 virtual/perl-IO-Compress
176 >=virtual/perl-Compress-Raw-Zlib-2.002
177 dev-util/pkgconfig
178 dev-util/intltool
179 >=dev-libs/boost-1.33.1
180 sys-devel/flex
181 sys-devel/bison
182 dev-libs/libxslt
183 >=dev-libs/libxml2-2.0
184 >=dev-util/gperf-3
185 >=net-misc/curl-7.12
186 sys-libs/zlib
187 sys-apps/coreutils
188 pam? ( sys-libs/pam
189 sys-apps/shadow[pam] )
190 >=dev-lang/python-2.3.4[threads]
191 java? ( || ( =virtual/jdk-1.6* =virtual/jdk-1.5* )
192 >=dev-java/ant-core-1.7 )
193 ldap? ( net-nds/openldap )"
194
195 PROVIDE="virtual/ooo"
196
197 pkg_setup() {
198
199 ewarn
200 ewarn " It is important to note that OpenOffice.org is a very fragile "
201 ewarn " build when it comes to CFLAGS. A number of flags have already "
202 ewarn " been filtered out. If you experience difficulty merging this "
203 ewarn " package and use agressive CFLAGS, lower the CFLAGS and try to "
204 ewarn " merge again. Also note that building OOo takes a lot of time and "
205 ewarn " hardware ressources: 4-6 GB free diskspace and 256 MB RAM are "
206 ewarn " the minimum requirements. If you have less, use openoffice-bin "
207 ewarn " instead. "
208 ewarn
209 ewarn " Also if you experience a build break, please make sure to retry "
210 ewarn " with MAKEOPTS="-j1" before filing a bug. "
211 ewarn
212
213 # Check if we have enough RAM and free diskspace to build this beast
214 CHECKREQS_MEMORY="512"
215 use debug && CHECKREQS_DISK_BUILD="8192" || CHECKREQS_DISK_BUILD="6144"
216 check_reqs
217
218 strip-linguas ${LANGS}
219
220 if [[ -z "${LINGUAS}" ]]; then
221 export LINGUAS_OOO="en-US"
222 ewarn
223 ewarn " To get a localized build, set the according LINGUAS variable(s). "
224 ewarn
225 else
226 export LINGUAS_OOO=$(echo ${LINGUAS} | sed -e 's/\ben\b/en_US/g;s/_/-/g')
227 fi
228
229 if use !java; then
230 ewarn " You are building with java-support disabled, this results in some "
231 ewarn " of the OpenOffice.org functionality being disabled. "
232 ewarn " If something you need does not work for you, rebuild with "
233 ewarn " java in your USE-flags. "
234 ewarn
235 fi
236
237 if use !gtk && use !gnome; then
238 ewarn " If you want the OpenOffice.org systray quickstarter to work "
239 ewarn " activate either the 'gtk' or 'gnome' 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 nsplugin; then
253 if pkg-config --exists libxul; then
254 BRWS="libxul"
255 elif pkg-config --exists xulrunner-xpcom; then
256 BRWS="xulrunner"
257 elif pkg-config --exists seamonkey-xpcom; then
258 BRWS="seamonkey"
259 else
260 die "USE flag [nsplugin] set but no installed xulrunner or seamonkey found!"
261 fi
262 fi
263
264 java-pkg-opt-2_pkg_setup
265
266 # sys-libs/db version used
267 local db_ver=$(db_findver '>=sys-libs/db-4.3')
268
269 }
270
271 src_unpack() {
272
273 unpack ooo-build-${MY_PV}.tar.gz
274
275 }
276
277 src_prepare() {
278
279 # Hackish workaround for overlong path problem, see bug #130837
280 mv "${S_OLD}" "${S}" || die
281
282 #Some fixes for our patchset
283 cd "${S}"
284 epatch "${FILESDIR}/gentoo-${PV}.diff"
285 epatch "${FILESDIR}/ooo-env_log.diff"
286 cp -f "${FILESDIR}/base64.diff" "${S}/patches/hotfixes" || die
287 cp -f "${FILESDIR}/xulrunner-1.9.1.diff" "${S}/patches/hotfixes" || die
288
289 #Use flag checks
290 if use java ; then
291 echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE}
292 echo "--with-jdk-home=$(java-config --jdk-home 2>/dev/null)" >> ${CONFFILE}
293 echo "--with-java-target-version=$(java-pkg_get-target)" >> ${CONFFILE}
294 echo "--with-jvm-path=/usr/$(get_libdir)/" >> ${CONFFILE}
295 echo "--with-system-beanshell" >> ${CONFFILE}
296 echo "--with-system-hsqldb" >> ${CONFFILE}
297 echo "--with-system-lucene" >> ${CONFFILE}
298 echo "--with-system-rhino" >> ${CONFFILE}
299 echo "--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" >> ${CONFFILE}
300 echo "--with-hsqldb-jar=$(java-pkg_getjar hsqldb hsqldb.jar)" >> ${CONFFILE}
301 echo "--with-lucene-core-jar=$(java-pkg_getjar lucene-2.3 lucene-core.jar)" >> ${CONFFILE}
302 echo "--with-lucene-analyzers-jar=$(java-pkg_getjar lucene-analyzers-2.3 lucene-analyzers.jar)" >> ${CONFFILE}
303 echo "--with-rhino-jar=$(java-pkg_getjar rhino-1.5 js.jar)" >> ${CONFFILE}
304 fi
305
306 if use nsplugin ; then
307 echo "--enable-mozilla" >> ${CONFFILE}
308 echo "--with-system-mozilla=${BRWS}" >> ${CONFFILE}
309 else
310 echo "--disable-mozilla" >> ${CONFFILE}
311 echo "--without-system-mozilla" >> ${CONFFILE}
312 fi
313
314 echo $(use_enable binfilter) >> ${CONFFILE}
315 echo $(use_enable cups) >> ${CONFFILE}
316 echo $(use_enable dbus) >> ${CONFFILE}
317 echo $(use_enable eds evolution2) >> ${CONFFILE}
318 echo $(use_enable gnome gconf) >> ${CONFFILE}
319 echo $(use_enable gnome gio) >> ${CONFFILE}
320 echo "--disable-gnome-vfs" >> ${CONFFILE}
321 echo $(use_enable gnome lockdown) >> ${CONFFILE}
322 echo $(use_enable gstreamer) >> ${CONFFILE}
323 echo $(use_enable gtk systray) >> ${CONFFILE}
324 echo $(use_enable ldap) >> ${CONFFILE}
325 echo $(use_enable opengl) >> ${CONFFILE}
326 echo $(use_with ldap openldap) >> ${CONFFILE}
327 echo $(use_enable debug crashdump) >> ${CONFFILE}
328 echo $(use_enable debug strip-solver) >> ${CONFFILE}
329
330 # Extension stuff
331 echo "--with-extension-integration" >> ${CONFFILE}
332 echo "--enable-minimizer" >> ${CONFFILE}
333 echo "--enable-pdfimport" >> ${CONFFILE}
334 echo "--enable-presenter-console" >> ${CONFFILE}
335
336 echo "--without-writer2latex" >> ${CONFFILE}
337
338 # Use splash screen without Sun logo
339 echo "--with-intro-bitmaps=\\\"${S}/build/${MST}/ooo_custom_images/nologo/introabout/intro.bmp\\\"" >> ${CONFFILE}
340
341 # Upstream this
342 echo "--with-system-redland" >> ${CONFFILE}
343
344 }
345
346 src_configure() {
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 "-ftracer"
356 filter-flags "-fforce-addr"
357
358 filter-flags "-O[s2-9]"
359
360 if [[ $(gcc-major-version) -lt 4 ]]; then
361 filter-flags "-fstack-protector"
362 filter-flags "-fstack-protector-all"
363 replace-flags "-fomit-frame-pointer" "-momit-leaf-frame-pointer"
364 fi
365
366 # Build with NVidia cards breaks otherwise
367 use opengl && append-flags "-DGL_GLEXT_PROTOTYPES"
368
369 # Now for our optimization flags ...
370 export ARCH_FLAGS="${CXXFLAGS}"
371 use debug || export LINKFLAGSOPTIMIZE="${LDFLAGS}"
372
373 # Make sure gnome-users get gtk-support
374 local GTKFLAG="--disable-gtk --disable-cairo --without-system-cairo"
375 { use gtk || use gnome; } && GTKFLAG="--enable-gtk --enable-cairo --with-system-cairo"
376
377 cd "${S}"
378 ./configure --with-distro="Gentoo" \
379 --with-arch="${ARCH}" \
380 --with-srcdir="${DISTDIR}" \
381 --with-lang="${LINGUAS_OOO}" \
382 --with-num-cpus="${JOBS}" \
383 --without-binsuffix \
384 --with-installed-ooo-dirname="openoffice" \
385 --with-tag="${MST}" \
386 --with-drink="True Blood" \
387 ${GTKFLAG} \
388 $(use_enable mono) \
389 --disable-kde \
390 $(use_enable kde kde4) \
391 $(use_enable !debug strip) \
392 $(use_enable odk) \
393 $(use_enable pam) \
394 $(use_with java) \
395 $(use_with templates sun-templates) \
396 --disable-access \
397 --disable-post-install-scripts \
398 --enable-extensions \
399 --with-system-libwpd \
400 --mandir=/usr/share/man \
401 --libdir=/usr/$(get_libdir) \
402 || die "Configuration failed!"
403
404 }
405
406 src_compile() {
407
408 use kde && set-kdedir 3
409 make || die "Build failed"
410
411 }
412
413 src_install() {
414
415 export PYTHONPATH=""
416
417 einfo "Preparing Installation"
418 make DESTDIR="${D}" install || die "Installation failed!"
419
420 # Fix the permissions for security reasons
421 chown -RP root:0 "${D}"
422
423 # record java libraries
424 if use java; then
425 java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/${BASIS}/program/classes/*.jar
426 java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/ure/share/java/*.jar
427 fi
428
429 # Upstream places the bash-completion module in /etc. Gentoo places them in
430 # /usr/share/bash-completion. bug 226061
431 dobashcompletion "${D}"/etc/bash_completion.d/ooffice.sh ooffice
432 rm -rf "${D}"/etc/bash_completion.d/ || die "rm failed"
433
434 }
435
436 pkg_postinst() {
437
438 fdo-mime_desktop_database_update
439 fdo-mime_mime_database_update
440 BASH_COMPLETION_NAME=ooffice && bash-completion_pkg_postinst
441
442 [[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/program/soffice.bin
443
444 # Add available & useful jars to openoffice classpath
445 use java && /usr/$(get_libdir)/openoffice/${BASIS}/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null
446
447 elog
448 elog " Spell checking is provided through our own myspell-ebuilds, "
449 elog " if you want to use it, please install the correct myspell package "
450 elog " according to your language needs. "
451 elog
452
453 elog " Some aditional functionality can be installed via Extension Manager: "
454 elog " *) PDF Import "
455 elog " *) Presentation Console "
456 elog " *) Presentation Minimizer "
457 elog
458 elog " Please use the packages provided in "
459 elog " /usr/$(get_libdir)/openoffice/share/extension/install/ "
460 elog " instead of those from the SUN extension site. "
461 elog
462
463 }