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