1 |
commit: a6a0e3e4bdcd363350f15650e9cf60074fdeb900 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 7 16:14:40 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 7 17:23:17 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6a0e3e4 |
7 |
|
8 |
app-office/libreoffice: Drop 7.1.6.2 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
app-office/libreoffice/Manifest | 2 - |
14 |
app-office/libreoffice/libreoffice-7.1.6.2.ebuild | 672 ---------------------- |
15 |
2 files changed, 674 deletions(-) |
16 |
|
17 |
diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest |
18 |
index c98b7a92e01..c5a8ee649c8 100644 |
19 |
--- a/app-office/libreoffice/Manifest |
20 |
+++ b/app-office/libreoffice/Manifest |
21 |
@@ -20,12 +20,10 @@ DIST f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip 211919 BLAKE2B 2c7 |
22 |
DIST libcmis-0.5.2.tar.xz 484404 BLAKE2B 7de242393c28fc8289bb598b34e704eb2affaaa8b9e470e10044dbfd3812391f29e1421df8d7ac3869955698ddbc9575feebcfbac27bb074a60ccc0527dca1c3 SHA512 295ab15115e75b1f6074f17d3538afe0de9b2b77ab454f5c63cb05e8df11886d82942fbf21ba01486052e3f6c75b0636b99d8e660cd3472dc4b87c31d3cd557b |
23 |
DIST libcuckoo-93217f8d391718380c508a722ab9acd5e9081233.tar.gz 5005888 BLAKE2B 836ec268c19c27ac079ea1084587c3e999f39ad2188be1a5cf8337ad0473ffda6c32d0695254d3797d1607707329befa88da6043f424544487238e550eda8590 SHA512 4159dfb4d08e359feb23127e12db590260913e70774161ac9513abb5183ad6ed6d2bdfbe56fc8aa68e2fc57ee29eae67aa0180e1a7d955016884ecba2ca60ff8 |
24 |
DIST libreoffice-7.1.5.2.tar.xz 244350068 BLAKE2B ac3c7f5cabcb27ce3ed31febb04ce54b93bc8b4fa716259d1b93d5364e75b85af3352ad70a023b56271e769f5537b3f3151e837ee13498e08f1871e5b47d778c SHA512 dad5ffd344a7bad88ed8e77df4fb17b42237715e7b1feb7a7de164f2fbf6698feefedeb57974d8275067a06c0da60e9b07a333ccc1bb2f6d55a6b52408bd9b5f |
25 |
-DIST libreoffice-7.1.6.2.tar.xz 244535588 BLAKE2B 79d4980b5842b37e7fdc328e832e3b672225e1903676d5c63ab68d7a993caf000bdb763837f98b4dd8156a95224ce22f501ec66dc315ca801a9c748e203e9170 SHA512 13f8e0a45614c75861b6262bcf845c1dc63baef044dc434319f739b6180f61a740f945e99663d76b1c51ce5226b9765431aa34b49d8a7f017c966bf5d4694257 |
26 |
DIST libreoffice-7.1.7.2.tar.xz 244585600 BLAKE2B 65cb8f5ddbae5aa8fb37a54cc0fab8d541a030f6f94141f4e4355f1dfb24a927ffb713e5213e382152fe444e115f27b41f297ca37e320193c5e0289a01ee5430 SHA512 fa55bea912b4efa73cd1ad8bcc611a71146ab42534a348a7c695916d74f1912ad13a2d9ccb4f3f4ee4d604a0747619b75bbcc5e2b14bc306d53b3a1f27525093 |
27 |
DIST libreoffice-7.2.2.2.tar.xz 252478892 BLAKE2B e2e4ce76fc91ef0725f105ee87e480ede51610de7cabbc2bee1e32a9822f457ff9c21b0b13636447751727f42917dbdc9e24e20457ee9e5f1e4054d742337b5f SHA512 9adc14aa2aa24e1e91b32f0663d3fed8421baf78c3d310e8cc52ae70ea338b9d58406344d22d2c2fa6f91f10ae91945ef2d5713036f9144705bdb4c19ad69ca7 |
28 |
DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f |
29 |
DIST libreoffice-help-7.1.5.2.tar.xz 111785852 BLAKE2B 18962fe9260f6cf8ec7b1676f077b9f43e0277769b31b8e2c22cf83ac2963f3e92448901bc12f56dfb579da8a8a1ce20d6bd34c4bc3449f7e0972c03d22f63be SHA512 c669b6c4bfc3c6f46e4ee0bf86b158054f7178b9785273d9aba8183236b2ff6dbaf5584d5e4fb09bba3a8d010373599e7473a4ba15c229087c689198ceeee1c7 |
30 |
-DIST libreoffice-help-7.1.6.2.tar.xz 111785436 BLAKE2B 810de348ca8fc297a75608bf4def1b4fe68dae976c727ceb157937de8029e9d30b52929c4a4fa6521b3391be27943bfe30b76466b9c415b4f78f0b68a28377ca SHA512 1b0f7fe4bc9bf2e16e3b3ddf49d4a70ef1d7369d9fd4d4835618007a230fb6e36e81fa1bde42d38dba1068147b285148dbff6c336aff52872e8794b594d309ad |
31 |
DIST libreoffice-help-7.1.7.2.tar.xz 111785664 BLAKE2B 947860ebbcdf8bd0ee96ebad688057d776d049ccad066951bf0361bcc1f9a1f8187eed266061ad161f479a3691263dc4f179f4b81aa666fdc1a4a380d28425a4 SHA512 20c464ff9cea68b37f6988faea84e9d72ba174706e75d91bbcac514011c65ab55d4f3a9f21fbb8f04f02908237b16d7a6983624c5ab8f27ee4f83aa7eb621268 |
32 |
DIST libreoffice-help-7.2.2.2.tar.xz 111988404 BLAKE2B a0caafa4685c7356c8f1e592c104cd6e403283eb5b86580665637c3319eac4b651805ca6d7c45c5a0522e882ca1a28b6ae08f73c71b0417612c6fc084e194c1d SHA512 1e3a250b68f591c0dc0cd5d57843baa370ed009faabc9446826e8207043af5d193a263b85b9443a2baf1cb64366d90d08b763adf9ec9865d256f760f847ea638 |
33 |
DIST skia-m88-59bafeeaa7de9eb753e3778c414e01dcf013dcd8.tar.xz 10420480 BLAKE2B 83bcc9ff3a3a916ccb92f49ef69f99386e89b636d37679ab17735625c56c4bb31ca89a7034d9282c905b405e0b31215de5fd3734061d323d48db440e4ad52643 SHA512 8e5c37b895d7f5fe15f491005ac46b39efe3bfb3af5dc805bf1226b2112496bdb9e433cc3b313f8fc185fe1f898d126b8a557d23485615cdbe917f0b76855f3d |
34 |
|
35 |
diff --git a/app-office/libreoffice/libreoffice-7.1.6.2.ebuild b/app-office/libreoffice/libreoffice-7.1.6.2.ebuild |
36 |
deleted file mode 100644 |
37 |
index f2d42758311..00000000000 |
38 |
--- a/app-office/libreoffice/libreoffice-7.1.6.2.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,672 +0,0 @@ |
41 |
-# Copyright 1999-2021 Gentoo Authors |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
- |
44 |
-EAPI=7 |
45 |
- |
46 |
-PYTHON_COMPAT=( python3_{8..10} ) |
47 |
-PYTHON_REQ_USE="threads(+),xml" |
48 |
- |
49 |
-MY_PV="${PV/_alpha/.alpha}" |
50 |
-MY_PV="${MY_PV/_beta/.beta}" |
51 |
-# experimental ; release ; old |
52 |
-# Usually the tarballs are moved a lot so this should make everyone happy. |
53 |
-DEV_URI=" |
54 |
- https://dev-builds.libreoffice.org/pre-releases/src |
55 |
- https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/ |
56 |
- https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src |
57 |
-" |
58 |
-ADDONS_URI="https://dev-www.libreoffice.org/src/" |
59 |
- |
60 |
-BRANDING="${PN}-branding-gentoo-0.8.tar.xz" |
61 |
-# PATCHSET="${P}-patchset-01.tar.xz" |
62 |
- |
63 |
-[[ ${MY_PV} == *9999* ]] && inherit git-r3 |
64 |
-inherit autotools bash-completion-r1 check-reqs eapi8-dosym flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils |
65 |
- |
66 |
-DESCRIPTION="A full office productivity suite" |
67 |
-HOMEPAGE="https://www.libreoffice.org" |
68 |
-SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
69 |
-[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}" |
70 |
- |
71 |
-# Split modules following git/tarballs; Core MUST be first! |
72 |
-# Help is used for the image generator |
73 |
-# Only release has the tarballs |
74 |
-if [[ ${MY_PV} != *9999* ]]; then |
75 |
- for i in ${DEV_URI}; do |
76 |
- SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz" |
77 |
- SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz" |
78 |
- done |
79 |
- unset i |
80 |
-fi |
81 |
-unset DEV_URI |
82 |
- |
83 |
-# Really required addons |
84 |
-# These are bundles that can't be removed for now due to huge patchsets. |
85 |
-# If you want them gone, patches are welcome. |
86 |
-ADDONS_SRC=( |
87 |
- # broken against latest upstream release, too many patches on top: |
88 |
- # https://github.com/tdf/libcmis/pull/43 |
89 |
- "${ADDONS_URI}/libcmis-0.5.2.tar.xz" |
90 |
- # not packaged in Gentoo, https://www.netlib.org/fp/dtoa.c |
91 |
- "${ADDONS_URI}/dtoa-20180411.tgz" |
92 |
- # not packaged in Gentoo, https://skia.org/ |
93 |
- "${ADDONS_URI}/skia-m88-59bafeeaa7de9eb753e3778c414e01dcf013dcd8.tar.xz" |
94 |
- # QR code generating library for >=libreoffice-6.4, bug #691740 |
95 |
- "${ADDONS_URI}/QR-Code-generator-1.4.0.tar.gz" |
96 |
- "base? ( |
97 |
- ${ADDONS_URI}/commons-logging-1.2-src.tar.gz |
98 |
- ${ADDONS_URI}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip |
99 |
- ${ADDONS_URI}/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip |
100 |
- ${ADDONS_URI}/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip |
101 |
- ${ADDONS_URI}/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip |
102 |
- ${ADDONS_URI}/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip |
103 |
- ${ADDONS_URI}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip |
104 |
- ${ADDONS_URI}/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip |
105 |
- ${ADDONS_URI}/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip |
106 |
- ${ADDONS_URI}/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip |
107 |
- ${ADDONS_URI}/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip |
108 |
- ${ADDONS_URI}/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip |
109 |
- )" |
110 |
- "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
111 |
- # no release for 8 years, should we package it? |
112 |
- "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" |
113 |
- # Does not build with 1.6 rhino at all |
114 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
115 |
- # requirement of rhino |
116 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
117 |
- # not packageable |
118 |
- "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
119 |
-) |
120 |
-SRC_URI+=" ${ADDONS_SRC[*]}" |
121 |
- |
122 |
-unset ADDONS_URI |
123 |
-unset ADDONS_SRC |
124 |
- |
125 |
-# Extensions that need extra work: |
126 |
-LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
127 |
- |
128 |
-IUSE="accessibility base bluetooth +branding clang coinmp +cups custom-cflags +dbus debug eds firebird |
129 |
-googledrive gstreamer +gtk kde ldap +mariadb odk pdfimport postgres test vulkan |
130 |
-$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
131 |
- |
132 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
133 |
- base? ( firebird java ) |
134 |
- bluetooth? ( dbus ) |
135 |
- gtk? ( dbus ) |
136 |
- libreoffice_extensions_nlpsolver? ( java ) |
137 |
- libreoffice_extensions_scripting-beanshell? ( java ) |
138 |
- libreoffice_extensions_scripting-javascript? ( java ) |
139 |
- libreoffice_extensions_wiki-publisher? ( java ) |
140 |
-" |
141 |
- |
142 |
-RESTRICT="!test? ( test )" |
143 |
- |
144 |
-LICENSE="|| ( LGPL-3 MPL-1.1 )" |
145 |
-SLOT="0" |
146 |
- |
147 |
-[[ ${MY_PV} == *9999* ]] || \ |
148 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux" |
149 |
- |
150 |
-BDEPEND=" |
151 |
- dev-util/intltool |
152 |
- sys-devel/bison |
153 |
- sys-devel/flex |
154 |
- sys-devel/gettext |
155 |
- virtual/pkgconfig |
156 |
- odk? ( >=app-doc/doxygen-1.8.4 ) |
157 |
-" |
158 |
-COMMON_DEPEND="${PYTHON_DEPS} |
159 |
- app-arch/unzip |
160 |
- app-arch/zip |
161 |
- app-crypt/gpgme[cxx] |
162 |
- app-text/hunspell:= |
163 |
- >=app-text/libabw-0.1.0 |
164 |
- >=app-text/libebook-0.1 |
165 |
- app-text/libepubgen |
166 |
- >=app-text/libetonyek-0.1 |
167 |
- app-text/libexttextcat |
168 |
- app-text/liblangtag |
169 |
- >=app-text/libmspub-0.1.0 |
170 |
- >=app-text/libmwaw-0.3.1 |
171 |
- >=app-text/libnumbertext-1.0.6 |
172 |
- >=app-text/libodfgen-0.1.0 |
173 |
- app-text/libqxp |
174 |
- app-text/libstaroffice |
175 |
- app-text/libwpd:0.10[tools] |
176 |
- app-text/libwpg:0.3 |
177 |
- >=app-text/libwps-0.4 |
178 |
- app-text/mythes |
179 |
- >=dev-cpp/clucene-2.3.3.4-r2 |
180 |
- >=dev-cpp/libcmis-0.5.2 |
181 |
- dev-db/unixODBC |
182 |
- >=games-engines/box2d-2.4.1:0 |
183 |
- dev-lang/perl |
184 |
- >=dev-libs/boost-1.72.0:=[nls] |
185 |
- dev-libs/expat |
186 |
- dev-libs/hyphen |
187 |
- dev-libs/icu:= |
188 |
- dev-libs/libassuan |
189 |
- dev-libs/libgpg-error |
190 |
- dev-libs/liborcus:0/0.16 |
191 |
- dev-libs/librevenge |
192 |
- dev-libs/libxml2 |
193 |
- dev-libs/libxslt |
194 |
- dev-libs/nspr |
195 |
- dev-libs/nss |
196 |
- >=dev-libs/redland-1.0.16 |
197 |
- >=dev-libs/xmlsec-1.2.28[nss] |
198 |
- media-gfx/fontforge |
199 |
- media-gfx/graphite2 |
200 |
- media-libs/fontconfig |
201 |
- media-libs/freetype:2 |
202 |
- >=media-libs/harfbuzz-0.9.42:=[graphite,icu] |
203 |
- media-libs/lcms:2 |
204 |
- >=media-libs/libcdr-0.1.0 |
205 |
- >=media-libs/libepoxy-1.3.1[X] |
206 |
- >=media-libs/libfreehand-0.1.0 |
207 |
- media-libs/libpagemaker |
208 |
- >=media-libs/libpng-1.4:0= |
209 |
- >=media-libs/libvisio-0.1.0 |
210 |
- media-libs/libzmf |
211 |
- >=net-libs/neon-0.31.1:= |
212 |
- net-misc/curl |
213 |
- sci-mathematics/lpsolve |
214 |
- sys-libs/zlib |
215 |
- virtual/glu |
216 |
- virtual/jpeg:0 |
217 |
- virtual/opengl |
218 |
- x11-libs/cairo[X] |
219 |
- x11-libs/libXinerama |
220 |
- x11-libs/libXrandr |
221 |
- x11-libs/libXrender |
222 |
- accessibility? ( |
223 |
- $(python_gen_cond_dep 'dev-python/lxml[${PYTHON_USEDEP}]') |
224 |
- ) |
225 |
- bluetooth? ( |
226 |
- dev-libs/glib:2 |
227 |
- net-wireless/bluez |
228 |
- ) |
229 |
- clang? ( |
230 |
- || ( |
231 |
- ( sys-devel/clang:12 |
232 |
- sys-devel/llvm:12 |
233 |
- =sys-devel/lld-12* ) |
234 |
- ( sys-devel/clang:11 |
235 |
- sys-devel/llvm:11 |
236 |
- =sys-devel/lld-11* ) |
237 |
- ( sys-devel/clang:10 |
238 |
- sys-devel/llvm:10 |
239 |
- =sys-devel/lld-10* ) |
240 |
- ) |
241 |
- ) |
242 |
- coinmp? ( sci-libs/coinor-mp ) |
243 |
- cups? ( net-print/cups ) |
244 |
- dbus? ( sys-apps/dbus[X] ) |
245 |
- eds? ( |
246 |
- dev-libs/glib:2 |
247 |
- gnome-base/dconf |
248 |
- gnome-extra/evolution-data-server |
249 |
- ) |
250 |
- firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] ) |
251 |
- gstreamer? ( |
252 |
- media-libs/gstreamer:1.0 |
253 |
- media-libs/gst-plugins-base:1.0 |
254 |
- ) |
255 |
- gtk? ( |
256 |
- dev-libs/glib:2 |
257 |
- dev-libs/gobject-introspection |
258 |
- gnome-base/dconf |
259 |
- media-libs/mesa[egl(+)] |
260 |
- x11-libs/gtk+:3[X] |
261 |
- x11-libs/pango |
262 |
- ) |
263 |
- kde? ( |
264 |
- dev-qt/qtcore:5 |
265 |
- dev-qt/qtgui:5 |
266 |
- dev-qt/qtwidgets:5 |
267 |
- dev-qt/qtx11extras:5 |
268 |
- kde-frameworks/kconfig:5 |
269 |
- kde-frameworks/kcoreaddons:5 |
270 |
- kde-frameworks/ki18n:5 |
271 |
- kde-frameworks/kio:5 |
272 |
- kde-frameworks/kwindowsystem:5 |
273 |
- ) |
274 |
- ldap? ( net-nds/openldap ) |
275 |
- libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) |
276 |
- libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
277 |
- mariadb? ( dev-db/mariadb-connector-c ) |
278 |
- !mariadb? ( dev-db/mysql-connector-c ) |
279 |
- pdfimport? ( app-text/poppler:=[cxx] ) |
280 |
- postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
281 |
-" |
282 |
-# FIXME: cppunit should be moved to test conditional |
283 |
-# after everything upstream is under gbuild |
284 |
-# as dmake execute tests right away |
285 |
-# tests apparently also need google-carlito-fonts (not packaged) |
286 |
-DEPEND="${COMMON_DEPEND} |
287 |
- >=dev-libs/libatomic_ops-7.2d |
288 |
- dev-perl/Archive-Zip |
289 |
- >=dev-util/cppunit-1.14.0 |
290 |
- >=dev-util/gperf-3.1 |
291 |
- dev-util/mdds:1/1.5 |
292 |
- media-libs/glm |
293 |
- sys-devel/ucpp |
294 |
- x11-base/xorg-proto |
295 |
- x11-libs/libXt |
296 |
- x11-libs/libXtst |
297 |
- java? ( |
298 |
- dev-java/ant-core |
299 |
- || ( |
300 |
- dev-java/openjdk:11 |
301 |
- dev-java/openjdk-bin:11 |
302 |
- ) |
303 |
- ) |
304 |
- test? ( |
305 |
- app-crypt/gnupg |
306 |
- dev-util/cppunit |
307 |
- media-fonts/dejavu |
308 |
- media-fonts/liberation-fonts |
309 |
- ) |
310 |
-" |
311 |
-RDEPEND="${COMMON_DEPEND} |
312 |
- !app-office/libreoffice-bin |
313 |
- !app-office/libreoffice-bin-debug |
314 |
- media-fonts/liberation-fonts |
315 |
- || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) |
316 |
- java? ( || ( |
317 |
- dev-java/openjdk:11 |
318 |
- dev-java/openjdk-jre-bin:11 |
319 |
- >=virtual/jre-1.8 |
320 |
- ) ) |
321 |
- kde? ( kde-frameworks/breeze-icons:* ) |
322 |
-" |
323 |
-if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then |
324 |
- PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*" |
325 |
-else |
326 |
- # Translations are not reliable on live ebuilds |
327 |
- # rather force people to use english only. |
328 |
- PDEPEND="!app-office/libreoffice-l10n" |
329 |
-fi |
330 |
- |
331 |
-PATCHES=( |
332 |
- # "${WORKDIR}"/${PATCHSET/.tar.xz/} |
333 |
- |
334 |
- # not upstreamable stuff |
335 |
- "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
336 |
- "${FILESDIR}/${PN}-6.1-nomancompress.patch" |
337 |
- "${FILESDIR}/${PN}-7.0.3.1-qt5detect.patch" |
338 |
- |
339 |
- # 7.1 branch |
340 |
- "${FILESDIR}/${P}-KF5-fix-double-buffer-graphics.patch" |
341 |
- |
342 |
- # master branch |
343 |
- "${FILESDIR}/${PN}-7.1.3.2-bashism.patch" # bug 780432 |
344 |
- "${FILESDIR}/${PN}-7.1.5.2-bison-3.8.patch" # bug 812923 |
345 |
-) |
346 |
- |
347 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
348 |
- |
349 |
-_check_reqs() { |
350 |
- CHECKREQS_MEMORY="512M" |
351 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
352 |
- CHECKREQS_DISK_BUILD="22G" |
353 |
- else |
354 |
- CHECKREQS_DISK_BUILD="6G" |
355 |
- fi |
356 |
- check-reqs_$1 |
357 |
-} |
358 |
- |
359 |
-pkg_pretend() { |
360 |
- if use x86; then |
361 |
- elog "Unfortunately for packaging reasons on x86, various Java-based wizards," |
362 |
- elog "most notably Report Builder in LibreOffice Base, will not be available." |
363 |
- elog "See also: https://bugs.gentoo.org/785640" |
364 |
- else |
365 |
- use base || |
366 |
- ewarn "If you plan to use Base application you must enable USE base." |
367 |
- use java || |
368 |
- ewarn "Without USE java, several wizards are not going to be available." |
369 |
- fi |
370 |
- |
371 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend |
372 |
-} |
373 |
- |
374 |
-pkg_setup() { |
375 |
- java-pkg-opt-2_pkg_setup |
376 |
- python-single-r1_pkg_setup |
377 |
- xdg_environment_reset |
378 |
- |
379 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup |
380 |
-} |
381 |
- |
382 |
-src_unpack() { |
383 |
- default |
384 |
- |
385 |
- if [[ ${MY_PV} = *9999* ]]; then |
386 |
- local base_uri branch mypv |
387 |
- base_uri="https://anongit.freedesktop.org/git" |
388 |
- branch="master" |
389 |
- mypv=${MY_PV/.9999} |
390 |
- [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}" |
391 |
- git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" |
392 |
- git-r3_checkout "${base_uri}/${PN}/core" |
393 |
- LOCOREGIT_VERSION=${EGIT_VERSION} |
394 |
- |
395 |
- git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" |
396 |
- git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help |
397 |
- fi |
398 |
-} |
399 |
- |
400 |
-src_prepare() { |
401 |
- default |
402 |
- |
403 |
- # sandbox violations on many systems, we don't need it. Bug #646406 |
404 |
- sed -i \ |
405 |
- -e "/KF5_CONFIG/s/kf5-config/no/" \ |
406 |
- configure.ac || die "Failed to disable kf5-config" |
407 |
- |
408 |
- AT_M4DIR="m4" eautoreconf |
409 |
- # hack in the autogen.sh |
410 |
- touch autogen.lastrun |
411 |
- |
412 |
- # sed in the tests |
413 |
- sed -i \ |
414 |
- -e "s#all : build unitcheck#all : build#g" \ |
415 |
- solenv/gbuild/Module.mk || die |
416 |
- sed -i \ |
417 |
- -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
418 |
- -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
419 |
- Makefile.in || die |
420 |
- |
421 |
- sed -i \ |
422 |
- -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
423 |
- -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
424 |
- bin/distro-install-desktop-integration || die |
425 |
- |
426 |
- if use branding; then |
427 |
- # hack... |
428 |
- mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die |
429 |
- fi |
430 |
- |
431 |
- # Don't list pdfimport support in desktop when built with none, bug # 605464 |
432 |
- if ! use pdfimport; then |
433 |
- sed -i \ |
434 |
- -e ":MimeType: s:application/pdf;::" \ |
435 |
- -e ":Keywords: s:pdf;::" \ |
436 |
- sysui/desktop/menus/draw.desktop || die |
437 |
- fi |
438 |
-} |
439 |
- |
440 |
-src_configure() { |
441 |
- # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys |
442 |
- # Note: these are for Gentoo use ONLY. For your own distribution, please get |
443 |
- # your own set of keys. Feel free to contact chromium@g.o for more info. |
444 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
445 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
446 |
- |
447 |
- # Show flags set at the beginning |
448 |
- einfo "Preset CFLAGS: ${CFLAGS}" |
449 |
- einfo "Preset LDFLAGS: ${LDFLAGS}" |
450 |
- |
451 |
- if use clang ; then |
452 |
- # Force clang |
453 |
- einfo "Enforcing the use of clang due to USE=clang ..." |
454 |
- AR=llvm-ar |
455 |
- CC=${CHOST}-clang |
456 |
- CXX=${CHOST}-clang++ |
457 |
- NM=llvm-nm |
458 |
- RANLIB=llvm-ranlib |
459 |
- LDFLAGS+=" -fuse-ld=lld" |
460 |
- else |
461 |
- # Force gcc |
462 |
- einfo "Enforcing the use of gcc due to USE=-clang ..." |
463 |
- AR=gcc-ar |
464 |
- CC=${CHOST}-gcc |
465 |
- CXX=${CHOST}-g++ |
466 |
- NM=gcc-nm |
467 |
- RANLIB=gcc-ranlib |
468 |
- fi |
469 |
- |
470 |
- if use custom-cflags ; then |
471 |
- elog "USE=custom-cflags has been selected. You are on your own to make sure that" |
472 |
- elog "the build succeeds. Good luck!" |
473 |
- else |
474 |
- strip-flags |
475 |
- fi |
476 |
- |
477 |
- export LO_CLANG_CC=${CC} |
478 |
- export LO_CLANG_CXX=${CXX} |
479 |
- |
480 |
- # Show flags set at the end |
481 |
- einfo " Used CFLAGS: ${CFLAGS}" |
482 |
- einfo " Used LDFLAGS: ${LDFLAGS}" |
483 |
- |
484 |
- # Ensure we use correct toolchain |
485 |
- tc-export CC CXX LD AR NM OBJDUMP RANLIB PKG_CONFIG |
486 |
- |
487 |
- if use vulkan && ! use clang ; then |
488 |
- ewarn "Building skia with gcc may lead to performance issues. Disable vulkan or enable clang." |
489 |
- fi |
490 |
- |
491 |
- # optimization flags |
492 |
- export GMAKE_OPTIONS="${MAKEOPTS}" |
493 |
- # System python enablement: |
494 |
- export PYTHON_CFLAGS=$(python_get_CFLAGS) |
495 |
- export PYTHON_LIBS=$(python_get_LIBS) |
496 |
- |
497 |
- use kde && export QT5DIR="$(qt5_get_bindir)/.." |
498 |
- |
499 |
- local gentoo_buildid="Gentoo official package" |
500 |
- if [[ -n ${LOCOREGIT_VERSION} ]]; then |
501 |
- gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})" |
502 |
- fi |
503 |
- |
504 |
- # system headers/libs/...: enforce using system packages |
505 |
- # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad |
506 |
- # --enable-cairo: ensure that cairo is always required |
507 |
- # --enable-*-link: link to the library rather than just dlopen on runtime |
508 |
- # --enable-release-build: build the libreoffice as release |
509 |
- # --disable-fetch-external: prevent dowloading during compile phase |
510 |
- # --enable-extension-integration: enable any extension integration support |
511 |
- # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
512 |
- # --disable-report-builder: too much java packages pulled in without pkgs |
513 |
- # --without-system-sane: just sane.h header that is used for scan in writer, |
514 |
- # not linked or anything else, worthless to depend on |
515 |
- # --disable-pdfium: not yet packaged |
516 |
- # --without-system-qrcodegen: has no real build system and LO is the only user |
517 |
- local myeconfargs=( |
518 |
- --with-system-dicts |
519 |
- --with-system-epoxy |
520 |
- --with-system-headers |
521 |
- --with-system-jars |
522 |
- --with-system-libs |
523 |
- --enable-build-opensymbol |
524 |
- --enable-cairo-canvas |
525 |
- --enable-largefile |
526 |
- --enable-mergelibs |
527 |
- --enable-neon |
528 |
- --enable-python=system |
529 |
- --enable-randr |
530 |
- --enable-release-build |
531 |
- --disable-breakpad |
532 |
- --disable-bundle-mariadb |
533 |
- --disable-ccache |
534 |
- --disable-epm |
535 |
- --disable-fetch-external |
536 |
- --disable-gtk3-kde5 |
537 |
- --disable-online-update |
538 |
- --disable-openssl |
539 |
- --disable-pdfium |
540 |
- --disable-vlc |
541 |
- --with-extra-buildid="${gentoo_buildid}" |
542 |
- --enable-extension-integration |
543 |
- --with-external-dict-dir="${EPREFIX}/usr/share/myspell" |
544 |
- --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" |
545 |
- --with-external-thes-dir="${EPREFIX}/usr/share/myspell" |
546 |
- --with-external-tar="${DISTDIR}" |
547 |
- --with-lang="" |
548 |
- --with-parallelism=$(makeopts_jobs) |
549 |
- --with-system-ucpp |
550 |
- --with-tls=nss |
551 |
- --with-vendor="Gentoo Foundation" |
552 |
- --with-x |
553 |
- --without-fonts |
554 |
- --without-myspell-dicts |
555 |
- --with-help="html" |
556 |
- --without-helppack-integration |
557 |
- --with-system-gpgmepp |
558 |
- --without-system-jfreereport |
559 |
- --without-system_apache_commons |
560 |
- --without-system-libcmis |
561 |
- --without-system-sane |
562 |
- --without-system-qrcodegen |
563 |
- $(use_enable base report-builder) |
564 |
- $(use_enable bluetooth sdremote-bluetooth) |
565 |
- $(use_enable coinmp) |
566 |
- $(use_enable cups) |
567 |
- $(use_enable dbus) |
568 |
- $(use_enable debug) |
569 |
- $(use_enable eds evolution2) |
570 |
- $(use_enable firebird firebird-sdbc) |
571 |
- $(use_enable gstreamer gstreamer-1-0) |
572 |
- $(use_enable gtk gtk3) |
573 |
- $(use_enable kde kf5) |
574 |
- $(use_enable kde qt5) |
575 |
- $(use_enable ldap) |
576 |
- $(use_enable odk) |
577 |
- $(use_enable pdfimport) |
578 |
- $(use_enable postgres postgresql-sdbc) |
579 |
- $(use_enable vulkan skia) |
580 |
- $(use_with accessibility lxml) |
581 |
- $(use_with coinmp system-coinmp) |
582 |
- $(use_with googledrive gdrive-client-id ${google_default_client_id}) |
583 |
- $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) |
584 |
- $(use_with java) |
585 |
- $(use_with odk doxygen) |
586 |
- ) |
587 |
- |
588 |
- if use eds || use gtk; then |
589 |
- myeconfargs+=( --enable-dconf --enable-gio ) |
590 |
- else |
591 |
- myeconfargs+=( --disable-dconf --disable-gio ) |
592 |
- fi |
593 |
- |
594 |
- # libreoffice extensions handling |
595 |
- for lo_xt in ${LO_EXTS}; do |
596 |
- if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
597 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) ) |
598 |
- else |
599 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) ) |
600 |
- fi |
601 |
- done |
602 |
- |
603 |
- if use java; then |
604 |
- # hsqldb: system one is too new |
605 |
- myeconfargs+=( |
606 |
- --without-junit |
607 |
- --without-system-hsqldb |
608 |
- --with-ant-home="${ANT_HOME}" |
609 |
- ) |
610 |
- if has_version "dev-java/openjdk:11"; then |
611 |
- myeconfargs+=( -with-jdk-home="${EPREFIX}/usr/$(get_libdir)/openjdk-11" ) |
612 |
- elif has_version "dev-java/openjdk-bin:11"; then |
613 |
- myeconfargs+=( --with-jdk-home="/opt/openjdk-bin-11" ) |
614 |
- fi |
615 |
- |
616 |
- use libreoffice_extensions_scripting-beanshell && \ |
617 |
- myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) ) |
618 |
- |
619 |
- use libreoffice_extensions_scripting-javascript && \ |
620 |
- myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) |
621 |
- fi |
622 |
- |
623 |
- is-flagq "-flto*" && myeconfargs+=( --enable-lto ) |
624 |
- |
625 |
- MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \ |
626 |
- econf "${myeconfargs[@]}" |
627 |
-} |
628 |
- |
629 |
-src_compile() { |
630 |
- # more and more LO stuff tries to use OpenGL, including tests during build |
631 |
- # bug 501508, bug 540624, bug 545974 and probably more |
632 |
- addpredict /dev/dri |
633 |
- addpredict /dev/ati |
634 |
- addpredict /dev/nvidiactl |
635 |
- |
636 |
- local target |
637 |
- use test && target="build" || target="build-nocheck" |
638 |
- |
639 |
- # this is not a proper make script |
640 |
- make ${target} || die |
641 |
-} |
642 |
- |
643 |
-src_test() { |
644 |
- make unitcheck || die |
645 |
- make slowcheck || die |
646 |
-} |
647 |
- |
648 |
-src_install() { |
649 |
- # This is not Makefile so no buildserver |
650 |
- emake DESTDIR="${D}" distro-pack-install -o build -o check |
651 |
- |
652 |
- # bug 593514 |
653 |
- if use gtk; then |
654 |
- dosym libreoffice/program/liblibreofficekitgtk.so \ |
655 |
- /usr/$(get_libdir)/liblibreofficekitgtk.so |
656 |
- fi |
657 |
- |
658 |
- # bash completion aliases |
659 |
- bashcomp_alias \ |
660 |
- libreoffice \ |
661 |
- unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
662 |
- |
663 |
- if use branding; then |
664 |
- insinto /usr/$(get_libdir)/${PN}/program |
665 |
- newins "${WORKDIR}/branding-sofficerc" sofficerc |
666 |
- dodir /etc/env.d |
667 |
- echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die |
668 |
- fi |
669 |
- |
670 |
- # bug 703474 |
671 |
- insinto /usr/include |
672 |
- doins -r include/LibreOfficeKit |
673 |
- |
674 |
- local lodir=/usr/$(get_libdir)/libreoffice |
675 |
- # patching this would break tests |
676 |
- cat <<-EOF > "${T}"/uno.py |
677 |
-import sys, os |
678 |
-sys.path.append('${EPREFIX}${lodir}/program') |
679 |
-os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:${EPREFIX}${lodir}/program/fundamentalrc') |
680 |
-EOF |
681 |
- sed -e "/^import sys/d" -e "/^import os/d" \ |
682 |
- -i "${D}"${lodir}/program/uno.py || die "cleanup dupl imports failed" |
683 |
- cat "${D}"${lodir}/program/uno.py >> "${T}"/uno.py || die |
684 |
- cp "${T}"/uno.py "${D}"${lodir}/program/uno.py || die |
685 |
- |
686 |
- # more system pyuno mess |
687 |
- sed -e "/sOffice = \"\" # lets hope for the best/s:\"\":\"${EPREFIX}${lodir}/program\":" \ |
688 |
- -i "${D}"${lodir}/program/officehelper.py || die |
689 |
- |
690 |
- python_optimize "${D}"${lodir}/program |
691 |
- # link python bridge in site-packages, bug 667802 |
692 |
- local py pyc loprogdir=/usr/$(get_libdir)/libreoffice/program |
693 |
- for py in uno.py unohelper.py officehelper.py; do |
694 |
- dosym8 -r ${loprogdir}/${py} $(python_get_sitedir)/${py} |
695 |
- while IFS="" read -d $'\0' -r pyc; do |
696 |
- pyc=${pyc//*\/} |
697 |
- dosym8 -r ${loprogdir}/__pycache__/${pyc} $(python_get_sitedir)/__pycache__/${pyc} |
698 |
- done < <(find "${D}"${lodir}/program -type f -name ${py/.py/*.pyc} -print0) |
699 |
- done |
700 |
-} |
701 |
- |
702 |
-pkg_postinst() { |
703 |
- xdg_icon_cache_update |
704 |
- xdg_desktop_database_update |
705 |
- xdg_mimeinfo_database_update |
706 |
-} |
707 |
- |
708 |
-pkg_postrm() { |
709 |
- xdg_icon_cache_update |
710 |
- xdg_desktop_database_update |
711 |
- xdg_mimeinfo_database_update |
712 |
-} |