commit: 6a883ab4e6e328652f5f15203ef38985966cceab Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Fri Feb 16 11:57:36 2018 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Fri Feb 16 11:58:42 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a883ab4
app-office/libreoffice*: Cleanup vulnerable 5.4.4.2 Bug: https://bugs.gentoo.org/647186 Package-Manager: Portage-2.3.24, Repoman-2.3.6 app-office/libreoffice-bin-debug/Manifest | 12 - .../libreoffice-bin-debug-5.4.4.2.ebuild | 87 ---- .../libreoffice-bin/libreoffice-bin-5.4.4.2.ebuild | 255 --------- .../libreoffice-l10n-5.4.4.2.ebuild | 88 ---- app-office/libreoffice/libreoffice-5.4.4.2.ebuild | 579 --------------------- 5 files changed, 1021 deletions(-) diff --git a/app-office/libreoffice-bin-debug/Manifest b/app-office/libreoffice-bin-debug/Manifest index ccd22d87240..05bebdc2b7f 100644 --- a/app-office/libreoffice-bin-debug/Manifest +++ b/app-office/libreoffice-bin-debug/Manifest @@ -1,24 +1,12 @@ -DIST amd64-debug-libreoffice-5.4.4.2.tar.xz 1157249908 BLAKE2B f3f54787550e151b23d9d40d5fa17d37dde0343570bda58c271be6eb5b59722cee784c799a675d6e4bbaf253d2e93534d0509908dbdb899e76f1d45d7660f2bf SHA512 9df6da88372d326694737c67d5f6333b36aed6661e4e1dbd079aa102cb910d23e152c541a456f05852be3aea6994f5ee7a555ce3444b81d9b8bb8e91f9ed65ce DIST amd64-debug-libreoffice-5.4.5.1.tar.xz 1157575908 BLAKE2B 8e1d646aa90c6739afe00da67fcaa93431c2504c190e8537393cac5a77033672a3df45f2b261e8dd262cbcb0e0cea0992994e8bd53f5cebcc5b55d0044115553 SHA512 dac4a9bc7e0c2c11f2d4d45dbb4bc6b91ad32ab226a26cebb81b070b2d672fa03c0b5bc9aee08447d55b285b915a118e6d0fc27c9cba27d9d93ea233c12915bd -DIST amd64-debug-libreoffice-gnome-5.4.4.2.xd3 331643342 BLAKE2B b61c70427b1a279275829542b135891204f258cf526b2b0f8d892e1f1a9b37477bd859099638385cd7bd342671a476b3f0bbacaa02b2622cb9bb080f6fe1deea SHA512 592287ef7358385568eb80d3420d84de2f8322f0c76bc187fd0147a8007ca2bab879caa04cca3f7aff9601de3b5d9b3210e262c6c6aaf9d7197ed61d1988ce97 DIST amd64-debug-libreoffice-gnome-5.4.5.1.xd3 331679185 BLAKE2B aa8e055aa7be3cbca196934e4f2d7ddceb3cccf92a1d3f1bb4bfc8b8e73274abd7b36dfa515e3f11052e131fa31af500761d88e28839c697ca2951e62015b2a3 SHA512 c3d9f4b5732a870090c598fc3d697a7c508b418574899fe36aadc4e691155887b9366ca46dedc30ea4d59bbf7643d839bdcf949abe3fbd683d4e161a20b6ae8c -DIST amd64-debug-libreoffice-gnome-java-5.4.4.2.xd3 563946969 BLAKE2B ab9d4bd1367ddc03a4a2857235b366deff616f28424efe253877cb0eb66c12b2d43b2e8fb7b9dcbcfe3f348b239728ad0f990ed03db419fdc9bb46d38e2493b7 SHA512 080f4f86358f5180781460f1eee501bc34654ca2ef5a0445d24c3d1e72edef5275ba0e21da6aa3838b51438c39701963f6e151e6c8aed4325967bd0cba26385e DIST amd64-debug-libreoffice-gnome-java-5.4.5.1.xd3 563805504 BLAKE2B 8b4cdf10ef011c4657cec26a78d8ed79c1c8de36a67a62a0fd0daa3d7f9d739bd38d611cf1f79aa7a25c189ec2fb1fa22f292bb79769686dc73be11373b7135a SHA512 52c618371722136bce7440ed20b7d3a01c66a215d13c037a8bb2eb8691f51d38ff37310b063598f8e5750235304de018de9acb77f93912d44f9e22877ed27670 -DIST amd64-debug-libreoffice-java-5.4.4.2.xd3 555918957 BLAKE2B 7bccebd636c89f14eafa942b09591f36e45339690bf64266feb8aa13f243547a1f4cb64287c9a896ac44ab42db8ab6549d149f34932bd727cef06236c335dd7a SHA512 048aeac43dc6751faafd9541323fc219dab5aae34781a292113e75e6ded96b20a002ecd03f10f8b7df0d538e4cba9dcbf659f42b45d14940dfe89054ec5a1fde DIST amd64-debug-libreoffice-java-5.4.5.1.xd3 555709754 BLAKE2B 13131e8c9e61663b6b595af308d307806ab3ded347796d669d397782b3795dae4bb477ca214007cd7470c7476b7ff0fb8e4b0b90a2581ff09bfe273f1ac81eb2 SHA512 809c7787b36a5354295d60a311ae3e5f48f078f7e0a596aa48ab099796d59f3aa30d40441cf834480665717dd72b98e28205e3cc985611901d8ba85d99c4a318 -DIST amd64-debug-libreoffice-kde-5.4.4.2.xd3 338710001 BLAKE2B cc11889039cdddceb109b6274c19a5311ca1900466e4e4bcfe9c67280eaca63f6c6a09dd3dfdb824d3571c2cc23a967d0242cc3e93f5803c80fee5abfb6ab523 SHA512 66868097eb0c9dfcd727903066838e56ab16d163268300efab51d77ec70912bbc8973d926b7d0282e311cb01f21e576536e004ac1c555c4d6b151045d5699ac5 DIST amd64-debug-libreoffice-kde-5.4.5.1.xd3 337957489 BLAKE2B d7599148be2770423226666c10511ce721bc59ed29ba54dacc696b6b00768baa6f4f2ebaebad227457db22454e0adc1ea59aab4a63c592b10b87ac773af02b2a SHA512 06a2afb7d014fd6ddbfc935267e59c82a9295c37bd30d17d210627b0678bd6050810c54e675e41627f5f9fe4814c14768c7cc25436388bcbafe5839868fe4964 -DIST amd64-debug-libreoffice-kde-java-5.4.4.2.xd3 557723085 BLAKE2B 014a3ec204e5253b15cd6375f73a4907951444f076c8acf5f7fbcdb8dc85fcf617cc659e25cf61343bb4826a9c0d47b3187e96d0f79c5afafdf6e5243033d994 SHA512 0a5b44a3579e315e58a44b32299cd67d06ebef5c2dabc70ddf6403b1502de15d228f0496980cf9b4decbde3213600b0686ef016d93877c22d7ddcfad9b51090f DIST amd64-debug-libreoffice-kde-java-5.4.5.1.xd3 557521078 BLAKE2B 343b9dc888cc1582e2ac14532f5de2e2b728be3919204296696e208774da82f3e90a2f447bc5c3d703383c57e6155486fd0b7f5900185969141c69877dfafb16 SHA512 519a0977a003c2e1b47832a0a1ebc2de197522b4193a1890330f9f040d23a93b285a1b4e8efbe4de357a40537b68592c8f40cb72dec3d80fa871938f3c246e64 -DIST x86-debug-libreoffice-5.4.4.2.tar.xz 1129709360 BLAKE2B b4147a670ccd30ca6c459571190cf52d2f94f038c934733230c0b88878a1c30c92f3e8837ba69ce30f8ab219fac79572fdf92d5e280d484a53d574105dfec7b6 SHA512 510ea4e36459a18144a041e0d111c668e6514a3291fd23a3d495bf5cf11ed13fd58c6cb0774fbd3255da666ac473f901a07ccaf35e36be33b3b0558a31de35e1 DIST x86-debug-libreoffice-5.4.5.1.tar.xz 1130163208 BLAKE2B 2288afbf5773ca93d7eb28e95ea388b4f8770684b55923c291dd80327853d7b58a0895ff053769809a407981d36c4aca3a94bbc3e40ed4daa07acf07c2a40e4e SHA512 7cd7a73996ab43e17b4b6c941c109a0ac99a44727056a54a6ea40a45d59bcb86c1875748834a7b0e84b31c92f1d120898bc63b4400e3be0743bdcfaeae2d04b8 -DIST x86-debug-libreoffice-gnome-5.4.4.2.xd3 321695199 BLAKE2B 2333e2305c49fb6eac21b01604f6c0d79b5782a51258ed9a192213438c7352322d3a2272b1d37ea393531237e8150e207b779bb05f02b4a6c1c6cd86c814701c SHA512 f9d194503fffeec5ea8b5647b500a746f7ec86d1e9d05cc88f84c5f956f66aa5d5048d60de2be6233ef1b55617840c572097432a7db72ec2ee6043b05546fbb7 DIST x86-debug-libreoffice-gnome-5.4.5.1.xd3 321731155 BLAKE2B c6c459e01ea90133773436c1ade2911099f8299808c30f92bb55e095c42dc30fffb8052bf43b0f4aa7635e0eb17569644d02bcce9eafe5f6ccce1d35c1ccfe09 SHA512 1047c0c633914ddcb06e430ef8aefe6d3c74d1e70ac63005c6e22982210daa6eb092380cf74d8b41c87d979249f4fe0cbbf6bce7793a3b0a6785acf484616cad -DIST x86-debug-libreoffice-gnome-java-5.4.4.2.xd3 536476843 BLAKE2B 79b54f3d2d6b16aedc89f7be84b98433f3a9b5988a8959d49c28043aebd3b4d9170e8a4f2ab976eb0da6b6ec4ac24258e7eb38fb888ed8051ec9e44de5f7b4fb SHA512 2aacd941b34c6efe565660bb204651f37688d2ddcd2ab7a4dc5382ae335f76f97dc1228a63b31a48531de12d8dcc1e3df70bb6650390f9b930e7f8a61c582070 DIST x86-debug-libreoffice-gnome-java-5.4.5.1.xd3 535171694 BLAKE2B e3467d6d9656bc76c76fc98a2c5844675b85da47c56512588cd8221935aa53ecebd4bff07e09a27cb9980fad8015fb12f458b47fcb6ac1b6e8e8794a9f1fe621 SHA512 03f065f5a2e4d7fd608cd8820866562d40fb1db64b729522c27e8732c809f5425046858286d91085fe01dcfa3bd33725f8fad7a55f1b078c8b06815982acd5a4 -DIST x86-debug-libreoffice-java-5.4.4.2.xd3 528672548 BLAKE2B 7759d9e612cd87c9cc568922c4750376e757d79d17502075f63a97b952afb7a7aca2ed4523ecfaf5ca07b58234c1caf4ffc9fa9101695de227a48ad326540896 SHA512 c1e6c3e199ce03af538158cd587708642464df4bf003768b94f9188eee509843c0a7ac2b758d13ab61c6bdfdb92e3d333dc1432b0a39b7fd82e91ffac5645e99 DIST x86-debug-libreoffice-java-5.4.5.1.xd3 527291958 BLAKE2B 5fb90285b7573e4d4bd3b6aaa8fdda01c3bf14fed3f4c9eb0b754ceb899627e2b091e6901370cad28fa407a8a3940e717b191bef3487c54d4f61dd8eaf6fe323 SHA512 8cbd19d8983f310976242c6c4f46be6bcc5e5693e074e997ae4e2b18589bb1d99df6417a7bae1cb7a421374049f5878f333452b12f56b672a48683e4ea72181b -DIST x86-debug-libreoffice-kde-5.4.4.2.xd3 329354953 BLAKE2B 98713477df17bfd72f7458ced98672e03b3f40be2a5e95409a11ecb245d89416c93fe0ee11b81fde17543e228d19edde2ffbcec0bf82fb9fdb124401115a9f78 SHA512 5ac7f9872349b1da14994562840dfd203d2ae4413cf4437e5acef69690e41e17d760e0562aaa356fe76e2ff643e8a33e7e05c1a00f06735669c81a9f4dd95bfb DIST x86-debug-libreoffice-kde-5.4.5.1.xd3 328651433 BLAKE2B bd54186c17798909ca555d493083b7fe2f7f0820def97b6c09644e7652e722cb2be4cbd8cb6bfc637bd9d982aeb5f5e5dd19d7fc7ec79ca8599ab8e3f913e12e SHA512 776f17374f45d2914946e0ebbba3a75585b2a416660c1a0c79c5b395c33bf1cbe9bd9b37276c9ba82dcd5ca820ad4dc6c1e932e06c0a5adc70e315db72eca2fb -DIST x86-debug-libreoffice-kde-java-5.4.4.2.xd3 530430093 BLAKE2B 5619d7179d1bbbac296a7d91403d5ae09f63ce0548a1c90fbdfee481c3595221e6428061e5cd59aa94454a587fba6e2a0f0afed799fb5de26f01e708d8e4a230 SHA512 67c3f52cfd06cfa7c9133f4c829b8457d38b7ae83f663cd8b185105959fa5e022bd037ada8bb9ead950dfdc7437597b8ac4c98831d20d2422b4dcda518613aaa DIST x86-debug-libreoffice-kde-java-5.4.5.1.xd3 529080140 BLAKE2B d6cc31c28189ce1dd1b1e085bf6317914c85abebb4dfad64c15bbdf90689701ba35105ea24692086e81fbe17d691761f1305b938d4256a7dd5857e6ccb13feb8 SHA512 d5e5ee39c102ec951b437611186577b2f2ea25a529d26c01b97dd2452f38a52a2a0649944494246255451efd65af6cdea2fd724aa27d8b295570eb4658c01e3b diff --git a/app-office/libreoffice-bin-debug/libreoffice-bin-debug-5.4.4.2.ebuild b/app-office/libreoffice-bin-debug/libreoffice-bin-debug-5.4.4.2.ebuild deleted file mode 100644 index c88a1b8ba61..00000000000 --- a/app-office/libreoffice-bin-debug/libreoffice-bin-debug-5.4.4.2.ebuild +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -BASE_PACKAGENAME="debug" -BASE_AMD64_URI="http://packages.gentooexperimental.org/packages/amd64-libreoffice/amd64-${BASE_PACKAGENAME}-" -BASE_X86_URI="http://packages.gentooexperimental.org/packages/x86-libreoffice/x86-${BASE_PACKAGENAME}-" - -DESCRIPTION="LibreOffice, a full office productivity suite. Binary package, debug info" -HOMEPAGE="http://www.libreoffice.org" -SRC_URI_AMD64=" - ${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz - kde? ( - !java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 ) - java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 ) - ) - gnome? ( - !java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 ) - java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 ) - ) - !kde? ( !gnome? ( - java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 ) - ) ) -" -SRC_URI_X86=" - ${BASE_X86_URI}libreoffice-${PVR}.tar.xz - kde? ( - !java? ( ${BASE_X86_URI}libreoffice-kde-${PVR}.xd3 ) - java? ( ${BASE_X86_URI}libreoffice-kde-java-${PVR}.xd3 ) - ) - gnome? ( - !java? ( ${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3 ) - java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PVR}.xd3 ) - ) - !kde? ( !gnome? ( - java? ( ${BASE_X86_URI}libreoffice-java-${PVR}.xd3 ) - ) ) -" - -SRC_URI=" - amd64? ( ${SRC_URI_AMD64} ) - x86? ( ${SRC_URI_X86} ) -" - -IUSE="gnome java kde" -LICENSE="LGPL-3" -SLOT="0" -KEYWORDS="-* amd64 x86" - -RDEPEND="=app-office/${PN/-debug}-${PVR}[gnome=,java=,kde=]" - -DEPEND="dev-util/xdelta:3" - -RESTRICT="test strip" - -S="${WORKDIR}" - -QA_PREBUILT="/usr/*" - -src_unpack() { - einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" - xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die - - local patchname - use kde && patchname="-kde" - use gnome && patchname="-gnome" - use java && patchname="${patchname}-java" - - if [ -n "${patchname}" ]; then - einfo "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" - xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die - mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die - fi - - einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" - unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" -} - -src_configure() { :; } - -src_compile() { :; } - -src_install() { - dodir /usr - cp -aR "${S}"/usr/* "${ED}"/usr/ || die -} diff --git a/app-office/libreoffice-bin/libreoffice-bin-5.4.4.2.ebuild b/app-office/libreoffice-bin/libreoffice-bin-5.4.4.2.ebuild deleted file mode 100644 index f741bac8e42..00000000000 --- a/app-office/libreoffice-bin/libreoffice-bin-5.4.4.2.ebuild +++ /dev/null @@ -1,255 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -BASE_PACKAGENAME="bin" -BASE_AMD64_URI="http://packages.gentooexperimental.org/packages/amd64-libreoffice/amd64-${BASE_PACKAGENAME}-" -BASE_X86_URI="http://packages.gentooexperimental.org/packages/x86-libreoffice/x86-${BASE_PACKAGENAME}-" - -PYTHON_COMPAT=( python3_5 ) -PYTHON_REQ_USE="threads,xml" - -inherit gnome2-utils java-pkg-opt-2 python-single-r1 pax-utils prefix versionator xdg-utils - -DESCRIPTION="A full office productivity suite. Binary package" -HOMEPAGE="http://www.libreoffice.org" -SRC_URI_AMD64=" - ${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz - kde? ( - !java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 ) - java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 ) - ) - gnome? ( - !java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 ) - java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 ) - ) - !kde? ( !gnome? ( - java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 ) - ) ) -" -SRC_URI_X86=" - ${BASE_X86_URI}libreoffice-${PVR}.tar.xz - kde? ( - !java? ( ${BASE_X86_URI}libreoffice-kde-${PVR}.xd3 ) - java? ( ${BASE_X86_URI}libreoffice-kde-java-${PVR}.xd3 ) - ) - gnome? ( - !java? ( ${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3 ) - java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PVR}.xd3 ) - ) - !kde? ( !gnome? ( - java? ( ${BASE_X86_URI}libreoffice-java-${PVR}.xd3 ) - ) ) -" - -SRC_URI=" - amd64? ( ${SRC_URI_AMD64} ) - x86? ( ${SRC_URI_X86} ) -" - -IUSE="gnome java kde" -LICENSE="LGPL-3" -SLOT="0" -KEYWORDS="-* amd64 x86" - -BIN_COMMON_DEPEND=" - app-text/hunspell:0/1.6 - =app-text/libexttextcat-3.4* - =app-text/libmwaw-0.3* - dev-libs/boost:0/1.65.0 - dev-libs/icu:0/60.2 - >=media-gfx/graphite2-1.3.10 - media-libs/harfbuzz:0/0.9.18[icu] - media-libs/libpng:0/16 - >=sys-devel/gcc-6.4.0 - >=sys-libs/glibc-2.25 - virtual/jpeg:62 - kde? ( >=kde-frameworks/kdelibs-4.14.37:4 >=dev-qt/qtcore-4.8.7-r3:4 >=dev-qt/qtgui-4.8.7:4 ) -" - -# PLEASE place any restrictions that are specific to the binary builds -# into the BIN_COMMON_DEPEND block above. -# All dependencies below this point should remain identical to those in -# the source ebuilds. - -COMMON_DEPEND=" - ${BIN_COMMON_DEPEND} - ${PYTHON_DEPS} - app-arch/unzip - app-arch/zip - app-crypt/gpgme[cxx] - app-text/hunspell:= - >=app-text/libabw-0.1.0 - >=app-text/libebook-0.1 - >=app-text/libetonyek-0.1 - app-text/libexttextcat - app-text/liblangtag - >=app-text/libmspub-0.1.0 - >=app-text/libmwaw-0.3.1 - >=app-text/libodfgen-0.1.0 - app-text/libstaroffice - app-text/libwpd:0.10[tools] - app-text/libwpg:0.3 - >=app-text/libwps-0.4 - app-text/mythes - >=dev-cpp/clucene-2.3.3.4-r2 - =dev-cpp/libcmis-0.5* - dev-db/unixODBC - dev-lang/perl - dev-libs/boost:= - dev-libs/expat - dev-libs/hyphen - dev-libs/icu:= - dev-libs/libassuan - dev-libs/libgpg-error - =dev-libs/liborcus-0.12* - dev-libs/librevenge - dev-libs/nspr - dev-libs/nss - >=dev-libs/openssl-1.0.0d:0 - >=dev-libs/redland-1.0.16 - >=dev-libs/xmlsec-1.2.24[nss] - media-gfx/graphite2 - media-libs/fontconfig - media-libs/freetype:2 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu] - media-libs/lcms:2 - >=media-libs/libcdr-0.1.0 - >=media-libs/libepoxy-1.3.1 - >=media-libs/libfreehand-0.1.0 - media-libs/libpagemaker - >=media-libs/libpng-1.4:0= - >=media-libs/libvisio-0.1.0 - media-libs/libzmf - net-libs/neon - net-misc/curl - net-nds/openldap - sci-mathematics/lpsolve - x11-libs/cairo[X] - x11-libs/libXinerama - x11-libs/libXrandr - x11-libs/libXrender - virtual/glu - virtual/jpeg:0 - virtual/opengl - net-print/cups - dev-libs/dbus-glib - gnome? ( - dev-libs/glib:2 - gnome-base/dconf - gnome-extra/evolution-data-server - ) - media-libs/gstreamer:1.0 - media-libs/gst-plugins-base:1.0 - x11-libs/gdk-pixbuf - >=x11-libs/gtk+-2.24:2 - gnome? ( - dev-libs/glib:2 - dev-libs/gobject-introspection - gnome-base/dconf - x11-libs/gtk+:3 - ) - kde? ( - dev-qt/qtcore:4 - dev-qt/qtgui:4 - kde-frameworks/kdelibs - ) -" - -RDEPEND="${COMMON_DEPEND} - !app-office/libreoffice - !app-office/openoffice - media-fonts/dejavu - media-fonts/liberation-fonts - media-fonts/libertine - || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) - java? ( >=virtual/jre-1.6 ) - kde? ( kde-frameworks/oxygen-icons:* ) -" - -PDEPEND=" - =app-office/libreoffice-l10n-${PV}* -" - -DEPEND="dev-util/xdelta:3" - -# only one flavor at a time -REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde ) ${PYTHON_REQUIRED_USE}" - -RESTRICT="test strip" - -S="${WORKDIR}" - -PYTHON_UPDATER_IGNORE="1" - -QA_PREBUILT="/usr/*" - -pkg_pretend() { - [[ $(gcc-major-version) -lt 4 ]] || \ - ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \ - && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)." -} - -pkg_setup() { - python-single-r1_pkg_setup -} - -src_unpack() { - einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" - xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die - - local patchname - use kde && patchname="-kde" - use gnome && patchname="-gnome" - use java && patchname="${patchname}-java" - - if [ -n "${patchname}" ]; then - einfo "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" - xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die - mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die - fi - - einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" - unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" -} - -src_prepare() { - cp "${FILESDIR}"/50-${PN} "${T}" - eprefixify "${T}"/50-${PN} - default -} - -src_configure() { :; } - -src_compile() { :; } - -src_install() { - dodir /usr - cp -aR "${S}"/usr/* "${ED}"/usr/ - - # prevent revdep-rebuild from attempting to rebuild all the time - insinto /etc/revdep-rebuild && doins "${T}/50-${PN}" -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - xdg_desktop_database_update - xdg_mimeinfo_database_update - - pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin - pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin - - use java || \ - ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.' -} - -pkg_postrm() { - gnome2_icon_cache_update - xdg_desktop_database_update - xdg_mimeinfo_database_update -} diff --git a/app-office/libreoffice-l10n/libreoffice-l10n-5.4.4.2.ebuild b/app-office/libreoffice-l10n/libreoffice-l10n-5.4.4.2.ebuild deleted file mode 100644 index eade0e87ec0..00000000000 --- a/app-office/libreoffice-l10n/libreoffice-l10n-5.4.4.2.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit rpm versionator - -MY_PV=$(get_version_component_range 1-3) - -DESCRIPTION="Translations for the Libreoffice suite" -HOMEPAGE="https://www.libreoffice.org" -BASE_SRC_URI_TESTING="https://download.documentfoundation.org/${PN/-l10n/}/testing/${MY_PV}/rpm" -BASE_SRC_URI_STABLE="https://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm" - -LICENSE="|| ( LGPL-3 MPL-1.1 )" -SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux" -IUSE="offlinehelp" - -# -# when changing the language lists, please be careful to preserve the spaces (bug 491728) -# -# "en:en-US" for mapping from Gentoo "en" to upstream "en-US" etc. -LANGUAGES_HELP=" am ast bg bn-IN bn bo bs ca-valencia ca cs da de dz el en-GB en:en-US en-ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl pt-BR pt ru si sk sl sq sv tg tr ug uk vi zh-CN zh-TW " -LANGUAGES="${LANGUAGES_HELP}af ar as be br brx cy dgo fa ga gd gug kk kmr-Latn kn kok ks lb lo lt lv mai ml mn mni mr my nr nso oc or pa:pa-IN ro rw sa:sa-IN sat sd sid sr-Latn sr ss st sw-TZ ta te th tn ts tt uz ve xh zu " - -for lang in ${LANGUAGES_HELP}; do - helppack="offlinehelp? ( ${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_helppack_${lang#*:}.tar.gz )" - SRC_URI+=" l10n_${lang%:*}? ( ${helppack} )" -done -for lang in ${LANGUAGES}; do - if [[ ${lang%:*} != en ]]; then - langpack="${BASE_SRC_URI_STABLE}/x86/LibreOffice_${MY_PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz -> LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz ${BASE_SRC_URI_TESTING}/x86/LibreOffice_${PV}_Linux_x86_rpm_langpack_${lang#*:}.tar.gz" - SRC_URI+=" l10n_${lang%:*}? ( ${langpack} )" - fi - IUSE+=" l10n_${lang%:*}" -done -unset lang helppack langpack - -RDEPEND+="app-text/hunspell" - -RESTRICT="strip" - -S="${WORKDIR}" - -src_prepare() { - default - - local lang dir rpmdir - - # First remove dictionaries, we want to use system ones. - find "${S}" -name *dict*.rpm -delete || die "Failed to remove dictionaries" - - for lang in ${LANGUAGES}; do - # break away if not enabled - use l10n_${lang%:*} || continue - - dir=${lang#*:} - - # for english we provide just helppack, as translation is always there - if [[ ${lang%:*} != en ]]; then - rpmdir="LibreOffice_${PV}_Linux_x86_rpm_langpack_${dir}/RPMS/" - [[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}" - rpm_unpack ./${rpmdir}/*.rpm - fi - if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then - rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/" - [[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}" - rpm_unpack ./${rpmdir}/*.rpm - fi - done -} - -src_configure() { :; } -src_compile() { :; } - -src_install() { - local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2)/ - # Condition required for people that do not install anything eg no l10n - # or just english with no offlinehelp. - if [[ -d "${dir}" ]] ; then - insinto /usr/$(get_libdir)/${PN/-l10n/}/ - doins -r "${dir}"/* - fi - # remove extensions that are in the l10n for some weird reason - rm -rf "${ED}"usr/$(get_libdir)/${PN/-l10n/}/share/extensions/ || \ - die "Failed to remove extensions" -} diff --git a/app-office/libreoffice/libreoffice-5.4.4.2.ebuild b/app-office/libreoffice/libreoffice-5.4.4.2.ebuild deleted file mode 100644 index bef92e433b7..00000000000 --- a/app-office/libreoffice/libreoffice-5.4.4.2.ebuild +++ /dev/null @@ -1,579 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) -PYTHON_REQ_USE="threads,xml" - -# experimental ; release ; old -# Usually the tarballs are moved a lot so this should make -# everyone happy. -DEV_URI=" - https://dev-builds.libreoffice.org/pre-releases/src - https://download.documentfoundation.org/libreoffice/src/${PV:0:5}/ - https://download.documentfoundation.org/libreoffice/old/${PV}/ -" -ADDONS_URI="https://dev-www.libreoffice.org/src/" - -BRANDING="${PN}-branding-gentoo-0.8.tar.xz" -# PATCHSET="${P}-patchset-01.tar.xz" - -[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3" -inherit multiprocessing autotools bash-completion-r1 check-reqs gnome2-utils java-pkg-opt-2 pax-utils python-single-r1 toolchain-funcs flag-o-matic versionator xdg-utils qmake-utils ${SCM_ECLASS} -unset SCM_ECLASS - -DESCRIPTION="A full office productivity suite" -HOMEPAGE="https://www.libreoffice.org" -SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" -[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}" - -# Split modules following git/tarballs -# Core MUST be first! -# Help is used for the image generator -# Only release has the tarballs -if [[ ${PV} != *9999* ]]; then - for i in ${DEV_URI}; do - SRC_URI+=" ${i}/${P}.tar.xz" - SRC_URI+=" ${i}/${PN}-help-${PV}.tar.xz" - 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=( - "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )" - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" - # no release for 8 years, should we package it? - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" - # Does not build with 1.6 rhino at all - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" - # requirement of rhino - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" - # not packageable - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" -) -SRC_URI+=" ${ADDONS_SRC[*]}" - -unset ADDONS_URI -unset ADDONS_SRC - -# Extensions that need extra work: -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" - -IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf googledrive -gstreamer +gtk gtk3 jemalloc kde libressl mysql odk pdfimport postgres quickstarter test vlc -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" - -LICENSE="|| ( LGPL-3 MPL-1.1 )" -SLOT="0" -[[ ${PV} == *9999* ]] || \ -KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux" - -COMMON_DEPEND="${PYTHON_DEPS} - app-arch/unzip - app-arch/zip - app-crypt/gpgme[cxx] - app-text/hunspell:= - >=app-text/libabw-0.1.0 - >=app-text/libebook-0.1 - >=app-text/libetonyek-0.1 - app-text/libexttextcat - app-text/liblangtag - >=app-text/libmspub-0.1.0 - >=app-text/libmwaw-0.3.1 - >=app-text/libodfgen-0.1.0 - app-text/libstaroffice - app-text/libwpd:0.10[tools] - app-text/libwpg:0.3 - >=app-text/libwps-0.4 - app-text/mythes - >=dev-cpp/clucene-2.3.3.4-r2 - =dev-cpp/libcmis-0.5* - dev-db/unixODBC - dev-lang/perl - dev-libs/boost:= - dev-libs/expat - dev-libs/hyphen - dev-libs/icu:= - dev-libs/libassuan - dev-libs/libgpg-error - =dev-libs/liborcus-0.12* - dev-libs/librevenge - dev-libs/nspr - dev-libs/nss - !libressl? ( >=dev-libs/openssl-1.0.0d:0 ) - libressl? ( dev-libs/libressl ) - >=dev-libs/redland-1.0.16 - >=dev-libs/xmlsec-1.2.24[nss] - media-gfx/graphite2 - media-libs/fontconfig - media-libs/freetype:2 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu] - media-libs/lcms:2 - >=media-libs/libcdr-0.1.0 - >=media-libs/libepoxy-1.3.1[X] - >=media-libs/libfreehand-0.1.0 - media-libs/libpagemaker - >=media-libs/libpng-1.4:0= - >=media-libs/libvisio-0.1.0 - media-libs/libzmf - net-libs/neon - net-misc/curl - net-nds/openldap - sci-mathematics/lpsolve - virtual/glu - virtual/jpeg:0 - virtual/opengl - x11-libs/cairo[X] - x11-libs/libXinerama - x11-libs/libXrandr - x11-libs/libXrender - bluetooth? ( net-wireless/bluez ) - coinmp? ( sci-libs/coinor-mp ) - collada? ( media-libs/opencollada ) - cups? ( net-print/cups ) - dbus? ( dev-libs/dbus-glib ) - eds? ( - dev-libs/glib:2 - gnome-base/dconf - gnome-extra/evolution-data-server - ) - firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1 ) - gltf? ( >=media-libs/libgltf-0.1.0 ) - gstreamer? ( - media-libs/gstreamer:1.0 - media-libs/gst-plugins-base:1.0 - ) - gtk? ( - x11-libs/gdk-pixbuf - >=x11-libs/gtk+-2.24:2 - ) - gtk3? ( - dev-libs/glib:2 - dev-libs/gobject-introspection - gnome-base/dconf - x11-libs/gtk+:3 - ) - jemalloc? ( dev-libs/jemalloc ) - kde? ( - dev-qt/qtcore:4 - dev-qt/qtgui:4 - kde-frameworks/kdelibs - ) - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) - mysql? ( dev-db/mysql-connector-c++ ) - pdfimport? ( app-text/poppler:=[cxx] ) - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) -" - -RDEPEND="${COMMON_DEPEND} - !app-office/libreoffice-bin - !app-office/libreoffice-bin-debug - !app-office/openoffice - media-fonts/dejavu - media-fonts/liberation-fonts - media-fonts/libertine - || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) - java? ( >=virtual/jre-1.6 ) - kde? ( kde-frameworks/oxygen-icons:* ) - vlc? ( media-video/vlc ) -" - -if [[ ${PV} != *9999* ]]; then - PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*" -else - # Translations are not reliable on live ebuilds - # rather force people to use english only. - PDEPEND="!app-office/libreoffice-l10n" -fi - -# FIXME: cppunit should be moved to test conditional -# after everything upstream is under gbuild -# as dmake execute tests right away -DEPEND="${COMMON_DEPEND} - !<sys-devel/make-3.82 - >=dev-libs/libatomic_ops-7.2d - >=dev-libs/libxml2-2.7.8 - dev-libs/libxslt - dev-perl/Archive-Zip - >=dev-util/cppunit-1.14.0 - >=dev-util/gperf-3 - dev-util/intltool - >=dev-util/mdds-1.2.2:1= - media-libs/glm - sys-devel/bison - sys-devel/flex - sys-devel/gettext - sys-devel/ucpp - sys-libs/zlib - virtual/pkgconfig - x11-libs/libXt - x11-libs/libXtst - x11-proto/randrproto - x11-proto/xextproto - x11-proto/xineramaproto - x11-proto/xproto - java? ( - dev-java/ant-core - >=virtual/jdk-1.6 - ) - odk? ( >=app-doc/doxygen-1.8.4 ) - test? ( - dev-util/cppunit - media-fonts/dejavu - ) -" - -REQUIRED_USE="${PYTHON_REQUIRED_USE} - bluetooth? ( dbus ) - collada? ( gltf ) - libreoffice_extensions_nlpsolver? ( java ) - libreoffice_extensions_scripting-beanshell? ( java ) - libreoffice_extensions_scripting-javascript? ( java ) - libreoffice_extensions_wiki-publisher? ( java ) -" - -PATCHES=( - # not upstreamable stuff - "${FILESDIR}/${PN}-5.4-system-pyuno.patch" - "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" - - # TODO: upstream - "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch" - "${FILESDIR}/${P}-gtk3-no-gtk-build.patch" # bug 641812 - "${FILESDIR}/${P}-poppler-0.62.patch" # bug 642602 -) - -pkg_pretend() { - use java || \ - ewarn "If you plan to use Base application you should enable java or you will get various crashes." - - if has_version "<app-office/libreoffice-5.3.0[firebird]"; then - ewarn "Firebird has been upgraded to version 3.0.0. It is unable to read back Firebird 2.5 data," - ewarn "so embedded firebird odb files created in LibreOffice pre-5.3 cannot be opened with LibreOffice 5.3." - ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base" - fi - - if [[ ${MERGE_TYPE} != binary ]]; then - - CHECKREQS_MEMORY="512M" - if is-flagq "-g*" && ! is-flagq "-g*0" ; then - CHECKREQS_DISK_BUILD="22G" - else - CHECKREQS_DISK_BUILD="6G" - fi - check-reqs_pkg_pretend - fi -} - -pkg_setup() { - java-pkg-opt-2_pkg_setup - python-single-r1_pkg_setup - xdg_environment_reset - - if [[ ${MERGE_TYPE} != binary ]]; then - CHECKREQS_MEMORY="512M" - if is-flagq "-g*" && ! is-flagq "-g*0" ; then - CHECKREQS_DISK_BUILD="22G" - else - CHECKREQS_DISK_BUILD="6G" - fi - check-reqs_pkg_setup - fi -} - -src_unpack() { - [[ -n ${PATCHSET} ]] && unpack ${PATCHSET} - use branding && unpack "${BRANDING}" - - if [[ ${PV} != *9999* ]]; then - unpack "${P}.tar.xz" - unpack "${PN}-help-${PV}.tar.xz" - else - local base_uri branch mypv - base_uri="https://anongit.freedesktop.org/git" - branch="master" - mypv=${PV/.9999} - [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}" - git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" - git-r3_checkout "${base_uri}/${PN}/core" - - git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" - git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help - fi -} - -src_prepare() { - [[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}" - default - - AT_M4DIR="m4" eautoreconf - # hack in the autogen.sh - touch autogen.lastrun - - # system pyuno mess - sed -i \ - -e "s:%eprefix%:${EPREFIX}:g" \ - -e "s:%libdir%:$(get_libdir):g" \ - pyuno/source/module/uno.py \ - pyuno/source/officehelper.py || die - # sed in the tests - sed -i \ - -e "s#all : build unitcheck#all : build#g" \ - solenv/gbuild/Module.mk || die - sed -i \ - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ - Makefile.in || die - - sed -i \ - -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ - -e "s,\$INSTALLDIRNAME.sh,${PN}," \ - bin/distro-install-desktop-integration || die - - if use branding; then - # hack... - mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die - fi - - # Don't list pdfimport support in desktop when built with none, bug # 605464 - if ! use pdfimport; then - sed -i \ - -e ":MimeType: s:application/pdf;::" \ - -e ":Keywords: s:pdf;::" \ - sysui/desktop/menus/draw.desktop || die - fi -} - -src_configure() { - # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys - # Note: these are for Gentoo use ONLY. For your own distribution, please get - # your own set of keys. Feel free to contact chrom...@gentoo.org for more info. - local google_default_client_id="329227923882.apps.googleusercontent.com" - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" - - # optimization flags - export GMAKE_OPTIONS="${MAKEOPTS}" - # System python enablement: - export PYTHON_CFLAGS=$(python_get_CFLAGS) - export PYTHON_LIBS=$(python_get_LIBS) - - if use collada; then - export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser" - export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser" - fi - - if use kde; then - # bug 544108, bug 599076 - export QMAKEQT4="$(qt4_get_bindir)/qmake" - export MOCQT4="$(qt4_get_bindir)/moc" - fi - - # system headers/libs/...: enforce using system packages - # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad - # --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 - # --enable-extension-integration: enable any extension integration support - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs - # --disable-report-builder: too much java packages pulled in without pkgs - # --without-system-sane: just sane.h header that is used for scan in writer, - # not linked or anything else, worthless to depend on - # --disable-pdfium: not yet packaged - local myeconfargs=( - --with-system-dicts - --with-system-epoxy - --with-system-headers - --with-system-jars - --with-system-libs - --enable-cairo-canvas - --enable-largefile - --enable-mergelibs - --enable-neon - --enable-python=system - --enable-randr - --enable-release-build - --disable-breakpad - --disable-ccache - --disable-dependency-tracking - --disable-epm - --disable-fetch-external - --disable-gstreamer-0-10 - --disable-online-update - --disable-pdfium - --disable-report-builder - --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-parallelism=$(makeopts_jobs) - --with-system-ucpp - --with-vendor="Gentoo Foundation" - --with-x - --without-fonts - --without-myspell-dicts - --without-help - --with-helppack-integration - --with-system-gpgmepp - --without-system-sane - $(use_enable bluetooth sdremote-bluetooth) - $(use_enable coinmp) - $(use_enable collada) - $(use_enable cups) - $(use_enable debug) - $(use_enable dbus) - $(use_enable eds evolution2) - $(use_enable firebird firebird-sdbc) - $(use_enable gltf) - $(use_enable gstreamer gstreamer-1-0) - $(use_enable gtk) - $(use_enable gtk3) - $(use_enable kde kde4) - $(use_enable mysql ext-mariadb-connector) - $(use_enable odk) - $(use_enable pdfimport) - $(use_enable postgres postgresql-sdbc) - $(use_enable quickstarter systray) - $(use_enable vlc) - $(use_with coinmp system-coinmp) - $(use_with collada system-opencollada) - $(use_with gltf system-libgltf) - $(use_with googledrive gdrive-client-id ${google_default_client_id}) - $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) - $(use_with java) - $(use_with mysql system-mysql-cppconn) - $(use_with odk doxygen) - ) - - if use eds || use gtk3; then - myeconfargs+=( --enable-dconf --enable-gio ) - else - myeconfargs+=( --disable-dconf --disable-gio ) - fi - - # libreoffice extensions handling - for lo_xt in ${LO_EXTS}; do - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) ) - else - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) ) - fi - done - - if use java; then - # hsqldb: system one is too new - myeconfargs+=( - --without-junit - --without-system-hsqldb - --with-ant-home="${ANT_HOME}" - --with-jdk-home=$(java-config --jdk-home 2>/dev/null) - --with-jvm-path="${EPREFIX}/usr/lib/" - ) - - use libreoffice_extensions_scripting-beanshell && \ - myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) ) - - use libreoffice_extensions_scripting-javascript && \ - myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) - fi - - econf "${myeconfargs[@]}" -} - -src_compile() { - # more and more LO stuff tries to use OpenGL, including tests during build - # bug 501508, bug 540624, bug 545974 and probably more - addpredict /dev/dri - addpredict /dev/ati - addpredict /dev/nvidiactl - - # hack for offlinehelp, this needs fixing upstream at some point - # it is broken because we send --without-help - # https://bugs.freedesktop.org/show_bug.cgi?id=46506 - ( - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die - source "${T}/config_host.mk" 2&> /dev/null - - local path="${WORKDIR}/helpcontent2/source/auxiliary/" - mkdir -p "${path}" || die - - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\"" - perl "${S}/helpcontent2/helpers/create_ilst.pl" \ - -dir=helpcontent2/source/media/helpimg \ - > "${path}/helpimg.ilst" - [[ -s "${path}/helpimg.ilst" ]] || \ - ewarn "The help images list is empty, something is fishy, report a bug." - ) - - local target - use test && target="build" || target="build-nocheck" - - # this is not a proper make script - make ${target} || die -} - -src_test() { - make unitcheck || die - make slowcheck || die -} - -src_install() { - # This is not Makefile so no buildserver - make DESTDIR="${D}" distro-pack-install -o build -o check || die - - # bug 593514 - if use gtk3; then - dosym libreoffice/program/liblibreofficekitgtk.so \ - /usr/$(get_libdir)/liblibreofficekitgtk.so - fi - - # bash completion aliases - bashcomp_alias \ - libreoffice \ - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice - - if use branding; then - insinto /usr/$(get_libdir)/${PN}/program - newins "${WORKDIR}/branding-sofficerc" sofficerc - dodir /etc/env.d - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die - fi - - # Hack for offlinehelp, this needs fixing upstream at some point. - # It is broken because we send --without-help - # https://bugs.freedesktop.org/show_bug.cgi?id=46506 - insinto /usr/$(get_libdir)/libreoffice/help - doins xmlhelp/util/*.xsl - - # Remove desktop files to support old installs that can't parse mime - rm -r "${ED}"usr/share/mimelnk/ || die - - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst() { - gnome2_icon_cache_update - xdg_desktop_database_update - xdg_mimeinfo_database_update -} - -pkg_postrm() { - gnome2_icon_cache_update - xdg_desktop_database_update - xdg_mimeinfo_database_update -}