1 |
commit: 3055c0c8083b1fcbca8689d865ac697b1a6b0063 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 30 10:06:31 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 30 10:07:41 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3055c0c8 |
7 |
|
8 |
app-office/libreoffice: Drop 6.1.2.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/681854 |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
12 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
13 |
|
14 |
app-office/libreoffice/Manifest | 3 - |
15 |
app-office/libreoffice/libreoffice-6.2.1.2.ebuild | 572 ---------------------- |
16 |
2 files changed, 575 deletions(-) |
17 |
|
18 |
diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest |
19 |
index b514ed85f2f..7f795f47d96 100644 |
20 |
--- a/app-office/libreoffice/Manifest |
21 |
+++ b/app-office/libreoffice/Manifest |
22 |
@@ -4,11 +4,8 @@ DIST 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip 9796 BLAKE2B a30b0225313b23 |
23 |
DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 BLAKE2B d2769842c180997055648a8b1a33cc89988b74628bad8aa012242e0c1afa5b5b8568323c107187072207ee69bd841ba4ca3bbfe27ef65223ddc729d1a1aa6590 SHA512 ec5ae23c8fe2f5efc377f7a9665039afadf28b4d8f2791379296766a5fbc9a3bf7548f9b0e3b3b07762229ec733a92ccbb69791ee0318c9c6f78f8e847253d3f |
24 |
DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd90585b13857ecb494c805c9fb6874e1e65d7aee73d23e1716670836a14b376bcca810f96fd55b0ed653b2660a268030f246c822cbb04f867ef763a3b3 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a |
25 |
DIST libreoffice-6.1.5.2.tar.xz 207918636 BLAKE2B bb4e57a5363e7dc6757c537ef46231ff748649ca4b79993f371e787adba8cd1f3dd988f11e8813c24eb952d00355b02b15f0b126ea2c1f9d9ce7d6c26bf71c38 SHA512 36027ad8a3940e803908561e04feebce297db2fd570b7e43bb43d8c0b7885729eeaf0a64fc5f9e642c1008ffea0b3b1b6d0008e349cd1897425dc818ac8bf140 |
26 |
-DIST libreoffice-6.2.1.1-patchset-01.tar.xz 8404 BLAKE2B 6fd1a3e931a1d3ef040e0e79ff53299fb47a55bf36f98998ebb896738a639aca8844bf6a5bb5fcbf3a5afeae935cb3e637436dcba456df005d00d5ed5a80e0d0 SHA512 eff36e8b5af2a592572ed60d9f22f59d8611dd5f62977ad93aa957181173d479a19f5907673b0f7532bfcca728a12a20101f2282914a34e0f0a53fd53e682ef3 |
27 |
-DIST libreoffice-6.2.1.2.tar.xz 213885668 BLAKE2B b1b15dacfded68e9ce2c183e211928d732564ef0a51a967216545d8ff39bf52e72ecbcb53672cc9d967cb4474fc10efbd97e3d9107d3f7169138c62e8221f212 SHA512 0d18e5f470b3e8a70d1679c7acdc91887cbbbb2032e1eb452308d257a6bc02d42e93fec66709c84838f7565e42217ac1d2b121e3356f7c754fc7ee33b7c6f0ef |
28 |
DIST libreoffice-6.2.2.2-patchset-01.tar.xz 6952 BLAKE2B 6b6b5280c9c65b7995d49bd0a5c0667226366f498f04d747e883d21490c88fcdd5abe4348ffe37d3060d0b685d4c3c3cd5e826351b22f24b68779bc5ca9d92b3 SHA512 63cce0839f65962df425f212306ed65e3899c6da857f74d7ea335bd48712fab2faa1de7dbc28a5022021a408f02cb972c3bb7b511f6e1209f103b8d214e163ac |
29 |
DIST libreoffice-6.2.2.2.tar.xz 214029032 BLAKE2B fc95d9dcb594bd18317285ecf593fb69825ecf061f7a339b48c01c858ee0340390d635a75f9be2d522f0b8883365d013b72b52f81cded509a2748ad354b9006c SHA512 f58f73fc76c57cbcbc24f63680ebc06f72cbbff9c1339c8186e70bf5f0f9ad0203ed2898ee7dd82cfb2bd0239d96a1534cec635847fe8fb50a0abe70848d2125 |
30 |
DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f |
31 |
DIST libreoffice-help-6.1.5.2.tar.xz 15758000 BLAKE2B e8db833db00116e210cd6da578ab05089fd12128bfb8015600027c9afca09a1afe7a62e30a0271dffead5d176c0195eae9095d0e00450a926999efadf3f7572f SHA512 0575244ae595af7383b244fd3f1855b7d63820f9c3ebf87bc9d0758463b4b289988bbed99f0985508d34793967734fd83ae2d1a5db514479bb2fe32e0498fc9f |
32 |
-DIST libreoffice-help-6.2.1.2.tar.xz 16187168 BLAKE2B 3b24bfa2b7f859329597305e98694d164b82f3bc6767b82df9d6b35951455d98ffaa19cb42417e1b3ece73fe35b3abebbd11fb8a0cd38f370fc7ed203b26bc55 SHA512 c8bd2765b46162203d0b0acc06dc76108bd0093020981e1030d26d5a8771fb9494337c16cc99c10b7de7a906e713dd27555b0af8754d142387c3a968fa663a2f |
33 |
DIST libreoffice-help-6.2.2.2.tar.xz 15267780 BLAKE2B 6e5300f8cbd202ccf411d7f5d5268075e53d004b986917a382b0bcae6e3eb2a6b69ff36bbb38b23e9661f2f0df0388032dfc2156c7e2665414137e125cc83247 SHA512 c9aebd77aa44ea54e08c9e305aa073e29a02b11fbe118f346f2bb17a6aa8c3ff13fa3ba212a29eaa4c2b3861365bf4a8683979c5e77c57fa538ef18f4aea7ae4 |
34 |
|
35 |
diff --git a/app-office/libreoffice/libreoffice-6.2.1.2.ebuild b/app-office/libreoffice/libreoffice-6.2.1.2.ebuild |
36 |
deleted file mode 100644 |
37 |
index 33dcacf28ec..00000000000 |
38 |
--- a/app-office/libreoffice/libreoffice-6.2.1.2.ebuild |
39 |
+++ /dev/null |
40 |
@@ -1,572 +0,0 @@ |
41 |
-# Copyright 1999-2019 Gentoo Authors |
42 |
-# Distributed under the terms of the GNU General Public License v2 |
43 |
- |
44 |
-EAPI=7 |
45 |
- |
46 |
-PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
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="${PN}-6.2.1.1-patchset-01.tar.xz" |
62 |
- |
63 |
-[[ ${MY_PV} == *9999* ]] && inherit git-r3 |
64 |
-inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing pax-utils python-single-r1 qmake-utils toolchain-funcs xdg |
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 |
- "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
88 |
- # no release for 8 years, should we package it? |
89 |
- "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" |
90 |
- # Does not build with 1.6 rhino at all |
91 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
92 |
- # requirement of rhino |
93 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
94 |
- # not packageable |
95 |
- "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
96 |
-) |
97 |
-SRC_URI+=" ${ADDONS_SRC[*]}" |
98 |
- |
99 |
-unset ADDONS_URI |
100 |
-unset ADDONS_SRC |
101 |
- |
102 |
-# Extensions that need extra work: |
103 |
-LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
104 |
- |
105 |
-IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird |
106 |
-googledrive gstreamer +gtk gtk2 kde ldap +mariadb odk pdfimport postgres test vlc |
107 |
-$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
108 |
- |
109 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
110 |
- bluetooth? ( dbus ) |
111 |
- libreoffice_extensions_nlpsolver? ( java ) |
112 |
- libreoffice_extensions_scripting-beanshell? ( java ) |
113 |
- libreoffice_extensions_scripting-javascript? ( java ) |
114 |
- libreoffice_extensions_wiki-publisher? ( java ) |
115 |
-" |
116 |
- |
117 |
-LICENSE="|| ( LGPL-3 MPL-1.1 )" |
118 |
-SLOT="0" |
119 |
-[[ ${MY_PV} == *9999* ]] || \ |
120 |
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
121 |
- |
122 |
-BDEPEND=" |
123 |
- dev-util/intltool |
124 |
- sys-devel/bison |
125 |
- sys-devel/flex |
126 |
- sys-devel/gettext |
127 |
- virtual/pkgconfig |
128 |
- odk? ( >=app-doc/doxygen-1.8.4 ) |
129 |
-" |
130 |
-COMMON_DEPEND="${PYTHON_DEPS} |
131 |
- app-arch/unzip |
132 |
- app-arch/zip |
133 |
- app-crypt/gpgme[cxx] |
134 |
- app-text/hunspell:= |
135 |
- >=app-text/libabw-0.1.0 |
136 |
- >=app-text/libebook-0.1 |
137 |
- app-text/libepubgen |
138 |
- >=app-text/libetonyek-0.1 |
139 |
- app-text/libexttextcat |
140 |
- app-text/liblangtag |
141 |
- >=app-text/libmspub-0.1.0 |
142 |
- >=app-text/libmwaw-0.3.1 |
143 |
- app-text/libnumbertext |
144 |
- >=app-text/libodfgen-0.1.0 |
145 |
- app-text/libqxp |
146 |
- app-text/libstaroffice |
147 |
- app-text/libwpd:0.10[tools] |
148 |
- app-text/libwpg:0.3 |
149 |
- >=app-text/libwps-0.4 |
150 |
- app-text/mythes |
151 |
- >=dev-cpp/clucene-2.3.3.4-r2 |
152 |
- =dev-cpp/libcmis-0.5* |
153 |
- dev-db/unixODBC |
154 |
- dev-lang/perl |
155 |
- dev-libs/boost:=[nls] |
156 |
- dev-libs/expat |
157 |
- dev-libs/hyphen |
158 |
- dev-libs/icu:= |
159 |
- dev-libs/libassuan |
160 |
- dev-libs/libgpg-error |
161 |
- >=dev-libs/liborcus-0.14.0 |
162 |
- dev-libs/librevenge |
163 |
- dev-libs/libxml2 |
164 |
- dev-libs/libxslt |
165 |
- dev-libs/nspr |
166 |
- dev-libs/nss |
167 |
- >=dev-libs/redland-1.0.16 |
168 |
- >=dev-libs/xmlsec-1.2.24[nss] |
169 |
- media-gfx/fontforge |
170 |
- media-gfx/graphite2 |
171 |
- media-libs/fontconfig |
172 |
- media-libs/freetype:2 |
173 |
- >=media-libs/harfbuzz-0.9.42:=[graphite,icu] |
174 |
- media-libs/lcms:2 |
175 |
- >=media-libs/libcdr-0.1.0 |
176 |
- >=media-libs/libepoxy-1.3.1[X] |
177 |
- >=media-libs/libfreehand-0.1.0 |
178 |
- media-libs/libpagemaker |
179 |
- >=media-libs/libpng-1.4:0= |
180 |
- >=media-libs/libvisio-0.1.0 |
181 |
- media-libs/libzmf |
182 |
- net-libs/neon |
183 |
- net-misc/curl |
184 |
- sci-mathematics/lpsolve |
185 |
- sys-libs/zlib |
186 |
- virtual/glu |
187 |
- virtual/jpeg:0 |
188 |
- virtual/opengl |
189 |
- x11-libs/cairo[X] |
190 |
- x11-libs/libXinerama |
191 |
- x11-libs/libXrandr |
192 |
- x11-libs/libXrender |
193 |
- accessibility? ( dev-python/lxml[${PYTHON_USEDEP}] ) |
194 |
- bluetooth? ( |
195 |
- dev-libs/glib:2 |
196 |
- net-wireless/bluez |
197 |
- ) |
198 |
- coinmp? ( sci-libs/coinor-mp ) |
199 |
- cups? ( net-print/cups ) |
200 |
- dbus? ( sys-apps/dbus ) |
201 |
- eds? ( |
202 |
- dev-libs/glib:2 |
203 |
- gnome-base/dconf |
204 |
- gnome-extra/evolution-data-server |
205 |
- ) |
206 |
- firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] ) |
207 |
- gstreamer? ( |
208 |
- media-libs/gstreamer:1.0 |
209 |
- media-libs/gst-plugins-base:1.0 |
210 |
- ) |
211 |
- gtk? ( |
212 |
- dev-libs/glib:2 |
213 |
- dev-libs/gobject-introspection |
214 |
- gnome-base/dconf |
215 |
- media-libs/mesa[egl] |
216 |
- x11-libs/gtk+:3 |
217 |
- x11-libs/pango |
218 |
- ) |
219 |
- gtk2? ( |
220 |
- x11-libs/gdk-pixbuf |
221 |
- >=x11-libs/gtk+-2.24:2 |
222 |
- x11-libs/pango |
223 |
- ) |
224 |
- kde? ( |
225 |
- dev-qt/qtcore:5 |
226 |
- dev-qt/qtgui:5 |
227 |
- dev-qt/qtx11extras:5 |
228 |
- dev-qt/qtwidgets:5 |
229 |
- kde-frameworks/kconfig:5 |
230 |
- kde-frameworks/kcoreaddons:5 |
231 |
- kde-frameworks/ki18n:5 |
232 |
- kde-frameworks/kio:5 |
233 |
- kde-frameworks/kwindowsystem:5 |
234 |
- ) |
235 |
- ldap? ( net-nds/openldap ) |
236 |
- libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) |
237 |
- libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
238 |
- mariadb? ( dev-db/mariadb-connector-c ) |
239 |
- !mariadb? ( dev-db/mysql-connector-c ) |
240 |
- pdfimport? ( app-text/poppler:=[cxx] ) |
241 |
- postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
242 |
-" |
243 |
-# FIXME: cppunit should be moved to test conditional |
244 |
-# after everything upstream is under gbuild |
245 |
-# as dmake execute tests right away |
246 |
-# tests apparently also need google-carlito-fonts (not packaged) |
247 |
-DEPEND="${COMMON_DEPEND} |
248 |
- >=dev-libs/libatomic_ops-7.2d |
249 |
- dev-perl/Archive-Zip |
250 |
- >=dev-util/cppunit-1.14.0 |
251 |
- >=dev-util/gperf-3 |
252 |
- >=dev-util/mdds-1.4.1:1= |
253 |
- media-libs/glm |
254 |
- sys-devel/ucpp |
255 |
- x11-base/xorg-proto |
256 |
- x11-libs/libXt |
257 |
- x11-libs/libXtst |
258 |
- java? ( |
259 |
- dev-java/ant-core |
260 |
- >=virtual/jdk-1.6 |
261 |
- ) |
262 |
- test? ( |
263 |
- app-crypt/gnupg |
264 |
- dev-util/cppunit |
265 |
- media-fonts/dejavu |
266 |
- media-fonts/liberation-fonts |
267 |
- ) |
268 |
-" |
269 |
-RDEPEND="${COMMON_DEPEND} |
270 |
- !app-office/libreoffice-bin |
271 |
- !app-office/libreoffice-bin-debug |
272 |
- !app-office/openoffice |
273 |
- media-fonts/liberation-fonts |
274 |
- || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) |
275 |
- java? ( >=virtual/jre-1.6 ) |
276 |
- kde? ( kde-frameworks/breeze-icons:* ) |
277 |
- vlc? ( media-video/vlc ) |
278 |
-" |
279 |
-if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then |
280 |
- PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*" |
281 |
-else |
282 |
- # Translations are not reliable on live ebuilds |
283 |
- # rather force people to use english only. |
284 |
- PDEPEND="!app-office/libreoffice-l10n" |
285 |
-fi |
286 |
- |
287 |
-PATCHES=( |
288 |
- # master branch |
289 |
- "${FILESDIR}/${PN}-6.2-ldap-optional.patch" |
290 |
- "${WORKDIR}"/${PATCHSET/.tar.xz/} |
291 |
- |
292 |
- # not upstreamable stuff |
293 |
- "${FILESDIR}/${PN}-5.4-system-pyuno.patch" |
294 |
- "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
295 |
- "${FILESDIR}/${PN}-6.1-nomancompress.patch" |
296 |
-) |
297 |
- |
298 |
-S="${WORKDIR}/${PN}-${MY_PV}" |
299 |
- |
300 |
-_check_reqs() { |
301 |
- CHECKREQS_MEMORY="512M" |
302 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
303 |
- CHECKREQS_DISK_BUILD="22G" |
304 |
- else |
305 |
- CHECKREQS_DISK_BUILD="6G" |
306 |
- fi |
307 |
- check-reqs_$1 |
308 |
-} |
309 |
- |
310 |
-pkg_pretend() { |
311 |
- use java || \ |
312 |
- ewarn "If you plan to use Base application you should enable java or you will get various crashes." |
313 |
- |
314 |
- if has_version "<app-office/libreoffice-5.3.0[firebird]"; then |
315 |
- ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so" |
316 |
- ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version." |
317 |
- ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base" |
318 |
- fi |
319 |
- |
320 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend |
321 |
-} |
322 |
- |
323 |
-pkg_setup() { |
324 |
- java-pkg-opt-2_pkg_setup |
325 |
- python-single-r1_pkg_setup |
326 |
- |
327 |
- [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup |
328 |
-} |
329 |
- |
330 |
-src_unpack() { |
331 |
- default |
332 |
- |
333 |
- if [[ ${MY_PV} = *9999* ]]; then |
334 |
- local base_uri branch mypv |
335 |
- base_uri="https://anongit.freedesktop.org/git" |
336 |
- branch="master" |
337 |
- mypv=${MY_PV/.9999} |
338 |
- [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}" |
339 |
- git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" |
340 |
- git-r3_checkout "${base_uri}/${PN}/core" |
341 |
- LOCOREGIT_VERSION=${EGIT_VERSION} |
342 |
- |
343 |
- git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" |
344 |
- git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help |
345 |
- fi |
346 |
-} |
347 |
- |
348 |
-src_prepare() { |
349 |
- xdg_src_prepare |
350 |
- |
351 |
- # sandbox violations on many systems, we don't need it. Bug #646406 |
352 |
- sed -i \ |
353 |
- -e "/KF5_CONFIG/s/kf5-config/no/" \ |
354 |
- configure.ac || die "Failed to disable kf5-config" |
355 |
- |
356 |
- AT_M4DIR="m4" eautoreconf |
357 |
- # hack in the autogen.sh |
358 |
- touch autogen.lastrun |
359 |
- |
360 |
- # system pyuno mess |
361 |
- sed -i \ |
362 |
- -e "s:%eprefix%:${EPREFIX}:g" \ |
363 |
- -e "s:%libdir%:$(get_libdir):g" \ |
364 |
- pyuno/source/module/uno.py \ |
365 |
- pyuno/source/officehelper.py || die |
366 |
- # sed in the tests |
367 |
- sed -i \ |
368 |
- -e "s#all : build unitcheck#all : build#g" \ |
369 |
- solenv/gbuild/Module.mk || die |
370 |
- sed -i \ |
371 |
- -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
372 |
- -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
373 |
- Makefile.in || die |
374 |
- |
375 |
- sed -i \ |
376 |
- -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
377 |
- -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
378 |
- bin/distro-install-desktop-integration || die |
379 |
- |
380 |
- if use branding; then |
381 |
- # hack... |
382 |
- mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die |
383 |
- fi |
384 |
- |
385 |
- # Don't list pdfimport support in desktop when built with none, bug # 605464 |
386 |
- if ! use pdfimport; then |
387 |
- sed -i \ |
388 |
- -e ":MimeType: s:application/pdf;::" \ |
389 |
- -e ":Keywords: s:pdf;::" \ |
390 |
- sysui/desktop/menus/draw.desktop || die |
391 |
- fi |
392 |
-} |
393 |
- |
394 |
-src_configure() { |
395 |
- # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys |
396 |
- # Note: these are for Gentoo use ONLY. For your own distribution, please get |
397 |
- # your own set of keys. Feel free to contact chromium@g.o for more info. |
398 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
399 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
400 |
- |
401 |
- # optimization flags |
402 |
- export GMAKE_OPTIONS="${MAKEOPTS}" |
403 |
- # System python enablement: |
404 |
- export PYTHON_CFLAGS=$(python_get_CFLAGS) |
405 |
- export PYTHON_LIBS=$(python_get_LIBS) |
406 |
- |
407 |
- if use kde; then |
408 |
- export QT_SELECT=5 # bug 639620 needs proper fix though |
409 |
- export QT5DIR="$(qt5_get_bindir)/../" |
410 |
- export MOC5="$(qt5_get_bindir)/moc" |
411 |
- fi |
412 |
- |
413 |
- local gentoo_buildid="Gentoo official package" |
414 |
- if [[ -n ${LOCOREGIT_VERSION} ]]; then |
415 |
- gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})" |
416 |
- fi |
417 |
- |
418 |
- # system headers/libs/...: enforce using system packages |
419 |
- # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad |
420 |
- # --enable-cairo: ensure that cairo is always required |
421 |
- # --enable-*-link: link to the library rather than just dlopen on runtime |
422 |
- # --enable-release-build: build the libreoffice as release |
423 |
- # --disable-fetch-external: prevent dowloading during compile phase |
424 |
- # --enable-extension-integration: enable any extension integration support |
425 |
- # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
426 |
- # --disable-report-builder: too much java packages pulled in without pkgs |
427 |
- # --without-system-sane: just sane.h header that is used for scan in writer, |
428 |
- # not linked or anything else, worthless to depend on |
429 |
- # --disable-pdfium: not yet packaged |
430 |
- local myeconfargs=( |
431 |
- --with-system-dicts |
432 |
- --with-system-epoxy |
433 |
- --with-system-headers |
434 |
- --with-system-jars |
435 |
- --with-system-libs |
436 |
- --enable-build-opensymbol |
437 |
- --enable-cairo-canvas |
438 |
- --enable-largefile |
439 |
- --enable-mergelibs |
440 |
- --enable-neon |
441 |
- --enable-python=system |
442 |
- --enable-randr |
443 |
- --enable-release-build |
444 |
- --disable-breakpad |
445 |
- --disable-bundle-mariadb |
446 |
- --disable-ccache |
447 |
- --disable-dependency-tracking |
448 |
- --disable-epm |
449 |
- --disable-fetch-external |
450 |
- --disable-gstreamer-0-10 |
451 |
- --disable-online-update |
452 |
- --disable-openssl |
453 |
- --disable-pdfium |
454 |
- --disable-report-builder |
455 |
- --with-build-version="${gentoo_buildid}" |
456 |
- --enable-extension-integration |
457 |
- --with-external-dict-dir="${EPREFIX}/usr/share/myspell" |
458 |
- --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" |
459 |
- --with-external-thes-dir="${EPREFIX}/usr/share/myspell" |
460 |
- --with-external-tar="${DISTDIR}" |
461 |
- --with-lang="" |
462 |
- --with-parallelism=$(makeopts_jobs) |
463 |
- --with-system-ucpp |
464 |
- --with-tls=nss |
465 |
- --with-vendor="Gentoo Foundation" |
466 |
- --with-x |
467 |
- --without-fonts |
468 |
- --without-myspell-dicts |
469 |
- --without-help |
470 |
- --with-helppack-integration |
471 |
- --with-system-gpgmepp |
472 |
- --without-system-sane |
473 |
- $(use_enable bluetooth sdremote-bluetooth) |
474 |
- $(use_enable coinmp) |
475 |
- $(use_enable cups) |
476 |
- $(use_enable dbus) |
477 |
- $(use_enable debug) |
478 |
- $(use_enable eds evolution2) |
479 |
- $(use_enable firebird firebird-sdbc) |
480 |
- $(use_enable gstreamer gstreamer-1-0) |
481 |
- $(use_enable gtk gtk3) |
482 |
- $(use_enable gtk2 gtk) |
483 |
- $(use_enable kde kde5) |
484 |
- $(use_enable kde qt5) |
485 |
- $(use_enable ldap) |
486 |
- $(use_enable odk) |
487 |
- $(use_enable pdfimport) |
488 |
- $(use_enable postgres postgresql-sdbc) |
489 |
- $(use_enable vlc) |
490 |
- $(use_with accessibility lxml) |
491 |
- $(use_with coinmp system-coinmp) |
492 |
- $(use_with googledrive gdrive-client-id ${google_default_client_id}) |
493 |
- $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) |
494 |
- $(use_with java) |
495 |
- $(use_with odk doxygen) |
496 |
- ) |
497 |
- |
498 |
- if use gtk && use kde; then |
499 |
- myeconfargs+=( --enable-gtk3-kde5 ) |
500 |
- fi |
501 |
- |
502 |
- if use eds || use gtk; then |
503 |
- myeconfargs+=( --enable-dconf --enable-gio ) |
504 |
- else |
505 |
- myeconfargs+=( --disable-dconf --disable-gio ) |
506 |
- fi |
507 |
- |
508 |
- # libreoffice extensions handling |
509 |
- for lo_xt in ${LO_EXTS}; do |
510 |
- if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
511 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) ) |
512 |
- else |
513 |
- myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) ) |
514 |
- fi |
515 |
- done |
516 |
- |
517 |
- if use java; then |
518 |
- # hsqldb: system one is too new |
519 |
- myeconfargs+=( |
520 |
- --without-junit |
521 |
- --without-system-hsqldb |
522 |
- --with-ant-home="${ANT_HOME}" |
523 |
- --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
524 |
- --with-jvm-path="${EPREFIX}/usr/lib/" |
525 |
- ) |
526 |
- |
527 |
- use libreoffice_extensions_scripting-beanshell && \ |
528 |
- myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) ) |
529 |
- |
530 |
- use libreoffice_extensions_scripting-javascript && \ |
531 |
- myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) |
532 |
- fi |
533 |
- |
534 |
- is-flagq "-flto*" && myeconfargs+=( --enable-lto ) |
535 |
- |
536 |
- MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \ |
537 |
- econf "${myeconfargs[@]}" |
538 |
-} |
539 |
- |
540 |
-src_compile() { |
541 |
- # more and more LO stuff tries to use OpenGL, including tests during build |
542 |
- # bug 501508, bug 540624, bug 545974 and probably more |
543 |
- addpredict /dev/dri |
544 |
- addpredict /dev/ati |
545 |
- addpredict /dev/nvidiactl |
546 |
- |
547 |
- # hack for offlinehelp, this needs fixing upstream at some point |
548 |
- # it is broken because we send --without-help |
549 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
550 |
- ( |
551 |
- grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die |
552 |
- source "${T}/config_host.mk" 2&> /dev/null |
553 |
- |
554 |
- local path="${WORKDIR}/helpcontent2/source/auxiliary/" |
555 |
- mkdir -p "${path}" || die |
556 |
- |
557 |
- echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\"" |
558 |
- perl "${S}/helpcontent2/helpers/create_ilst.pl" \ |
559 |
- -dir=helpcontent2/source/media/helpimg \ |
560 |
- > "${path}/helpimg.ilst" |
561 |
- [[ -s "${path}/helpimg.ilst" ]] || \ |
562 |
- ewarn "The help images list is empty, something is fishy, report a bug." |
563 |
- ) |
564 |
- |
565 |
- local target |
566 |
- use test && target="build" || target="build-nocheck" |
567 |
- |
568 |
- # this is not a proper make script |
569 |
- make ${target} || die |
570 |
-} |
571 |
- |
572 |
-src_test() { |
573 |
- make unitcheck || die |
574 |
- make slowcheck || die |
575 |
-} |
576 |
- |
577 |
-src_install() { |
578 |
- # This is not Makefile so no buildserver |
579 |
- make DESTDIR="${D}" distro-pack-install -o build -o check || die |
580 |
- |
581 |
- # bug 593514 |
582 |
- if use gtk; then |
583 |
- dosym libreoffice/program/liblibreofficekitgtk.so \ |
584 |
- /usr/$(get_libdir)/liblibreofficekitgtk.so |
585 |
- fi |
586 |
- |
587 |
- # bash completion aliases |
588 |
- bashcomp_alias \ |
589 |
- libreoffice \ |
590 |
- unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
591 |
- |
592 |
- if use branding; then |
593 |
- insinto /usr/$(get_libdir)/${PN}/program |
594 |
- newins "${WORKDIR}/branding-sofficerc" sofficerc |
595 |
- dodir /etc/env.d |
596 |
- echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die |
597 |
- fi |
598 |
- |
599 |
- # Hack for offlinehelp, this needs fixing upstream at some point. |
600 |
- # It is broken because we send --without-help |
601 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
602 |
- insinto /usr/$(get_libdir)/libreoffice/help |
603 |
- doins xmlhelp/util/*.xsl |
604 |
- |
605 |
- pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/soffice.bin |
606 |
- pax-mark -m "${ED}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin |
607 |
-} |
608 |
- |
609 |
-pkg_preinst() { |
610 |
- java-utils-2_pkg_preinst |
611 |
- xdg_pkg_preinst |
612 |
-} |