Gentoo Archives: gentoo-commits

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