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: Thu, 14 Feb 2019 18:37:05
Message-Id: 1550169370.78e95b96d116e4ee8ccaf62fa570f7602a96945d.asturm@gentoo
1 commit: 78e95b96d116e4ee8ccaf62fa570f7602a96945d
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 13 21:57:07 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 14 18:36:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78e95b96
7
8 app-office/libreoffice: Drop 6.2.0.3
9
10 Package-Manager: Portage-2.3.60, 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.2.0.3.ebuild | 582 ----------------------
15 2 files changed, 584 deletions(-)
16
17 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
18 index 90562e9facf..9f697bfd36f 100644
19 --- a/app-office/libreoffice/Manifest
20 +++ b/app-office/libreoffice/Manifest
21 @@ -6,10 +6,8 @@ DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd9058
22 DIST libreoffice-6.1.4.2.tar.xz 207710664 BLAKE2B 52bab412094c1ff7e184ea65c588360c18b061c3e14b7be07171f6b5831261766e2ac7d7373f5f789d125671da41e8b67d34360d4b7014dcb98df01828aeb094 SHA512 ba81b7744b908f9fe67a83e72c17c08b3b2e99599a5fd4f9cc1f2d81b3fd0ddb8065ae466205f85185ab9420350cea0b2d60108df3e583b74bd1fcd9e4eb0c3c
23 DIST libreoffice-6.1.5.2.tar.xz 207918636 BLAKE2B bb4e57a5363e7dc6757c537ef46231ff748649ca4b79993f371e787adba8cd1f3dd988f11e8813c24eb952d00355b02b15f0b126ea2c1f9d9ce7d6c26bf71c38 SHA512 36027ad8a3940e803908561e04feebce297db2fd570b7e43bb43d8c0b7885729eeaf0a64fc5f9e642c1008ffea0b3b1b6d0008e349cd1897425dc818ac8bf140
24 DIST libreoffice-6.2.0.3-patchset-02.tar.xz 22264 BLAKE2B 2ffa88eb84fd00100ad43717a9b6ca24d60f2ce03061f518f19cede0b383d7f0f3da42152ef396c976475d5b5cdb28b27c54b7680785e78fc7be2056e4fed171 SHA512 2df69e01ace90beaee993e62f0eff9bebe631f16933343156222d5b110531d17e1b9994013ba5a6cb5f8b44743743042ace9573d4d191ae43f0d54d85d4e34f0
25 -DIST libreoffice-6.2.0.3.tar.xz 213476336 BLAKE2B e0a44098aa46c86d5fb7d26366d57d4bf395f642cf228a426446067a7037b5199715a7d34a2b28664123f814cc23da7e299da4f93ed8b65c29ae90056cc40399 SHA512 991cab829c88010b5df0c40e6422fd725f7854d256cfa7ffcf595549ccc49aeebe135513b56c5ccdc810ea07b8df186004a3d9e5d84b5d69992996158166d0c1
26 DIST libreoffice-6.2.1.1.tar.xz 213874132 BLAKE2B f8d4cc02e712f84363bca723e18127c25c76e2057985333c1045a5f656bb6482d7c381a5407dbf08ee5d1ca0f8692e43290ad90b8ed11ee5c4753072760a432f SHA512 92c79b62e99c9928eed2a0c1c14fe147f7bd0d6f891a87525b38fc3964bd298587f42f363503a93853bf57ecf898b4f0dd15d5064fcd354a8d3b4b7eba118b13
27 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
28 DIST libreoffice-help-6.1.4.2.tar.xz 15757700 BLAKE2B 53c398efb3b839740a9146ea1b0f70f019936c914f7aedf38b7da69faf532ab139a8847d6eb251b2850511e0e7bd169c74fafedd0926dc987659aa27878cf740 SHA512 e24f2f6795856da62f77ebfdcfedc8190b8ecef74e395fc263f0cab4a27c0fe3d95f37665747a590fc7a6a93c6c3473a2a4501c50d415cc602f85838955fe9ab
29 DIST libreoffice-help-6.1.5.2.tar.xz 15758000 BLAKE2B e8db833db00116e210cd6da578ab05089fd12128bfb8015600027c9afca09a1afe7a62e30a0271dffead5d176c0195eae9095d0e00450a926999efadf3f7572f SHA512 0575244ae595af7383b244fd3f1855b7d63820f9c3ebf87bc9d0758463b4b289988bbed99f0985508d34793967734fd83ae2d1a5db514479bb2fe32e0498fc9f
30 -DIST libreoffice-help-6.2.0.3.tar.xz 16186548 BLAKE2B 95d7fbdaac774032f5ddac121eec5ace9f7964a112f8137d8cf3b999e4ba6685048c027b5635283de9913547c2776ba9b9ab7e28b97cf94fac536decc12fda98 SHA512 7b1c7949ede3fdd6dcc09fd38b62f17d68c5f79e75fb72cedb9d55889d8d8cf261d6614aa5e2e3eae3e26764b2cdb0e4344bef25851daef6041ac3935ad64fb1
31 DIST libreoffice-help-6.2.1.1.tar.xz 16186528 BLAKE2B 69b42c88a2c4ff9efe06d397bed3d782805ce85bffdc52ce02742e7f8a65e36ecdd3e08ed9639941fa4a7812fe02405865fb2aff7ef73b41f4a8df0c77019222 SHA512 0e5e753cacae453ceeb299ea6137e249078b50e6cb8797704175fc39355d2c644e4e402838d5eb32ee62c90231ea27bc65bfe8990957a61120e9caf00242d39c
32
33 diff --git a/app-office/libreoffice/libreoffice-6.2.0.3.ebuild b/app-office/libreoffice/libreoffice-6.2.0.3.ebuild
34 deleted file mode 100644
35 index a09fbca2670..00000000000
36 --- a/app-office/libreoffice/libreoffice-6.2.0.3.ebuild
37 +++ /dev/null
38 @@ -1,582 +0,0 @@
39 -# Copyright 1999-2019 Gentoo Authors
40 -# Distributed under the terms of the GNU General Public License v2
41 -
42 -EAPI=6
43 -
44 -PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
45 -PYTHON_REQ_USE="threads(+),xml"
46 -
47 -MY_PV="${PV/_alpha/.alpha}"
48 -MY_PV="${MY_PV/_beta/.beta}"
49 -# experimental ; release ; old
50 -# Usually the tarballs are moved a lot so this should make everyone happy.
51 -DEV_URI="
52 - https://dev-builds.libreoffice.org/pre-releases/src
53 - https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
54 - https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
55 -"
56 -ADDONS_URI="https://dev-www.libreoffice.org/src/"
57 -
58 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
59 -PATCHSET="${P}-patchset-02.tar.xz"
60 -
61 -[[ ${MY_PV} == *9999* ]] && inherit git-r3
62 -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
63 -
64 -DESCRIPTION="A full office productivity suite"
65 -HOMEPAGE="https://www.libreoffice.org"
66 -SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
67 -[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
68 -
69 -# Split modules following git/tarballs; Core MUST be first!
70 -# Help is used for the image generator
71 -# Only release has the tarballs
72 -if [[ ${MY_PV} != *9999* ]]; then
73 - for i in ${DEV_URI}; do
74 - SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
75 - SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
76 - done
77 - unset i
78 -fi
79 -unset DEV_URI
80 -
81 -# Really required addons
82 -# These are bundles that can't be removed for now due to huge patchsets.
83 -# If you want them gone, patches are welcome.
84 -ADDONS_SRC=(
85 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
86 - # no release for 8 years, should we package it?
87 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
88 - # Does not build with 1.6 rhino at all
89 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
90 - # requirement of rhino
91 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
92 - # not packageable
93 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
94 -)
95 -SRC_URI+=" ${ADDONS_SRC[*]}"
96 -
97 -unset ADDONS_URI
98 -unset ADDONS_SRC
99 -
100 -# Extensions that need extra work:
101 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
102 -
103 -IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird
104 -googledrive gstreamer +gtk gtk2 kde +mariadb odk pdfimport postgres test vlc
105 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
106 -
107 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
108 - bluetooth? ( dbus )
109 - libreoffice_extensions_nlpsolver? ( java )
110 - libreoffice_extensions_scripting-beanshell? ( java )
111 - libreoffice_extensions_scripting-javascript? ( java )
112 - libreoffice_extensions_wiki-publisher? ( java )
113 -"
114 -
115 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
116 -SLOT="0"
117 -[[ ${MY_PV} == *9999* ]] || \
118 -KEYWORDS=""
119 -# KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
120 -
121 -COMMON_DEPEND="${PYTHON_DEPS}
122 - app-arch/unzip
123 - app-arch/zip
124 - app-crypt/gpgme[cxx]
125 - app-text/hunspell:=
126 - >=app-text/libabw-0.1.0
127 - >=app-text/libebook-0.1
128 - app-text/libepubgen
129 - >=app-text/libetonyek-0.1
130 - app-text/libexttextcat
131 - app-text/liblangtag
132 - >=app-text/libmspub-0.1.0
133 - >=app-text/libmwaw-0.3.1
134 - app-text/libnumbertext
135 - >=app-text/libodfgen-0.1.0
136 - app-text/libqxp
137 - app-text/libstaroffice
138 - app-text/libwpd:0.10[tools]
139 - app-text/libwpg:0.3
140 - >=app-text/libwps-0.4
141 - app-text/mythes
142 - >=dev-cpp/clucene-2.3.3.4-r2
143 - =dev-cpp/libcmis-0.5*
144 - dev-db/unixODBC
145 - dev-lang/perl
146 - dev-libs/boost:=[nls]
147 - dev-libs/expat
148 - dev-libs/hyphen
149 - dev-libs/icu:=
150 - dev-libs/libassuan
151 - dev-libs/libgpg-error
152 - >=dev-libs/liborcus-0.14.0
153 - dev-libs/librevenge
154 - dev-libs/libxml2
155 - dev-libs/libxslt
156 - dev-libs/nspr
157 - dev-libs/nss
158 - >=dev-libs/redland-1.0.16
159 - >=dev-libs/xmlsec-1.2.24[nss]
160 - media-gfx/fontforge
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? (
187 - dev-libs/glib:2
188 - net-wireless/bluez
189 - )
190 - coinmp? ( sci-libs/coinor-mp )
191 - cups? ( net-print/cups )
192 - dbus? ( sys-apps/dbus )
193 - eds? (
194 - dev-libs/glib:2
195 - gnome-base/dconf
196 - gnome-extra/evolution-data-server
197 - )
198 - firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
199 - gstreamer? (
200 - media-libs/gstreamer:1.0
201 - media-libs/gst-plugins-base:1.0
202 - )
203 - gtk? (
204 - dev-libs/glib:2
205 - dev-libs/gobject-introspection
206 - gnome-base/dconf
207 - media-libs/mesa[egl]
208 - x11-libs/gtk+:3
209 - x11-libs/pango
210 - )
211 - gtk2? (
212 - x11-libs/gdk-pixbuf
213 - >=x11-libs/gtk+-2.24:2
214 - x11-libs/pango
215 - )
216 - kde? (
217 - dev-qt/qtcore:5
218 - dev-qt/qtgui:5
219 - dev-qt/qtx11extras:5
220 - dev-qt/qtwidgets:5
221 - kde-frameworks/kconfig:5
222 - kde-frameworks/kcoreaddons:5
223 - kde-frameworks/ki18n:5
224 - kde-frameworks/kio:5
225 - kde-frameworks/kwindowsystem:5
226 - )
227 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
228 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
229 - mariadb? ( dev-db/mariadb-connector-c )
230 - !mariadb? ( dev-db/mysql-connector-c )
231 - pdfimport? ( app-text/poppler:=[cxx] )
232 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
233 -"
234 -
235 -RDEPEND="${COMMON_DEPEND}
236 - !app-office/libreoffice-bin
237 - !app-office/libreoffice-bin-debug
238 - !app-office/openoffice
239 - media-fonts/liberation-fonts
240 - || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
241 - java? ( >=virtual/jre-1.6 )
242 - kde? ( kde-frameworks/breeze-icons:* )
243 - vlc? ( media-video/vlc )
244 -"
245 -
246 -if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
247 - PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
248 -else
249 - # Translations are not reliable on live ebuilds
250 - # rather force people to use english only.
251 - PDEPEND="!app-office/libreoffice-l10n"
252 -fi
253 -
254 -# FIXME: cppunit should be moved to test conditional
255 -# after everything upstream is under gbuild
256 -# as dmake execute tests right away
257 -# tests apparently also need google-carlito-fonts (not packaged)
258 -DEPEND="${COMMON_DEPEND}
259 - >=dev-libs/libatomic_ops-7.2d
260 - dev-perl/Archive-Zip
261 - >=dev-util/cppunit-1.14.0
262 - >=dev-util/gperf-3
263 - dev-util/intltool
264 - >=dev-util/mdds-1.4.1:1=
265 - media-libs/glm
266 - sys-devel/bison
267 - sys-devel/flex
268 - sys-devel/gettext
269 - sys-devel/ucpp
270 - virtual/pkgconfig
271 - x11-base/xorg-proto
272 - x11-libs/libXt
273 - x11-libs/libXtst
274 - java? (
275 - dev-java/ant-core
276 - >=virtual/jdk-1.6
277 - )
278 - odk? ( >=app-doc/doxygen-1.8.4 )
279 - test? (
280 - app-crypt/gnupg
281 - dev-util/cppunit
282 - media-fonts/dejavu
283 - media-fonts/liberation-fonts
284 - )
285 -"
286 -
287 -PATCHES=(
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 - # master branch
296 - "${FILESDIR}/${PN}-6.1.5.2-gtk3_kde5-non-native-fpicker-for-non-plasma.patch"
297 -)
298 -
299 -S="${WORKDIR}/${PN}-${MY_PV}"
300 -
301 -_check_reqs() {
302 - CHECKREQS_MEMORY="512M"
303 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
304 - CHECKREQS_DISK_BUILD="22G"
305 - else
306 - CHECKREQS_DISK_BUILD="6G"
307 - fi
308 - check-reqs_$1
309 -}
310 -
311 -pkg_pretend() {
312 - use java || \
313 - ewarn "If you plan to use Base application you should enable java or you will get various crashes."
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-online-update
454 - --disable-openssl
455 - --disable-pdfium
456 - --disable-report-builder
457 - --with-build-version="${gentoo_buildid}"
458 - --enable-extension-integration
459 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
460 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
461 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
462 - --with-external-tar="${DISTDIR}"
463 - --with-lang=""
464 - --with-parallelism=$(makeopts_jobs)
465 - --with-system-ucpp
466 - --with-tls=nss
467 - --with-vendor="Gentoo Foundation"
468 - --with-x
469 - --without-fonts
470 - --without-myspell-dicts
471 - --without-help
472 - --with-helppack-integration
473 - --with-system-gpgmepp
474 - --without-system-sane
475 - $(use_enable bluetooth sdremote-bluetooth)
476 - $(use_enable coinmp)
477 - $(use_enable cups)
478 - $(use_enable dbus)
479 - $(use_enable debug)
480 - $(use_enable eds evolution2)
481 - $(use_enable firebird firebird-sdbc)
482 - $(use_enable gstreamer gstreamer-1-0)
483 - $(use_enable gtk gtk3)
484 - $(use_enable gtk2 gtk)
485 - $(use_enable kde kde5)
486 - $(use_enable kde qt5)
487 - $(use_enable odk)
488 - $(use_enable pdfimport)
489 - $(use_enable postgres postgresql-sdbc)
490 - $(use_enable vlc)
491 - $(use_with accessibility lxml)
492 - $(use_with coinmp system-coinmp)
493 - $(use_with googledrive gdrive-client-id ${google_default_client_id})
494 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
495 - $(use_with java)
496 - $(use_with odk doxygen)
497 - )
498 -
499 - if use gtk && use kde; then
500 - myeconfargs+=( --enable-gtk3-kde5 )
501 - fi
502 -
503 - if use eds || use gtk; then
504 - myeconfargs+=( --enable-dconf --enable-gio )
505 - else
506 - myeconfargs+=( --disable-dconf --disable-gio )
507 - fi
508 -
509 - # libreoffice extensions handling
510 - for lo_xt in ${LO_EXTS}; do
511 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
512 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
513 - else
514 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
515 - fi
516 - done
517 -
518 - if use java; then
519 - # hsqldb: system one is too new
520 - myeconfargs+=(
521 - --without-junit
522 - --without-system-hsqldb
523 - --with-ant-home="${ANT_HOME}"
524 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
525 - --with-jvm-path="${EPREFIX}/usr/lib/"
526 - )
527 -
528 - use libreoffice_extensions_scripting-beanshell && \
529 - myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
530 -
531 - use libreoffice_extensions_scripting-javascript && \
532 - myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
533 - fi
534 -
535 - is-flagq "-flto*" && myeconfargs+=( --enable-lto )
536 -
537 - MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
538 - econf "${myeconfargs[@]}"
539 -}
540 -
541 -src_compile() {
542 - # more and more LO stuff tries to use OpenGL, including tests during build
543 - # bug 501508, bug 540624, bug 545974 and probably more
544 - addpredict /dev/dri
545 - addpredict /dev/ati
546 - addpredict /dev/nvidiactl
547 -
548 - # hack for offlinehelp, this needs fixing upstream at some point
549 - # it is broken because we send --without-help
550 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
551 - (
552 - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
553 - source "${T}/config_host.mk" 2&> /dev/null
554 -
555 - local path="${WORKDIR}/helpcontent2/source/auxiliary/"
556 - mkdir -p "${path}" || die
557 -
558 - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\""
559 - perl "${S}/helpcontent2/helpers/create_ilst.pl" \
560 - -dir=helpcontent2/source/media/helpimg \
561 - > "${path}/helpimg.ilst"
562 - [[ -s "${path}/helpimg.ilst" ]] || \
563 - ewarn "The help images list is empty, something is fishy, report a bug."
564 - )
565 -
566 - local target
567 - use test && target="build" || target="build-nocheck"
568 -
569 - # this is not a proper make script
570 - make ${target} || die
571 -}
572 -
573 -src_test() {
574 - make unitcheck || die
575 - make slowcheck || die
576 -}
577 -
578 -src_install() {
579 - # This is not Makefile so no buildserver
580 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
581 -
582 - # bug 593514
583 - if use gtk; then
584 - dosym libreoffice/program/liblibreofficekitgtk.so \
585 - /usr/$(get_libdir)/liblibreofficekitgtk.so
586 - fi
587 -
588 - # bash completion aliases
589 - bashcomp_alias \
590 - libreoffice \
591 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
592 -
593 - if use branding; then
594 - insinto /usr/$(get_libdir)/${PN}/program
595 - newins "${WORKDIR}/branding-sofficerc" sofficerc
596 - dodir /etc/env.d
597 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED%/}"/etc/env.d/99${PN} || die
598 - fi
599 -
600 - # Hack for offlinehelp, this needs fixing upstream at some point.
601 - # It is broken because we send --without-help
602 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
603 - insinto /usr/$(get_libdir)/libreoffice/help
604 - doins xmlhelp/util/*.xsl
605 -
606 - pax-mark -m "${ED%/}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
607 - pax-mark -m "${ED%/}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
608 -}
609 -
610 -pkg_postinst() {
611 - gnome2_icon_cache_update
612 - xdg_desktop_database_update
613 - xdg_mimeinfo_database_update
614 -}
615 -
616 -pkg_postrm() {
617 - gnome2_icon_cache_update
618 - xdg_desktop_database_update
619 - xdg_mimeinfo_database_update
620 -}