summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Proschofsky <suka@gentoo.org>2009-04-08 07:23:46 +0000
committerAndreas Proschofsky <suka@gentoo.org>2009-04-08 07:23:46 +0000
commit08ae6364d3702948385d955072de4b58bf6f3da5 (patch)
treec373b3c07bfa0b1445f65331447d6511117ecadc /app-office
parentI really should get a cup of coffee before doing such stuff in the (diff)
downloadhistorical-08ae6364d3702948385d955072de4b58bf6f3da5.tar.gz
historical-08ae6364d3702948385d955072de4b58bf6f3da5.tar.bz2
historical-08ae6364d3702948385d955072de4b58bf6f3da5.zip
Beta 3 for OpenOffice.org 3.1
Package-Manager: portage-2.1.6.11/cvs/Linux i686
Diffstat (limited to 'app-office')
-rw-r--r--app-office/openoffice/ChangeLog8
-rw-r--r--app-office/openoffice/Manifest24
-rw-r--r--app-office/openoffice/files/gentoo-3.1.0_beta3.diff41
-rw-r--r--app-office/openoffice/openoffice-3.1.0_beta3.ebuild383
4 files changed, 454 insertions, 2 deletions
diff --git a/app-office/openoffice/ChangeLog b/app-office/openoffice/ChangeLog
index 5cd72765c0ec..027517c4d86f 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.451 2009/03/30 14:35:06 loki_val Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/openoffice/ChangeLog,v 1.452 2009/04/08 07:23:46 suka Exp $
+
+*openoffice-3.1.0_beta3 (08 Apr 2009)
+
+ 08 Apr 2009; Andreas Proschofsky <suka@gentoo.org>
+ +files/gentoo-3.1.0_beta3.diff, +openoffice-3.1.0_beta3.ebuild:
+ Beta3 release for upcoming OpenOffice 3.1.0
30 Mar 2009; Peter Alfredsen <loki_val@gentoo.org>
openoffice-3.0.0.ebuild, openoffice-3.0.1.ebuild:
diff --git a/app-office/openoffice/Manifest b/app-office/openoffice/Manifest
index b9d309eb8cd0..1a1e4b8be7a1 100644
--- a/app-office/openoffice/Manifest
+++ b/app-office/openoffice/Manifest
@@ -2,6 +2,7 @@ AUX buildfix-mono-2-2.diff 523 RMD160 993dee1c2ab796980e7f04f8b9c0aeefc19743c7 S
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.diff 711 RMD160 93f0b14c153cd4c5e3b6b3903512391d5067832a SHA1 ac01a91f8d78078956255da496d727213b361b65 SHA256 e9cc6fa5b0aad6c278765840e8c4ddc68bd9cff95d2e6cb4cdb677ba49cf96d7
+AUX gentoo-3.1.0_beta3.diff 808 RMD160 cf8f172b73f9f7d3a09a8e9edb4686d068476bc0 SHA1 a52a336a41dbefe6eae0e3abfd84920b34ce957c SHA256 24fbe20bc106d5fb5c2f72a41d884b92389f08f4b8e8e9d61a11f7466682cd8e
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
@@ -18,6 +19,7 @@ DIST libwps-0.1.2.tar.gz 413360 RMD160 a3f60fed70ab0c4f34091c10f4eb4a421cb87d44
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.3.tar.gz 10813768 RMD160 dac17695f250bb0db25d379c6df28672483d9664 SHA1 d4aea26fd5b931ab24b2c293495b5989da7e5d30 SHA256 518e19edee0de1f8f3537aa547ce80bdfec5b44834840586bfc05f3038caebf3
+DIST ooo-build-3.0.99.3.tar.gz 11469707 RMD160 6cdf960f49c64b20c7ddc384638104dfcb8a05e7 SHA1 38b9cea7c99d298ac2b0acfadfe2225af13fea34 SHA256 8f4de2c37d18bc49a3f5b5eea46cc96b3fcbf01066745fd99e86c152d7a4eb80
DIST ooo300-m15-artwork.tar.bz2 9670828 RMD160 e9e98bb6ba83432b4a4b6c24b71d38feac6fdcd9 SHA1 d96a5502395bae32e021670fb9c22b49123d38d7 SHA256 38d58e5dc128f27d52bb4b34e80c1526bff11b9ef6513e75385f819f66592e6b
DIST ooo300-m15-base.tar.bz2 2939331 RMD160 b22921f5dcdb0e70406b5bbcda720e5c9eec7d4e SHA1 7e195c0294a0cedcb08453cd76ae6d6522485b95 SHA256 fa02bba12b7353e9d98f9a3ed7a4e6cb3496bfd97b4a7fc969dcd108b0369b4d
DIST ooo300-m15-bootstrap.tar.bz2 7036501 RMD160 450483472b73a379e619927823d0c465c129511e SHA1 6566c501cdfa8a2b33e66b7628237464c8de13cb SHA256 60adc9a46a69138ff0b85a99ea34f4da137339f37323d376b63fd5a7d8e6f5dd
@@ -54,9 +56,29 @@ DIST ooo300-m9-sdk.tar.bz2 1612540 RMD160 92a29fdcc10cc6962f7814cc9f7aa58f725478
DIST ooo300-m9-testing.tar.bz2 1770240 RMD160 56c07b529fed1e7b661fb95b21f26312588cc61e SHA1 a66f762a6b9b24b6c202b0fdcd784d8c4b4beb58 SHA256 aeed10dfc5d62772a2becea749c46a1dccf54f5262af3174b29ee469abffec10
DIST ooo300-m9-ure.tar.bz2 5263384 RMD160 3a43b0d2b5c79ec54379d4aeac50eef2b2436d71 SHA1 79c438126fb7ec9676ddc45ec079905128db9a34 SHA256 65e4b573e5df271e255fb0073ef9cfa52c107bb6addf2987034dd2b1ed8e6b50
DIST ooo300-m9-writer.tar.bz2 8364085 RMD160 92ac8eada6e2983e78d1ec02b48791f66a249734 SHA1 0b23415f1173a77fd1598a275f40fecdf152a1ce SHA256 7910b0a2d28945183c27b951952da1d2475d7c121d3f2643c7d26ff62ac0cfe1
+DIST ooo310-m7-artwork.tar.bz2 9651514 RMD160 3585bc1098624e86aca56081ae72ce5b297529bd SHA1 63893fb02c529c87ae6cd1ab507be1688ba1c799 SHA256 c8d89492583ae995801dbe0a72e1ee40bda499e9b35737d1b2abf8ac5ce11216
+DIST ooo310-m7-base.tar.bz2 3273402 RMD160 2933c00953aa0b24042fc8f5cca5f6555066b527 SHA1 a6abe9f9e92a38bc0ce4fe641b0a30e4c983d616 SHA256 3742eb79daab86f78f7588ea56103f7e76e274a43b5a43d82f8019c183c82cf3
+DIST ooo310-m7-bootstrap.tar.bz2 7241043 RMD160 ea9d38d6e144d94ebf32875c37575674626e5cb2 SHA1 ae79c8b5d935b1e2df9eb7069d66945b74bdf51b SHA256 3c5a22d621ea3e301e9f257235298c762b4a07909e9e81b045426d9169a3dc92
+DIST ooo310-m7-calc.tar.bz2 9638942 RMD160 eea370d6ae795f71518e93ebc54554bc8d46c0d9 SHA1 25d31a6f27770d0792fdd394efee9a45e3221cd3 SHA256 29aab0f14701f0c27ae10d55e946e06d6ae26661750efbd983fe8fd69ccb297e
+DIST ooo310-m7-components.tar.bz2 5949057 RMD160 08fa7bd9354cbdd2bd71ba1c384b2e464d2feb73 SHA1 5334819083bdaecc16550f66e6ff56b1026bbab9 SHA256 80cd53341b2799776b93d3fc42484738cf0b3ba11b0df50f254a90013c308473
+DIST ooo310-m7-extensions.tar.bz2 14853003 RMD160 5982874515f8341ce6e5a5960052531f1b9c98b2 SHA1 1aa8b1befff25a3ea48fe4ee952a3061c1f5bcdf SHA256 4eb619eae7711efa1ad7949d07c42a7db149b9f72ed9ead0c2ac00e17f645429
+DIST ooo310-m7-extras.tar.bz2 46140551 RMD160 84e413628271587e8e4695fbbe5c8ed587bede96 SHA1 ed2104976a2b49639520bedba4232f55f554de42 SHA256 ac926729d3953fe54eb240e6dafb98513dcd54de88b0697814bb5c721e2bd45b
+DIST ooo310-m7-filters.tar.bz2 13028057 RMD160 4f0128e108c345fd728304e2e01f3bc473892453 SHA1 a325d52e85040f072270042722bc5caadc0e60ea SHA256 9e61312111d7e9671bd03aaa0c06b4c0b1b3c7cfc85fa6bc1f4ffa571110afe2
+DIST ooo310-m7-help.tar.bz2 44856739 RMD160 c4fc94339042e152229cd4cfd1987284863c7262 SHA1 97343b0a869f8b6e3f54a72867e4a938550afec8 SHA256 daea5f74bedae94731d26b8eae490ab729e497e995897fabd91801168a47b169
+DIST ooo310-m7-impress.tar.bz2 3541634 RMD160 dea9e00b1c122b1e99fd93a93289ba56042a06db SHA1 381185ebe9431ffd6bab4a1ece36afcc41a0eac6 SHA256 2eec32d864033196aad684f1a01fa2430415a8e1ad12d8ca272a4e10fd784dd1
+DIST ooo310-m7-libs-core.tar.bz2 27372834 RMD160 ca9e2b572845dc3d865bd8d11ad35b7472133bc7 SHA1 875954e091656d3630d8f118bf09de8a2006308c SHA256 819ab8c3263c6a355a1f845a72091c9fd4dcde40ce67d58aab667294215c48df
+DIST ooo310-m7-libs-extern-sys.tar.bz2 99927412 RMD160 5ac64200b92f3d1157b0ab693e182ec5536cced2 SHA1 1d54b52f7710e8f2e7b6f5f490ae2c606e9e1fe3 SHA256 06d2399355d0df991cc123e9fd0b1b6938c86c249381da3316c5ed48412c07c5
+DIST ooo310-m7-libs-extern.tar.bz2 39418557 RMD160 4cf9f65eca79f8426a96f4573648ff203262bb74 SHA1 acc4aa246f35938f14232985271a7f4a91ab98ba SHA256 879f4834362825c1efcc89e6a81156eab5a567223d421518e8988ed8517d678e
+DIST ooo310-m7-libs-gui.tar.bz2 11397422 RMD160 22e05013b48d35cc01d8347228314295abb0449d SHA1 443d75d3fa7518ccb37492a87488e4858f650f20 SHA256 bff87490a14cd060ddfea3628a7a276d81688a2ec11315ef6211f50c429e05ed
+DIST ooo310-m7-postprocess.tar.bz2 19441 RMD160 c6f05ceba110535cf6959c1567dfd37675bf9a52 SHA1 f380874bb24cfd7173014a20dd3bd98b37dec18c SHA256 a685a7ff4b90f3354a6dc37cbc6ff06b776b2028eeaaa01abeabd0a69922f466
+DIST ooo310-m7-sdk.tar.bz2 1559117 RMD160 702e2a83dd09881e99dd96677d42f6c8b131d657 SHA1 15dc1d1519af137558d35268d56810b3531e1690 SHA256 457f36a07ab595e444a400b4dee76bf50e187d60ec5bc6c1316ddf6b20497654
+DIST ooo310-m7-testing.tar.bz2 51185121 RMD160 d90d59f2be94099f4d1034c6b910928fd63b5cb0 SHA1 20291005640d3725f933442b1e6083be8f6ea423 SHA256 510870f374356eca6efec90f3a9f8337030a1c2122ac1e8fc6a8391eabbf938f
+DIST ooo310-m7-ure.tar.bz2 5125286 RMD160 7327ef48f5e9156238c80c0adc33ddcca8df4986 SHA1 50c2b97cade9d8d670c628322412866cee8ab3ef SHA256 3f61d12ed39473ff4c5766bf26b9ee073189de96d21446b89822850a4812f8cf
+DIST ooo310-m7-writer.tar.bz2 8962996 RMD160 f6aff1e5f200284f5c6baebd55d3fa0d545c6eaa SHA1 eb72dd51a588e9286589f1ddd74a3c24744a8aa3 SHA256 3159cddd06aaae97d35b087392b146b707bcda822c11e194259bd4288a3bf2b6
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 12686 RMD160 7d157b24b8cc9321fa73406bd3980c55ab33b057 SHA1 181b0c7f5bad3ee3337ae76511c1a9802408c2d1 SHA256 b0ba17ff2bf26d4f66a07624bab0b7e727b2d3937c427c571e78a99281999945
EBUILD openoffice-3.0.1.ebuild 12208 RMD160 e332f30c297d6d7df8cce58654005bf971d510b1 SHA1 353de2e4ca81d5b9bf5057c0f4e1b34f31758a01 SHA256 bd441925e8749c2b828fde5cd0c2e25c509b80e4c1eb3670a80c397be800afce
-MISC ChangeLog 94087 RMD160 af61346aa80d3b4307d6e60a6ab89ef38481c535 SHA1 b9538286e74de903c69bd839f3f03951cbe651d3 SHA256 fb57f047caabfd76d34e6f2021e153af9a6bdfb18215e3e5251b96b222acda94
+EBUILD openoffice-3.1.0_beta3.ebuild 12151 RMD160 9f926f16d1ba9a0ac6949996ea6af63b53a14903 SHA1 ec285e59310e6ebf1a9bcd901419fc760e2f73e5 SHA256 3d90572f3df6dc5f0ca800d2a0b434e24780dcdab7424bacbc1846a31134ae58
+MISC ChangeLog 94288 RMD160 6266f7b2322c87d1a406e9b1fc7e3de2393f9a43 SHA1 a30cd2c08888ca0315ea59873d8f286da73999f4 SHA256 e631e81e5f347467922e60df4b89e9ae12e8541367734187348a279a3e1d97b5
MISC metadata.xml 704 RMD160 c65911c6a5496c96e51d40848179c3321fb5fafd SHA1 25c8229286d330cdf48dbca4847594359a35820f SHA256 c60a22487a895dd589228b2bd964c2481067bbdabd4d91c49bb38927482abd78
diff --git a/app-office/openoffice/files/gentoo-3.1.0_beta3.diff b/app-office/openoffice/files/gentoo-3.1.0_beta3.diff
new file mode 100644
index 000000000000..758ceb1edf75
--- /dev/null
+++ b/app-office/openoffice/files/gentoo-3.1.0_beta3.diff
@@ -0,0 +1,41 @@
+--- 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
+@@ -1439,8 +1439,6 @@
+
+ # jemalloc, FreeBSD 7 allocator
+ jemalloc.diff
+-# Sandbox problem with wrong path
+-gentoo-sandbox.diff
+
+ [ GentooOnly ]
+ SectionOwner => aprosky
+@@ -1459,6 +1457,8 @@
+ config_office-XINC-XLIB-defaults.diff, i#65976
+ # linux-headers-2.6.22 issue?!
+ linux-headers.diff
++# Sandbox problem with wrong path
++gentoo-sandbox.diff
+
+ [ DebianBaseOnly ]
+ SectionOwner => rengelha
+@@ -1527,6 +1527,9 @@
+ mono-climaker-config.diff
+ mono-climaker-bridgetest.diff
+
++# Buildfix with Mono 2.2, aprosky
++buildfix-mono-2-2.diff
++
+ [ VBAObjects ]
+ SectionOwner => noelpwer
+
+
diff --git a/app-office/openoffice/openoffice-3.1.0_beta3.ebuild b/app-office/openoffice/openoffice-3.1.0_beta3.ebuild
new file mode 100644
index 000000000000..cc5f6884d37c
--- /dev/null
+++ b/app-office/openoffice/openoffice-3.1.0_beta3.ebuild
@@ -0,0 +1,383 @@
+# 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.1.0_beta3.ebuild,v 1.1 2009/04/08 07:23:46 suka Exp $
+
+WANT_AUTOMAKE="1.9"
+EAPI="2"
+
+inherit 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.99.3
+PATCHLEVEL=OOO310
+SRC=OOo_${PV}_src
+MST=ooo310-m7
+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
+BASIS=basis3.1
+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}-extras.tar.bz2
+ ${DEVPATH}-filters.tar.bz2
+ ${DEVPATH}-help.tar.bz2
+ ${DEVPATH}-impress.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 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"
+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
+ >=virtual/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
+ sys-apps/shadow[pam] )
+ >=dev-lang/python-2.3.4[threads]
+ 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="6144"
+ 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;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 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
+
+ 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}/buildfix-mono-2-2.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}
+
+ echo "--without-writer2latex" >> ${CONFFILE}
+
+ # Use splash screen without Sun logo
+ echo "--with-intro-bitmaps=\\\"${S}/build/${MST}/ooo_custom_images/nologo/introabout/intro.bmp\\\"" >> ${CONFFILE}
+
+}
+
+src_configure() {
+
+ # 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!"
+
+}
+
+src_compile() {
+
+ 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/${BASIS}/program/classes/*.jar
+
+}
+
+pkg_postinst() {
+
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+
+ [[ -x /sbin/chpax ]] && [[ -e /usr/$(get_libdir)/openoffice/${BASIS}/program/soffice.bin ]] && chpax -zm /usr/$(get_libdir)/openoffice/${BASIS}/program/soffice.bin
+
+ # Add available & useful jars to openoffice classpath
+ use java && /usr/$(get_libdir)/openoffice/${BASIS}/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
+
+}