summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-office/openoffice/ChangeLog8
-rw-r--r--app-office/openoffice/Manifest23
-rw-r--r--app-office/openoffice/files/gentoo-3.0.1_rc2.diff24
-rw-r--r--app-office/openoffice/openoffice-3.0.1_rc2.ebuild396
4 files changed, 449 insertions, 2 deletions
diff --git a/app-office/openoffice/ChangeLog b/app-office/openoffice/ChangeLog
index 5db817ac6cfd..df13e2f3d6ec 100644
--- a/app-office/openoffice/ChangeLog
+++ b/app-office/openoffice/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-office/openoffice
# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.442 2009/01/12 00:07:58 suka Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.443 2009/01/18 19:12:40 suka Exp $
+
+*openoffice-3.0.1_rc2 (18 Jan 2009)
+
+ 18 Jan 2009; Andreas Proschofsky <suka@gentoo.org>
+ +files/gentoo-3.0.1_rc2.diff, +openoffice-3.0.1_rc2.ebuild:
+ Add release candidate for OpenOffice.org 3.0.1
12 Jan 2009; Andreas Proschofsky <suka@gentoo.org>
files/gentoo-3.0.0.diff, openoffice-3.0.0.ebuild:
diff --git a/app-office/openoffice/Manifest b/app-office/openoffice/Manifest
index f94551ba8664..9ff227adebca 100644
--- a/app-office/openoffice/Manifest
+++ b/app-office/openoffice/Manifest
@@ -1,5 +1,6 @@
AUX fixsandbox.diff 412 RMD160 2f49f40ccb3b06c2678402f25fbc65658061c35c SHA1 d7ef14c375634358351ce13de4b01fabc54e9c33 SHA256 fd6d40c11f37ed1db0b09cfd1f166cf84e96a759b58064ce58980eb63b2b8d49
AUX gentoo-3.0.0.diff 3086 RMD160 69856c46b641e09c5ffd561cf78c7f2334649d87 SHA1 a8aa9bde2cbde25c1fb54a84a4908a6b4f468873 SHA256 5c3e931564cadf9a5d212fab7c4708cf9f131057ffd1e15276dc343c36a4e33d
+AUX gentoo-3.0.1_rc2.diff 524 RMD160 d239476d33bda1f1424353ae83722efe2b51a059 SHA1 127c68e332ca2e88162772c7493ed9eb5d6ca8cf SHA256 57dfd94bb27db00e75cd06e77e069a555970713f6841082008162d09a063b3f0
AUX hunspell-one-dir-nocrash.diff 874 RMD160 b28b5379b59e30debd4aedb290dd8a1c4ac420a5 SHA1 0df98e9d92c779530fd9cd7e7e2e573ee1b7a603 SHA256 1cd1517d3ea63563a5acdb08f20c9d07cd55f0b646b7435b89d4121945a59ac5
AUX nojavanostax.diff 1374 RMD160 676450cd667425b1ac2ad4df561633778469cb82 SHA1 34e4481f199f23ebca4ff89f8ffc00f3cd08337f SHA256 17e39229576e415e52ff3685d5c4cdfb5e2c6f6177aad23e6e341c256fe3b310
AUX ooo-env_log.diff 617 RMD160 480edf4962e8d55f82a4103297c3cc10a1bd4f3e SHA1 b655566079c408e72f1046262fe269ba8bf66040 SHA256 efb99da32fcc2029418b4c4c080ccc97cb622fcc24a6a6dd69d8cc5508c54bf1
@@ -15,6 +16,25 @@ DIST libwpg-0.1.3.tar.gz 410799 RMD160 6e9e0545215af2ee05780887ad57ca1ae7ef78f5
DIST libwps-0.1.2.tar.gz 413360 RMD160 a3f60fed70ab0c4f34091c10f4eb4a421cb87d44 SHA1 3da402f74a6296425e88d0ab1cf197a5927288d6 SHA256 e8f03fc83f7ddd3976adb61f693eaeebefee852655875816e5f945e0efabb2b1
DIST lp_solve_5.5.0.12_source.tar.gz 787446 RMD160 8cd5299543e07d2bf1819297fe0a18400b18d12b SHA1 ffa7e52c18ffacef7ed3dfe535f4221e853068df SHA256 bc26d07fe39ae50264e15ee54dbbcf4cb1fe6ecd2fef10142be5bdd38947f193
DIST ooo-build-3.0.0.3.6.tar.gz 10574055 RMD160 9517a4a7d0ce0557f7a220510598cea493d702c0 SHA1 c00aa4eb426e3897181ecb71ef68d1f19ac6eaa9 SHA256 0ae1d2bbdd7f73f0aa1f6f50e6ea18a4dc6c2baafae9ab3a5715270e2ec8a4da
+DIST ooo-build-3.0.1.0.tar.gz 10294682 RMD160 ee2030e42731ef221b2065924420359835090484 SHA1 8032ab4659d9b1ecb4fc2fc9091f7dfe0d74d167 SHA256 a8a38e3683df5d484fb2d6398ea87bda14a709715126bf14f87217b7b1364311
+DIST ooo300-m15-artwork.tar.bz2 9671989 RMD160 0a78f80bc7bceb8c7d39a8b937495768cf913151 SHA1 8272d578d81c1fce8850224d4c1d323f56f1d4fb SHA256 8f53443db631825567144eecd6d32b172bc6c543cb23725d364d30fdb44658c1
+DIST ooo300-m15-base.tar.bz2 2939108 RMD160 2b4f4d0a110cce0334bd27321cf79d41716a5a34 SHA1 b2d0e634e40ac6a85721d4b3e4a120430da177ac SHA256 1d63973241c11cde3135cfa4a0efd0ad6a38d3b2ba7e6f3be568608d06fd6178
+DIST ooo300-m15-bootstrap.tar.bz2 7036696 RMD160 030d66a5d9ad0ce77e8b6186aaa3228f90a27690 SHA1 a637555e601350296f490e4f2a45aab8337e3773 SHA256 790bb0056fc7eba987550bbc9dceaba13b72bc525d73d26761e96e0469cf4fc3
+DIST ooo300-m15-calc.tar.bz2 8709019 RMD160 36757375761c5d98e37c824d31f5502e1508f8bb SHA1 bc918afde020eeff265bfd45f4c4e4ab2aadb88f SHA256 0481bca8590d8ac3f6212359cd04a29ca49856d1d71a67a4287fee977b4a4ff7
+DIST ooo300-m15-components.tar.bz2 5558970 RMD160 2a9d3b34abb0f916dcf5b81cf54206eb30349855 SHA1 d9cc79679863659746f700fff6511ed3ad16fa1f SHA256 3d9a0c853d5fd523793ad04d0f0f6ffc50b2183b04430da087aff17e37da1af1
+DIST ooo300-m15-extensions.tar.bz2 13933554 RMD160 4ba34db67ad828a0d0ef5fd48bceb11ce13c3db1 SHA1 9f817a5e9891beed8c7976a0341c6e2b9e536741 SHA256 ae6d51f3c4c03792ddbca300a95643d4adad3df020c562042c94e4fbb376abe7
+DIST ooo300-m15-filters.tar.bz2 10968796 RMD160 01191b3db7aac64b272c64f17a28698145983661 SHA1 da2e5b0df8cceb95ac6dc12e03f86749e0facd37 SHA256 ff54bb1d9e5413177d5a8d926742cb0c7e396a8ab77b1a3740f283c16f8a3613
+DIST ooo300-m15-impress.tar.bz2 3373749 RMD160 3c488d7738e306fb2ff183dbb50160fe748e30ce SHA1 5148ac74b00c20f00a81f0daf9c731ec4d3aca0f SHA256 ad5725933d20f31d004949cfe9a830a900bcae44250f0fa76fd7421dba07760b
+DIST ooo300-m15-l10n.tar.bz2 86657054 RMD160 87a829871ab9368505ac483e82073e4fbba8b2a9 SHA1 11022c973e64e6990b7ecb557a15be2a080dc143 SHA256 58079307830ae102620e4fc8f68a7a05fde235797492c01c83bc270d2f04a8d2
+DIST ooo300-m15-libs_core.tar.bz2 23883274 RMD160 69f0225ea56780d47a0fc433505fb12fe8e0e42e SHA1 6f0fe80ca20425d6cff0f6569e9f2e41dbdfa5e7 SHA256 59467eda53881f9c20d130a2427b93461e2e52728a36bd450c01d6807e6f193a
+DIST ooo300-m15-libs_extern.tar.bz2 39391451 RMD160 28ab7d4f2d2329f6f43925bbd3b1da140a1a6d0f SHA1 a9c5fc29b1ec0ac221d112de03cc323f3b5ef78a SHA256 66366ea3880da167c88b7099a830eff7cb10ad2dac5ef63c194576843ba28416
+DIST ooo300-m15-libs_extern_sys.tar.bz2 94862293 RMD160 16c48c4446d6184f2bace32d0d3b2628b57a2095 SHA1 726a17fc12a0e2db3c358c03dac2ec09eca3ac30 SHA256 6db267a78cd612bf3d37d2a3097e377e6037f3cf76bc12e4cd95f46cf86d42ba
+DIST ooo300-m15-libs_gui.tar.bz2 11160141 RMD160 b12b306cec681b45dad58fc18736ea4c121f570f SHA1 1ace043989402c86b24fb711cbed99bbb9c90819 SHA256 3a5d0c3d534759ac2382c7a406e58cb17b472d37022ec47612d722d3c376fc3b
+DIST ooo300-m15-postprocess.tar.bz2 17390 RMD160 21ce8499f095790c1610c29c6511521b244a5674 SHA1 85b333206f6806172d8b4e151aa4fe7c59dd3a42 SHA256 bf875949b13adce67ccb124376660d66b7a4fec41e8cf3b12cc89838e8d68da8
+DIST ooo300-m15-sdk.tar.bz2 1617868 RMD160 bb74e17a98f142356db13575b3ac2c7ba952aaba SHA1 62bc3e687ead6a1f0d054a61019bf008cd758272 SHA256 3ecb45883b194204c9d38591463e1868d07fb437926475f8336b318cd5dfdc60
+DIST ooo300-m15-testing.tar.bz2 1760934 RMD160 b9bb1230692e08506d135f0a0f1d06e284b9b66b SHA1 e0832a0c2d475b29a8bb074d6bc090ed925afd59 SHA256 c0c4340e141aa051d1e0833d3be18d6b479108db78587c8a2a2ad107edc32618
+DIST ooo300-m15-ure.tar.bz2 5268620 RMD160 4a8ff688ad078b9757211fe4e843e5eb95318798 SHA1 216699646df18181d1c6ba13e499407d504f510c SHA256 163e9c2c453679318af99c81ceb1537f71217ceef43012442b174e42c3543867
+DIST ooo300-m15-writer.tar.bz2 8371396 RMD160 4ffdf06acb098ed64c550e6a73df8d14bcac34f0 SHA1 0f0312063d6b683c2f9969c0857ea0ef1315247b SHA256 ee5176778f4d73f6f1f3480ffd43d81b6bf8a01f376e823a054fc36818a3568b
DIST ooo300-m9-artwork.tar.bz2 9692435 RMD160 706e568f4af998404d2c2ea2f643f90ccc800ed4 SHA1 92bea75c7f803b11a6aa043990cbc8560d16fcaf SHA256 d181de6723a3b09e9571a22a488fa6b50ea10f19bad7fa91f1ebc2d085a7be58
DIST ooo300-m9-base.tar.bz2 2937373 RMD160 b0c75fe7b45b56c4e3115112b0f0b59eadd0c136 SHA1 8402f672b817213f98f322ce7e622fbc52865224 SHA256 2c34b6c6229d7b8f87df50d3c4eb16cce1bdbf9af49fa31e688ba9c40e022889
DIST ooo300-m9-bootstrap.tar.bz2 7020977 RMD160 f5163c83e77c0113ee8d98f20939ab6c7f4f50a2 SHA1 c75b506063415a43c0fe347c900341fe73234a24 SHA256 3b8964bb5d8dd93a038def27a73504416c4320115b92359a0bcd61a53c15e043
@@ -36,5 +56,6 @@ DIST ooo300-m9-writer.tar.bz2 8364085 RMD160 92ac8eada6e2983e78d1ec02b48791f66a2
DIST scsolver.2008-10-30.tar.bz2 230572 RMD160 2176fd8207cce2e2db56c888849e766eedfb1a63 SHA1 7ad9c3396c3b1b9ac63274eb53818ba2d0a9f70c SHA256 865ac491bfbc7d4cc66b51fff78f3962a0a91efba1a8b5cc0bf5cf36be60e193
DIST unowinreg.dll 6144 RMD160 9e2a2789a96842a2aec747a62dee3db3e8370761 SHA1 712720da502d36175cd7aa05cb1862ee0330638c SHA256 f563e522922133db9340b0306711c2d8767cc3481dd9e7d9b0d059906d12653c
EBUILD openoffice-3.0.0.ebuild 12683 RMD160 367cd617d5c4d1fede5572aff9244e9ae3fc1e61 SHA1 78c6022c37b8d422ee8566bce7ba6a01ae35dde3 SHA256 d78ad3b55e805f65c9b8aacd6238bd1e96315247ae7d4ab702ae8f4c2479a31c
-MISC ChangeLog 92409 RMD160 c8362aa1d80cfce3461fae0699269205d969ee10 SHA1 0cdbef87dfd9e6420792dfecf96ef43d34456699 SHA256 eda6af3b44e2c4fc49f1f2b0ae6b44dceec9ff03b2375a2dea8d55c95c4f6359
+EBUILD openoffice-3.0.1_rc2.ebuild 12532 RMD160 9930e3bd3b0559a2fe712beb1e6cfe3fd72e6a33 SHA1 c7dcdf089ddefe5d6749925d686204ecdf64e9f5 SHA256 ef2285645a8936a837bfe622d9bb310731d77305473abb3e321c3a2095fd497a
+MISC ChangeLog 92611 RMD160 1ecab0e8dbd5f2226baefb4ac280205b8440b920 SHA1 f9b97102e8c06856f3706dc458231902a44893c3 SHA256 9941247b3b4720ae60f1cd1bd5283b595748582100c1b8484002fde5697448c2
MISC metadata.xml 704 RMD160 c65911c6a5496c96e51d40848179c3321fb5fafd SHA1 25c8229286d330cdf48dbca4847594359a35820f SHA256 c60a22487a895dd589228b2bd964c2481067bbdabd4d91c49bb38927482abd78
diff --git a/app-office/openoffice/files/gentoo-3.0.1_rc2.diff b/app-office/openoffice/files/gentoo-3.0.1_rc2.diff
new file mode 100644
index 000000000000..9617f4f35fa8
--- /dev/null
+++ b/app-office/openoffice/files/gentoo-3.0.1_rc2.diff
@@ -0,0 +1,24 @@
+--- bin/package-ooo
++++ bin/package-ooo
+@@ -33,6 +33,7 @@
+ {
+ cat <<EOT >$1
+ #!/bin/sh
++unset PYTHONPATH
+ $OOINSTBASE/program/soffice $2 "\$@"
+ EOT
+ chmod 755 $1
+--- patches/dev300/apply
++++ patches/dev300/apply
+@@ -1458,6 +1458,10 @@
+ [ GentooOnly ]
+ SectionOwner => aprosky
+
++# No java build
++nojavanostax.diff
++# Fix freezes with dict|hyph-stuff in one dir
++hunspell-one-dir-nocrash.diff
+ # Allow build to proceed with PaX enabled
+ gentoo-pax-fix.diff, aprosky
+ # support server-only versions of 64bit JDKs
+
diff --git a/app-office/openoffice/openoffice-3.0.1_rc2.ebuild b/app-office/openoffice/openoffice-3.0.1_rc2.ebuild
new file mode 100644
index 000000000000..e22ef7447190
--- /dev/null
+++ b/app-office/openoffice/openoffice-3.0.1_rc2.ebuild
@@ -0,0 +1,396 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/openoffice-3.0.1_rc2.ebuild,v 1.1 2009/01/18 19:12:40 suka Exp $
+
+WANT_AUTOCONF="2.5"
+WANT_AUTOMAKE="1.9"
+EAPI="1"
+
+inherit autotools check-reqs db-use eutils fdo-mime flag-o-matic java-pkg-opt-2 kde-functions mono multilib toolchain-funcs
+
+IUSE="binfilter cups dbus debug eds gnome gstreamer gtk kde ldap mono nsplugin odk opengl pam templates"
+
+MY_PV="3.0.1.0"
+PATCHLEVEL="OOO300"
+SRC="OOo_${PV}_src"
+MST="ooo300-m15"
+DEVPATH="http://download.go-oo.org/${PATCHLEVEL}/${MST}"
+S="${WORKDIR}/ooo"
+S_OLD="${WORKDIR}/ooo-build-${MY_PV}"
+CONFFILE="${S}/distro-configs/Gentoo.conf.in"
+DESCRIPTION="OpenOffice.org, a full office productivity suite."
+
+SRC_URI="${DEVPATH}-artwork.tar.bz2
+ ${DEVPATH}-base.tar.bz2
+ ${DEVPATH}-bootstrap.tar.bz2
+ ${DEVPATH}-calc.tar.bz2
+ ${DEVPATH}-components.tar.bz2
+ ${DEVPATH}-extensions.tar.bz2
+ ${DEVPATH}-filters.tar.bz2
+ ${DEVPATH}-impress.tar.bz2
+ ${DEVPATH}-l10n.tar.bz2
+ ${DEVPATH}-libs_core.tar.bz2
+ ${DEVPATH}-libs_extern.tar.bz2
+ ${DEVPATH}-libs_extern_sys.tar.bz2
+ ${DEVPATH}-libs_gui.tar.bz2
+ ${DEVPATH}-postprocess.tar.bz2
+ ${DEVPATH}-sdk.tar.bz2
+ ${DEVPATH}-testing.tar.bz2
+ ${DEVPATH}-ure.tar.bz2
+ ${DEVPATH}-writer.tar.bz2
+ templates? ( http://extensions.services.openoffice.org/files/273/0/Sun_ODF_Template_Pack_en-US.oxt
+ http://extensions.services.openoffice.org/files/295/1/Sun_ODF_Template_Pack_de.oxt
+ http://extensions.services.openoffice.org/files/299/0/Sun_ODF_Template_Pack_it.oxt
+ http://extensions.services.openoffice.org/files/297/0/Sun_ODF_Template_Pack_fr.oxt
+ http://extensions.services.openoffice.org/files/301/1/Sun_ODF_Template_Pack_es.oxt )
+ http://download.go-oo.org/${PATCHLEVEL}/ooo-build-${MY_PV}.tar.gz
+ odk? ( java? ( http://tools.openoffice.org/unowinreg_prebuild/680/unowinreg.dll ) )
+ http://download.go-oo.org/SRC680/extras-3.tar.bz2
+ http://download.go-oo.org/SRC680/biblio.tar.bz2
+ http://download.go-oo.org/SRC680/lp_solve_5.5.0.12_source.tar.gz
+ http://download.go-oo.org/DEV300/scsolver.2008-10-30.tar.bz2
+ http://download.go-oo.org/SRC680/libwps-0.1.2.tar.gz
+ http://download.go-oo.org/SRC680/libwpg-0.1.3.tar.gz"
+
+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"
+LANGS="${LANGS1} en en_US"
+
+for X in ${LANGS} ; do
+ IUSE="${IUSE} linguas_${X}"
+done
+
+HOMEPAGE="http://go-oo.org"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+
+COMMON_DEPEND="!app-office/openoffice-bin
+ x11-libs/libXaw
+ x11-libs/libXinerama
+ >=dev-lang/perl-5.0
+ dbus? ( >=dev-libs/dbus-glib-0.71 )
+ gnome? ( >=x11-libs/gtk+-2.10
+ >=gnome-base/gnome-vfs-2.6
+ >=gnome-base/gconf-2.0
+ >=x11-libs/cairo-1.0.2 )
+ gtk? ( >=x11-libs/gtk+-2.10
+ >=x11-libs/cairo-1.0.2 )
+ eds? ( >=gnome-extra/evolution-data-server-1.2 )
+ gstreamer? ( >=media-libs/gstreamer-0.10
+ >=media-libs/gst-plugins-base-0.10 )
+ kde? ( kde-base/kdelibs:3.5 )
+ java? ( >=dev-java/bsh-2.0_beta4
+ >=dev-db/hsqldb-1.8.0.9 )
+ mono? ( >=dev-lang/mono-1.2.3.1 )
+ nsplugin? ( || ( net-libs/xulrunner:1.8 net-libs/xulrunner:1.9 =www-client/seamonkey-1* )
+ >=dev-libs/nspr-4.6.6
+ >=dev-libs/nss-3.11-r1 )
+ opengl? ( virtual/opengl
+ virtual/glu )
+ >=net-misc/neon-0.24.7
+ >=dev-libs/openssl-0.9.8g
+ >=media-libs/freetype-2.1.10-r2
+ >=media-libs/fontconfig-2.3.0
+ cups? ( net-print/cups )
+ media-libs/jpeg
+ media-libs/libpng
+ app-arch/zip
+ app-arch/unzip
+ >=app-text/hunspell-1.1.4-r1
+ dev-libs/expat
+ >=dev-libs/icu-3.8
+ >=sys-libs/db-4.3
+ >=app-text/libwpd-0.8.8
+ >=media-libs/vigra-1.4
+ >=app-text/poppler-0.8.0"
+
+RDEPEND="java? ( >=virtual/jre-1.5 )
+ ${COMMON_DEPEND}"
+
+DEPEND="${COMMON_DEPEND}
+ x11-libs/libXrender
+ x11-libs/libXtst
+ x11-proto/printproto
+ x11-proto/xextproto
+ x11-proto/xproto
+ x11-proto/xineramaproto
+ >=sys-apps/findutils-4.1.20-r1
+ dev-perl/Archive-Zip
+ virtual/perl-Compress-Zlib
+ >=virtual/perl-Compress-Raw-Zlib-2.002
+ virtual/perl-IO-Compress-Base
+ dev-util/pkgconfig
+ dev-util/intltool
+ >=dev-libs/boost-1.33.1
+ sys-devel/flex
+ sys-devel/bison
+ dev-libs/libxslt
+ >=dev-libs/libxml2-2.0
+ >=dev-util/gperf-3
+ >=net-misc/curl-7.12
+ sys-libs/zlib
+ sys-apps/coreutils
+ pam? ( sys-libs/pam )
+ >=dev-lang/python-2.3.4
+ java? ( || ( =virtual/jdk-1.6* =virtual/jdk-1.5* )
+ >=dev-java/ant-core-1.7 )
+ ldap? ( net-nds/openldap )"
+
+PROVIDE="virtual/ooo"
+
+pkg_setup() {
+
+ ewarn
+ ewarn " It is important to note that OpenOffice.org is a very fragile "
+ ewarn " build when it comes to CFLAGS. A number of flags have already "
+ ewarn " been filtered out. If you experience difficulty merging this "
+ ewarn " package and use agressive CFLAGS, lower the CFLAGS and try to "
+ ewarn " merge again. Also note that building OOo takes a lot of time and "
+ ewarn " hardware ressources: 4-6 GB free diskspace and 256 MB RAM are "
+ ewarn " the minimum requirements. If you have less, use openoffice-bin "
+ ewarn " instead. "
+ ewarn
+ ewarn " Also if you experience a build break, please make sure to retry "
+ ewarn " with MAKEOPTS="-j1" before filing a bug. "
+ ewarn
+
+ # Check if we have enough RAM and free diskspace to build this beast
+ CHECKREQS_MEMORY="512"
+ use debug && CHECKREQS_DISK_BUILD="8192" || CHECKREQS_DISK_BUILD="5120"
+ check_reqs
+
+ strip-linguas ${LANGS}
+
+ if [[ -z "${LINGUAS}" ]]; then
+ export LINGUAS_OOO="en-US"
+ ewarn
+ ewarn " To get a localized build, set the according LINGUAS variable(s). "
+ ewarn
+ else
+ export LINGUAS_OOO=`echo ${LINGUAS} | \
+ sed -e 's/\ben\b/en_US/g' -e 's/_/-/g'`
+ fi
+
+ if use !java; then
+ ewarn " You are building with java-support disabled, this results in some "
+ ewarn " of the OpenOffice.org functionality being disabled. "
+ ewarn " If something you need does not work for you, rebuild with "
+ ewarn " java in your USE-flags. "
+ ewarn
+ fi
+
+ if use !gtk && use !gnome; then
+ ewarn " If you want the OpenOffice.org systray quickstarter to work "
+ ewarn " activate either the 'gtk' or 'gnome' use flags. "
+ ewarn
+ fi
+
+ if is-flagq -ffast-math ; then
+ eerror " You are using -ffast-math, which is known to cause problems. "
+ eerror " Please remove it from your CFLAGS, using this globally causes "
+ eerror " all sorts of problems. "
+ eerror " After that you will also have to - at least - rebuild python otherwise "
+ eerror " the openoffice build will break. "
+ die
+ fi
+
+ if use pam; then
+ if ! built_with_use sys-apps/shadow pam; then
+ eerror " shadow needs to be built with pam-support. "
+ eerror " rebuild it accordingly or remove the pam use-flag "
+ die
+ fi
+ fi
+
+ if use nsplugin; then
+ if pkg-config --exists libxul; then
+ BRWS="libxul"
+ elif pkg-config --exists xulrunner-xpcom; then
+ BRWS="xulrunner"
+ elif pkg-config --exists seamonkey-xpcom; then
+ BRWS="seamonkey"
+ else
+ die "USE flag [nsplugin] set but no installed xulrunner or seamonkey found!"
+ fi
+ fi
+
+ # Check python
+ if ! built_with_use dev-lang/python threads
+ then
+ eerror "Python needs to be built with threads."
+ die
+ fi
+
+ java-pkg-opt-2_pkg_setup
+
+ # sys-libs/db version used
+ local db_ver="$(db_findver '>=sys-libs/db-4.3')"
+
+}
+
+src_unpack() {
+
+ unpack ooo-build-${MY_PV}.tar.gz
+
+ # Hackish workaround for overlong path problem, see bug #130837
+ mv "${S_OLD}" "${S}" || die
+
+ #Some fixes for our patchset
+ cd "${S}"
+ epatch "${FILESDIR}/gentoo-${PV}.diff"
+ epatch "${FILESDIR}/ooo-env_log.diff"
+ cp -f "${FILESDIR}/nojavanostax.diff" "${S}/patches/dev300" || die
+ cp -f "${FILESDIR}/hunspell-one-dir-nocrash.diff" "${S}/patches/dev300" || die
+
+ #Use flag checks
+ if use java ; then
+ echo "--with-ant-home=${ANT_HOME}" >> ${CONFFILE}
+ echo "--with-jdk-home=$(java-config --jdk-home 2>/dev/null)" >> ${CONFFILE}
+ echo "--with-java-target-version=$(java-pkg_get-target)" >> ${CONFFILE}
+ echo "--with-system-beanshell" >> ${CONFFILE}
+ echo "--with-system-hsqldb" >> ${CONFFILE}
+ echo "--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" >> ${CONFFILE}
+ echo "--with-hsqldb-jar=$(java-pkg_getjar hsqldb hsqldb.jar)" >> ${CONFFILE}
+ fi
+
+ if use nsplugin ; then
+ echo "--enable-mozilla" >> ${CONFFILE}
+ echo "--with-system-mozilla=${BRWS}" >> ${CONFFILE}
+ else
+ echo "--disable-mozilla" >> ${CONFFILE}
+ echo "--without-system-mozilla" >> ${CONFFILE}
+ fi
+
+ echo "`use_enable binfilter`" >> ${CONFFILE}
+ echo "`use_enable cups`" >> ${CONFFILE}
+ echo "`use_enable dbus`" >> ${CONFFILE}
+ echo "`use_enable eds evolution2`" >> ${CONFFILE}
+ echo "`use_enable gnome gnome-vfs`" >> ${CONFFILE}
+ echo "`use_enable gnome lockdown`" >> ${CONFFILE}
+ echo "`use_enable gstreamer`" >> ${CONFFILE}
+ echo "`use_enable gtk systray`" >> ${CONFFILE}
+ echo "`use_enable ldap`" >> ${CONFFILE}
+ echo "`use_enable opengl`" >> ${CONFFILE}
+ echo "`use_with ldap openldap`" >> ${CONFFILE}
+ echo "`use_enable debug crashdump`" >> ${CONFFILE}
+ echo "`use_enable debug strip-solver`" >> ${CONFFILE}
+
+ # Extension stuff
+ echo "--with-extension-integration" >> ${CONFFILE}
+ echo "--enable-minimizer" >> ${CONFFILE}
+ echo "--enable-pdfimport" >> ${CONFFILE}
+ echo "--enable-presenter-console" >> ${CONFFILE}
+
+ # Use splash screen without Sun logo
+ echo "--with-intro-bitmaps=\\\"${S}/build/${MST}/ooo_custom_images/nologo/introabout/intro.bmp\\\"" >> ${CONFFILE}
+
+ eautoreconf
+
+}
+
+src_compile() {
+
+ # Use multiprocessing by default now, it gets tested by upstream
+ export JOBS=`echo "${MAKEOPTS}" | sed -e "s/.*-j\([0-9]\+\).*/\1/"`
+
+ # Compile problems with these ...
+ filter-flags "-funroll-loops"
+ filter-flags "-fprefetch-loop-arrays"
+ filter-flags "-fno-default-inline"
+ filter-flags "-fstack-protector"
+ filter-flags "-fstack-protector-all"
+ filter-flags "-ftracer"
+ filter-flags "-fforce-addr"
+
+ filter-flags "-O[s2-9]"
+
+ if [[ $(gcc-major-version) -lt 4 ]]; then
+ replace-flags "-fomit-frame-pointer" "-momit-leaf-frame-pointer"
+ fi
+
+ # Build with NVidia cards breaks otherwise
+ use opengl && append-flags "-DGL_GLEXT_PROTOTYPES"
+
+ # Now for our optimization flags ...
+ export ARCH_FLAGS="${CXXFLAGS}"
+ use debug || export LINKFLAGSOPTIMIZE="${LDFLAGS}"
+
+ # Make sure gnome-users get gtk-support
+ local GTKFLAG="--disable-gtk --disable-cairo --without-system-cairo"
+ ( use gtk || use gnome ) && GTKFLAG="--enable-gtk --enable-cairo --with-system-cairo"
+
+ cd "${S}"
+ ./configure \
+ --with-distro="Gentoo" \
+ --with-arch="${ARCH}" \
+ --with-srcdir="${DISTDIR}" \
+ --with-lang="${LINGUAS_OOO}" \
+ --with-num-cpus="${JOBS}" \
+ --without-binsuffix \
+ --with-installed-ooo-dirname="openoffice" \
+ --with-tag="${MST}" \
+ ${GTKFLAG} \
+ `use_enable mono` \
+ `use_enable kde` \
+ `use_enable !debug strip` \
+ `use_enable odk` \
+ `use_enable pam` \
+ `use_with java` \
+ `use_with templates sun-templates` \
+ --disable-access \
+ --disable-post-install-scripts \
+ --enable-extensions \
+ --with-system-libwpd \
+ --mandir=/usr/share/man \
+ --libdir=/usr/$(get_libdir) \
+ || die "Configuration failed!"
+
+ einfo "Building OpenOffice.org..."
+ use kde && set-kdedir 3
+ make || die "Build failed"
+
+}
+
+src_install() {
+
+ export PYTHONPATH=""
+
+ einfo "Preparing Installation"
+ make DESTDIR="${D}" install || die "Installation failed!"
+
+ # Fix the permissions for security reasons
+# chown -RP root:0 "${D}"
+
+ # record java libraries
+ use java && java-pkg_regjar "${D}"/usr/$(get_libdir)/openoffice/basis3.0/program/classes/*.jar
+
+}
+
+pkg_postinst() {
+
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+
+ [[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/basis3.0/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/basis3.0/program/soffice.bin
+
+ # Add available & useful jars to openoffice classpath
+ use java && /usr/$(get_libdir)/openoffice/basis3.0/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null
+
+ elog
+ elog " Spell checking is provided through our own myspell-ebuilds, "
+ elog " if you want to use it, please install the correct myspell package "
+ elog " according to your language needs. "
+ elog
+
+ elog " Some aditional functionality can be installed via Extension Manager: "
+ elog " *) PDF Import "
+ elog " *) Presentation Console "
+ elog " *) Presentation Minimizer "
+ elog
+ elog " Please use the packages provided in "
+ elog " /usr/$(get_libdir)/openoffice/share/extension/install/ "
+ elog " instead of those from the SUN extension site. "
+ elog
+
+}