add ebuilds

git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2464 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
geos_one
2010-10-04 19:24:16 +00:00
parent 53d472c69f
commit 677e030bbd
69 changed files with 3569 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
AUX boost-undefined-references.diff 409 RMD160 0a2ef66416f3b5f27f5acef23da21e77c619d81b SHA1 bdceb87ef22cb795836dd53d5946e4f7e26cd35a SHA256 f280a5bfe4206465cb00ebd97abbb3dff42136b6d4e59265f42153c22bf5fa07
AUX gcc45-buildfix.diff 840 RMD160 fcb6c08ee67b61f60641d641daa329d5fd17772b SHA1 6344952a2d0d9690d4f864b3273713f95068eabd SHA256 2d5b95e94f9b9e95c97876db669aabe523d01194c9f7ce2f0a3ccb9bde9221bc
AUX gentoo-3.2.99.1.diff 1599 RMD160 0d839728f2a9c28a3e7adc22b27b7f48b661f3a4 SHA1 734ad3392effaaf4007f88fc110037b41d0484bc SHA256 f471da49a10042fc9066a1cd8b0550983c1446a9304b8acbeef9a3ab8393ac1e
AUX gentoo-pythonpath.diff 173 RMD160 dacec2c40bd4bd8e2c07fb849afb6f3fe3643371 SHA1 1430513326652f7b09eb04ee8f420532ac60b5c2 SHA256 de9316222af0f197a11041ba1105bfd070ba31cbcc1a2a212641d911b728ed5a
AUX neon-remove-SSPI-support.diff 1091 RMD160 5dee3324b22b9c8d9f14b0e7998695a212c046a8 SHA1 e8541e791a03836d986d8e0db0d488570bb6ab36 SHA256 90d88d2fb96a0e82afe6b55e77c478ee9b1925e14dfbc998c2af0ef05edfd508
AUX npwrap-fix-nogtk.diff 382 RMD160 557fe38a19d9a0e4505af34bed4033884f1075ab SHA1 209f73c706adabb1e2b2b3e4bc706f9afbbee172 SHA256 ad64cea66e4e4d9b351a44b3ed2774484baaaebe5e37ebea3121f4a0981d231f
AUX ooo-env_log.diff 617 RMD160 480edf4962e8d55f82a4103297c3cc10a1bd4f3e SHA1 b655566079c408e72f1046262fe269ba8bf66040 SHA256 efb99da32fcc2029418b4c4c080ccc97cb622fcc24a6a6dd69d8cc5508c54bf1
AUX qt-use-native-backend.diff 391 RMD160 602d444e9768c1bb0a8f2ad36567c8ab571bc569 SHA1 148a3431222e7405eb16c42330da7f0a2f01e1eb SHA256 f3ba5e9390f47d42acb955c04f5ef62a5b62a5776bd9d5d3226d5034fafe6be9
DIST Sun_ODF_Template_Pack_de.oxt 4953135 RMD160 2d7ef049b2ac625ce9d952d097ed09baab0cc510 SHA1 9ae5905490a662c25cd3014023eec271c0b0d46e SHA256 7b63da46eb4f168a3406b38643ad2c29559f63882112037eea958819b380a32a
DIST Sun_ODF_Template_Pack_en-US.oxt 4997184 RMD160 f7040f83aeb60355d80c42434e60d236a8875753 SHA1 58c98de9c629aae878a58c2775b8546aa78fb04c SHA256 ba443e3dc988d64e239865a0a7e11b62125212a1049b7a5d866955b235d7f195
DIST Sun_ODF_Template_Pack_es.oxt 4972619 RMD160 3b8bf592b34256969421472b6ca492479d10d145 SHA1 2b33b91d536c39dba2ec5504f68d72c001712782 SHA256 0a00c795f4af10919d981e7409895198c9f09d2ab05f9e578a1e8428071f5bc3
DIST Sun_ODF_Template_Pack_fr.oxt 4970438 RMD160 44de71cb028dde89836bfd1167b084dea54922e5 SHA1 3908eee06c17154c2cff6c9f175a7a8dad258e47 SHA256 4c8b739255122c989f00b3b706d99b93fa1c4cf428d61fd550994093aaca8fb5
DIST Sun_ODF_Template_Pack_hu.oxt 6144654 RMD160 f9bf3fc5a078f4cd357f766c3e750dcf05407a2d SHA1 42c9235d7f876645ea6553770e7572c1b0b8609a SHA256 4b069e14609440d1743f4f898040aa6ffa12699ce1882a3f98e984facc1835d8
DIST Sun_ODF_Template_Pack_it.oxt 4960369 RMD160 9d8881f645f409599b7a5e14cb4b6842e5883383 SHA1 85c7670e182d5ed5aeb2d9bfe20d161c4ac824c8 SHA256 6e87462d76954698ffcbcf4145fd13ab9c41520026160363fd6e97f7cad3ae05
DIST biblio.tar.bz2 6000 RMD160 d6d74ed50fd12ab1b7363e1611aa5bae5a8b19d6 SHA1 5a12014afa75ecb51b9688497450115d64f1c167 SHA256 c0410a80028c8c0a6c28f4727e89b632875a128c9fccc17102f18773f0ea620b
DIST extras-3.tar.bz2 130640 RMD160 c6b6efb20cbec79b48bd21046f93959367fe1bd4 SHA1 fb7d85a9827cd1280766db2641fb1896bd5d1c7b SHA256 6cf85181c21dadda4fa4d8fbc227012d63a2558642195a46b0ae2ab144facce8
DIST libreoffice-artwork-3.2.99.1.tar.bz2 22364562 RMD160 715ac5bdc2fb61f4e3f26bf53a14dcd4d15bdf36 SHA1 42066401ccea56752bc2701fa5166ee33334775e SHA256 ee498f2c4ba06047885000cc0d0924d202be9d3393afe39bb9eaba6eeeab5266
DIST libreoffice-base-3.2.99.1.tar.bz2 2097276 RMD160 bedab97c61c83e9b41948c32be7da6159497c8cd SHA1 aa78a8bf0d44681327ec56eb95f47d09bf10d5cd SHA256 fb32937ba309a311e29c146253a5f479426cffc35c838f9264d5c21f6f76e25a
DIST libreoffice-bootstrap-3.2.99.1.tar.bz2 2679321 RMD160 e7dab3b7862d4b5df1c806809fa79e3d3ae01532 SHA1 0bb33f173f26834a56fc4609be04b561008657cc SHA256 cab47dece0d32599fcbe09063ad55b4527790c2a28825c246b3e4b76c18f03cf
DIST libreoffice-build-3.2.99.1.tar.gz 13215683 RMD160 13c3253aa9cce0eb33dc46a5acdcc3e63778ab9f SHA1 9c22674f72b76c93cf489505a9fdf9138da0969a SHA256 cd1340f98e099a944ba99a6eb8baa4819a4fa5b45c9b9f59fff1f9746197055d
DIST libreoffice-calc-3.2.99.1.tar.bz2 9386130 RMD160 f94382cd1a7fbcb68683041accd004c0a831ebf0 SHA1 18d1146e0a78e1d8276303b4def00714e3f93e47 SHA256 c24f663f57eb32f233313267f91b1bea70cad72b7d691473567d60e28f289da9
DIST libreoffice-components-3.2.99.1.tar.bz2 5087496 RMD160 fb6b0640b21c2f634db724bb918f14ab1db09fb7 SHA1 e9337b40965ca4b835ee4199f0e1f8fe7681c198 SHA256 09a6033e15988f6a78fc03189028fc1228edfb089f18bdd5ac37376083d99b71
DIST libreoffice-extensions-3.2.99.1.tar.bz2 4222229 RMD160 d99e567f56fc49d307d459e5abebea9417833ec0 SHA1 3b84214eafc53ae6b03103e5d9f80251c8c9a401 SHA256 8412b07e1694a9992a5262cf3299fbc7da1bdf856f9179d46dc970cb71039458
DIST libreoffice-extras-3.2.99.1.tar.bz2 46312670 RMD160 d245095e8d25933b42d456939e1efeb0b434aff9 SHA1 f481166ef05612a95dc2aa588f0f8cb4c9b169d0 SHA256 1089e5aec62e5dabe2bb986b5261b7f99c4c6a9a7aaecc6a669e7c543e6dae68
DIST libreoffice-filters-3.2.99.1.tar.bz2 11608404 RMD160 a8a72145fe2c340c3efb157504bbc1d6fff03b59 SHA1 e52bbed3ba3e0f1466ab4b359d7e9ad65ce23dec SHA256 3a8a1156a4ce91c4f72b5df843abc59025256cc7f925a9cc5bccc677b9734c60
DIST libreoffice-help-3.2.99.1.tar.bz2 1916317 RMD160 76ce9709cce8626da4c7862b7b4f2fa9a2f29589 SHA1 5a6d891ab3de4af49651c95f527895fb37324cb3 SHA256 2bdc06b5b85db1e1fedb93270dd4bd5f2ea7da2a97049e65da75104d07b80a65
DIST libreoffice-impress-3.2.99.1.tar.bz2 2569552 RMD160 cf5a25606bdb873d9a8f2eb2d5995b873e5256b8 SHA1 2b7c4db0bf713d0c7759099678ff48cd8f578a4b SHA256 5c1342b317291fd1e7d1870310ccdad065204568cea006b1156d11b95e771df8
DIST libreoffice-l10n-3.2.99.1.tar.bz2 78321565 RMD160 665162bdf3b321530edc3dbd5a4106d3e4dd66f4 SHA1 da32e11367a2b30f2eb3f25770a75b6b412fa26c SHA256 003ad9173d4551b6ae321e2c01c24dcbdafc11e974dc3faf527d49c9c034d40b
DIST libreoffice-libs-core-3.2.99.1.tar.bz2 17100616 RMD160 5e8cb10eb9b633077f0bd572ede8c1d878b6bd3c SHA1 88c28fdeaa3c989098815bc36d8f5f90d398fd5d SHA256 789cc1da153a7b958a28f5e849e27e551c05c5d7d7cddb48483b51906cd83c17
DIST libreoffice-libs-extern-3.2.99.1.tar.bz2 808309 RMD160 b8b4dba505315f9b2dc0af62a50b913cef9373f1 SHA1 d167125c1c40bff757375bb46def61a07d6eea03 SHA256 b7c61148689a1ce54f2bdaf7acbaa7efe80010070f443db0b713b850132c78aa
DIST libreoffice-libs-extern-sys-3.2.99.1.tar.bz2 38493824 RMD160 3de5ade9b4329b49d7af44d4f7e7674b01406430 SHA1 643237f89370ce59d5378ceff492c69bf0ce1e90 SHA256 1533dd49fd1f2623f8581f9ba256d0e85bf6dd9236c711435b786fd1916253dd
DIST libreoffice-libs-gui-3.2.99.1.tar.bz2 11396984 RMD160 89f071d17745b0fc8a5a65992582ecc05cbc6845 SHA1 07807d2bda6a056387b171ddf025a7cb7a22d7f3 SHA256 e20c603817ea01591d2423902af1aef39ab0ea14b36f640ae05cd1dcdd3e1378
DIST libreoffice-postprocess-3.2.99.1.tar.bz2 41381 RMD160 26f057a5c1ca966d4cdbd0ea9a8918a7d9ae4206 SHA1 b1a89e95774dd9a2993c218f6f2b893194ff2453 SHA256 4f0dd079db8f1cf9ae33aa55f5e460579f1f157b125edeee20891ffb36ced9fe
DIST libreoffice-sdk-3.2.99.1.tar.bz2 1706263 RMD160 45c74a6fc8681e8f134e14ea2563689f3c3386aa SHA1 665040404a7c81a6c7b7c74cc8aa2a1378b29d37 SHA256 6bdb46dd362535df6b053ed2a45852666fe0a8a0b9567562014f9922f616b315
DIST libreoffice-testing-3.2.99.1.tar.bz2 50788204 RMD160 e3b343321a54c46362dd4744f3fb31bdd5cadad3 SHA1 d8e25524224aeb78b21fbf098197d7af835d1422 SHA256 a564b5146521cd15a1cae53193393683b9b2111eb5e54abbaaf56e06793ba9a6
DIST libreoffice-ure-3.2.99.1.tar.bz2 6152768 RMD160 721ed9ccc594eb4c4421936c589b5c51bae4dc2e SHA1 ecc3a16c73a62900475a6b2afe306033d2354f9f SHA256 64a9930e226f2796a94c79baade88db3afc28aa845ccfc5d172208642e4cccbb
DIST libreoffice-writer-3.2.99.1.tar.bz2 6759647 RMD160 0b2671d17f0236dd1fad7b91eac526157db1fb5f SHA1 1ca543652935dbec9acc44a0dfe32cadd1ee0343 SHA256 9f7d3c62fb5b4dc358a486ba7c1c2550867129982b3bdbdd27f9e4c5b824b1ec
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 mdds_0.3.0.tar.bz2 43041 RMD160 76d894e8f083d03ef1795e9c4c764c4b20c90a3a SHA1 3a1d839b9a36287074c3724fa16ac1e04d343fbe SHA256 4d28548468bb63edf630ebfc8c14f80531f12265f8fa5694c01b401594d01dff
DIST ooo_oxygen_images-2009-06-17.tar.gz 14296938 RMD160 355b7d43aff12578fc0af6ca6030301577477857 SHA1 c3dd261bfe366ac514a019b0fa829369b833c0c7 SHA256 3fcc0eb394ddfc43111ac27f35a7d966d4f775b0b46d6853c9b2b2612a940f4a
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 libreoffice-3.2.99.1.ebuild 13779 RMD160 8084a74317d5575a7ecbb05970e4c076c6853733 SHA1 a72d62dec7e0b3b67bdff5f3700f1f41522df300 SHA256 90e4d1b6e6c08cd473a61d2b810e85356029176668d3be35ca4b9adfbdfd416f

View File

@@ -0,0 +1,12 @@
--- sc/source/core/tool/makefile.mk-orig 2009-09-07 20:15:14.880679704 -0500
+++ sc/source/core/tool/makefile.mk 2009-09-07 20:14:38.941679215 -0500
@@ -132,7 +132,8 @@
$(SLO)$/prnsave.obj \
$(SLO)$/reftokenhelper.obj \
$(SLO)$/stringutil.obj \
- $(SLO)$/token.obj
+ $(SLO)$/token.obj \
+ $(SLO)$/detfunc.obj
# [kh] POWERPC compiler problem
.IF "$(OS)$(COM)$(CPUNAME)"=="LINUXGCCPOWERPC"

View File

@@ -0,0 +1,17 @@
--- cppu/inc/uno/lbnames.h.old 2010-02-02 12:49:41.000000000 +0100
+++ cppu/inc/uno/lbnames.h 2010-03-05 17:13:22.000000000 +0100
@@ -62,12 +62,12 @@ provoking error here, because PP ignores
#error "Tested gcc 2 versions are 2.91 and 2.95. Patch uno/lbnames.h to try your gcc 2 version."
#elif (__GNUC__ == 3 && __GNUC_MINOR__ <= 4)
#define __CPPU_ENV gcc3
-#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 4)
+#elif (__GNUC__ == 4 && __GNUC_MINOR__ <= 5)
#define __CPPU_ENV gcc3
#elif (__GNUC__ == 3)
#error "Tested gcc 3 version is <= 3.4. Patch uno/lbnames.h to try your gcc 3 version."
#else
-#error "Supported gcc majors are 2 , 3 and 4 <= 4.4. Unsupported gcc major version."
+#error "Supported gcc majors are 2 , 3 and 4 <= 4.5. Unsupported gcc major version."
#endif /* defined (__GNUC__) */
#endif /* defined (_MSC_VER) */

View File

@@ -0,0 +1,46 @@
diff -uNr libre.orig//configure.in libre/configure.in
--- libre.orig//configure.in 2010-09-29 18:48:36.000000000 +0200
+++ libre/configure.in 2010-09-29 18:54:56.000000000 +0200
@@ -1349,12 +1349,18 @@
done
fi
SUNTEMPLATES_LANG=
- # check whether the langs are requested at all
- for lang in $wanted_sun_templates ; do
- if test -n "`echo $with_lang | grep "$lang"`" ; then
- SUNTEMPLATES_LANG="$SUNTEMPLATES_LANG $lang"
- fi
- done
+
+ # --with-lang="" now used for en-US
+ if test "z$with_lang" = "z" ; then
+ SUNTEMPLATES_LANG="en-US"
+ else
+ # check whether the langs are requested at all
+ for lang in $wanted_sun_templates ; do
+ if test -n "`echo $with_lang | grep "$lang"`" ; then
+ SUNTEMPLATES_LANG="$SUNTEMPLATES_LANG $lang"
+ fi
+ done
+ fi
AC_MSG_RESULT([$SUNTEMPLATES_LANG])
fi
AC_SUBST(SUNTEMPLATES_LANG)
diff -uNr libre.orig//patches/dev300/apply libre/patches/dev300/apply
--- libre.orig//patches/dev300/apply 2010-09-29 18:48:37.000000000 +0200
+++ libre/patches/dev300/apply 2010-09-29 18:49:19.000000000 +0200
@@ -1019,14 +1019,10 @@
[ GentooOnly ]
SectionOwner => aprosky
-# Allow build to proceed with PaX enabled
-gentoo-pax-fix.diff, aprosky
# support server-only versions of 64bit JDKs
64bit-jdk-server-paths.diff, i#65974, hmth
# use IBM j9vm over IBM classic JVM
ibm-j9vm.diff, hmth
-# system db check
-system-db-check.diff, i#65979, hmth
# User ~/.ooo3 as user dir
scp2-user-config-ooo3.diff, pmladek
# default inc/lib

View File

@@ -0,0 +1,11 @@
--- 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

View File

@@ -0,0 +1,25 @@
--- ucb/source/ucp/webdav/NeonSession.cxx
+++ ucb/source/ucp/webdav/NeonSession.cxx
@@ -257,9 +257,6 @@
// -------------------------------------------------------------------
extern "C" int NeonSession_NeonAuth( void * inUserData,
-#ifdef NE_FEATURE_SSPI
- const char * inAuthProtocol,
-#endif
const char * inRealm,
int attempt,
char * inoutUserName,
@@ -334,12 +331,6 @@
bool bCanUseSystemCreds = false;
-#ifdef NE_FEATURE_SSPI
- bCanUseSystemCreds = (attempt == 0) && // avoid endless loops
- ne_has_support( NE_FEATURE_SSPI ) && // Windows-only feature.
- ( ne_strcasecmp( inAuthProtocol, "NTLM" ) == 0 ) ||
- ( ne_strcasecmp( inAuthProtocol, "Negotiate" ) == 0 );
-#endif
// #i97003# (tkr): Ask XMasterPasswordHandling if we should store the
// credentials persistently and give this information to the auth listener

View File

@@ -0,0 +1,12 @@
--- extensions/source/plugin/unx/npwrap.cxx 2010-02-22 02:31:31.000000000 +0300
+++ extensions/source/plugin/unx/npwrap.cxx 2010-02-22 02:32:04.000000000 +0300
@@ -485,7 +485,9 @@
medDebug( 1, "left plugin app main loop\n" );
+ #ifdef ENABLE_GTK
g_source_remove(xt_polling_timer_id);
+ #endif
pNP_Shutdown();
medDebug( 1, "NP_Shutdown done\n" );

View File

@@ -0,0 +1,25 @@
--- bin/build-ooo.orig 2007-04-18 18:32:06.000000000 +0200
+++ bin/build-ooo 2007-04-18 18:32:45.000000000 +0200
@@ -21,9 +21,8 @@
echo "configuring ...";
autoconf || exit 1;
-echo "Env for configure:"
-set
-echo "Env for configure ends"
+echo "Log Env for configure to `pwd`/env.log"
+set > env.log
eval ./configure "$CONFIGURE_OPTIONS" "$PROPAGATED_ARGS" || exit 1;
@@ -88,8 +88,8 @@
# similar that gives child nmake's pain.
unset MAKEFLAGS
-echo "Env:"
-set
+echo "Log Env to `pwd`/env.log"
+set > env.log
# What extra localizations are avilable as $SRCDIR/GSI_*.sdf and are not
# already merged?

View File

@@ -0,0 +1,10 @@
*** vcl/unx/kde4/KDEXLib.cxx_ 2010-02-21 22:34:18.917502324 +0200
--- vcl/unx/kde4/KDEXLib.cxx 2010-02-21 22:35:29.642770570 +0200
***************
*** 134,137 ****
--- 134,138 ----
KCmdLineArgs::init( m_nFakeCmdLineArgs, m_pAppCmdLineArgs, kAboutData );
+ KApplication::setGraphicsSystem( "native" );
m_pApplication = new VCLKDEApplication();
kapp->disableSessionManagement();

View File

@@ -0,0 +1,421 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.2.1.ebuild,v 1.4 2010/09/17 10:49:59 scarabeus Exp $
WANT_AUTOMAKE="1.9"
EAPI="2"
KDE_REQUIRED="optional"
CMAKE_REQUIRED="never"
PYTHON_DEPEND="2"
PYTHON_USE_WITH="threads"
inherit autotools bash-completion check-reqs db-use eutils fdo-mime flag-o-matic java-pkg-opt-2 kde4-base multilib python toolchain-funcs
IUSE="binfilter junit cups dbus debug eds gnome gstreamer gtk kde ldap nsplugin odk opengl pam templates"
MY_PV=3.2.99.1
PATCHLEVEL=OOO320
SRC=libreoffice
MST=OOO320_m19
DEVPATH=http://download.documentfoundation.org/libreoffice/src/${SRC}
S=${WORKDIR}/libre
S_OLD=${WORKDIR}/libreoffice-build-${MY_PV}
CONFFILE=${S}/distro-configs/Gentoo.conf.in
BASIS=basis3.2
DESCRIPTION="libreoffice, a full office productivity suite."
SRC_URI="${DEVPATH}-artwork-${PV}.tar.bz2
${DEVPATH}-base-${PV}.tar.bz2
${DEVPATH}-bootstrap-${PV}.tar.bz2
${DEVPATH}-calc-${PV}.tar.bz2
${DEVPATH}-components-${PV}.tar.bz2
${DEVPATH}-extensions-${PV}.tar.bz2
${DEVPATH}-filters-${PV}.tar.bz2
${DEVPATH}-help-${PV}.tar.bz2
${DEVPATH}-impress-${PV}.tar.bz2
${DEVPATH}-l10n-${PV}.tar.bz2
${DEVPATH}-libs-core-${PV}.tar.bz2
${DEVPATH}-libs-extern-${PV}.tar.bz2
${DEVPATH}-libs-extern-sys-${PV}.tar.bz2
${DEVPATH}-libs-gui-${PV}.tar.bz2
${DEVPATH}-postprocess-${PV}.tar.bz2
${DEVPATH}-sdk-${PV}.tar.bz2
${DEVPATH}-testing-${PV}.tar.bz2
${DEVPATH}-ure-${PV}.tar.bz2
${DEVPATH}-writer-${PV}.tar.bz2
${DEVPATH}-extras-${PV}.tar.bz2
binfilter? ( ${DEVPATH}-extras-${PV}.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
ftp://ftp.devall.hu/kami/go-oo//Sun_ODF_Template_Pack_hu.oxt )
${DEVPATH}-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/DEV300/ooo_oxygen_images-2009-06-17.tar.gz
http://download.go-oo.org/SRC680/libwps-0.1.2.tar.gz
http://multidimalgorithm.googlecode.com/files/mdds_0.3.0.tar.bz2"
LANGS1="af ar as_IN be_BY bg bn br brx bs ca cs cy da de dgo dz el 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"
LANGS="${LANGS1} en en_US"
for X in ${LANGS} ; do
IUSE="${IUSE} linguas_${X}"
done
# intersection of available linguas and app-dicts/myspell-* dictionaries
SPELL_DIRS="af bg ca cs cy da de el en eo es et fr ga gl he hr hu it ku lt mk nb nl nn pl pt ru sk sl sv tn zu"
SPELL_DIRS_DEPEND=""
for X in ${SPELL_DIRS} ; do
SPELL_DIRS_DEPEND="${SPELL_DIRS_DEPEND} linguas_${X}? ( app-dicts/myspell-${X} )"
done
HOMEPAGE="http://go-oo.org"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
COMMON_DEPEND="!app-office/libreoffice-bin
x11-libs/libXaw
x11-libs/libXinerama
x11-libs/libXrandr
>=dev-lang/perl-5.0
>=dev-libs/glib-2.18
dbus? ( >=dev-libs/dbus-glib-0.71 )
gnome? ( >=x11-libs/gtk+-2.10
>=gnome-base/gconf-2.0
>=gnome-base/gnome-vfs-2.6
>=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 )
java? ( >=dev-java/bsh-2.0_beta4
dev-java/lucene:2.3
dev-java/lucene-analyzers:2.3
dev-java/rhino:1.5 )
nsplugin? ( net-libs/xulrunner:1.9
>=dev-libs/nspr-4.6.6
>=dev-libs/nss-3.11-r1 )
opengl? ( virtual/opengl )
>=net-libs/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-4.0
>=sys-libs/db-4.3
>=app-text/libwpd-0.8.8
>=media-libs/vigra-1.4
>=app-text/poppler-0.12.3-r3[xpdf-headers]
>=media-libs/libwpg-0.1.3"
RDEPEND="java? ( >=virtual/jre-1.5 )
${SPELL_DIRS_DEPEND}
${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
dev-util/pkgconfig
dev-util/intltool
>=dev-libs/boost-1.36
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] )
java? ( || ( =virtual/jdk-1.6* =virtual/jdk-1.5* )
junit? ( dev-java/junit:4 )
>=dev-java/ant-core-1.7 )
ldap? ( net-nds/openldap )"
PROVIDE="virtual/ooo"
pkg_setup() {
ewarn
ewarn " It is important to note that libreoffice 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 aggressive CFLAGS, lower the CFLAGS and try to "
ewarn " merge again. "
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="12288" || CHECKREQS_DISK_BUILD="6144"
check_reqs
strip-linguas ${LANGS}
# en_US is built by default, upstream needs us to use --with-lang="" in this case though, so strip it out
export LINGUAS_TEMP=$(echo ${LINGUAS} | sed -e 's/\ben_US\b//g;s/en//g;s/_GB/en_GB/g;s/_ZA/en_ZA/g')
if [[ -z "${LINGUAS_TEMP}" ]] || [[ ${LINGUAS_TEMP} == " " ]]; then
export LINGUAS_OOO=""
else
# always build en-US as a fallback (needed for broken code / translations)
export LINGUAS_OOO="en-US ${LINGUAS_TEMP//_/-}"
fi
if use !java; then
ewarn " You are building with java-support disabled, this results in some "
ewarn " of the libreoffice 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 libreoffice 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 libreoffice build will break. "
die
fi
java-pkg-opt-2_pkg_setup
# sys-libs/db version used
local db_ver=$(db_findver '>=sys-libs/db-4.3')
kde4-base_pkg_setup
python_set_active_version 2
python_pkg_setup
}
src_unpack() {
unpack libreoffice-build-${MY_PV}.tar.gz
}
src_prepare() {
# 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}/gentoo-pythonpath.diff"
epatch "${FILESDIR}/ooo-env_log.diff"
cp -f "${FILESDIR}/qt-use-native-backend.diff" "${S}/patches/hotfixes" || 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-jvm-path=/usr/$(get_libdir)/" >> ${CONFFILE}
echo "--with-system-beanshell" >> ${CONFFILE}
echo "--with-system-lucene" >> ${CONFFILE}
echo "--with-system-rhino" >> ${CONFFILE}
echo "--with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" >> ${CONFFILE}
echo "--with-lucene-core-jar=$(java-pkg_getjar lucene-2.3 lucene-core.jar)" >> ${CONFFILE}
echo "--with-lucene-analyzers-jar=$(java-pkg_getjar lucene-analyzers-2.3 lucene-analyzers.jar)" >> ${CONFFILE}
echo "--with-rhino-jar=$(java-pkg_getjar rhino-1.5 js.jar)" >> ${CONFFILE}
# junit:4
use junit && echo "--with-junit=$(java-pkg_getjar junit-4 junit.jar)" >> ${CONFFILE}
fi
# junit:4
use !junit && echo "--without-junit" >> ${CONFFILE}
echo $(use_enable nsplugin mozilla) >> ${CONFFILE}
echo $(use_with nsplugin system-mozilla libxul) >> ${CONFFILE}
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 gconf) >> ${CONFFILE}
echo $(use_enable gnome gnome-vfs) >> ${CONFFILE}
#gio support still gives crashes, see i#108993
echo "--disable-gio" >> ${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.png\\\"" >> ${CONFFILE}
# Upstream this, disabled for now #i108911
#echo "--with-system-redland" >> ${CONFFILE}
# needed for sun-templates patch
eautoreconf
}
src_configure() {
use kde && export KDE4DIR="${KDEDIR}"
use kde && export QT4LIB="/usr/$(get_libdir)/qt4"
# 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 "-ftracer"
filter-flags "-fforce-addr"
filter-flags "-O[s2-9]"
if [[ $(gcc-major-version) -lt 4 ]]; then
filter-flags "-fstack-protector"
filter-flags "-fstack-protector-all"
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="libreoffice" \
--with-tag="${MST}" \
--with-drink="True Blood" \
--without-git \
--without-split \
${GTKFLAG} \
--disable-mono \
--disable-kde \
$(use_enable kde kde4) \
$(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-split \
--with-system-libwpd \
--with-system-libwpg \
--mandir=/usr/share/man \
--libdir=/usr/$(get_libdir) \
|| die "Configuration failed!"
}
src_compile() {
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
if use java; then
java-pkg_regjar "${D}"/usr/$(get_libdir)/libreoffice/${BASIS}/program/classes/*.jar
java-pkg_regjar "${D}"/usr/$(get_libdir)/libreoffice/ure/share/java/*.jar
fi
# Upstream places the bash-completion module in /etc. Gentoo places them in
# /usr/share/bash-completion. bug 226061
dobashcompletion "${D}"/etc/bash_completion.d/ooffice.sh ooffice
rm -rf "${D}"/etc/bash_completion.d/ || die "rm failed"
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
BASHCOMPLETION_NAME=ooffice && bash-completion_pkg_postinst
( [[ -x /sbin/chpax ]] || [[ -x /sbin/paxctl ]] ) && [[ -e /usr/$(get_libdir)/libreoffice/program/soffice.bin ]] && scanelf -Xzm /usr/$(get_libdir)/libreoffice/program/soffice.bin
# Add available & useful jars to libreoffice classpath
use java && /usr/$(get_libdir)/libreoffice/${BASIS}/program/java-set-classpath $(java-config --classpath=jdbc-mysql 2>/dev/null) >/dev/null
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)/libreoffice/share/extension/install/ "
elog " instead of those from the SUN extension site. "
elog
kde4-base_pkg_postinst
}