From 333db8d144750a76d1e659319c4f84e7d623ceb3 Mon Sep 17 00:00:00 2001 From: Tomas Chvatal Date: Wed, 18 Jan 2012 12:49:59 +0000 Subject: Version bump to 3.5.0 rc1 Package-Manager: portage-2.2.0_alpha84/cvs/Linux x86_64 RepoMan-Options: --force --- app-office/libreoffice/ChangeLog | 8 +- app-office/libreoffice/Manifest | 30 +- app-office/libreoffice/libreoffice-3.4.99.3.ebuild | 499 --------------------- app-office/libreoffice/libreoffice-3.5.0.1.ebuild | 499 +++++++++++++++++++++ 4 files changed, 524 insertions(+), 512 deletions(-) delete mode 100644 app-office/libreoffice/libreoffice-3.4.99.3.ebuild create mode 100644 app-office/libreoffice/libreoffice-3.5.0.1.ebuild (limited to 'app-office') diff --git a/app-office/libreoffice/ChangeLog b/app-office/libreoffice/ChangeLog index 12ccf757b884..d19beafee4b6 100644 --- a/app-office/libreoffice/ChangeLog +++ b/app-office/libreoffice/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-office/libreoffice # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.229 2012/01/16 11:52:51 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/ChangeLog,v 1.230 2012/01/18 12:49:59 scarabeus Exp $ + +*libreoffice-3.5.0.1 (18 Jan 2012) + + 18 Jan 2012; Tomáš Chvátal + -libreoffice-3.4.99.3.ebuild, +libreoffice-3.5.0.1.ebuild: + Version bump to 3.5.0 rc1 16 Jan 2012; Agostino Sarubbo libreoffice-3.4.5.2.ebuild: Stable for amd64, wrt bug #398521 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest index 728f26a54e75..e98a5ebc7eff 100644 --- a/app-office/libreoffice/Manifest +++ b/app-office/libreoffice/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA512 +Hash: SHA1 AUX enable-startup-notification.diff 6377 RMD160 6a5cc928ea3da3fb1428d0e0bbd2d4635c1da8ec SHA1 413f54a589f910e5e2401dec0025617028fdc361 SHA256 da334268ba47e5b25c72063ececbb0619f2033eab7bfafbd58e981c361b72f3a AUX env_log.diff 617 RMD160 480edf4962e8d55f82a4103297c3cc10a1bd4f3e SHA1 b655566079c408e72f1046262fe269ba8bf66040 SHA256 efb99da32fcc2029418b4c4c080ccc97cb622fcc24a6a6dd69d8cc5508c54bf1 @@ -118,7 +118,7 @@ DIST libreoffice-artwork-3.4.5.2.tar.bz2 13537659 RMD160 8e5417f4c8f05bca842cddb DIST libreoffice-base-3.3.4.1.tar.bz2 2083238 RMD160 a0ea708e67d47d010c7e390b373c78d93eda6e9f SHA1 d5b0d91a6a9fe17930b587c5e42309f52d09095f SHA256 029c2cde055ff2b8e3432f292c565dba6fd1e023cdd39fc9478635cedf006d1e DIST libreoffice-base-3.4.3.2.tar.bz2 2068714 RMD160 c689762bd2a5a6bc46efe701c85b798bd01ef248 SHA1 88f1531b11ac49f8bd9c0e70e08b38a7b0aae411 SHA256 93fc103b376a2575efe8b35d64861236e63025b9d3415cee35d845ada7589dfa DIST libreoffice-base-3.4.5.2.tar.bz2 2070005 RMD160 432cb53d1becd8e3ebf371f3224afa57899fe71e SHA1 d07f93434055981a9c320912b24966c322b9d536 SHA256 9f9b7ae788a8249ccbcaca0ba2155cd91f76367cbaf3e1ad063f8e61b3d7b938 -DIST libreoffice-binfilter-3.4.99.3.tar.xz 5972348 RMD160 8c40cd35fc92aac40f73b2acb258a301ef99cfbe SHA1 3e6c141ddd60aea65408aabf568fec755d4aa495 SHA256 d77b7854649735a0c74f2a9f7aca67714af5b77679cba8e57e58c4cf1ad49688 +DIST libreoffice-binfilter-3.5.0.1.tar.xz 5974864 RMD160 729c8f62f832c6769ea43972e0b1fa97a5c59798 SHA1 eb479ebd8c58a931078cc9a1e3606f96e4e992b8 SHA256 be8ebec851ba7fc02e3115a51ccae83174b92a8e61be2e983ba7f45ec4fedc90 DIST libreoffice-bootstrap-3.3.4.1.tar.bz2 2753537 RMD160 6348b4b121159aa74a1b4e9c03f34cc5533a3d72 SHA1 4c7b5b105c29eb5e9dafc8ee59b4f306187f664d SHA256 a83cc7be2211c1dd03f49e1e9c54895852e732e291022c8022470cd057b9b2c6 DIST libreoffice-bootstrap-3.4.3.2.tar.bz2 2711992 RMD160 5ded24c90e34306a0ae0d5d97578638098879351 SHA1 527db77912dd3c5f41916ad0db8405325f37c621 SHA256 18f253da00974958059dc91ddb17d5ce5c6c41ec48b98f43451609fb2b1faa45 DIST libreoffice-bootstrap-3.4.5.2.tar.bz2 2715464 RMD160 d2b2fadac07507878a6bbed9801384dc25f4e874 SHA1 cc5c1ceb6ae9525a8ee89c0b08da958a420e85c0 SHA256 a9a3f223046d57002f0b76b0c04c07398a77bbc85acb445faea6e6d6a637bf17 @@ -130,7 +130,7 @@ DIST libreoffice-calc-3.4.5.2.tar.bz2 9519567 RMD160 25114e5c9d2206879c4a89360a1 DIST libreoffice-components-3.3.4.1.tar.bz2 5124325 RMD160 bbd98b77d4b9db5d948526d65f54e3479a9b33a3 SHA1 9ca1d2ad9211cf7df0834f764af28c8e88060f0f SHA256 bb9651370ee239a6fe0f4b52d5b6d3b84aafad64dcf1ccfcb655efb782599fb6 DIST libreoffice-components-3.4.3.2.tar.bz2 5094591 RMD160 ab3a2cd16340931a124e3d0e783c938a5357f5f9 SHA1 492a0b25128a34c4d75df5ef7b3b5e997c24cf31 SHA256 572fdbff98c1083e5066b15cbc34453cedf7f6ac5a740c07639ef2e65fd61aa7 DIST libreoffice-components-3.4.5.2.tar.bz2 5089571 RMD160 c3b01fdb7cf81ae01dc41dc44333e68822423682 SHA1 888f3c77f7c3fd62fcfc0d8eca182de55dfd56f5 SHA256 a2c0f819ca06c6fd82645920cdfb5c614dadcbd934a11864e706806e00f506eb -DIST libreoffice-core-3.4.99.3.tar.xz 102434288 RMD160 55d36fb81cdf8dfbe647c866acfc2d3833c86b32 SHA1 ff712bc3efb63e8d523c1c908dded2f1e3baf547 SHA256 2f12c7714f091dac21831c6d0f40f666710d9b3b08c170e8623c511035888dea +DIST libreoffice-core-3.5.0.1.tar.xz 102813096 RMD160 93c71815c0995bb8667c329f64634d84f08429d0 SHA1 175a8a8974a7fbe78332e635ae7dde4d17e60f51 SHA256 5f71d273e087e2fec18094fe2dedf43386a64a3bfa5c28f37646a6d76cba481d DIST libreoffice-extensions-3.3.4.1.tar.bz2 4202033 RMD160 1db3d06fcfd6354345e394ddf78f2cae6e0e5573 SHA1 8fbac20fa87e348ad07dc245f48f09ee539d7d80 SHA256 65c4540bd958a5f4dbf5875659d83e40a3d5542aa0cfde7f0f03e5000d16f241 DIST libreoffice-extensions-3.4.3.2.tar.bz2 4216448 RMD160 07932f5fa49cf32a0efda440cdb074c6ade97f35 SHA1 ca3257362b8b861e7358afe11bc0831739c83f41 SHA256 91ab0d29057c09026ddb380d530ef0656e48b7c558eb2be7a0c4c4f1b793029d DIST libreoffice-extensions-3.4.5.2.tar.bz2 4219897 RMD160 c641e4530360ac6eb02c570469a7c675f620ba0c SHA1 cf6fe1fa7fcd0f4f7f79fe6b318c90ef510b6103 SHA256 ff6c6bbc78e21277a10fdf3e3feddb425368621f7aa2fd288738d19d609ab0a3 @@ -178,19 +178,25 @@ DIST unowinreg.dll 6144 RMD160 9e2a2789a96842a2aec747a62dee3db3e8370761 SHA1 712 EBUILD libreoffice-3.3.4.ebuild 18266 RMD160 c0204063e1a6bd7621267fd4dc92d8b73340d2c9 SHA1 4ba8289141748a37763049aad453ce8cde277e1b SHA256 7da90f1704e492c9ea60982283868860d96ab7550e7cb6a5806858d68fa15b98 EBUILD libreoffice-3.4.3.2-r1.ebuild 18514 RMD160 66fdf0ebbb2bbe6c507f97b0d2be87b8c72aa79c SHA1 814410fddd8101148b58924f2f20b899b1925c6a SHA256 89fef1d27d99fe7996dd4675120d5fb180a3bd6798abf51eb8da4d25f83013b9 EBUILD libreoffice-3.4.5.2.ebuild 14973 RMD160 c8b591db63589d1607bc8305cab8ad29d0f13762 SHA1 09a297a627cec2e8ad7c8267faedc28ba8a36e05 SHA256 d9200ec96b2d2f50617795dd98d6e488583161ba7912b5ea457e009c1c082716 -EBUILD libreoffice-3.4.99.3.ebuild 13999 RMD160 1b055f76609c12f6c66a4ba8104239fca52f0ee4 SHA1 2e4f47e8b1e2c713a8d894d199c3aef1f3e7f344 SHA256 462c665b11b854b5a4acc0fa816467ec7bf1af5a6fd29cc3bb565fa19facde42 +EBUILD libreoffice-3.5.0.1.ebuild 13998 RMD160 7e6c1fa016d2a370f8b3a01edea3e93cd9795911 SHA1 7f5ac034b23c6bbdee0ed3e8ef594f69a6c8e6e3 SHA256 810638a3592aa2dd9c3497e12b51e1c91ccf04fcef6e58b69cb7ab357c8bb44d EBUILD libreoffice-3.5.9999.ebuild 14022 RMD160 ecaa6cfbc477f96136e33c54a85daf12d7a91ffe SHA1 af99692ac3170957094efc32ea13e7ae95fdbe35 SHA256 47da9d4184f429f6dcf180a14e6c0dd38ba7306e4a9d9202e008ac3d089cf4a2 EBUILD libreoffice-9999-r2.ebuild 14092 RMD160 64ae7411ce6c21d06a154b4c1f5ed472f151e9a5 SHA1 e60f4c7b5be48ea6e0d938816e572ba7020dfa50 SHA256 06f8cd4768b264010ae55939f7d1f720d358f3b01dd0dc7508c288689ebf18e8 -MISC ChangeLog 41602 RMD160 3781cbcb1877fa8fafbd8933e2d425056e70b7fa SHA1 ee0ceebc53002d2e4a82a7a7dc9213be8412defb SHA256 d88993be20167018d651e95bd9a97ac03c0e205725b0516598f7b2ba5b9e25f7 +MISC ChangeLog 41789 RMD160 ad3610b3bdcd4b94b0afcc359c41ec4b21d369a7 SHA1 683e4059fdf9b68b02d47d99fcc55a30f3919cc9 SHA256 a1b245b3e878d6d626217b1c687fdd5f5ca140eb9ff595f6b1cd0ce4a03c37f6 MISC metadata.xml 1409 RMD160 9861b490a44757ecaebb14ac28eec292f347ac3f SHA1 268b78192669f12c513fd7b68fe588f140ea2e1b SHA256 862a214105b2f7b07a015d656794aac9b94a3f40b3f8cbf74a5299f990b82b2e -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iQEcBAEBCgAGBQJPFA+ZAAoJEOTDgjZ80txdgSAH/2RorKhyfY4MWEfpL3DDA7nH -iir0QcnBdC1GkeFwKSU7sWJiVEUS4V6p5nbPK5PcnPsjuUfVpQD2lQFhEL8xPF2G -lrxrw/S1OgNpDhhim1/x3Q/mRvtTa3cE10pFvKJ3AUKrHjuKU8KQ/5VriXzu1Eyq -tglfIdOmYW2OzChLavTH9PcyQ4UYehXF2I8efjKMVG1CMg0k8oSXSTv0N8ZrZZK1 -ptBwScGC25o2un9o+JB83X+RdCh9pRF0ZorNOrrrZzH0YphNDT5CYdjUY9OrrOs/ -EM/hybppUvz4PI/z/+Q8dDlPmzI2I2mBylrm0V75be8o+YT5U2IATNoNXTC/Hwk= -=XiDj +iQIcBAEBAgAGBQJPFsAuAAoJEOSiRoyO7jvoTy8P/A1i/D1ScEF8YzO0ie/5sNp9 +CnDlJ6ATNRF2A5EzgPyDYCLgTT6pr+dpE2Ns07HU9CuXc7vt1bIXgIf0bokut1Kv +FqNUHJ+Y3vnEGE8U0+T2sYNXjb6gmt5wNxDh5ipgNHaJyJQReJs6dHbppyYIqfpR +rbm004h6b6g1VFdhqdexmBmlIcfb5hwx2IuX7KxuC2quIc2CwEyUw7QNdwgsEY+W +10DWahNCBVVHSjDTo4feHL7sSn6EfvCMdo72lTQt2/n9bGdEwplNQx8g+/ClONxV +2gULhC1oj0yMwOpovjY1gm5i1TopnnYDvzmkaZ2BrPg2FvlbjmJ/tSYXObgaiB36 +KY/pA7KOr4hR0hoXAC70c619z2d8J1nrTumIhMbsUw8MfmhLmUf3VvJkNU53T4Qj +Kxy7WSB00Zu4M2+DxrTF1g2ZL1mBwfDQq2aS43NnvJ86KrleVFCrwCLA0cM9vcJJ +XzLKvanY/XaQgeKYSLZEeE4cGoFzpn7+8FUT6psETGBJ1qIoMZ5fXBze4IGGN0iE +4hfSIEQeJooNA4gG5PjhAQIP4BiB53CW/YZj7Ypbfo6V3QpWegoUEWD8F8jKnHqc +HeQwQFTNW3GuQk3cYbGWv+1NLsK67QmlWR0gdlJGw+E4gg1dk1uxUPfPvJR2u+9M +fbO7oOxpFnFDfTYLPmbo +=/g1Q -----END PGP SIGNATURE----- diff --git a/app-office/libreoffice/libreoffice-3.4.99.3.ebuild b/app-office/libreoffice/libreoffice-3.4.99.3.ebuild deleted file mode 100644 index 615e84fd6313..000000000000 --- a/app-office/libreoffice/libreoffice-3.4.99.3.ebuild +++ /dev/null @@ -1,499 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.4.99.3.ebuild,v 1.1 2012/01/11 11:16:10 scarabeus Exp $ - -EAPI=4 - -KDE_REQUIRED="optional" -KDE_SCM="git" -CMAKE_REQUIRED="never" - -PYTHON_DEPEND="2" -PYTHON_USE_WITH="threads,xml" - -# experimental ; release ; old -# Usually the tarballs are moved a lot so this should make -# everyone happy. -DEV_URI=" - http://dev-builds.libreoffice.org/pre-releases/src - http://download.documentfoundation.org/libreoffice/src - http://download.documentfoundation.org/libreoffice/old/src -" -EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice" -ADDONS_URI="http://dev-www.libreoffice.org/src/" - -BRANDING="${PN}-branding-gentoo-0.3.tar.xz" -# PATCHSET="${P}-patchset-01.tar.xz" - -[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2" -inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils prefix python multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS} -unset SCM_ECLASS - -DESCRIPTION="LibreOffice, a full office productivity suite." -HOMEPAGE="http://www.libreoffice.org" -SRC_URI="branding? ( http://dev.gentooexperimental.org/~scarabeus/${BRANDING} )" -[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}" - -# Split modules following git/tarballs -# Core MUST be first! -MODULES="core binfilter" -# Only release has the tarballs -if [[ ${PV} != *9999* ]]; then - for i in ${DEV_URI}; do - for mod in ${MODULES}; do - if [[ ${mod} == binfilter ]]; then - SRC_URI+=" binfilter? ( ${i}/${PN}-${mod}-${PV}.tar.xz )" - else - SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz" - fi - done - unset mod - done - unset i -fi -unset DEV_URI - -# Really required addons -# These are bundles that can't be removed for now due to huge patchsets. -# If you want them gone, patches are welcome. -ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz" -ADDONS_SRC+=" xmlsec? ( ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz )" -ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" -ADDONS_SRC+=" java? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" -ADDONS_SRC+=" java? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" -ADDONS_SRC+=" java? ( ${ADDONS_URI}/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip )" -ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" -SRC_URI+=" ${ADDONS_SRC}" - -unset ADDONS_URI -unset EXT_URI -unset ADDONS_SRC - -IUSE="binfilter +branding dbus debug eds gnome +graphite gstreamer +gtk gtk3 -+jemalloc kde mysql +nsplugin odk opengl pdfimport postgres svg test +vba -+webdav +xmlsec" -LICENSE="LGPL-3" -SLOT="0" -[[ ${PV} == *9999* ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" - -NSS_DEPEND=" - >=dev-libs/nspr-4.8.8 - >=dev-libs/nss-3.12.9 -" - -COMMON_DEPEND=" - app-arch/zip - app-arch/unzip - >=app-text/hunspell-1.3.2-r3 - app-text/mythes - >=app-text/libexttextcat-3.2 - app-text/libwpd:0.9[tools] - app-text/libwpg:0.2 - >=app-text/libwps-0.2.2 - dev-cpp/libcmis - dev-db/unixODBC - dev-libs/expat - >=dev-libs/glib-2.28 - >=dev-libs/hyphen-2.7.1 - >=dev-libs/icu-4.8.1-r1 - >=dev-lang/perl-5.0 - >=dev-libs/openssl-1.0.0d - >=dev-libs/redland-1.0.14[ssl] - >=media-libs/fontconfig-2.8.0 - media-libs/freetype:2 - >=media-libs/libpng-1.4 - media-libs/libvisio - net-print/cups - sci-mathematics/lpsolve - >=sys-libs/db-4.8 - virtual/jpeg - >=x11-libs/cairo-1.10.0 - x11-libs/libXinerama - x11-libs/libXrandr - x11-libs/libXrender - dbus? ( >=dev-libs/dbus-glib-0.92 ) - eds? ( gnome-extra/evolution-data-server ) - gnome? ( - gnome-base/gconf:2 - gnome-base/orbit - ) - gtk? ( >=x11-libs/gtk+-2.24:2 ) - gtk3? ( >=x11-libs/gtk+-3.2:3 ) - graphite? ( media-gfx/graphite2 ) - gstreamer? ( - >=media-libs/gstreamer-0.10 - >=media-libs/gst-plugins-base-0.10 - ) - java? ( - >=dev-java/bsh-2.0_beta4 - dev-java/lucene:2.9 - dev-java/lucene-analyzers:2.3 - ) - jemalloc? ( dev-libs/jemalloc ) - mysql? ( >=dev-db/mysql-connector-c++-1.1.0 ) - opengl? ( virtual/opengl ) - pdfimport? ( >=app-text/poppler-0.16[xpdf-headers,cxx] ) - postgres? ( >=dev-db/postgresql-base-8.4.0 ) - svg? ( gnome-base/librsvg ) - webdav? ( net-libs/neon ) - xmlsec? ( ${NSS_DEPEND} ) -" - -RDEPEND="${COMMON_DEPEND} - !app-office/libreoffice-bin - !app-office/openoffice-bin - !app-office/openoffice - media-fonts/libertine-ttf - media-fonts/liberation-fonts - java? ( >=virtual/jre-1.6 ) -" - -PDEPEND=" - >=app-office/libreoffice-l10n-3.5.0 -" - -# FIXME: cppunit should be moved to test conditional -# after everything upstream is under gbuild -# as dmake execute tests right away -DEPEND="${COMMON_DEPEND} - >=dev-libs/boost-1.46 - >=dev-libs/libxml2-2.7.8 - dev-libs/libxslt - dev-perl/Archive-Zip - dev-util/cppunit - >=dev-util/gperf-3 - dev-util/intltool - dev-util/mdds - >=dev-util/pkgconfig-0.26 - media-libs/sampleicc - >=net-misc/curl-7.21.4 - net-misc/npapi-sdk - >=sys-apps/findutils-4.4.2 - sys-devel/bison - sys-apps/coreutils - sys-devel/flex - sys-devel/gettext - >=sys-devel/make-3.82 - sys-libs/zlib - x11-libs/libXtst - x11-proto/randrproto - x11-proto/xextproto - x11-proto/xineramaproto - x11-proto/xproto - java? ( - =virtual/jdk-1.6* - >=dev-java/ant-core-1.7 - test? ( dev-java/junit:4 ) - ) -" - -PATCHES=( -) - -REQUIRED_USE=" - nsplugin? ( gtk ) - gnome? ( gtk ) - eds? ( gnome ) -" - -S="${WORKDIR}/${PN}-core-${PV}" - -pkg_pretend() { - local pgslot - - if [[ ${MERGE_TYPE} != binary ]]; then - CHECKREQS_MEMORY="512M" - use debug && CHECKREQS_DISK_BUILD="10G" || CHECKREQS_DISK_BUILD="6G" - check-reqs_pkg_pretend - - if [[ $(gcc-major-version) -lt 4 ]]; then - eerror "Compilation with gcc older than 4.0 is not supported" - die "Too old gcc found." - fi - fi - - # ensure pg version - if use postgres; then - pgslot=$(postgresql-config show) - if [[ ${pgslot//.} < 90 ]] ; then - eerror "PostgreSQL slot must be set to 9.0 or higher." - eerror " postgresql-config set 9.0" - die "PostgreSQL slot is not set to 9.0 or higher." - fi - fi -} - -pkg_setup() { - java-pkg-opt-2_pkg_setup - kde4-base_pkg_setup - - python_set_active_version 2 - python_pkg_setup - - if ! use gtk; then - ewarn "If you want the LibreOffice systray quickstarter to work" - ewarn "activate the 'gtk' use flag." - ewarn - fi -} - -src_unpack() { - local mod dest tmplfile tmplname mypv - - [[ -n ${PATCHSET} ]] && unpack ${PATCHSET} - if use branding; then - unpack "${BRANDING}" - fi - - if [[ ${PV} != *9999* ]]; then - for mod in ${MODULES}; do - if [[ ${mod} == binfilter ]] && ! use binfilter; then - continue - fi - unpack "${PN}-${mod}-${PV}.tar.xz" - if [[ ${mod} != core ]]; then - mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" - rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" - fi - done - else - for mod in ${MODULES}; do - if [[ ${mod} == binfilter ]] && ! use binfilter; then - continue - fi - mypv=${PV/.9999} - [[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}" - EGIT_PROJECT="${PN}/${mod}" - EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}" - EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}" - EGIT_NOUNPACK="true" - git-2_src_unpack - if [[ ${mod} != core ]]; then - mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" - rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" - fi - done - unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH - fi -} - -src_prepare() { - # optimization flags - export ARCH_FLAGS="${CXXFLAGS}" - export LINKFLAGSOPTIMIZE="${LDFLAGS}" - - # patchset - if [[ -n ${PATCHSET} ]]; then - EPATCH_FORCE="yes" \ - EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \ - EPATCH_SUFFIX="patch" \ - epatch - fi - - base_src_prepare - eautoreconf - # hack in the autogen.sh - touch autogen.lastrun -} - -src_configure() { - local java_opts - local internal_libs - local themes="default" - local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}") - - # recheck that there is some value in jobs - [[ -z ${jbs} ]] && jbs="1" - - # expand themes we are going to build based on DE useflags - use gnome && themes+=" tango" - use kde && themes+=" oxygen" - - # sane: just sane.h header that is used for scan in writer, not - # linked or anything else, worthless to depend on - # vigra: just uses templates from there - # it is serious pain in the ass for packaging - # should be replaced by boost::gil if someone interested - internal_libs+=" - --without-system-sane - --without-system-vigra - " - - if use java; then - # hsqldb: system one is too new - # saxon: system one does not work properly - java_opts=" - --without-system-hsqldb - --without-system-saxon - --with-ant-home="${ANT_HOME}" - --with-jdk-home=$(java-config --jdk-home 2>/dev/null) - --with-java-target-version=$(java-pkg_get-target) - --with-jvm-path="${EPREFIX}/usr/$(get_libdir)/" - --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) - --with-lucene-core-jar=$(java-pkg_getjar lucene-2.9 lucene-core.jar) - --with-lucene-analyzers-jar=$(java-pkg_getjar lucene-analyzers-2.3 lucene-analyzers.jar) - " - if use test; then - java_opts+=" --with-junit=$(java-pkg_getjar junit-4 junit.jar)" - else - java_opts+=" --without-junit" - fi - fi - - if use branding; then - internal_libs+=" - --with-about-bitmap="${WORKDIR}/branding-about.png" - --with-intro-bitmap="${WORKDIR}/branding-intro.png" - " - fi - - # system headers/libs/...: enforce using system packages - # --enable-unix-qstart-libpng: use libpng splashscreen that is faster - # --enable-cairo: ensure that cairo is always required - # --enable-*-link: link to the library rather than just dlopen on runtime - # --enable-release-build: build the libreoffice as release - # --disable-fetch-external: prevent dowloading during compile phase - # --disable-gnome-vfs: old gnome virtual fs support - # --disable-kdeab: kde3 adressbook - # --disable-kde: kde3 support - # --disable-ldap: ldap requires internal mozilla stuff, same like mozab - # --disable-mozilla: disable mozilla build that is used for adresbook, not - # affecting the nsplugin that is always ON - # --disable-pch: precompiled headers cause build crashes - # --disable-rpath: relative runtime path is not desired - # --disable-static-gtk: ensure that gtk is linked dynamically - # --disable-ugly: disable ugly pieces of code - # --disable-zenity: disable build icon - # --enable-extension-integration: enable any extension integration support - # --with-{max-jobs,num-cpus}: ensuring parallel building - # --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs - # --without-stlport: disable deprecated extensions framework - # --disable-ext-report-builder: too much java packages pulled in - econf \ - --docdir="${EPREFIX}/usr/share/doc/${PF}/" \ - --with-system-headers \ - --with-system-libs \ - --with-system-jars \ - --with-system-dicts \ - --enable-cairo-canvas \ - --enable-largefile \ - --enable-python=system \ - --enable-randr \ - --enable-randr-link \ - --enable-release-build \ - --enable-unix-qstart-libpng \ - --disable-ccache \ - --disable-crashdump \ - --disable-dependency-tracking \ - --disable-epm \ - --disable-fetch-external \ - --disable-gnome-vfs \ - --disable-ext-report-builder \ - --disable-kdeab \ - --disable-kde \ - --disable-ldap \ - --disable-mozilla \ - --disable-online-update \ - --disable-pch \ - --disable-rpath \ - --disable-static-gtk \ - --disable-strip-solver \ - --disable-ugly \ - --disable-zenity \ - --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \ - --with-build-version="Gentoo official package" \ - --enable-extension-integration \ - --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \ - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \ - --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \ - --with-external-tar="${DISTDIR}" \ - --with-lang="" \ - --with-max-jobs=${jbs} \ - --with-num-cpus=${jbs} \ - --with-theme="${themes}" \ - --with-unix-wrapper=libreoffice \ - --with-vendor="Gentoo Foundation" \ - --with-x \ - --without-afms \ - --without-fonts \ - --without-myspell-dicts \ - --without-ppds \ - --without-stlport \ - --without-system-mozilla \ - --without-help \ - --without-helppack-integration \ - --without-sun-templates \ - $(use_enable binfilter) \ - $(use_enable dbus) \ - $(use_enable debug crashdump) \ - $(use_enable eds evolution2) \ - $(use_enable gnome gconf) \ - $(use_enable gnome gio) \ - $(use_enable gnome lockdown) \ - $(use_enable graphite) \ - $(use_enable gstreamer) \ - $(use_enable gtk) \ - $(use_enable gtk3) \ - $(use_enable gtk systray) \ - $(use_enable java ext-scripting-beanshell) \ - $(use_enable kde kde4) \ - $(use_enable mysql ext-mysql-connector) \ - $(use_enable nsplugin) \ - $(use_enable odk) \ - $(use_enable opengl) \ - $(use_enable pdfimport ext-pdfimport) \ - $(use_enable postgres ext-postgresql-sdbc) \ - $(use_enable svg librsvg system) \ - $(use_enable test linkoo) \ - $(use_enable vba) \ - $(use_enable vba activex-component) \ - $(use_enable webdav neon) \ - $(use_enable xmlsec) \ - $(use_with java) \ - $(use_with mysql system-mysql-cppconn) \ - ${internal_libs} \ - ${java_opts} -} - -src_compile() { - # this is not a proper make script and the jobs are passed during configure - make build || die -} - -src_test() { - make check || die -} - -src_install() { - # This is not Makefile so no buildserver - make DESTDIR="${D}" distro-pack-install -o build -o check || die - - # Fix bash completion placement - newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN} - rm -rf "${ED}"/etc/ - - # symlink the nsplugin to system location - if use nsplugin; then - inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so - fi - - if use branding; then - insinto /usr/$(get_libdir)/${PN}/program - newins "${WORKDIR}/branding-sofficerc" sofficerc - fi -} - -pkg_preinst() { - # Cache updates - all handled by kde eclass for all environments - kde4-base_pkg_preinst -} - -pkg_postinst() { - kde4-base_pkg_postinst - - pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin -} - -pkg_postrm() { - kde4-base_pkg_postrm -} diff --git a/app-office/libreoffice/libreoffice-3.5.0.1.ebuild b/app-office/libreoffice/libreoffice-3.5.0.1.ebuild new file mode 100644 index 000000000000..c5bc2e83b79b --- /dev/null +++ b/app-office/libreoffice/libreoffice-3.5.0.1.ebuild @@ -0,0 +1,499 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice/libreoffice-3.5.0.1.ebuild,v 1.1 2012/01/18 12:49:59 scarabeus Exp $ + +EAPI=4 + +KDE_REQUIRED="optional" +KDE_SCM="git" +CMAKE_REQUIRED="never" + +PYTHON_DEPEND="2" +PYTHON_USE_WITH="threads,xml" + +# experimental ; release ; old +# Usually the tarballs are moved a lot so this should make +# everyone happy. +DEV_URI=" + http://dev-builds.libreoffice.org/pre-releases/src + http://download.documentfoundation.org/libreoffice/src + http://download.documentfoundation.org/libreoffice/old/src +" +EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice" +ADDONS_URI="http://dev-www.libreoffice.org/src/" + +BRANDING="${PN}-branding-gentoo-0.3.tar.xz" +# PATCHSET="${P}-patchset-01.tar.xz" + +[[ ${PV} == *9999* ]] && SCM_ECLASS="git-2" +inherit base autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils prefix python multilib toolchain-funcs flag-o-matic nsplugins ${SCM_ECLASS} +unset SCM_ECLASS + +DESCRIPTION="LibreOffice, a full office productivity suite." +HOMEPAGE="http://www.libreoffice.org" +SRC_URI="branding? ( http://dev.gentooexperimental.org/~scarabeus/${BRANDING} )" +[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}" + +# Split modules following git/tarballs +# Core MUST be first! +MODULES="core binfilter" +# Only release has the tarballs +if [[ ${PV} != *9999* ]]; then + for i in ${DEV_URI}; do + for mod in ${MODULES}; do + if [[ ${mod} == binfilter ]]; then + SRC_URI+=" binfilter? ( ${i}/${PN}-${mod}-${PV}.tar.xz )" + else + SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz" + fi + done + unset mod + done + unset i +fi +unset DEV_URI + +# Really required addons +# These are bundles that can't be removed for now due to huge patchsets. +# If you want them gone, patches are welcome. +ADDONS_SRC+=" ${ADDONS_URI}/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz" +ADDONS_SRC+=" xmlsec? ( ${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz )" +ADDONS_SRC+=" java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" +ADDONS_SRC+=" java? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" +ADDONS_SRC+=" java? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" +ADDONS_SRC+=" java? ( ${ADDONS_URI}/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip )" +ADDONS_SRC+=" odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" +SRC_URI+=" ${ADDONS_SRC}" + +unset ADDONS_URI +unset EXT_URI +unset ADDONS_SRC + +IUSE="binfilter +branding dbus debug eds gnome +graphite gstreamer +gtk gtk3 ++jemalloc kde mysql +nsplugin odk opengl pdfimport postgres svg test +vba ++webdav +xmlsec" +LICENSE="LGPL-3" +SLOT="0" +[[ ${PV} == *9999* ]] || KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" + +NSS_DEPEND=" + >=dev-libs/nspr-4.8.8 + >=dev-libs/nss-3.12.9 +" + +COMMON_DEPEND=" + app-arch/zip + app-arch/unzip + >=app-text/hunspell-1.3.2-r3 + app-text/mythes + >=app-text/libexttextcat-3.2 + app-text/libwpd:0.9[tools] + app-text/libwpg:0.2 + >=app-text/libwps-0.2.2 + dev-cpp/libcmis + dev-db/unixODBC + dev-libs/expat + >=dev-libs/glib-2.28 + >=dev-libs/hyphen-2.7.1 + >=dev-libs/icu-4.8.1-r1 + >=dev-lang/perl-5.0 + >=dev-libs/openssl-1.0.0d + >=dev-libs/redland-1.0.14[ssl] + >=media-libs/fontconfig-2.8.0 + media-libs/freetype:2 + >=media-libs/libpng-1.4 + media-libs/libvisio + net-print/cups + sci-mathematics/lpsolve + >=sys-libs/db-4.8 + virtual/jpeg + >=x11-libs/cairo-1.10.0 + x11-libs/libXinerama + x11-libs/libXrandr + x11-libs/libXrender + dbus? ( >=dev-libs/dbus-glib-0.92 ) + eds? ( gnome-extra/evolution-data-server ) + gnome? ( + gnome-base/gconf:2 + gnome-base/orbit + ) + gtk? ( >=x11-libs/gtk+-2.24:2 ) + gtk3? ( >=x11-libs/gtk+-3.2:3 ) + graphite? ( media-gfx/graphite2 ) + gstreamer? ( + >=media-libs/gstreamer-0.10 + >=media-libs/gst-plugins-base-0.10 + ) + java? ( + >=dev-java/bsh-2.0_beta4 + dev-java/lucene:2.9 + dev-java/lucene-analyzers:2.3 + ) + jemalloc? ( dev-libs/jemalloc ) + mysql? ( >=dev-db/mysql-connector-c++-1.1.0 ) + opengl? ( virtual/opengl ) + pdfimport? ( >=app-text/poppler-0.16[xpdf-headers,cxx] ) + postgres? ( >=dev-db/postgresql-base-8.4.0 ) + svg? ( gnome-base/librsvg ) + webdav? ( net-libs/neon ) + xmlsec? ( ${NSS_DEPEND} ) +" + +RDEPEND="${COMMON_DEPEND} + !app-office/libreoffice-bin + !app-office/openoffice-bin + !app-office/openoffice + media-fonts/libertine-ttf + media-fonts/liberation-fonts + java? ( >=virtual/jre-1.6 ) +" + +PDEPEND=" + >=app-office/libreoffice-l10n-3.5.0 +" + +# FIXME: cppunit should be moved to test conditional +# after everything upstream is under gbuild +# as dmake execute tests right away +DEPEND="${COMMON_DEPEND} + >=dev-libs/boost-1.46 + >=dev-libs/libxml2-2.7.8 + dev-libs/libxslt + dev-perl/Archive-Zip + dev-util/cppunit + >=dev-util/gperf-3 + dev-util/intltool + dev-util/mdds + >=dev-util/pkgconfig-0.26 + media-libs/sampleicc + >=net-misc/curl-7.21.4 + net-misc/npapi-sdk + >=sys-apps/findutils-4.4.2 + sys-devel/bison + sys-apps/coreutils + sys-devel/flex + sys-devel/gettext + >=sys-devel/make-3.82 + sys-libs/zlib + x11-libs/libXtst + x11-proto/randrproto + x11-proto/xextproto + x11-proto/xineramaproto + x11-proto/xproto + java? ( + =virtual/jdk-1.6* + >=dev-java/ant-core-1.7 + test? ( dev-java/junit:4 ) + ) +" + +PATCHES=( +) + +REQUIRED_USE=" + nsplugin? ( gtk ) + gnome? ( gtk ) + eds? ( gnome ) +" + +S="${WORKDIR}/${PN}-core-${PV}" + +pkg_pretend() { + local pgslot + + if [[ ${MERGE_TYPE} != binary ]]; then + CHECKREQS_MEMORY="512M" + use debug && CHECKREQS_DISK_BUILD="10G" || CHECKREQS_DISK_BUILD="6G" + check-reqs_pkg_pretend + + if [[ $(gcc-major-version) -lt 4 ]]; then + eerror "Compilation with gcc older than 4.0 is not supported" + die "Too old gcc found." + fi + fi + + # ensure pg version + if use postgres; then + pgslot=$(postgresql-config show) + if [[ ${pgslot//.} < 90 ]] ; then + eerror "PostgreSQL slot must be set to 9.0 or higher." + eerror " postgresql-config set 9.0" + die "PostgreSQL slot is not set to 9.0 or higher." + fi + fi +} + +pkg_setup() { + java-pkg-opt-2_pkg_setup + kde4-base_pkg_setup + + python_set_active_version 2 + python_pkg_setup + + if ! use gtk; then + ewarn "If you want the LibreOffice systray quickstarter to work" + ewarn "activate the 'gtk' use flag." + ewarn + fi +} + +src_unpack() { + local mod dest tmplfile tmplname mypv + + [[ -n ${PATCHSET} ]] && unpack ${PATCHSET} + if use branding; then + unpack "${BRANDING}" + fi + + if [[ ${PV} != *9999* ]]; then + for mod in ${MODULES}; do + if [[ ${mod} == binfilter ]] && ! use binfilter; then + continue + fi + unpack "${PN}-${mod}-${PV}.tar.xz" + if [[ ${mod} != core ]]; then + mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" + rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" + fi + done + else + for mod in ${MODULES}; do + if [[ ${mod} == binfilter ]] && ! use binfilter; then + continue + fi + mypv=${PV/.9999} + [[ ${mypv} != ${PV} ]] && EGIT_BRANCH="${PN}-${mypv/./-}" + EGIT_PROJECT="${PN}/${mod}" + EGIT_SOURCEDIR="${WORKDIR}/${PN}-${mod}-${PV}" + EGIT_REPO_URI="git://anongit.freedesktop.org/${PN}/${mod}" + EGIT_NOUNPACK="true" + git-2_src_unpack + if [[ ${mod} != core ]]; then + mv -n "${WORKDIR}/${PN}-${mod}-${PV}"/* "${S}" + rm -rf "${WORKDIR}/${PN}-${mod}-${PV}" + fi + done + unset EGIT_PROJECT EGIT_SOURCEDIR EGIT_REPO_URI EGIT_BRANCH + fi +} + +src_prepare() { + # optimization flags + export ARCH_FLAGS="${CXXFLAGS}" + export LINKFLAGSOPTIMIZE="${LDFLAGS}" + + # patchset + if [[ -n ${PATCHSET} ]]; then + EPATCH_FORCE="yes" \ + EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \ + EPATCH_SUFFIX="patch" \ + epatch + fi + + base_src_prepare + eautoreconf + # hack in the autogen.sh + touch autogen.lastrun +} + +src_configure() { + local java_opts + local internal_libs + local themes="default" + local jbs=$(sed -ne 's/.*\(-j[[:space:]]*\|--jobs=\)\([[:digit:]]\+\).*/\2/;T;p' <<< "${MAKEOPTS}") + + # recheck that there is some value in jobs + [[ -z ${jbs} ]] && jbs="1" + + # expand themes we are going to build based on DE useflags + use gnome && themes+=" tango" + use kde && themes+=" oxygen" + + # sane: just sane.h header that is used for scan in writer, not + # linked or anything else, worthless to depend on + # vigra: just uses templates from there + # it is serious pain in the ass for packaging + # should be replaced by boost::gil if someone interested + internal_libs+=" + --without-system-sane + --without-system-vigra + " + + if use java; then + # hsqldb: system one is too new + # saxon: system one does not work properly + java_opts=" + --without-system-hsqldb + --without-system-saxon + --with-ant-home="${ANT_HOME}" + --with-jdk-home=$(java-config --jdk-home 2>/dev/null) + --with-java-target-version=$(java-pkg_get-target) + --with-jvm-path="${EPREFIX}/usr/$(get_libdir)/" + --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) + --with-lucene-core-jar=$(java-pkg_getjar lucene-2.9 lucene-core.jar) + --with-lucene-analyzers-jar=$(java-pkg_getjar lucene-analyzers-2.3 lucene-analyzers.jar) + " + if use test; then + java_opts+=" --with-junit=$(java-pkg_getjar junit-4 junit.jar)" + else + java_opts+=" --without-junit" + fi + fi + + if use branding; then + internal_libs+=" + --with-about-bitmap="${WORKDIR}/branding-about.png" + --with-intro-bitmap="${WORKDIR}/branding-intro.png" + " + fi + + # system headers/libs/...: enforce using system packages + # --enable-unix-qstart-libpng: use libpng splashscreen that is faster + # --enable-cairo: ensure that cairo is always required + # --enable-*-link: link to the library rather than just dlopen on runtime + # --enable-release-build: build the libreoffice as release + # --disable-fetch-external: prevent dowloading during compile phase + # --disable-gnome-vfs: old gnome virtual fs support + # --disable-kdeab: kde3 adressbook + # --disable-kde: kde3 support + # --disable-ldap: ldap requires internal mozilla stuff, same like mozab + # --disable-mozilla: disable mozilla build that is used for adresbook, not + # affecting the nsplugin that is always ON + # --disable-pch: precompiled headers cause build crashes + # --disable-rpath: relative runtime path is not desired + # --disable-static-gtk: ensure that gtk is linked dynamically + # --disable-ugly: disable ugly pieces of code + # --disable-zenity: disable build icon + # --enable-extension-integration: enable any extension integration support + # --with-{max-jobs,num-cpus}: ensuring parallel building + # --without-{afms,fonts,myspell-dicts,ppsd}: prevent install of sys pkgs + # --without-stlport: disable deprecated extensions framework + # --disable-ext-report-builder: too much java packages pulled in + econf \ + --docdir="${EPREFIX}/usr/share/doc/${PF}/" \ + --with-system-headers \ + --with-system-libs \ + --with-system-jars \ + --with-system-dicts \ + --enable-cairo-canvas \ + --enable-largefile \ + --enable-python=system \ + --enable-randr \ + --enable-randr-link \ + --enable-release-build \ + --enable-unix-qstart-libpng \ + --disable-ccache \ + --disable-crashdump \ + --disable-dependency-tracking \ + --disable-epm \ + --disable-fetch-external \ + --disable-gnome-vfs \ + --disable-ext-report-builder \ + --disable-kdeab \ + --disable-kde \ + --disable-ldap \ + --disable-mozilla \ + --disable-online-update \ + --disable-pch \ + --disable-rpath \ + --disable-static-gtk \ + --disable-strip-solver \ + --disable-ugly \ + --disable-zenity \ + --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \ + --with-build-version="Gentoo official package" \ + --enable-extension-integration \ + --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \ + --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \ + --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \ + --with-external-tar="${DISTDIR}" \ + --with-lang="" \ + --with-max-jobs=${jbs} \ + --with-num-cpus=${jbs} \ + --with-theme="${themes}" \ + --with-unix-wrapper=libreoffice \ + --with-vendor="Gentoo Foundation" \ + --with-x \ + --without-afms \ + --without-fonts \ + --without-myspell-dicts \ + --without-ppds \ + --without-stlport \ + --without-system-mozilla \ + --without-help \ + --without-helppack-integration \ + --without-sun-templates \ + $(use_enable binfilter) \ + $(use_enable dbus) \ + $(use_enable debug crashdump) \ + $(use_enable eds evolution2) \ + $(use_enable gnome gconf) \ + $(use_enable gnome gio) \ + $(use_enable gnome lockdown) \ + $(use_enable graphite) \ + $(use_enable gstreamer) \ + $(use_enable gtk) \ + $(use_enable gtk3) \ + $(use_enable gtk systray) \ + $(use_enable java ext-scripting-beanshell) \ + $(use_enable kde kde4) \ + $(use_enable mysql ext-mysql-connector) \ + $(use_enable nsplugin) \ + $(use_enable odk) \ + $(use_enable opengl) \ + $(use_enable pdfimport ext-pdfimport) \ + $(use_enable postgres ext-postgresql-sdbc) \ + $(use_enable svg librsvg system) \ + $(use_enable test linkoo) \ + $(use_enable vba) \ + $(use_enable vba activex-component) \ + $(use_enable webdav neon) \ + $(use_enable xmlsec) \ + $(use_with java) \ + $(use_with mysql system-mysql-cppconn) \ + ${internal_libs} \ + ${java_opts} +} + +src_compile() { + # this is not a proper make script and the jobs are passed during configure + make build || die +} + +src_test() { + make check || die +} + +src_install() { + # This is not Makefile so no buildserver + make DESTDIR="${D}" distro-pack-install -o build -o check || die + + # Fix bash completion placement + newbashcomp "${ED}"/etc/bash_completion.d/libreoffice.sh ${PN} + rm -rf "${ED}"/etc/ + + # symlink the nsplugin to system location + if use nsplugin; then + inst_plugin /usr/$(get_libdir)/libreoffice/program/libnpsoplugin.so + fi + + if use branding; then + insinto /usr/$(get_libdir)/${PN}/program + newins "${WORKDIR}/branding-sofficerc" sofficerc + fi +} + +pkg_preinst() { + # Cache updates - all handled by kde eclass for all environments + kde4-base_pkg_preinst +} + +pkg_postinst() { + kde4-base_pkg_postinst + + pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin +} + +pkg_postrm() { + kde4-base_pkg_postrm +} -- cgit v1.2.3-65-gdbad