1 |
commit: 47d327ef500e23ebefe355d0dbff6dbc657018ca |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 29 17:31:07 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 29 17:38:02 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47d327ef |
7 |
|
8 |
app-office/libreoffice: Drop 6.2.7.1 and 6.3.2.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.76, Repoman-2.3.16 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
app-office/libreoffice/Manifest | 4 - |
14 |
.../libreoffice-6.3.2.2-mysql-connector-c-8.patch | 45 -- |
15 |
app-office/libreoffice/libreoffice-6.2.7.1.ebuild | 552 -------------------- |
16 |
app-office/libreoffice/libreoffice-6.3.2.2.ebuild | 553 --------------------- |
17 |
4 files changed, 1154 deletions(-) |
18 |
|
19 |
diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest |
20 |
index 78da4892a63..58a9bd64826 100644 |
21 |
--- a/app-office/libreoffice/Manifest |
22 |
+++ b/app-office/libreoffice/Manifest |
23 |
@@ -4,13 +4,9 @@ DIST 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip 9796 BLAKE2B a30b0225313b23 |
24 |
DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 BLAKE2B d2769842c180997055648a8b1a33cc89988b74628bad8aa012242e0c1afa5b5b8568323c107187072207ee69bd841ba4ca3bbfe27ef65223ddc729d1a1aa6590 SHA512 ec5ae23c8fe2f5efc377f7a9665039afadf28b4d8f2791379296766a5fbc9a3bf7548f9b0e3b3b07762229ec733a92ccbb69791ee0318c9c6f78f8e847253d3f |
25 |
DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd90585b13857ecb494c805c9fb6874e1e65d7aee73d23e1716670836a14b376bcca810f96fd55b0ed653b2660a268030f246c822cbb04f867ef763a3b3 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a |
26 |
DIST libreoffice-6.2.5.2.tar.xz 215008848 BLAKE2B 5dd1ef185820944816e01c8ed6a7873a5a8fe6f7f4b41fad279729970d85ff868f51ed573e8b3d0a554ffd1f8e295b6ff2e493e7f7250f8cb1c7c2a40115abf4 SHA512 b46b6731c415ab354ad7d876cb8905cb9eae2ca71639abf049ea7f5930601c957cc0eb04a2cd06949073ba5e94778ecdb449692ed8bbfbd95b05f6e7980d8d10 |
27 |
-DIST libreoffice-6.2.7.1.tar.xz 215022744 BLAKE2B 717acc3c310d3d973464b422176ccb4aae1481f2537c419e3afd031a2c2967a7b20b4cc5b60499befcae279441176a275f339e65534c4eb9d7395c6e050ba6e3 SHA512 9ed37c7957bb214a3de0b3dadea9debd5056d641052a669904d543a7065f1f5c721e09ddda800dfb478ff0474f71a275c7208077cb7b6566786d3b637f42860b |
28 |
DIST libreoffice-6.2.8.2.tar.xz 215070800 BLAKE2B d6bc1e94de1df4dd20dafaeac9702435f305fe15117e8aee02233c6d2e74423bb475aeaf79ff6dcd30e22d69a5d6f0648218819b08003524a2c7b1db340281c4 SHA512 cf1dd708f10ea4b9a3134851cad45fe91c1d535e2b2068f7e65f1cb1bf4076c5c41ec253f628c5b912590e91ccfe16f5c8bcf39bc92df2ec7c8aef84210349bd |
29 |
-DIST libreoffice-6.3.2.2.tar.xz 224752776 BLAKE2B 397d125714ae591d174ea185a488ecb652946de76d015c4ffb85e1c27ed34f87b5808ac41309b52fba117aab67097a0c378284721f0e5f3eb8e3284c799ed8dd SHA512 f0576f5a5b2c91ee6c003cbf9772580c564e05f66c3b34ddee4b723095aaa3a55070df3d70d7e6b8be68e23a7e204c1237496d7e798f9494282cadba0eacf930 |
30 |
DIST libreoffice-6.3.3.2.tar.xz 224944844 BLAKE2B 16d58d1b34f6a7da5a9cb32dade8f15ce074f516b77d6481f1befec75572f2533f3ae19964ce2688ff121789241a11823f05768b3386bc755f015a243af6c55a SHA512 4809ce26c48419e1e8408bdd71e7aeec3940bad150afeb90034013fbe8757c37417da3a996f8935aac3103806e14bd47dee7e560051d6718a75e6b869a2b1934 |
31 |
DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f |
32 |
DIST libreoffice-help-6.2.5.2.tar.xz 13023680 BLAKE2B f1f3a03104c1270e59f2b9130a29e1fbc99a9bf76b2bf4cedef8dc61487c9a2036f143501ad7fcd0c056c8b72446305b7a4ca9a719b11200ade5feca35e5e7ea SHA512 14f964161bd827a5846ec667ae1dac80d1485450e172da44010103e31f3872df62595e8b1b1d45c720caac9256d2adaf8f5a0bb80d059d35f1c560b533eb764c |
33 |
-DIST libreoffice-help-6.2.7.1.tar.xz 13024328 BLAKE2B fcdb01a52abb90773baa96b0c25fc04bf928e13b940a5cadd7eb455a3004f83d339252346d7c615fbe511cee7e093560c99bf6ff6bd2e5e832d57d4d1053ebc6 SHA512 b4599bf6854efa800483cf16132c9809ea439d29ea63c7621a0f04ce19609a7a1966d86862342f911cde22a3bd19fe5b96ad9bdb34d5255eb716352a8ce9bbaa |
34 |
DIST libreoffice-help-6.2.8.2.tar.xz 13024032 BLAKE2B 524ba3ff77670afeddddbf8be4724b5e54f9b157582cfcac8640e2184b8ae24c8e5e01b924415949f1756c18e2d54b8eab7efb78c979321e50b6d52b741ddd49 SHA512 c1f5b1b3c50da0a47a9724c9fc3544a15b7df72e66c5c2008afeae7732e2b29f0e57e64ce9a216c3237acdb4345715525f32be290f3196ba6e28685fa6c0925c |
35 |
-DIST libreoffice-help-6.3.2.2.tar.xz 13192064 BLAKE2B 83c742faa698370e1561133d4c7351619639b343068691d830433ff5dfa4af20ba7f89428b67275f7f19c947dd84e4c03aa330e4ddd684dbd19acee14e842ba9 SHA512 34f34abbd21e37ea6f8ed860af27bbd641cb98331f235b84c5b5cc4e3fa01d9f43a32469f5df4f4cf4dde0e804ba12e73fdd6d357413d5d7641c32396abf09f1 |
36 |
DIST libreoffice-help-6.3.3.2.tar.xz 13192080 BLAKE2B 108f33d77ec24ac5f5b669aae72dc23f0ae1800038d9028a3c92b6dfbe09003cb6d9f89a6675162c8cb058ac850a0e7c5544f8692c527cfa83bd32ba28149a50 SHA512 c4d994c4047aeee5e35207228e2b62ccc7d7303ae8fcbfb52cbf73950f232ad8d45953ee364379d3834e79c59ab79df920ec624ebe4b7214f955c2bd89af7cee |
37 |
|
38 |
diff --git a/app-office/libreoffice/files/libreoffice-6.3.2.2-mysql-connector-c-8.patch b/app-office/libreoffice/files/libreoffice-6.3.2.2-mysql-connector-c-8.patch |
39 |
deleted file mode 100644 |
40 |
index 677ba399575..00000000000 |
41 |
--- a/app-office/libreoffice/files/libreoffice-6.3.2.2-mysql-connector-c-8.patch |
42 |
+++ /dev/null |
43 |
@@ -1,45 +0,0 @@ |
44 |
-From 5917ba8bc645a2b105ec089101b8a664481b5b61 Mon Sep 17 00:00:00 2001 |
45 |
-From: Peter Levine <plevine457@×××××.com> |
46 |
-Date: Thu, 17 Oct 2019 23:08:57 -0400 |
47 |
-Subject: Fix building against MySQL Connector/C 8 |
48 |
- |
49 |
-In MySQL Connector/C 8, my_bool is replaced by bool. It was |
50 |
-previously defined as char. When building against |
51 |
-MySQL Connector/C 8, this leads to type punning build errors. |
52 |
-Redefine affected members of struct BindMetaData as bool if using |
53 |
-version 8 of greater. Otherwise, default to char. |
54 |
- |
55 |
-Change-Id: If12b975d95afae86502867cb334cb4195802f91d |
56 |
-Reviewed-on: https://gerrit.libreoffice.org/81002 |
57 |
-Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@×××.de> |
58 |
-Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@×××.de> |
59 |
---- |
60 |
- .../source/drivers/mysqlc/mysqlc_preparedstatement.hxx | 10 ++++++++-- |
61 |
- 1 file changed, 8 insertions(+), 2 deletions(-) |
62 |
- |
63 |
-diff --git a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.hxx b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.hxx |
64 |
-index 1df2c70..3450473 100644 |
65 |
---- a/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.hxx |
66 |
-+++ b/connectivity/source/drivers/mysqlc/mysqlc_preparedstatement.hxx |
67 |
-@@ -39,11 +39,17 @@ using ::com::sun::star::uno::Reference; |
68 |
- using ::com::sun::star::uno::RuntimeException; |
69 |
- using ::com::sun::star::uno::Type; |
70 |
- |
71 |
-+#if defined MYSQL_VERSION_ID && (MYSQL_VERSION_ID >= 80000) |
72 |
-+using my_bool = bool; |
73 |
-+#else |
74 |
-+using my_bool = char; |
75 |
-+#endif |
76 |
-+ |
77 |
- struct BindMetaData |
78 |
- { |
79 |
-- char is_null = 0; |
80 |
-+ my_bool is_null = 0; |
81 |
- unsigned long length = 0; |
82 |
-- char error = 0; |
83 |
-+ my_bool error = 0; |
84 |
- }; |
85 |
- |
86 |
- typedef ::cppu::ImplHelper5<css::sdbc::XPreparedStatement, css::sdbc::XParameters, |
87 |
--- |
88 |
-cgit v1.1 |
89 |
|
90 |
diff --git a/app-office/libreoffice/libreoffice-6.2.7.1.ebuild b/app-office/libreoffice/libreoffice-6.2.7.1.ebuild |
91 |
deleted file mode 100644 |
92 |
index 8a89bd5092b..00000000000 |
93 |
--- a/app-office/libreoffice/libreoffice-6.2.7.1.ebuild |
94 |
+++ /dev/null |
95 |
@@ -1,552 +0,0 @@ |
96 |
-# Copyright 1999-2019 Gentoo Authors |
97 |
-# Distributed under the terms of the GNU General Public License v2 |
98 |
- |
99 |
-EAPI=7 |
100 |
- |
101 |
-PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
102 |
-PYTHON_REQ_USE="threads(+),xml" |
103 |
- |
104 |
-MY_PV="${PV/_alpha/.alpha}" |
105 |
-MY_PV="${MY_PV/_beta/.beta}" |
106 |
-# experimental ; release ; old |
107 |
-# Usually the tarballs are moved a lot so this should make everyone happy. |
108 |
-DEV_URI=" |
109 |
- https://dev-builds.libreoffice.org/pre-releases/src |
110 |
- https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/ |
111 |
- https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src |
112 |
-" |
113 |
-ADDONS_URI="https://dev-www.libreoffice.org/src/" |
114 |
- |
115 |
-BRANDING="${PN}-branding-gentoo-0.8.tar.xz" |
116 |
-# PATCHSET="${P}-patchset-01.tar.xz" |
117 |
- |
118 |
-[[ ${MY_PV} == *9999* ]] && inherit git-r3 |
119 |
-inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils |
120 |
- |
121 |
-DESCRIPTION="A full office productivity suite" |
122 |
-HOMEPAGE="https://www.libreoffice.org" |
123 |
-SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
124 |
-[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}" |
125 |
- |
126 |
-# Split modules following git/tarballs; Core MUST be first! |
127 |
-# Help is used for the image generator |
128 |
-# Only release has the tarballs |
129 |
-if [[ ${MY_PV} != *9999* ]]; then |
130 |
- for i in ${DEV_URI}; do |
131 |
- SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz" |
132 |
- SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz" |
133 |
- done |
134 |
- unset i |
135 |
-fi |
136 |
-unset DEV_URI |
137 |
- |
138 |
-# Really required addons |
139 |
-# These are bundles that can't be removed for now due to huge patchsets. |
140 |
-# If you want them gone, patches are welcome. |
141 |
-ADDONS_SRC=( |
142 |
- "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
143 |
- # no release for 8 years, should we package it? |
144 |
- "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" |
145 |
- # Does not build with 1.6 rhino at all |
146 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
147 |
- # requirement of rhino |
148 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
149 |
- # not packageable |
150 |
- "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
151 |
-) |
152 |
-SRC_URI+=" ${ADDONS_SRC[*]}" |
153 |
- |
154 |
-unset ADDONS_URI |
155 |
-unset ADDONS_SRC |
156 |
- |
157 |
-# Extensions that need extra work: |
158 |
-LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
159 |
- |
160 |
-IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird |
161 |
-googledrive gstreamer +gtk gtk2 kde ldap +mariadb odk pdfimport postgres test |
162 |
-$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
163 |
- |
164 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
165 |
- bluetooth? ( dbus ) |
166 |
- libreoffice_extensions_nlpsolver? ( java ) |
167 |
- libreoffice_extensions_scripting-beanshell? ( java ) |
168 |
- libreoffice_extensions_scripting-javascript? ( java ) |
169 |
- libreoffice_extensions_wiki-publisher? ( java ) |
170 |
-" |
171 |
- |
172 |
-LICENSE="|| ( LGPL-3 MPL-1.1 )" |
173 |
-SLOT="0" |
174 |
-[[ ${MY_PV} == *9999* ]] || \ |
175 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
176 |
- |
177 |
-BDEPEND=" |
178 |
- dev-util/intltool |
179 |
- sys-devel/bison |
180 |
- sys-devel/flex |
181 |
- sys-devel/gettext |
182 |
- virtual/pkgconfig |
183 |
- odk? ( >=app-doc/doxygen-1.8.4 ) |
184 |
-" |
185 |
-COMMON_DEPEND="${PYTHON_DEPS} |
186 |
- app-arch/unzip |
187 |
- app-arch/zip |
188 |
- app-crypt/gpgme[cxx] |
189 |
- app-text/hunspell:= |
190 |
- >=app-text/libabw-0.1.0 |
191 |
- >=app-text/libebook-0.1 |
192 |
- app-text/libepubgen |
193 |
- >=app-text/libetonyek-0.1 |
194 |
- app-text/libexttextcat |
195 |
- app-text/liblangtag |
196 |
- >=app-text/libmspub-0.1.0 |
197 |
- >=app-text/libmwaw-0.3.1 |
198 |
- app-text/libnumbertext |
199 |
- >=app-text/libodfgen-0.1.0 |
200 |
- app-text/libqxp |
201 |
- app-text/libstaroffice |
202 |
- app-text/libwpd:0.10[tools] |
203 |
- app-text/libwpg:0.3 |
204 |
- >=app-text/libwps-0.4 |
205 |
- app-text/mythes |
206 |
- >=dev-cpp/clucene-2.3.3.4-r2 |
207 |
- =dev-cpp/libcmis-0.5* |
208 |
- dev-db/unixODBC |
209 |
- dev-lang/perl |
210 |
- dev-libs/boost:=[nls] |
211 |
- dev-libs/expat |
212 |
- dev-libs/hyphen |
213 |
- dev-libs/icu:= |
214 |
- dev-libs/libassuan |
215 |
- dev-libs/libgpg-error |
216 |
- >=dev-libs/liborcus-0.14.0 |
217 |
- dev-libs/librevenge |
218 |
- dev-libs/libxml2 |
219 |
- dev-libs/libxslt |
220 |
- dev-libs/nspr |
221 |
- dev-libs/nss |
222 |
- >=dev-libs/redland-1.0.16 |
223 |
- >=dev-libs/xmlsec-1.2.28[nss] |
224 |
- media-gfx/fontforge |
225 |
- media-gfx/graphite2 |
226 |
- media-libs/fontconfig |
227 |
- media-libs/freetype:2 |
228 |
- >=media-libs/harfbuzz-0.9.42:=[graphite,icu] |
229 |
- media-libs/lcms:2 |
230 |
- >=media-libs/libcdr-0.1.0 |
231 |
- >=media-libs/libepoxy-1.3.1[X] |
232 |
- >=media-libs/libfreehand-0.1.0 |
233 |
- media-libs/libpagemaker |
234 |
- >=media-libs/libpng-1.4:0= |
235 |
- >=media-libs/libvisio-0.1.0 |
236 |
- media-libs/libzmf |
237 |
- net-libs/neon |
238 |
- net-misc/curl |
239 |
- sci-mathematics/lpsolve |
240 |
- sys-libs/zlib |
241 |
- virtual/glu |
242 |
- virtual/jpeg:0 |
243 |
- virtual/opengl |
244 |
- x11-libs/cairo[X] |
245 |
- x11-libs/libXinerama |
246 |
- x11-libs/libXrandr |
247 |
- x11-libs/libXrender |
248 |
- accessibility? ( dev-python/lxml[${PYTHON_USEDEP}] ) |
249 |
- bluetooth? ( |
250 |
- dev-libs/glib:2 |
251 |
- net-wireless/bluez |
252 |
- ) |
253 |
- coinmp? ( sci-libs/coinor-mp ) |
254 |
- cups? ( net-print/cups ) |
255 |
- dbus? ( sys-apps/dbus ) |
256 |
- eds? ( |
257 |
- dev-libs/glib:2 |
258 |
- gnome-base/dconf |
259 |
- gnome-extra/evolution-data-server |
260 |
- ) |
261 |
- firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] ) |
262 |
- gstreamer? ( |
263 |
- media-libs/gstreamer:1.0 |
264 |
- media-libs/gst-plugins-base:1.0 |
265 |
- ) |
266 |
- gtk? ( |
267 |
- dev-libs/glib:2 |
268 |
- dev-libs/gobject-introspection |
269 |
- gnome-base/dconf |
270 |
- media-libs/mesa[egl] |
271 |
- x11-libs/gtk+:3 |
272 |
- x11-libs/pango |
273 |
- ) |
274 |
- gtk2? ( |
275 |
- x11-libs/gdk-pixbuf |
276 |
- >=x11-libs/gtk+-2.24:2 |
277 |
- x11-libs/pango |
278 |
- ) |
279 |
- kde? ( |
280 |
- dev-qt/qtcore:5 |
281 |
- dev-qt/qtgui:5 |
282 |
- dev-qt/qtwidgets:5 |
283 |
- dev-qt/qtx11extras:5 |
284 |
- kde-frameworks/kconfig:5 |
285 |
- kde-frameworks/kcoreaddons:5 |
286 |
- kde-frameworks/ki18n:5 |
287 |
- kde-frameworks/kio:5 |
288 |
- kde-frameworks/kwindowsystem:5 |
289 |
- ) |
290 |
- ldap? ( net-nds/openldap ) |
291 |
- libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) |
292 |
- libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
293 |
- mariadb? ( dev-db/mariadb-connector-c ) |
294 |
- !mariadb? ( dev-db/mysql-connector-c ) |
295 |
- pdfimport? ( app-text/poppler:=[cxx] ) |
296 |
- postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
297 |
-" |
298 |
-# FIXME: cppunit should be moved to test conditional |
299 |
-# after everything upstream is under gbuild |
300 |
-# as dmake execute tests right away |
301 |
-# tests apparently also need google-carlito-fonts (not packaged) |
302 |
-DEPEND="${COMMON_DEPEND} |
303 |
- >=dev-libs/libatomic_ops-7.2d |
304 |
- dev-perl/Archive-Zip |
305 |
- >=dev-util/cppunit-1.14.0 |
306 |
- >=dev-util/gperf-3 |
307 |
- >=dev-util/mdds-1.4.1:1= |
308 |
- media-libs/glm |
309 |
- sys-devel/ucpp |
310 |
- x11-base/xorg-proto |
311 |
- x11-libs/libXt |
312 |
- x11-libs/libXtst |
313 |
- java? ( |
314 |
- dev-java/ant-core |
315 |
- >=virtual/jdk-1.6 |
316 |
- ) |
317 |
- test? ( |
318 |
- app-crypt/gnupg |
319 |
- dev-util/cppunit |
320 |
- media-fonts/dejavu |
321 |
- media-fonts/liberation-fonts |
322 |
- ) |
323 |
-" |
324 |
-RDEPEND="${COMMON_DEPEND} |
325 |
- !app-office/libreoffice-bin |
326 |
- !app-office/libreoffice-bin-debug |
327 |
- !app-office/openoffice |
328 |
- media-fonts/liberation-fonts |
329 |
- || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) |
330 |
- java? ( >=virtual/jre-1.6 ) |
331 |
- kde? ( kde-frameworks/breeze-icons:* ) |
332 |
-" |
333 |
-if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then |
334 |
- PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*" |
335 |
-else |
336 |
- # Translations are not reliable on live ebuilds |
337 |
- # rather force people to use english only. |
338 |
- PDEPEND="!app-office/libreoffice-l10n" |
339 |
-fi |
340 |
- |
341 |
-PATCHES=( |
342 |
- # master branch |
343 |
- "${FILESDIR}/${PN}-6.2-ldap-optional.patch" |
344 |
- # "${WORKDIR}"/${PATCHSET/.tar.xz/} |
345 |
- |
346 |
- # not upstreamable stuff |
347 |
- "${FILESDIR}/${PN}-5.4-system-pyuno.patch" |
348 |
- "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
349 |
- "${FILESDIR}/${PN}-6.1-nomancompress.patch" |
350 |
-) |
351 |
- |
352 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
353 |
- |
354 |
-_check_reqs() { |
355 |
- CHECKREQS_MEMORY="512M" |
356 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
357 |
- CHECKREQS_DISK_BUILD="22G" |
358 |
- else |
359 |
- CHECKREQS_DISK_BUILD="6G" |
360 |
- fi |
361 |
- check-reqs_$1 |
362 |
-} |
363 |
- |
364 |
-pkg_pretend() { |
365 |
- if ! use java && ! use firebird; then |
366 |
- ewarn "If you plan to use Base application you must enable either firebird or java." |
367 |
- fi |
368 |
- |
369 |
- use java || ewarn "Without java, several wizards are not going to be available." |
370 |
- |
371 |
- if has_version "<app-office/libreoffice-5.3.0[firebird]"; then |
372 |
- ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so" |
373 |
- ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version." |
374 |
- ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base" |
375 |
- fi |
376 |
- |
377 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend |
378 |
-} |
379 |
- |
380 |
-pkg_setup() { |
381 |
- java-pkg-opt-2_pkg_setup |
382 |
- python-single-r1_pkg_setup |
383 |
- xdg_environment_reset |
384 |
- |
385 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup |
386 |
-} |
387 |
- |
388 |
-src_unpack() { |
389 |
- default |
390 |
- |
391 |
- if [[ ${MY_PV} = *9999* ]]; then |
392 |
- local base_uri branch mypv |
393 |
- base_uri="https://anongit.freedesktop.org/git" |
394 |
- branch="master" |
395 |
- mypv=${MY_PV/.9999} |
396 |
- [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}" |
397 |
- git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" |
398 |
- git-r3_checkout "${base_uri}/${PN}/core" |
399 |
- LOCOREGIT_VERSION=${EGIT_VERSION} |
400 |
- |
401 |
- git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" |
402 |
- git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help |
403 |
- fi |
404 |
-} |
405 |
- |
406 |
-src_prepare() { |
407 |
- default |
408 |
- |
409 |
- # sandbox violations on many systems, we don't need it. Bug #646406 |
410 |
- sed -i \ |
411 |
- -e "/KF5_CONFIG/s/kf5-config/no/" \ |
412 |
- configure.ac || die "Failed to disable kf5-config" |
413 |
- |
414 |
- AT_M4DIR="m4" eautoreconf |
415 |
- # hack in the autogen.sh |
416 |
- touch autogen.lastrun |
417 |
- |
418 |
- # system pyuno mess |
419 |
- sed -i \ |
420 |
- -e "s:%eprefix%:${EPREFIX}:g" \ |
421 |
- -e "s:%libdir%:$(get_libdir):g" \ |
422 |
- pyuno/source/module/uno.py \ |
423 |
- pyuno/source/officehelper.py || die |
424 |
- # sed in the tests |
425 |
- sed -i \ |
426 |
- -e "s#all : build unitcheck#all : build#g" \ |
427 |
- solenv/gbuild/Module.mk || die |
428 |
- sed -i \ |
429 |
- -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
430 |
- -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
431 |
- Makefile.in || die |
432 |
- |
433 |
- sed -i \ |
434 |
- -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
435 |
- -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
436 |
- bin/distro-install-desktop-integration || die |
437 |
- |
438 |
- if use branding; then |
439 |
- # hack... |
440 |
- mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die |
441 |
- fi |
442 |
- |
443 |
- # Don't list pdfimport support in desktop when built with none, bug # 605464 |
444 |
- if ! use pdfimport; then |
445 |
- sed -i \ |
446 |
- -e ":MimeType: s:application/pdf;::" \ |
447 |
- -e ":Keywords: s:pdf;::" \ |
448 |
- sysui/desktop/menus/draw.desktop || die |
449 |
- fi |
450 |
-} |
451 |
- |
452 |
-src_configure() { |
453 |
- # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys |
454 |
- # Note: these are for Gentoo use ONLY. For your own distribution, please get |
455 |
- # your own set of keys. Feel free to contact chromium@g.o for more info. |
456 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
457 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
458 |
- |
459 |
- # optimization flags |
460 |
- export GMAKE_OPTIONS="${MAKEOPTS}" |
461 |
- # System python enablement: |
462 |
- export PYTHON_CFLAGS=$(python_get_CFLAGS) |
463 |
- export PYTHON_LIBS=$(python_get_LIBS) |
464 |
- |
465 |
- if use kde; then |
466 |
- export QT_SELECT=5 # bug 639620 needs proper fix though |
467 |
- export QT5DIR="$(qt5_get_bindir)/../" |
468 |
- export MOC5="$(qt5_get_bindir)/moc" |
469 |
- fi |
470 |
- |
471 |
- local gentoo_buildid="Gentoo official package" |
472 |
- if [[ -n ${LOCOREGIT_VERSION} ]]; then |
473 |
- gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})" |
474 |
- fi |
475 |
- |
476 |
- # system headers/libs/...: enforce using system packages |
477 |
- # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad |
478 |
- # --enable-cairo: ensure that cairo is always required |
479 |
- # --enable-*-link: link to the library rather than just dlopen on runtime |
480 |
- # --enable-release-build: build the libreoffice as release |
481 |
- # --disable-fetch-external: prevent dowloading during compile phase |
482 |
- # --enable-extension-integration: enable any extension integration support |
483 |
- # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
484 |
- # --disable-report-builder: too much java packages pulled in without pkgs |
485 |
- # --without-system-sane: just sane.h header that is used for scan in writer, |
486 |
- # not linked or anything else, worthless to depend on |
487 |
- # --disable-pdfium: not yet packaged |
488 |
- local myeconfargs=( |
489 |
- --with-system-dicts |
490 |
- --with-system-epoxy |
491 |
- --with-system-headers |
492 |
- --with-system-jars |
493 |
- --with-system-libs |
494 |
- --enable-build-opensymbol |
495 |
- --enable-cairo-canvas |
496 |
- --enable-largefile |
497 |
- --enable-mergelibs |
498 |
- --enable-neon |
499 |
- --enable-python=system |
500 |
- --enable-randr |
501 |
- --enable-release-build |
502 |
- --disable-breakpad |
503 |
- --disable-bundle-mariadb |
504 |
- --disable-ccache |
505 |
- --disable-dependency-tracking |
506 |
- --disable-epm |
507 |
- --disable-fetch-external |
508 |
- --disable-gstreamer-0-10 |
509 |
- --disable-gtk3-kde5 |
510 |
- --disable-online-update |
511 |
- --disable-openssl |
512 |
- --disable-pdfium |
513 |
- --disable-report-builder |
514 |
- --disable-vlc |
515 |
- --with-build-version="${gentoo_buildid}" |
516 |
- --enable-extension-integration |
517 |
- --with-external-dict-dir="${EPREFIX}/usr/share/myspell" |
518 |
- --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" |
519 |
- --with-external-thes-dir="${EPREFIX}/usr/share/myspell" |
520 |
- --with-external-tar="${DISTDIR}" |
521 |
- --with-lang="" |
522 |
- --with-parallelism=$(makeopts_jobs) |
523 |
- --with-system-ucpp |
524 |
- --with-tls=nss |
525 |
- --with-vendor="Gentoo Foundation" |
526 |
- --with-x |
527 |
- --without-fonts |
528 |
- --without-myspell-dicts |
529 |
- --with-help="html" |
530 |
- --without-helppack-integration |
531 |
- --with-system-gpgmepp |
532 |
- --without-system-sane |
533 |
- $(use_enable bluetooth sdremote-bluetooth) |
534 |
- $(use_enable coinmp) |
535 |
- $(use_enable cups) |
536 |
- $(use_enable dbus) |
537 |
- $(use_enable debug) |
538 |
- $(use_enable eds evolution2) |
539 |
- $(use_enable firebird firebird-sdbc) |
540 |
- $(use_enable gstreamer gstreamer-1-0) |
541 |
- $(use_enable gtk gtk3) |
542 |
- $(use_enable gtk2 gtk) |
543 |
- $(use_enable kde kde5) |
544 |
- $(use_enable kde qt5) |
545 |
- $(use_enable ldap) |
546 |
- $(use_enable odk) |
547 |
- $(use_enable pdfimport) |
548 |
- $(use_enable postgres postgresql-sdbc) |
549 |
- $(use_with accessibility lxml) |
550 |
- $(use_with coinmp system-coinmp) |
551 |
- $(use_with googledrive gdrive-client-id ${google_default_client_id}) |
552 |
- $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) |
553 |
- $(use_with java) |
554 |
- $(use_with odk doxygen) |
555 |
- ) |
556 |
- |
557 |
- if use eds || use gtk; then |
558 |
- myeconfargs+=( --enable-dconf --enable-gio ) |
559 |
- else |
560 |
- myeconfargs+=( --disable-dconf --disable-gio ) |
561 |
- fi |
562 |
- |
563 |
- # libreoffice extensions handling |
564 |
- for lo_xt in ${LO_EXTS}; do |
565 |
- if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
566 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) ) |
567 |
- else |
568 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) ) |
569 |
- fi |
570 |
- done |
571 |
- |
572 |
- if use java; then |
573 |
- # hsqldb: system one is too new |
574 |
- myeconfargs+=( |
575 |
- --without-junit |
576 |
- --without-system-hsqldb |
577 |
- --with-ant-home="${ANT_HOME}" |
578 |
- --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
579 |
- --with-jvm-path="${EPREFIX}/usr/lib/" |
580 |
- ) |
581 |
- |
582 |
- use libreoffice_extensions_scripting-beanshell && \ |
583 |
- myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) ) |
584 |
- |
585 |
- use libreoffice_extensions_scripting-javascript && \ |
586 |
- myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) |
587 |
- fi |
588 |
- |
589 |
- is-flagq "-flto*" && myeconfargs+=( --enable-lto ) |
590 |
- |
591 |
- MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \ |
592 |
- econf "${myeconfargs[@]}" |
593 |
-} |
594 |
- |
595 |
-src_compile() { |
596 |
- # more and more LO stuff tries to use OpenGL, including tests during build |
597 |
- # bug 501508, bug 540624, bug 545974 and probably more |
598 |
- addpredict /dev/dri |
599 |
- addpredict /dev/ati |
600 |
- addpredict /dev/nvidiactl |
601 |
- |
602 |
- local target |
603 |
- use test && target="build" || target="build-nocheck" |
604 |
- |
605 |
- # this is not a proper make script |
606 |
- make ${target} || die |
607 |
-} |
608 |
- |
609 |
-src_test() { |
610 |
- make unitcheck || die |
611 |
- make slowcheck || die |
612 |
-} |
613 |
- |
614 |
-src_install() { |
615 |
- # This is not Makefile so no buildserver |
616 |
- make DESTDIR="${D}" distro-pack-install -o build -o check || die |
617 |
- |
618 |
- # bug 593514 |
619 |
- if use gtk; then |
620 |
- dosym libreoffice/program/liblibreofficekitgtk.so \ |
621 |
- /usr/$(get_libdir)/liblibreofficekitgtk.so |
622 |
- fi |
623 |
- |
624 |
- # bash completion aliases |
625 |
- bashcomp_alias \ |
626 |
- libreoffice \ |
627 |
- unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
628 |
- |
629 |
- if use branding; then |
630 |
- insinto /usr/$(get_libdir)/${PN}/program |
631 |
- newins "${WORKDIR}/branding-sofficerc" sofficerc |
632 |
- dodir /etc/env.d |
633 |
- echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die |
634 |
- fi |
635 |
-} |
636 |
- |
637 |
-pkg_postinst() { |
638 |
- xdg_icon_cache_update |
639 |
- xdg_desktop_database_update |
640 |
- xdg_mimeinfo_database_update |
641 |
-} |
642 |
- |
643 |
-pkg_postrm() { |
644 |
- xdg_icon_cache_update |
645 |
- xdg_desktop_database_update |
646 |
- xdg_mimeinfo_database_update |
647 |
-} |
648 |
|
649 |
diff --git a/app-office/libreoffice/libreoffice-6.3.2.2.ebuild b/app-office/libreoffice/libreoffice-6.3.2.2.ebuild |
650 |
deleted file mode 100644 |
651 |
index 0233e28a4fb..00000000000 |
652 |
--- a/app-office/libreoffice/libreoffice-6.3.2.2.ebuild |
653 |
+++ /dev/null |
654 |
@@ -1,553 +0,0 @@ |
655 |
-# Copyright 1999-2019 Gentoo Authors |
656 |
-# Distributed under the terms of the GNU General Public License v2 |
657 |
- |
658 |
-EAPI=7 |
659 |
- |
660 |
-PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
661 |
-PYTHON_REQ_USE="threads(+),xml" |
662 |
- |
663 |
-MY_PV="${PV/_alpha/.alpha}" |
664 |
-MY_PV="${MY_PV/_beta/.beta}" |
665 |
-# experimental ; release ; old |
666 |
-# Usually the tarballs are moved a lot so this should make everyone happy. |
667 |
-DEV_URI=" |
668 |
- https://dev-builds.libreoffice.org/pre-releases/src |
669 |
- https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/ |
670 |
- https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src |
671 |
-" |
672 |
-ADDONS_URI="https://dev-www.libreoffice.org/src/" |
673 |
- |
674 |
-BRANDING="${PN}-branding-gentoo-0.8.tar.xz" |
675 |
-# PATCHSET="${P}-patchset-01.tar.xz" |
676 |
- |
677 |
-[[ ${MY_PV} == *9999* ]] && inherit git-r3 |
678 |
-inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils |
679 |
- |
680 |
-DESCRIPTION="A full office productivity suite" |
681 |
-HOMEPAGE="https://www.libreoffice.org" |
682 |
-SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
683 |
-[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}" |
684 |
- |
685 |
-# Split modules following git/tarballs; Core MUST be first! |
686 |
-# Help is used for the image generator |
687 |
-# Only release has the tarballs |
688 |
-if [[ ${MY_PV} != *9999* ]]; then |
689 |
- for i in ${DEV_URI}; do |
690 |
- SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz" |
691 |
- SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz" |
692 |
- done |
693 |
- unset i |
694 |
-fi |
695 |
-unset DEV_URI |
696 |
- |
697 |
-# Really required addons |
698 |
-# These are bundles that can't be removed for now due to huge patchsets. |
699 |
-# If you want them gone, patches are welcome. |
700 |
-ADDONS_SRC=( |
701 |
- "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
702 |
- # no release for 8 years, should we package it? |
703 |
- "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" |
704 |
- # Does not build with 1.6 rhino at all |
705 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
706 |
- # requirement of rhino |
707 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
708 |
- # not packageable |
709 |
- "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
710 |
-) |
711 |
-SRC_URI+=" ${ADDONS_SRC[*]}" |
712 |
- |
713 |
-unset ADDONS_URI |
714 |
-unset ADDONS_SRC |
715 |
- |
716 |
-# Extensions that need extra work: |
717 |
-LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
718 |
- |
719 |
-IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird |
720 |
-googledrive gstreamer +gtk gtk2 kde ldap +mariadb odk pdfimport postgres test |
721 |
-$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
722 |
- |
723 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
724 |
- bluetooth? ( dbus ) |
725 |
- libreoffice_extensions_nlpsolver? ( java ) |
726 |
- libreoffice_extensions_scripting-beanshell? ( java ) |
727 |
- libreoffice_extensions_scripting-javascript? ( java ) |
728 |
- libreoffice_extensions_wiki-publisher? ( java ) |
729 |
-" |
730 |
- |
731 |
-LICENSE="|| ( LGPL-3 MPL-1.1 )" |
732 |
-SLOT="0" |
733 |
-[[ ${MY_PV} == *9999* ]] || \ |
734 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
735 |
- |
736 |
-BDEPEND=" |
737 |
- dev-util/intltool |
738 |
- sys-devel/bison |
739 |
- sys-devel/flex |
740 |
- sys-devel/gettext |
741 |
- virtual/pkgconfig |
742 |
- odk? ( >=app-doc/doxygen-1.8.4 ) |
743 |
-" |
744 |
-COMMON_DEPEND="${PYTHON_DEPS} |
745 |
- app-arch/unzip |
746 |
- app-arch/zip |
747 |
- app-crypt/gpgme[cxx] |
748 |
- app-text/hunspell:= |
749 |
- >=app-text/libabw-0.1.0 |
750 |
- >=app-text/libebook-0.1 |
751 |
- app-text/libepubgen |
752 |
- >=app-text/libetonyek-0.1 |
753 |
- app-text/libexttextcat |
754 |
- app-text/liblangtag |
755 |
- >=app-text/libmspub-0.1.0 |
756 |
- >=app-text/libmwaw-0.3.1 |
757 |
- app-text/libnumbertext |
758 |
- >=app-text/libodfgen-0.1.0 |
759 |
- app-text/libqxp |
760 |
- app-text/libstaroffice |
761 |
- app-text/libwpd:0.10[tools] |
762 |
- app-text/libwpg:0.3 |
763 |
- >=app-text/libwps-0.4 |
764 |
- app-text/mythes |
765 |
- >=dev-cpp/clucene-2.3.3.4-r2 |
766 |
- >=dev-cpp/libcmis-0.5.2 |
767 |
- dev-db/unixODBC |
768 |
- dev-lang/perl |
769 |
- dev-libs/boost:=[nls] |
770 |
- dev-libs/expat |
771 |
- dev-libs/hyphen |
772 |
- dev-libs/icu:= |
773 |
- dev-libs/libassuan |
774 |
- dev-libs/libgpg-error |
775 |
- >=dev-libs/liborcus-0.14.0 |
776 |
- dev-libs/librevenge |
777 |
- dev-libs/libxml2 |
778 |
- dev-libs/libxslt |
779 |
- dev-libs/nspr |
780 |
- dev-libs/nss |
781 |
- >=dev-libs/redland-1.0.16 |
782 |
- >=dev-libs/xmlsec-1.2.28[nss] |
783 |
- media-gfx/fontforge |
784 |
- media-gfx/graphite2 |
785 |
- media-libs/fontconfig |
786 |
- media-libs/freetype:2 |
787 |
- >=media-libs/harfbuzz-0.9.42:=[graphite,icu] |
788 |
- media-libs/lcms:2 |
789 |
- >=media-libs/libcdr-0.1.0 |
790 |
- >=media-libs/libepoxy-1.3.1[X] |
791 |
- >=media-libs/libfreehand-0.1.0 |
792 |
- media-libs/libpagemaker |
793 |
- >=media-libs/libpng-1.4:0= |
794 |
- >=media-libs/libvisio-0.1.0 |
795 |
- media-libs/libzmf |
796 |
- net-libs/neon |
797 |
- net-misc/curl |
798 |
- sci-mathematics/lpsolve |
799 |
- sys-libs/zlib |
800 |
- virtual/glu |
801 |
- virtual/jpeg:0 |
802 |
- virtual/opengl |
803 |
- x11-libs/cairo[X] |
804 |
- x11-libs/libXinerama |
805 |
- x11-libs/libXrandr |
806 |
- x11-libs/libXrender |
807 |
- accessibility? ( dev-python/lxml[${PYTHON_USEDEP}] ) |
808 |
- bluetooth? ( |
809 |
- dev-libs/glib:2 |
810 |
- net-wireless/bluez |
811 |
- ) |
812 |
- coinmp? ( sci-libs/coinor-mp ) |
813 |
- cups? ( net-print/cups ) |
814 |
- dbus? ( sys-apps/dbus ) |
815 |
- eds? ( |
816 |
- dev-libs/glib:2 |
817 |
- gnome-base/dconf |
818 |
- gnome-extra/evolution-data-server |
819 |
- ) |
820 |
- firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] ) |
821 |
- gstreamer? ( |
822 |
- media-libs/gstreamer:1.0 |
823 |
- media-libs/gst-plugins-base:1.0 |
824 |
- ) |
825 |
- gtk? ( |
826 |
- dev-libs/glib:2 |
827 |
- dev-libs/gobject-introspection |
828 |
- gnome-base/dconf |
829 |
- media-libs/mesa[egl] |
830 |
- x11-libs/gtk+:3 |
831 |
- x11-libs/pango |
832 |
- ) |
833 |
- gtk2? ( |
834 |
- x11-libs/gdk-pixbuf |
835 |
- >=x11-libs/gtk+-2.24:2 |
836 |
- x11-libs/pango |
837 |
- ) |
838 |
- kde? ( |
839 |
- dev-qt/qtcore:5 |
840 |
- dev-qt/qtgui:5 |
841 |
- dev-qt/qtwidgets:5 |
842 |
- dev-qt/qtx11extras:5 |
843 |
- kde-frameworks/kconfig:5 |
844 |
- kde-frameworks/kcoreaddons:5 |
845 |
- kde-frameworks/ki18n:5 |
846 |
- kde-frameworks/kio:5 |
847 |
- kde-frameworks/kwindowsystem:5 |
848 |
- ) |
849 |
- ldap? ( net-nds/openldap ) |
850 |
- libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) |
851 |
- libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
852 |
- mariadb? ( dev-db/mariadb-connector-c ) |
853 |
- !mariadb? ( dev-db/mysql-connector-c ) |
854 |
- pdfimport? ( app-text/poppler:=[cxx] ) |
855 |
- postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
856 |
-" |
857 |
-# FIXME: cppunit should be moved to test conditional |
858 |
-# after everything upstream is under gbuild |
859 |
-# as dmake execute tests right away |
860 |
-# tests apparently also need google-carlito-fonts (not packaged) |
861 |
-DEPEND="${COMMON_DEPEND} |
862 |
- >=dev-libs/libatomic_ops-7.2d |
863 |
- dev-perl/Archive-Zip |
864 |
- >=dev-util/cppunit-1.14.0 |
865 |
- >=dev-util/gperf-3.1 |
866 |
- >=dev-util/mdds-1.4.1:1= |
867 |
- media-libs/glm |
868 |
- sys-devel/ucpp |
869 |
- x11-base/xorg-proto |
870 |
- x11-libs/libXt |
871 |
- x11-libs/libXtst |
872 |
- java? ( |
873 |
- dev-java/ant-core |
874 |
- >=virtual/jdk-1.6 |
875 |
- ) |
876 |
- test? ( |
877 |
- app-crypt/gnupg |
878 |
- dev-util/cppunit |
879 |
- media-fonts/dejavu |
880 |
- media-fonts/liberation-fonts |
881 |
- ) |
882 |
-" |
883 |
-RDEPEND="${COMMON_DEPEND} |
884 |
- !app-office/libreoffice-bin |
885 |
- !app-office/libreoffice-bin-debug |
886 |
- !app-office/openoffice |
887 |
- media-fonts/liberation-fonts |
888 |
- || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) |
889 |
- java? ( >=virtual/jre-1.6 ) |
890 |
- kde? ( kde-frameworks/breeze-icons:* ) |
891 |
-" |
892 |
-if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then |
893 |
- PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*" |
894 |
-else |
895 |
- # Translations are not reliable on live ebuilds |
896 |
- # rather force people to use english only. |
897 |
- PDEPEND="!app-office/libreoffice-l10n" |
898 |
-fi |
899 |
- |
900 |
-PATCHES=( |
901 |
- # "${WORKDIR}"/${PATCHSET/.tar.xz/} |
902 |
- |
903 |
- # not upstreamable stuff |
904 |
- "${FILESDIR}/${PN}-5.4-system-pyuno.patch" |
905 |
- "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
906 |
- "${FILESDIR}/${PN}-6.1-nomancompress.patch" |
907 |
- |
908 |
- # master branch |
909 |
- "${FILESDIR}/${P}-mysql-connector-c-8.patch" # bug #692422 |
910 |
-) |
911 |
- |
912 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
913 |
- |
914 |
-_check_reqs() { |
915 |
- CHECKREQS_MEMORY="512M" |
916 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
917 |
- CHECKREQS_DISK_BUILD="22G" |
918 |
- else |
919 |
- CHECKREQS_DISK_BUILD="6G" |
920 |
- fi |
921 |
- check-reqs_$1 |
922 |
-} |
923 |
- |
924 |
-pkg_pretend() { |
925 |
- if ! use java && ! use firebird; then |
926 |
- ewarn "If you plan to use Base application you must enable either firebird or java." |
927 |
- fi |
928 |
- |
929 |
- use java || ewarn "Without java, several wizards are not going to be available." |
930 |
- |
931 |
- if has_version "<app-office/libreoffice-5.3.0[firebird]"; then |
932 |
- ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so" |
933 |
- ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version." |
934 |
- ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base" |
935 |
- fi |
936 |
- |
937 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend |
938 |
-} |
939 |
- |
940 |
-pkg_setup() { |
941 |
- java-pkg-opt-2_pkg_setup |
942 |
- python-single-r1_pkg_setup |
943 |
- xdg_environment_reset |
944 |
- |
945 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup |
946 |
-} |
947 |
- |
948 |
-src_unpack() { |
949 |
- default |
950 |
- |
951 |
- if [[ ${MY_PV} = *9999* ]]; then |
952 |
- local base_uri branch mypv |
953 |
- base_uri="https://anongit.freedesktop.org/git" |
954 |
- branch="master" |
955 |
- mypv=${MY_PV/.9999} |
956 |
- [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}" |
957 |
- git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" |
958 |
- git-r3_checkout "${base_uri}/${PN}/core" |
959 |
- LOCOREGIT_VERSION=${EGIT_VERSION} |
960 |
- |
961 |
- git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" |
962 |
- git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help |
963 |
- fi |
964 |
-} |
965 |
- |
966 |
-src_prepare() { |
967 |
- default |
968 |
- |
969 |
- # sandbox violations on many systems, we don't need it. Bug #646406 |
970 |
- sed -i \ |
971 |
- -e "/KF5_CONFIG/s/kf5-config/no/" \ |
972 |
- configure.ac || die "Failed to disable kf5-config" |
973 |
- |
974 |
- AT_M4DIR="m4" eautoreconf |
975 |
- # hack in the autogen.sh |
976 |
- touch autogen.lastrun |
977 |
- |
978 |
- # system pyuno mess |
979 |
- sed -i \ |
980 |
- -e "s:%eprefix%:${EPREFIX}:g" \ |
981 |
- -e "s:%libdir%:$(get_libdir):g" \ |
982 |
- pyuno/source/module/uno.py \ |
983 |
- pyuno/source/officehelper.py || die |
984 |
- # sed in the tests |
985 |
- sed -i \ |
986 |
- -e "s#all : build unitcheck#all : build#g" \ |
987 |
- solenv/gbuild/Module.mk || die |
988 |
- sed -i \ |
989 |
- -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
990 |
- -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
991 |
- Makefile.in || die |
992 |
- |
993 |
- sed -i \ |
994 |
- -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
995 |
- -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
996 |
- bin/distro-install-desktop-integration || die |
997 |
- |
998 |
- if use branding; then |
999 |
- # hack... |
1000 |
- mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die |
1001 |
- fi |
1002 |
- |
1003 |
- # Don't list pdfimport support in desktop when built with none, bug # 605464 |
1004 |
- if ! use pdfimport; then |
1005 |
- sed -i \ |
1006 |
- -e ":MimeType: s:application/pdf;::" \ |
1007 |
- -e ":Keywords: s:pdf;::" \ |
1008 |
- sysui/desktop/menus/draw.desktop || die |
1009 |
- fi |
1010 |
-} |
1011 |
- |
1012 |
-src_configure() { |
1013 |
- # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys |
1014 |
- # Note: these are for Gentoo use ONLY. For your own distribution, please get |
1015 |
- # your own set of keys. Feel free to contact chromium@g.o for more info. |
1016 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
1017 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
1018 |
- |
1019 |
- # optimization flags |
1020 |
- export GMAKE_OPTIONS="${MAKEOPTS}" |
1021 |
- # System python enablement: |
1022 |
- export PYTHON_CFLAGS=$(python_get_CFLAGS) |
1023 |
- export PYTHON_LIBS=$(python_get_LIBS) |
1024 |
- |
1025 |
- if use kde; then |
1026 |
- export QT_SELECT=5 # bug 639620 needs proper fix though |
1027 |
- export QT5DIR="$(qt5_get_bindir)/../" |
1028 |
- export MOC5="$(qt5_get_bindir)/moc" |
1029 |
- fi |
1030 |
- |
1031 |
- local gentoo_buildid="Gentoo official package" |
1032 |
- if [[ -n ${LOCOREGIT_VERSION} ]]; then |
1033 |
- gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})" |
1034 |
- fi |
1035 |
- |
1036 |
- # system headers/libs/...: enforce using system packages |
1037 |
- # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad |
1038 |
- # --enable-cairo: ensure that cairo is always required |
1039 |
- # --enable-*-link: link to the library rather than just dlopen on runtime |
1040 |
- # --enable-release-build: build the libreoffice as release |
1041 |
- # --disable-fetch-external: prevent dowloading during compile phase |
1042 |
- # --enable-extension-integration: enable any extension integration support |
1043 |
- # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
1044 |
- # --disable-report-builder: too much java packages pulled in without pkgs |
1045 |
- # --without-system-sane: just sane.h header that is used for scan in writer, |
1046 |
- # not linked or anything else, worthless to depend on |
1047 |
- # --disable-pdfium: not yet packaged |
1048 |
- local myeconfargs=( |
1049 |
- --with-system-dicts |
1050 |
- --with-system-epoxy |
1051 |
- --with-system-headers |
1052 |
- --with-system-jars |
1053 |
- --with-system-libs |
1054 |
- --enable-build-opensymbol |
1055 |
- --enable-cairo-canvas |
1056 |
- --enable-largefile |
1057 |
- --enable-mergelibs |
1058 |
- --enable-neon |
1059 |
- --enable-python=system |
1060 |
- --enable-randr |
1061 |
- --enable-release-build |
1062 |
- --disable-breakpad |
1063 |
- --disable-bundle-mariadb |
1064 |
- --disable-ccache |
1065 |
- --disable-dependency-tracking |
1066 |
- --disable-epm |
1067 |
- --disable-fetch-external |
1068 |
- --disable-gstreamer-0-10 |
1069 |
- --disable-gtk3-kde5 |
1070 |
- --disable-online-update |
1071 |
- --disable-openssl |
1072 |
- --disable-pdfium |
1073 |
- --disable-report-builder |
1074 |
- --disable-vlc |
1075 |
- --with-build-version="${gentoo_buildid}" |
1076 |
- --enable-extension-integration |
1077 |
- --with-external-dict-dir="${EPREFIX}/usr/share/myspell" |
1078 |
- --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" |
1079 |
- --with-external-thes-dir="${EPREFIX}/usr/share/myspell" |
1080 |
- --with-external-tar="${DISTDIR}" |
1081 |
- --with-lang="" |
1082 |
- --with-parallelism=$(makeopts_jobs) |
1083 |
- --with-system-ucpp |
1084 |
- --with-tls=nss |
1085 |
- --with-vendor="Gentoo Foundation" |
1086 |
- --with-x |
1087 |
- --without-fonts |
1088 |
- --without-myspell-dicts |
1089 |
- --with-help="html" |
1090 |
- --without-helppack-integration |
1091 |
- --with-system-gpgmepp |
1092 |
- --without-system-sane |
1093 |
- $(use_enable bluetooth sdremote-bluetooth) |
1094 |
- $(use_enable coinmp) |
1095 |
- $(use_enable cups) |
1096 |
- $(use_enable dbus) |
1097 |
- $(use_enable debug) |
1098 |
- $(use_enable eds evolution2) |
1099 |
- $(use_enable firebird firebird-sdbc) |
1100 |
- $(use_enable gstreamer gstreamer-1-0) |
1101 |
- $(use_enable gtk gtk3) |
1102 |
- $(use_enable gtk2 gtk) |
1103 |
- $(use_enable kde kde5) |
1104 |
- $(use_enable kde qt5) |
1105 |
- $(use_enable ldap) |
1106 |
- $(use_enable odk) |
1107 |
- $(use_enable pdfimport) |
1108 |
- $(use_enable postgres postgresql-sdbc) |
1109 |
- $(use_with accessibility lxml) |
1110 |
- $(use_with coinmp system-coinmp) |
1111 |
- $(use_with googledrive gdrive-client-id ${google_default_client_id}) |
1112 |
- $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) |
1113 |
- $(use_with java) |
1114 |
- $(use_with odk doxygen) |
1115 |
- ) |
1116 |
- |
1117 |
- if use eds || use gtk; then |
1118 |
- myeconfargs+=( --enable-dconf --enable-gio ) |
1119 |
- else |
1120 |
- myeconfargs+=( --disable-dconf --disable-gio ) |
1121 |
- fi |
1122 |
- |
1123 |
- # libreoffice extensions handling |
1124 |
- for lo_xt in ${LO_EXTS}; do |
1125 |
- if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
1126 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) ) |
1127 |
- else |
1128 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) ) |
1129 |
- fi |
1130 |
- done |
1131 |
- |
1132 |
- if use java; then |
1133 |
- # hsqldb: system one is too new |
1134 |
- myeconfargs+=( |
1135 |
- --without-junit |
1136 |
- --without-system-hsqldb |
1137 |
- --with-ant-home="${ANT_HOME}" |
1138 |
- --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
1139 |
- --with-jvm-path="${EPREFIX}/usr/lib/" |
1140 |
- ) |
1141 |
- |
1142 |
- use libreoffice_extensions_scripting-beanshell && \ |
1143 |
- myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) ) |
1144 |
- |
1145 |
- use libreoffice_extensions_scripting-javascript && \ |
1146 |
- myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) |
1147 |
- fi |
1148 |
- |
1149 |
- is-flagq "-flto*" && myeconfargs+=( --enable-lto ) |
1150 |
- |
1151 |
- MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \ |
1152 |
- econf "${myeconfargs[@]}" |
1153 |
-} |
1154 |
- |
1155 |
-src_compile() { |
1156 |
- # more and more LO stuff tries to use OpenGL, including tests during build |
1157 |
- # bug 501508, bug 540624, bug 545974 and probably more |
1158 |
- addpredict /dev/dri |
1159 |
- addpredict /dev/ati |
1160 |
- addpredict /dev/nvidiactl |
1161 |
- |
1162 |
- local target |
1163 |
- use test && target="build" || target="build-nocheck" |
1164 |
- |
1165 |
- # this is not a proper make script |
1166 |
- make ${target} || die |
1167 |
-} |
1168 |
- |
1169 |
-src_test() { |
1170 |
- make unitcheck || die |
1171 |
- make slowcheck || die |
1172 |
-} |
1173 |
- |
1174 |
-src_install() { |
1175 |
- # This is not Makefile so no buildserver |
1176 |
- make DESTDIR="${D}" distro-pack-install -o build -o check || die |
1177 |
- |
1178 |
- # bug 593514 |
1179 |
- if use gtk; then |
1180 |
- dosym libreoffice/program/liblibreofficekitgtk.so \ |
1181 |
- /usr/$(get_libdir)/liblibreofficekitgtk.so |
1182 |
- fi |
1183 |
- |
1184 |
- # bash completion aliases |
1185 |
- bashcomp_alias \ |
1186 |
- libreoffice \ |
1187 |
- unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
1188 |
- |
1189 |
- if use branding; then |
1190 |
- insinto /usr/$(get_libdir)/${PN}/program |
1191 |
- newins "${WORKDIR}/branding-sofficerc" sofficerc |
1192 |
- dodir /etc/env.d |
1193 |
- echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die |
1194 |
- fi |
1195 |
-} |
1196 |
- |
1197 |
-pkg_postinst() { |
1198 |
- xdg_icon_cache_update |
1199 |
- xdg_desktop_database_update |
1200 |
- xdg_mimeinfo_database_update |
1201 |
-} |
1202 |
- |
1203 |
-pkg_postrm() { |
1204 |
- xdg_icon_cache_update |
1205 |
- xdg_desktop_database_update |
1206 |
- xdg_mimeinfo_database_update |
1207 |
-} |