Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice-bin-debug/, app-office/libreoffice/, ...
Date: Fri, 16 Feb 2018 11:59:07
Message-Id: 1518782322.6a883ab4e6e328652f5f15203ef38985966cceab.asturm@gentoo
1 commit: 6a883ab4e6e328652f5f15203ef38985966cceab
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 16 11:57:36 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 16 11:58:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a883ab4
7
8 app-office/libreoffice*: Cleanup vulnerable 5.4.4.2
9
10 Bug: https://bugs.gentoo.org/647186
11 Package-Manager: Portage-2.3.24, Repoman-2.3.6
12
13 app-office/libreoffice-bin-debug/Manifest | 12 -
14 .../libreoffice-bin-debug-5.4.4.2.ebuild | 87 ----
15 .../libreoffice-bin/libreoffice-bin-5.4.4.2.ebuild | 255 ---------
16 .../libreoffice-l10n-5.4.4.2.ebuild | 88 ----
17 app-office/libreoffice/libreoffice-5.4.4.2.ebuild | 579 ---------------------
18 5 files changed, 1021 deletions(-)
19
20 diff --git a/app-office/libreoffice-bin-debug/Manifest b/app-office/libreoffice-bin-debug/Manifest
21 index ccd22d87240..05bebdc2b7f 100644
22 --- a/app-office/libreoffice-bin-debug/Manifest
23 +++ b/app-office/libreoffice-bin-debug/Manifest
24 @@ -1,24 +1,12 @@
25 -DIST amd64-debug-libreoffice-5.4.4.2.tar.xz 1157249908 BLAKE2B f3f54787550e151b23d9d40d5fa17d37dde0343570bda58c271be6eb5b59722cee784c799a675d6e4bbaf253d2e93534d0509908dbdb899e76f1d45d7660f2bf SHA512 9df6da88372d326694737c67d5f6333b36aed6661e4e1dbd079aa102cb910d23e152c541a456f05852be3aea6994f5ee7a555ce3444b81d9b8bb8e91f9ed65ce
26 DIST amd64-debug-libreoffice-5.4.5.1.tar.xz 1157575908 BLAKE2B 8e1d646aa90c6739afe00da67fcaa93431c2504c190e8537393cac5a77033672a3df45f2b261e8dd262cbcb0e0cea0992994e8bd53f5cebcc5b55d0044115553 SHA512 dac4a9bc7e0c2c11f2d4d45dbb4bc6b91ad32ab226a26cebb81b070b2d672fa03c0b5bc9aee08447d55b285b915a118e6d0fc27c9cba27d9d93ea233c12915bd
27 -DIST amd64-debug-libreoffice-gnome-5.4.4.2.xd3 331643342 BLAKE2B b61c70427b1a279275829542b135891204f258cf526b2b0f8d892e1f1a9b37477bd859099638385cd7bd342671a476b3f0bbacaa02b2622cb9bb080f6fe1deea SHA512 592287ef7358385568eb80d3420d84de2f8322f0c76bc187fd0147a8007ca2bab879caa04cca3f7aff9601de3b5d9b3210e262c6c6aaf9d7197ed61d1988ce97
28 DIST amd64-debug-libreoffice-gnome-5.4.5.1.xd3 331679185 BLAKE2B aa8e055aa7be3cbca196934e4f2d7ddceb3cccf92a1d3f1bb4bfc8b8e73274abd7b36dfa515e3f11052e131fa31af500761d88e28839c697ca2951e62015b2a3 SHA512 c3d9f4b5732a870090c598fc3d697a7c508b418574899fe36aadc4e691155887b9366ca46dedc30ea4d59bbf7643d839bdcf949abe3fbd683d4e161a20b6ae8c
29 -DIST amd64-debug-libreoffice-gnome-java-5.4.4.2.xd3 563946969 BLAKE2B ab9d4bd1367ddc03a4a2857235b366deff616f28424efe253877cb0eb66c12b2d43b2e8fb7b9dcbcfe3f348b239728ad0f990ed03db419fdc9bb46d38e2493b7 SHA512 080f4f86358f5180781460f1eee501bc34654ca2ef5a0445d24c3d1e72edef5275ba0e21da6aa3838b51438c39701963f6e151e6c8aed4325967bd0cba26385e
30 DIST amd64-debug-libreoffice-gnome-java-5.4.5.1.xd3 563805504 BLAKE2B 8b4cdf10ef011c4657cec26a78d8ed79c1c8de36a67a62a0fd0daa3d7f9d739bd38d611cf1f79aa7a25c189ec2fb1fa22f292bb79769686dc73be11373b7135a SHA512 52c618371722136bce7440ed20b7d3a01c66a215d13c037a8bb2eb8691f51d38ff37310b063598f8e5750235304de018de9acb77f93912d44f9e22877ed27670
31 -DIST amd64-debug-libreoffice-java-5.4.4.2.xd3 555918957 BLAKE2B 7bccebd636c89f14eafa942b09591f36e45339690bf64266feb8aa13f243547a1f4cb64287c9a896ac44ab42db8ab6549d149f34932bd727cef06236c335dd7a SHA512 048aeac43dc6751faafd9541323fc219dab5aae34781a292113e75e6ded96b20a002ecd03f10f8b7df0d538e4cba9dcbf659f42b45d14940dfe89054ec5a1fde
32 DIST amd64-debug-libreoffice-java-5.4.5.1.xd3 555709754 BLAKE2B 13131e8c9e61663b6b595af308d307806ab3ded347796d669d397782b3795dae4bb477ca214007cd7470c7476b7ff0fb8e4b0b90a2581ff09bfe273f1ac81eb2 SHA512 809c7787b36a5354295d60a311ae3e5f48f078f7e0a596aa48ab099796d59f3aa30d40441cf834480665717dd72b98e28205e3cc985611901d8ba85d99c4a318
33 -DIST amd64-debug-libreoffice-kde-5.4.4.2.xd3 338710001 BLAKE2B cc11889039cdddceb109b6274c19a5311ca1900466e4e4bcfe9c67280eaca63f6c6a09dd3dfdb824d3571c2cc23a967d0242cc3e93f5803c80fee5abfb6ab523 SHA512 66868097eb0c9dfcd727903066838e56ab16d163268300efab51d77ec70912bbc8973d926b7d0282e311cb01f21e576536e004ac1c555c4d6b151045d5699ac5
34 DIST amd64-debug-libreoffice-kde-5.4.5.1.xd3 337957489 BLAKE2B d7599148be2770423226666c10511ce721bc59ed29ba54dacc696b6b00768baa6f4f2ebaebad227457db22454e0adc1ea59aab4a63c592b10b87ac773af02b2a SHA512 06a2afb7d014fd6ddbfc935267e59c82a9295c37bd30d17d210627b0678bd6050810c54e675e41627f5f9fe4814c14768c7cc25436388bcbafe5839868fe4964
35 -DIST amd64-debug-libreoffice-kde-java-5.4.4.2.xd3 557723085 BLAKE2B 014a3ec204e5253b15cd6375f73a4907951444f076c8acf5f7fbcdb8dc85fcf617cc659e25cf61343bb4826a9c0d47b3187e96d0f79c5afafdf6e5243033d994 SHA512 0a5b44a3579e315e58a44b32299cd67d06ebef5c2dabc70ddf6403b1502de15d228f0496980cf9b4decbde3213600b0686ef016d93877c22d7ddcfad9b51090f
36 DIST amd64-debug-libreoffice-kde-java-5.4.5.1.xd3 557521078 BLAKE2B 343b9dc888cc1582e2ac14532f5de2e2b728be3919204296696e208774da82f3e90a2f447bc5c3d703383c57e6155486fd0b7f5900185969141c69877dfafb16 SHA512 519a0977a003c2e1b47832a0a1ebc2de197522b4193a1890330f9f040d23a93b285a1b4e8efbe4de357a40537b68592c8f40cb72dec3d80fa871938f3c246e64
37 -DIST x86-debug-libreoffice-5.4.4.2.tar.xz 1129709360 BLAKE2B b4147a670ccd30ca6c459571190cf52d2f94f038c934733230c0b88878a1c30c92f3e8837ba69ce30f8ab219fac79572fdf92d5e280d484a53d574105dfec7b6 SHA512 510ea4e36459a18144a041e0d111c668e6514a3291fd23a3d495bf5cf11ed13fd58c6cb0774fbd3255da666ac473f901a07ccaf35e36be33b3b0558a31de35e1
38 DIST x86-debug-libreoffice-5.4.5.1.tar.xz 1130163208 BLAKE2B 2288afbf5773ca93d7eb28e95ea388b4f8770684b55923c291dd80327853d7b58a0895ff053769809a407981d36c4aca3a94bbc3e40ed4daa07acf07c2a40e4e SHA512 7cd7a73996ab43e17b4b6c941c109a0ac99a44727056a54a6ea40a45d59bcb86c1875748834a7b0e84b31c92f1d120898bc63b4400e3be0743bdcfaeae2d04b8
39 -DIST x86-debug-libreoffice-gnome-5.4.4.2.xd3 321695199 BLAKE2B 2333e2305c49fb6eac21b01604f6c0d79b5782a51258ed9a192213438c7352322d3a2272b1d37ea393531237e8150e207b779bb05f02b4a6c1c6cd86c814701c SHA512 f9d194503fffeec5ea8b5647b500a746f7ec86d1e9d05cc88f84c5f956f66aa5d5048d60de2be6233ef1b55617840c572097432a7db72ec2ee6043b05546fbb7
40 DIST x86-debug-libreoffice-gnome-5.4.5.1.xd3 321731155 BLAKE2B c6c459e01ea90133773436c1ade2911099f8299808c30f92bb55e095c42dc30fffb8052bf43b0f4aa7635e0eb17569644d02bcce9eafe5f6ccce1d35c1ccfe09 SHA512 1047c0c633914ddcb06e430ef8aefe6d3c74d1e70ac63005c6e22982210daa6eb092380cf74d8b41c87d979249f4fe0cbbf6bce7793a3b0a6785acf484616cad
41 -DIST x86-debug-libreoffice-gnome-java-5.4.4.2.xd3 536476843 BLAKE2B 79b54f3d2d6b16aedc89f7be84b98433f3a9b5988a8959d49c28043aebd3b4d9170e8a4f2ab976eb0da6b6ec4ac24258e7eb38fb888ed8051ec9e44de5f7b4fb SHA512 2aacd941b34c6efe565660bb204651f37688d2ddcd2ab7a4dc5382ae335f76f97dc1228a63b31a48531de12d8dcc1e3df70bb6650390f9b930e7f8a61c582070
42 DIST x86-debug-libreoffice-gnome-java-5.4.5.1.xd3 535171694 BLAKE2B e3467d6d9656bc76c76fc98a2c5844675b85da47c56512588cd8221935aa53ecebd4bff07e09a27cb9980fad8015fb12f458b47fcb6ac1b6e8e8794a9f1fe621 SHA512 03f065f5a2e4d7fd608cd8820866562d40fb1db64b729522c27e8732c809f5425046858286d91085fe01dcfa3bd33725f8fad7a55f1b078c8b06815982acd5a4
43 -DIST x86-debug-libreoffice-java-5.4.4.2.xd3 528672548 BLAKE2B 7759d9e612cd87c9cc568922c4750376e757d79d17502075f63a97b952afb7a7aca2ed4523ecfaf5ca07b58234c1caf4ffc9fa9101695de227a48ad326540896 SHA512 c1e6c3e199ce03af538158cd587708642464df4bf003768b94f9188eee509843c0a7ac2b758d13ab61c6bdfdb92e3d333dc1432b0a39b7fd82e91ffac5645e99
44 DIST x86-debug-libreoffice-java-5.4.5.1.xd3 527291958 BLAKE2B 5fb90285b7573e4d4bd3b6aaa8fdda01c3bf14fed3f4c9eb0b754ceb899627e2b091e6901370cad28fa407a8a3940e717b191bef3487c54d4f61dd8eaf6fe323 SHA512 8cbd19d8983f310976242c6c4f46be6bcc5e5693e074e997ae4e2b18589bb1d99df6417a7bae1cb7a421374049f5878f333452b12f56b672a48683e4ea72181b
45 -DIST x86-debug-libreoffice-kde-5.4.4.2.xd3 329354953 BLAKE2B 98713477df17bfd72f7458ced98672e03b3f40be2a5e95409a11ecb245d89416c93fe0ee11b81fde17543e228d19edde2ffbcec0bf82fb9fdb124401115a9f78 SHA512 5ac7f9872349b1da14994562840dfd203d2ae4413cf4437e5acef69690e41e17d760e0562aaa356fe76e2ff643e8a33e7e05c1a00f06735669c81a9f4dd95bfb
46 DIST x86-debug-libreoffice-kde-5.4.5.1.xd3 328651433 BLAKE2B bd54186c17798909ca555d493083b7fe2f7f0820def97b6c09644e7652e722cb2be4cbd8cb6bfc637bd9d982aeb5f5e5dd19d7fc7ec79ca8599ab8e3f913e12e SHA512 776f17374f45d2914946e0ebbba3a75585b2a416660c1a0c79c5b395c33bf1cbe9bd9b37276c9ba82dcd5ca820ad4dc6c1e932e06c0a5adc70e315db72eca2fb
47 -DIST x86-debug-libreoffice-kde-java-5.4.4.2.xd3 530430093 BLAKE2B 5619d7179d1bbbac296a7d91403d5ae09f63ce0548a1c90fbdfee481c3595221e6428061e5cd59aa94454a587fba6e2a0f0afed799fb5de26f01e708d8e4a230 SHA512 67c3f52cfd06cfa7c9133f4c829b8457d38b7ae83f663cd8b185105959fa5e022bd037ada8bb9ead950dfdc7437597b8ac4c98831d20d2422b4dcda518613aaa
48 DIST x86-debug-libreoffice-kde-java-5.4.5.1.xd3 529080140 BLAKE2B d6cc31c28189ce1dd1b1e085bf6317914c85abebb4dfad64c15bbdf90689701ba35105ea24692086e81fbe17d691761f1305b938d4256a7dd5857e6ccb13feb8 SHA512 d5e5ee39c102ec951b437611186577b2f2ea25a529d26c01b97dd2452f38a52a2a0649944494246255451efd65af6cdea2fd724aa27d8b295570eb4658c01e3b
49
50 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
51 deleted file mode 100644
52 index c88a1b8ba61..00000000000
53 --- a/app-office/libreoffice-bin-debug/libreoffice-bin-debug-5.4.4.2.ebuild
54 +++ /dev/null
55 @@ -1,87 +0,0 @@
56 -# Copyright 1999-2018 Gentoo Foundation
57 -# Distributed under the terms of the GNU General Public License v2
58 -
59 -EAPI=6
60 -
61 -BASE_PACKAGENAME="debug"
62 -BASE_AMD64_URI="http://packages.gentooexperimental.org/packages/amd64-libreoffice/amd64-${BASE_PACKAGENAME}-"
63 -BASE_X86_URI="http://packages.gentooexperimental.org/packages/x86-libreoffice/x86-${BASE_PACKAGENAME}-"
64 -
65 -DESCRIPTION="LibreOffice, a full office productivity suite. Binary package, debug info"
66 -HOMEPAGE="http://www.libreoffice.org"
67 -SRC_URI_AMD64="
68 - ${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz
69 - kde? (
70 - !java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 )
71 - java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 )
72 - )
73 - gnome? (
74 - !java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 )
75 - java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 )
76 - )
77 - !kde? ( !gnome? (
78 - java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 )
79 - ) )
80 -"
81 -SRC_URI_X86="
82 - ${BASE_X86_URI}libreoffice-${PVR}.tar.xz
83 - kde? (
84 - !java? ( ${BASE_X86_URI}libreoffice-kde-${PVR}.xd3 )
85 - java? ( ${BASE_X86_URI}libreoffice-kde-java-${PVR}.xd3 )
86 - )
87 - gnome? (
88 - !java? ( ${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3 )
89 - java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PVR}.xd3 )
90 - )
91 - !kde? ( !gnome? (
92 - java? ( ${BASE_X86_URI}libreoffice-java-${PVR}.xd3 )
93 - ) )
94 -"
95 -
96 -SRC_URI="
97 - amd64? ( ${SRC_URI_AMD64} )
98 - x86? ( ${SRC_URI_X86} )
99 -"
100 -
101 -IUSE="gnome java kde"
102 -LICENSE="LGPL-3"
103 -SLOT="0"
104 -KEYWORDS="-* amd64 x86"
105 -
106 -RDEPEND="=app-office/${PN/-debug}-${PVR}[gnome=,java=,kde=]"
107 -
108 -DEPEND="dev-util/xdelta:3"
109 -
110 -RESTRICT="test strip"
111 -
112 -S="${WORKDIR}"
113 -
114 -QA_PREBUILT="/usr/*"
115 -
116 -src_unpack() {
117 - einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz"
118 - xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
119 -
120 - local patchname
121 - use kde && patchname="-kde"
122 - use gnome && patchname="-gnome"
123 - use java && patchname="${patchname}-java"
124 -
125 - if [ -n "${patchname}" ]; then
126 - einfo "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3"
127 - xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die
128 - mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
129 - fi
130 -
131 - einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
132 - unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
133 -}
134 -
135 -src_configure() { :; }
136 -
137 -src_compile() { :; }
138 -
139 -src_install() {
140 - dodir /usr
141 - cp -aR "${S}"/usr/* "${ED}"/usr/ || die
142 -}
143
144 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
145 deleted file mode 100644
146 index f741bac8e42..00000000000
147 --- a/app-office/libreoffice-bin/libreoffice-bin-5.4.4.2.ebuild
148 +++ /dev/null
149 @@ -1,255 +0,0 @@
150 -# Copyright 1999-2018 Gentoo Foundation
151 -# Distributed under the terms of the GNU General Public License v2
152 -
153 -EAPI=6
154 -
155 -BASE_PACKAGENAME="bin"
156 -BASE_AMD64_URI="http://packages.gentooexperimental.org/packages/amd64-libreoffice/amd64-${BASE_PACKAGENAME}-"
157 -BASE_X86_URI="http://packages.gentooexperimental.org/packages/x86-libreoffice/x86-${BASE_PACKAGENAME}-"
158 -
159 -PYTHON_COMPAT=( python3_5 )
160 -PYTHON_REQ_USE="threads,xml"
161 -
162 -inherit gnome2-utils java-pkg-opt-2 python-single-r1 pax-utils prefix versionator xdg-utils
163 -
164 -DESCRIPTION="A full office productivity suite. Binary package"
165 -HOMEPAGE="http://www.libreoffice.org"
166 -SRC_URI_AMD64="
167 - ${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz
168 - kde? (
169 - !java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 )
170 - java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 )
171 - )
172 - gnome? (
173 - !java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 )
174 - java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 )
175 - )
176 - !kde? ( !gnome? (
177 - java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 )
178 - ) )
179 -"
180 -SRC_URI_X86="
181 - ${BASE_X86_URI}libreoffice-${PVR}.tar.xz
182 - kde? (
183 - !java? ( ${BASE_X86_URI}libreoffice-kde-${PVR}.xd3 )
184 - java? ( ${BASE_X86_URI}libreoffice-kde-java-${PVR}.xd3 )
185 - )
186 - gnome? (
187 - !java? ( ${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3 )
188 - java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PVR}.xd3 )
189 - )
190 - !kde? ( !gnome? (
191 - java? ( ${BASE_X86_URI}libreoffice-java-${PVR}.xd3 )
192 - ) )
193 -"
194 -
195 -SRC_URI="
196 - amd64? ( ${SRC_URI_AMD64} )
197 - x86? ( ${SRC_URI_X86} )
198 -"
199 -
200 -IUSE="gnome java kde"
201 -LICENSE="LGPL-3"
202 -SLOT="0"
203 -KEYWORDS="-* amd64 x86"
204 -
205 -BIN_COMMON_DEPEND="
206 - app-text/hunspell:0/1.6
207 - =app-text/libexttextcat-3.4*
208 - =app-text/libmwaw-0.3*
209 - dev-libs/boost:0/1.65.0
210 - dev-libs/icu:0/60.2
211 - >=media-gfx/graphite2-1.3.10
212 - media-libs/harfbuzz:0/0.9.18[icu]
213 - media-libs/libpng:0/16
214 - >=sys-devel/gcc-6.4.0
215 - >=sys-libs/glibc-2.25
216 - virtual/jpeg:62
217 - kde? ( >=kde-frameworks/kdelibs-4.14.37:4 >=dev-qt/qtcore-4.8.7-r3:4 >=dev-qt/qtgui-4.8.7:4 )
218 -"
219 -
220 -# PLEASE place any restrictions that are specific to the binary builds
221 -# into the BIN_COMMON_DEPEND block above.
222 -# All dependencies below this point should remain identical to those in
223 -# the source ebuilds.
224 -
225 -COMMON_DEPEND="
226 - ${BIN_COMMON_DEPEND}
227 - ${PYTHON_DEPS}
228 - app-arch/unzip
229 - app-arch/zip
230 - app-crypt/gpgme[cxx]
231 - app-text/hunspell:=
232 - >=app-text/libabw-0.1.0
233 - >=app-text/libebook-0.1
234 - >=app-text/libetonyek-0.1
235 - app-text/libexttextcat
236 - app-text/liblangtag
237 - >=app-text/libmspub-0.1.0
238 - >=app-text/libmwaw-0.3.1
239 - >=app-text/libodfgen-0.1.0
240 - app-text/libstaroffice
241 - app-text/libwpd:0.10[tools]
242 - app-text/libwpg:0.3
243 - >=app-text/libwps-0.4
244 - app-text/mythes
245 - >=dev-cpp/clucene-2.3.3.4-r2
246 - =dev-cpp/libcmis-0.5*
247 - dev-db/unixODBC
248 - dev-lang/perl
249 - dev-libs/boost:=
250 - dev-libs/expat
251 - dev-libs/hyphen
252 - dev-libs/icu:=
253 - dev-libs/libassuan
254 - dev-libs/libgpg-error
255 - =dev-libs/liborcus-0.12*
256 - dev-libs/librevenge
257 - dev-libs/nspr
258 - dev-libs/nss
259 - >=dev-libs/openssl-1.0.0d:0
260 - >=dev-libs/redland-1.0.16
261 - >=dev-libs/xmlsec-1.2.24[nss]
262 - media-gfx/graphite2
263 - media-libs/fontconfig
264 - media-libs/freetype:2
265 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
266 - media-libs/lcms:2
267 - >=media-libs/libcdr-0.1.0
268 - >=media-libs/libepoxy-1.3.1
269 - >=media-libs/libfreehand-0.1.0
270 - media-libs/libpagemaker
271 - >=media-libs/libpng-1.4:0=
272 - >=media-libs/libvisio-0.1.0
273 - media-libs/libzmf
274 - net-libs/neon
275 - net-misc/curl
276 - net-nds/openldap
277 - sci-mathematics/lpsolve
278 - x11-libs/cairo[X]
279 - x11-libs/libXinerama
280 - x11-libs/libXrandr
281 - x11-libs/libXrender
282 - virtual/glu
283 - virtual/jpeg:0
284 - virtual/opengl
285 - net-print/cups
286 - dev-libs/dbus-glib
287 - gnome? (
288 - dev-libs/glib:2
289 - gnome-base/dconf
290 - gnome-extra/evolution-data-server
291 - )
292 - media-libs/gstreamer:1.0
293 - media-libs/gst-plugins-base:1.0
294 - x11-libs/gdk-pixbuf
295 - >=x11-libs/gtk+-2.24:2
296 - gnome? (
297 - dev-libs/glib:2
298 - dev-libs/gobject-introspection
299 - gnome-base/dconf
300 - x11-libs/gtk+:3
301 - )
302 - kde? (
303 - dev-qt/qtcore:4
304 - dev-qt/qtgui:4
305 - kde-frameworks/kdelibs
306 - )
307 -"
308 -
309 -RDEPEND="${COMMON_DEPEND}
310 - !app-office/libreoffice
311 - !app-office/openoffice
312 - media-fonts/dejavu
313 - media-fonts/liberation-fonts
314 - media-fonts/libertine
315 - || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
316 - java? ( >=virtual/jre-1.6 )
317 - kde? ( kde-frameworks/oxygen-icons:* )
318 -"
319 -
320 -PDEPEND="
321 - =app-office/libreoffice-l10n-${PV}*
322 -"
323 -
324 -DEPEND="dev-util/xdelta:3"
325 -
326 -# only one flavor at a time
327 -REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde ) ${PYTHON_REQUIRED_USE}"
328 -
329 -RESTRICT="test strip"
330 -
331 -S="${WORKDIR}"
332 -
333 -PYTHON_UPDATER_IGNORE="1"
334 -
335 -QA_PREBUILT="/usr/*"
336 -
337 -pkg_pretend() {
338 - [[ $(gcc-major-version) -lt 4 ]] || \
339 - ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
340 - && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
341 -}
342 -
343 -pkg_setup() {
344 - python-single-r1_pkg_setup
345 -}
346 -
347 -src_unpack() {
348 - einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz"
349 - xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
350 -
351 - local patchname
352 - use kde && patchname="-kde"
353 - use gnome && patchname="-gnome"
354 - use java && patchname="${patchname}-java"
355 -
356 - if [ -n "${patchname}" ]; then
357 - einfo "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3"
358 - xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die
359 - mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
360 - fi
361 -
362 - einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
363 - unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
364 -}
365 -
366 -src_prepare() {
367 - cp "${FILESDIR}"/50-${PN} "${T}"
368 - eprefixify "${T}"/50-${PN}
369 - default
370 -}
371 -
372 -src_configure() { :; }
373 -
374 -src_compile() { :; }
375 -
376 -src_install() {
377 - dodir /usr
378 - cp -aR "${S}"/usr/* "${ED}"/usr/
379 -
380 - # prevent revdep-rebuild from attempting to rebuild all the time
381 - insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
382 -}
383 -
384 -pkg_preinst() {
385 - gnome2_icon_savelist
386 -}
387 -
388 -pkg_postinst() {
389 - gnome2_icon_cache_update
390 - xdg_desktop_database_update
391 - xdg_mimeinfo_database_update
392 -
393 - pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
394 - pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
395 -
396 - use java || \
397 - ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
398 -}
399 -
400 -pkg_postrm() {
401 - gnome2_icon_cache_update
402 - xdg_desktop_database_update
403 - xdg_mimeinfo_database_update
404 -}
405
406 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
407 deleted file mode 100644
408 index eade0e87ec0..00000000000
409 --- a/app-office/libreoffice-l10n/libreoffice-l10n-5.4.4.2.ebuild
410 +++ /dev/null
411 @@ -1,88 +0,0 @@
412 -# Copyright 1999-2018 Gentoo Foundation
413 -# Distributed under the terms of the GNU General Public License v2
414 -
415 -EAPI=6
416 -
417 -inherit rpm versionator
418 -
419 -MY_PV=$(get_version_component_range 1-3)
420 -
421 -DESCRIPTION="Translations for the Libreoffice suite"
422 -HOMEPAGE="https://www.libreoffice.org"
423 -BASE_SRC_URI_TESTING="https://download.documentfoundation.org/${PN/-l10n/}/testing/${MY_PV}/rpm"
424 -BASE_SRC_URI_STABLE="https://download.documentfoundation.org/${PN/-l10n/}/stable/${MY_PV}/rpm"
425 -
426 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
427 -SLOT="0"
428 -KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux"
429 -IUSE="offlinehelp"
430 -
431 -#
432 -# when changing the language lists, please be careful to preserve the spaces (bug 491728)
433 -#
434 -# "en:en-US" for mapping from Gentoo "en" to upstream "en-US" etc.
435 -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 "
436 -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 "
437 -
438 -for lang in ${LANGUAGES_HELP}; do
439 - 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 )"
440 - SRC_URI+=" l10n_${lang%:*}? ( ${helppack} )"
441 -done
442 -for lang in ${LANGUAGES}; do
443 - if [[ ${lang%:*} != en ]]; then
444 - 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"
445 - SRC_URI+=" l10n_${lang%:*}? ( ${langpack} )"
446 - fi
447 - IUSE+=" l10n_${lang%:*}"
448 -done
449 -unset lang helppack langpack
450 -
451 -RDEPEND+="app-text/hunspell"
452 -
453 -RESTRICT="strip"
454 -
455 -S="${WORKDIR}"
456 -
457 -src_prepare() {
458 - default
459 -
460 - local lang dir rpmdir
461 -
462 - # First remove dictionaries, we want to use system ones.
463 - find "${S}" -name *dict*.rpm -delete || die "Failed to remove dictionaries"
464 -
465 - for lang in ${LANGUAGES}; do
466 - # break away if not enabled
467 - use l10n_${lang%:*} || continue
468 -
469 - dir=${lang#*:}
470 -
471 - # for english we provide just helppack, as translation is always there
472 - if [[ ${lang%:*} != en ]]; then
473 - rpmdir="LibreOffice_${PV}_Linux_x86_rpm_langpack_${dir}/RPMS/"
474 - [[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
475 - rpm_unpack ./${rpmdir}/*.rpm
476 - fi
477 - if [[ "${LANGUAGES_HELP}" =~ " ${lang} " ]] && use offlinehelp; then
478 - rpmdir="LibreOffice_${PV}_Linux_x86_rpm_helppack_${dir}/RPMS/"
479 - [[ -d ${rpmdir} ]] || die "Missing directory: ${rpmdir}"
480 - rpm_unpack ./${rpmdir}/*.rpm
481 - fi
482 - done
483 -}
484 -
485 -src_configure() { :; }
486 -src_compile() { :; }
487 -
488 -src_install() {
489 - local dir="${S}"/opt/${PN/-l10n/}$(get_version_component_range 1-2)/
490 - # Condition required for people that do not install anything eg no l10n
491 - # or just english with no offlinehelp.
492 - if [[ -d "${dir}" ]] ; then
493 - insinto /usr/$(get_libdir)/${PN/-l10n/}/
494 - doins -r "${dir}"/*
495 - fi
496 - # remove extensions that are in the l10n for some weird reason
497 - rm -rf "${ED}"usr/$(get_libdir)/${PN/-l10n/}/share/extensions/ || \
498 - die "Failed to remove extensions"
499 -}
500
501 diff --git a/app-office/libreoffice/libreoffice-5.4.4.2.ebuild b/app-office/libreoffice/libreoffice-5.4.4.2.ebuild
502 deleted file mode 100644
503 index bef92e433b7..00000000000
504 --- a/app-office/libreoffice/libreoffice-5.4.4.2.ebuild
505 +++ /dev/null
506 @@ -1,579 +0,0 @@
507 -# Copyright 1999-2018 Gentoo Foundation
508 -# Distributed under the terms of the GNU General Public License v2
509 -
510 -EAPI=6
511 -
512 -PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
513 -PYTHON_REQ_USE="threads,xml"
514 -
515 -# experimental ; release ; old
516 -# Usually the tarballs are moved a lot so this should make
517 -# everyone happy.
518 -DEV_URI="
519 - https://dev-builds.libreoffice.org/pre-releases/src
520 - https://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
521 - https://download.documentfoundation.org/libreoffice/old/${PV}/
522 -"
523 -ADDONS_URI="https://dev-www.libreoffice.org/src/"
524 -
525 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
526 -# PATCHSET="${P}-patchset-01.tar.xz"
527 -
528 -[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
529 -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}
530 -unset SCM_ECLASS
531 -
532 -DESCRIPTION="A full office productivity suite"
533 -HOMEPAGE="https://www.libreoffice.org"
534 -SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
535 -[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
536 -
537 -# Split modules following git/tarballs
538 -# Core MUST be first!
539 -# Help is used for the image generator
540 -# Only release has the tarballs
541 -if [[ ${PV} != *9999* ]]; then
542 - for i in ${DEV_URI}; do
543 - SRC_URI+=" ${i}/${P}.tar.xz"
544 - SRC_URI+=" ${i}/${PN}-help-${PV}.tar.xz"
545 - done
546 - unset i
547 -fi
548 -unset DEV_URI
549 -
550 -# Really required addons
551 -# These are bundles that can't be removed for now due to huge patchsets.
552 -# If you want them gone, patches are welcome.
553 -ADDONS_SRC=(
554 - "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
555 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
556 - # no release for 8 years, should we package it?
557 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
558 - # Does not build with 1.6 rhino at all
559 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
560 - # requirement of rhino
561 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
562 - # not packageable
563 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
564 -)
565 -SRC_URI+=" ${ADDONS_SRC[*]}"
566 -
567 -unset ADDONS_URI
568 -unset ADDONS_SRC
569 -
570 -# Extensions that need extra work:
571 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
572 -
573 -IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf googledrive
574 -gstreamer +gtk gtk3 jemalloc kde libressl mysql odk pdfimport postgres quickstarter test vlc
575 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
576 -
577 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
578 -SLOT="0"
579 -[[ ${PV} == *9999* ]] || \
580 -KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~x86-linux"
581 -
582 -COMMON_DEPEND="${PYTHON_DEPS}
583 - app-arch/unzip
584 - app-arch/zip
585 - app-crypt/gpgme[cxx]
586 - app-text/hunspell:=
587 - >=app-text/libabw-0.1.0
588 - >=app-text/libebook-0.1
589 - >=app-text/libetonyek-0.1
590 - app-text/libexttextcat
591 - app-text/liblangtag
592 - >=app-text/libmspub-0.1.0
593 - >=app-text/libmwaw-0.3.1
594 - >=app-text/libodfgen-0.1.0
595 - app-text/libstaroffice
596 - app-text/libwpd:0.10[tools]
597 - app-text/libwpg:0.3
598 - >=app-text/libwps-0.4
599 - app-text/mythes
600 - >=dev-cpp/clucene-2.3.3.4-r2
601 - =dev-cpp/libcmis-0.5*
602 - dev-db/unixODBC
603 - dev-lang/perl
604 - dev-libs/boost:=
605 - dev-libs/expat
606 - dev-libs/hyphen
607 - dev-libs/icu:=
608 - dev-libs/libassuan
609 - dev-libs/libgpg-error
610 - =dev-libs/liborcus-0.12*
611 - dev-libs/librevenge
612 - dev-libs/nspr
613 - dev-libs/nss
614 - !libressl? ( >=dev-libs/openssl-1.0.0d:0 )
615 - libressl? ( dev-libs/libressl )
616 - >=dev-libs/redland-1.0.16
617 - >=dev-libs/xmlsec-1.2.24[nss]
618 - media-gfx/graphite2
619 - media-libs/fontconfig
620 - media-libs/freetype:2
621 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
622 - media-libs/lcms:2
623 - >=media-libs/libcdr-0.1.0
624 - >=media-libs/libepoxy-1.3.1[X]
625 - >=media-libs/libfreehand-0.1.0
626 - media-libs/libpagemaker
627 - >=media-libs/libpng-1.4:0=
628 - >=media-libs/libvisio-0.1.0
629 - media-libs/libzmf
630 - net-libs/neon
631 - net-misc/curl
632 - net-nds/openldap
633 - sci-mathematics/lpsolve
634 - virtual/glu
635 - virtual/jpeg:0
636 - virtual/opengl
637 - x11-libs/cairo[X]
638 - x11-libs/libXinerama
639 - x11-libs/libXrandr
640 - x11-libs/libXrender
641 - bluetooth? ( net-wireless/bluez )
642 - coinmp? ( sci-libs/coinor-mp )
643 - collada? ( media-libs/opencollada )
644 - cups? ( net-print/cups )
645 - dbus? ( dev-libs/dbus-glib )
646 - eds? (
647 - dev-libs/glib:2
648 - gnome-base/dconf
649 - gnome-extra/evolution-data-server
650 - )
651 - firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1 )
652 - gltf? ( >=media-libs/libgltf-0.1.0 )
653 - gstreamer? (
654 - media-libs/gstreamer:1.0
655 - media-libs/gst-plugins-base:1.0
656 - )
657 - gtk? (
658 - x11-libs/gdk-pixbuf
659 - >=x11-libs/gtk+-2.24:2
660 - )
661 - gtk3? (
662 - dev-libs/glib:2
663 - dev-libs/gobject-introspection
664 - gnome-base/dconf
665 - x11-libs/gtk+:3
666 - )
667 - jemalloc? ( dev-libs/jemalloc )
668 - kde? (
669 - dev-qt/qtcore:4
670 - dev-qt/qtgui:4
671 - kde-frameworks/kdelibs
672 - )
673 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
674 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
675 - mysql? ( dev-db/mysql-connector-c++ )
676 - pdfimport? ( app-text/poppler:=[cxx] )
677 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
678 -"
679 -
680 -RDEPEND="${COMMON_DEPEND}
681 - !app-office/libreoffice-bin
682 - !app-office/libreoffice-bin-debug
683 - !app-office/openoffice
684 - media-fonts/dejavu
685 - media-fonts/liberation-fonts
686 - media-fonts/libertine
687 - || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
688 - java? ( >=virtual/jre-1.6 )
689 - kde? ( kde-frameworks/oxygen-icons:* )
690 - vlc? ( media-video/vlc )
691 -"
692 -
693 -if [[ ${PV} != *9999* ]]; then
694 - PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
695 -else
696 - # Translations are not reliable on live ebuilds
697 - # rather force people to use english only.
698 - PDEPEND="!app-office/libreoffice-l10n"
699 -fi
700 -
701 -# FIXME: cppunit should be moved to test conditional
702 -# after everything upstream is under gbuild
703 -# as dmake execute tests right away
704 -DEPEND="${COMMON_DEPEND}
705 - !<sys-devel/make-3.82
706 - >=dev-libs/libatomic_ops-7.2d
707 - >=dev-libs/libxml2-2.7.8
708 - dev-libs/libxslt
709 - dev-perl/Archive-Zip
710 - >=dev-util/cppunit-1.14.0
711 - >=dev-util/gperf-3
712 - dev-util/intltool
713 - >=dev-util/mdds-1.2.2:1=
714 - media-libs/glm
715 - sys-devel/bison
716 - sys-devel/flex
717 - sys-devel/gettext
718 - sys-devel/ucpp
719 - sys-libs/zlib
720 - virtual/pkgconfig
721 - x11-libs/libXt
722 - x11-libs/libXtst
723 - x11-proto/randrproto
724 - x11-proto/xextproto
725 - x11-proto/xineramaproto
726 - x11-proto/xproto
727 - java? (
728 - dev-java/ant-core
729 - >=virtual/jdk-1.6
730 - )
731 - odk? ( >=app-doc/doxygen-1.8.4 )
732 - test? (
733 - dev-util/cppunit
734 - media-fonts/dejavu
735 - )
736 -"
737 -
738 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
739 - bluetooth? ( dbus )
740 - collada? ( gltf )
741 - libreoffice_extensions_nlpsolver? ( java )
742 - libreoffice_extensions_scripting-beanshell? ( java )
743 - libreoffice_extensions_scripting-javascript? ( java )
744 - libreoffice_extensions_wiki-publisher? ( java )
745 -"
746 -
747 -PATCHES=(
748 - # not upstreamable stuff
749 - "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
750 - "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
751 -
752 - # TODO: upstream
753 - "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch"
754 - "${FILESDIR}/${P}-gtk3-no-gtk-build.patch" # bug 641812
755 - "${FILESDIR}/${P}-poppler-0.62.patch" # bug 642602
756 -)
757 -
758 -pkg_pretend() {
759 - use java || \
760 - ewarn "If you plan to use Base application you should enable java or you will get various crashes."
761 -
762 - if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
763 - ewarn "Firebird has been upgraded to version 3.0.0. It is unable to read back Firebird 2.5 data,"
764 - ewarn "so embedded firebird odb files created in LibreOffice pre-5.3 cannot be opened with LibreOffice 5.3."
765 - ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
766 - fi
767 -
768 - if [[ ${MERGE_TYPE} != binary ]]; then
769 -
770 - CHECKREQS_MEMORY="512M"
771 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
772 - CHECKREQS_DISK_BUILD="22G"
773 - else
774 - CHECKREQS_DISK_BUILD="6G"
775 - fi
776 - check-reqs_pkg_pretend
777 - fi
778 -}
779 -
780 -pkg_setup() {
781 - java-pkg-opt-2_pkg_setup
782 - python-single-r1_pkg_setup
783 - xdg_environment_reset
784 -
785 - if [[ ${MERGE_TYPE} != binary ]]; then
786 - CHECKREQS_MEMORY="512M"
787 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
788 - CHECKREQS_DISK_BUILD="22G"
789 - else
790 - CHECKREQS_DISK_BUILD="6G"
791 - fi
792 - check-reqs_pkg_setup
793 - fi
794 -}
795 -
796 -src_unpack() {
797 - [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
798 - use branding && unpack "${BRANDING}"
799 -
800 - if [[ ${PV} != *9999* ]]; then
801 - unpack "${P}.tar.xz"
802 - unpack "${PN}-help-${PV}.tar.xz"
803 - else
804 - local base_uri branch mypv
805 - base_uri="https://anongit.freedesktop.org/git"
806 - branch="master"
807 - mypv=${PV/.9999}
808 - [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
809 - git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
810 - git-r3_checkout "${base_uri}/${PN}/core"
811 -
812 - git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
813 - git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
814 - fi
815 -}
816 -
817 -src_prepare() {
818 - [[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}"
819 - default
820 -
821 - AT_M4DIR="m4" eautoreconf
822 - # hack in the autogen.sh
823 - touch autogen.lastrun
824 -
825 - # system pyuno mess
826 - sed -i \
827 - -e "s:%eprefix%:${EPREFIX}:g" \
828 - -e "s:%libdir%:$(get_libdir):g" \
829 - pyuno/source/module/uno.py \
830 - pyuno/source/officehelper.py || die
831 - # sed in the tests
832 - sed -i \
833 - -e "s#all : build unitcheck#all : build#g" \
834 - solenv/gbuild/Module.mk || die
835 - sed -i \
836 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
837 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
838 - Makefile.in || die
839 -
840 - sed -i \
841 - -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
842 - -e "s,\$INSTALLDIRNAME.sh,${PN}," \
843 - bin/distro-install-desktop-integration || die
844 -
845 - if use branding; then
846 - # hack...
847 - mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
848 - fi
849 -
850 - # Don't list pdfimport support in desktop when built with none, bug # 605464
851 - if ! use pdfimport; then
852 - sed -i \
853 - -e ":MimeType: s:application/pdf;::" \
854 - -e ":Keywords: s:pdf;::" \
855 - sysui/desktop/menus/draw.desktop || die
856 - fi
857 -}
858 -
859 -src_configure() {
860 - # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
861 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
862 - # your own set of keys. Feel free to contact chromium@g.o for more info.
863 - local google_default_client_id="329227923882.apps.googleusercontent.com"
864 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
865 -
866 - # optimization flags
867 - export GMAKE_OPTIONS="${MAKEOPTS}"
868 - # System python enablement:
869 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
870 - export PYTHON_LIBS=$(python_get_LIBS)
871 -
872 - if use collada; then
873 - export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
874 - export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
875 - fi
876 -
877 - if use kde; then
878 - # bug 544108, bug 599076
879 - export QMAKEQT4="$(qt4_get_bindir)/qmake"
880 - export MOCQT4="$(qt4_get_bindir)/moc"
881 - fi
882 -
883 - # system headers/libs/...: enforce using system packages
884 - # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
885 - # --enable-cairo: ensure that cairo is always required
886 - # --enable-*-link: link to the library rather than just dlopen on runtime
887 - # --enable-release-build: build the libreoffice as release
888 - # --disable-fetch-external: prevent dowloading during compile phase
889 - # --enable-extension-integration: enable any extension integration support
890 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
891 - # --disable-report-builder: too much java packages pulled in without pkgs
892 - # --without-system-sane: just sane.h header that is used for scan in writer,
893 - # not linked or anything else, worthless to depend on
894 - # --disable-pdfium: not yet packaged
895 - local myeconfargs=(
896 - --with-system-dicts
897 - --with-system-epoxy
898 - --with-system-headers
899 - --with-system-jars
900 - --with-system-libs
901 - --enable-cairo-canvas
902 - --enable-largefile
903 - --enable-mergelibs
904 - --enable-neon
905 - --enable-python=system
906 - --enable-randr
907 - --enable-release-build
908 - --disable-breakpad
909 - --disable-ccache
910 - --disable-dependency-tracking
911 - --disable-epm
912 - --disable-fetch-external
913 - --disable-gstreamer-0-10
914 - --disable-online-update
915 - --disable-pdfium
916 - --disable-report-builder
917 - --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system")
918 - --with-build-version="Gentoo official package"
919 - --enable-extension-integration
920 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
921 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
922 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
923 - --with-external-tar="${DISTDIR}"
924 - --with-lang=""
925 - --with-parallelism=$(makeopts_jobs)
926 - --with-system-ucpp
927 - --with-vendor="Gentoo Foundation"
928 - --with-x
929 - --without-fonts
930 - --without-myspell-dicts
931 - --without-help
932 - --with-helppack-integration
933 - --with-system-gpgmepp
934 - --without-system-sane
935 - $(use_enable bluetooth sdremote-bluetooth)
936 - $(use_enable coinmp)
937 - $(use_enable collada)
938 - $(use_enable cups)
939 - $(use_enable debug)
940 - $(use_enable dbus)
941 - $(use_enable eds evolution2)
942 - $(use_enable firebird firebird-sdbc)
943 - $(use_enable gltf)
944 - $(use_enable gstreamer gstreamer-1-0)
945 - $(use_enable gtk)
946 - $(use_enable gtk3)
947 - $(use_enable kde kde4)
948 - $(use_enable mysql ext-mariadb-connector)
949 - $(use_enable odk)
950 - $(use_enable pdfimport)
951 - $(use_enable postgres postgresql-sdbc)
952 - $(use_enable quickstarter systray)
953 - $(use_enable vlc)
954 - $(use_with coinmp system-coinmp)
955 - $(use_with collada system-opencollada)
956 - $(use_with gltf system-libgltf)
957 - $(use_with googledrive gdrive-client-id ${google_default_client_id})
958 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
959 - $(use_with java)
960 - $(use_with mysql system-mysql-cppconn)
961 - $(use_with odk doxygen)
962 - )
963 -
964 - if use eds || use gtk3; then
965 - myeconfargs+=( --enable-dconf --enable-gio )
966 - else
967 - myeconfargs+=( --disable-dconf --disable-gio )
968 - fi
969 -
970 - # libreoffice extensions handling
971 - for lo_xt in ${LO_EXTS}; do
972 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
973 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
974 - else
975 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
976 - fi
977 - done
978 -
979 - if use java; then
980 - # hsqldb: system one is too new
981 - myeconfargs+=(
982 - --without-junit
983 - --without-system-hsqldb
984 - --with-ant-home="${ANT_HOME}"
985 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
986 - --with-jvm-path="${EPREFIX}/usr/lib/"
987 - )
988 -
989 - use libreoffice_extensions_scripting-beanshell && \
990 - myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
991 -
992 - use libreoffice_extensions_scripting-javascript && \
993 - myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
994 - fi
995 -
996 - econf "${myeconfargs[@]}"
997 -}
998 -
999 -src_compile() {
1000 - # more and more LO stuff tries to use OpenGL, including tests during build
1001 - # bug 501508, bug 540624, bug 545974 and probably more
1002 - addpredict /dev/dri
1003 - addpredict /dev/ati
1004 - addpredict /dev/nvidiactl
1005 -
1006 - # hack for offlinehelp, this needs fixing upstream at some point
1007 - # it is broken because we send --without-help
1008 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
1009 - (
1010 - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
1011 - source "${T}/config_host.mk" 2&> /dev/null
1012 -
1013 - local path="${WORKDIR}/helpcontent2/source/auxiliary/"
1014 - mkdir -p "${path}" || die
1015 -
1016 - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\""
1017 - perl "${S}/helpcontent2/helpers/create_ilst.pl" \
1018 - -dir=helpcontent2/source/media/helpimg \
1019 - > "${path}/helpimg.ilst"
1020 - [[ -s "${path}/helpimg.ilst" ]] || \
1021 - ewarn "The help images list is empty, something is fishy, report a bug."
1022 - )
1023 -
1024 - local target
1025 - use test && target="build" || target="build-nocheck"
1026 -
1027 - # this is not a proper make script
1028 - make ${target} || die
1029 -}
1030 -
1031 -src_test() {
1032 - make unitcheck || die
1033 - make slowcheck || die
1034 -}
1035 -
1036 -src_install() {
1037 - # This is not Makefile so no buildserver
1038 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
1039 -
1040 - # bug 593514
1041 - if use gtk3; then
1042 - dosym libreoffice/program/liblibreofficekitgtk.so \
1043 - /usr/$(get_libdir)/liblibreofficekitgtk.so
1044 - fi
1045 -
1046 - # bash completion aliases
1047 - bashcomp_alias \
1048 - libreoffice \
1049 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
1050 -
1051 - if use branding; then
1052 - insinto /usr/$(get_libdir)/${PN}/program
1053 - newins "${WORKDIR}/branding-sofficerc" sofficerc
1054 - dodir /etc/env.d
1055 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
1056 - fi
1057 -
1058 - # Hack for offlinehelp, this needs fixing upstream at some point.
1059 - # It is broken because we send --without-help
1060 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
1061 - insinto /usr/$(get_libdir)/libreoffice/help
1062 - doins xmlhelp/util/*.xsl
1063 -
1064 - # Remove desktop files to support old installs that can't parse mime
1065 - rm -r "${ED}"usr/share/mimelnk/ || die
1066 -
1067 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
1068 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
1069 -}
1070 -
1071 -pkg_preinst() {
1072 - gnome2_icon_savelist
1073 -}
1074 -
1075 -pkg_postinst() {
1076 - gnome2_icon_cache_update
1077 - xdg_desktop_database_update
1078 - xdg_mimeinfo_database_update
1079 -}
1080 -
1081 -pkg_postrm() {
1082 - gnome2_icon_cache_update
1083 - xdg_desktop_database_update
1084 - xdg_mimeinfo_database_update
1085 -}