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