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, 22 May 2020 14:09:50
Message-Id: 1590156569.55740711314c298ce5ca23bcf8f57719f9348b32.asturm@gentoo
1 commit: 55740711314c298ce5ca23bcf8f57719f9348b32
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 22 12:43:33 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri May 22 14:09:29 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55740711
7
8 app-office/libreoffice: Drop 6.3.5.2 and 6.3 stable branch
9
10 No more 6.3 releases.
11
12 Package-Manager: Portage-2.3.99, Repoman-2.3.22
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 app-office/libreoffice/Manifest | 2 -
16 app-office/libreoffice/libreoffice-6.3.5.2.ebuild | 558 ---------------------
17 app-office/libreoffice/libreoffice-6.3.9999.ebuild | 558 ---------------------
18 3 files changed, 1118 deletions(-)
19
20 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
21 index 90d9da37bac..8a38d5aa745 100644
22 --- a/app-office/libreoffice/Manifest
23 +++ b/app-office/libreoffice/Manifest
24 @@ -6,12 +6,10 @@ DIST QR-Code-generator-1.4.0.tar.gz 146339 BLAKE2B b2cb329877426861e0245747ac1e8
25 DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd90585b13857ecb494c805c9fb6874e1e65d7aee73d23e1716670836a14b376bcca810f96fd55b0ed653b2660a268030f246c822cbb04f867ef763a3b3 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a
26 DIST dtoa-20180411.tgz 48893 BLAKE2B 4a03dc67e44353ae1c0653c8305d2df9bcfef16b48dff6df5c857a6bd0510a92aa6d9b9660ad63b2344d5195fef072e526f8d7900791b15442923b63196dda3f SHA512 722aa814c33a34bfffe6c0201b0035cc3b65854a0ba9ae2f51620a89d68019353e2c306651b35bca337186b22b2e9865ef3c5e3df8e9328006f882e4577f8c85
27 DIST libreoffice-6.3.4.2.tar.xz 225632492 BLAKE2B 587fe7e6298ded60fa08963f572733eb8e387c00b428201bb6f1de7eddcf9d9ee97438231ed3f961bd22628bde0fd9dfeacb63febdc566cde781bcebb9c9a71d SHA512 2ed687ae805da36635419729066a2924f1e38a6b0f8d2692c42b366450a261012adfcd8a5d7915d9cfd292d07519fc32c596cdb56d7be6b12a49618b18d6f3d2
28 -DIST libreoffice-6.3.5.2.tar.xz 226222804 BLAKE2B f4b996f8eedf58f7e2ec1d1d796aecf1cc35f394cc5800b1e15db60534096a91e329f9744c8582dae85a12fb6c849be8cceff8998b45074ecc9535f7afce542c SHA512 041ee00e347f6ef229a97b56d9ceee6c0fa80a56436cc2dce909878d08d617d316731a7a21cdc4b6d5ef800f3d00d3ee67c69f770912028261f1552e79899a1a
29 DIST libreoffice-6.4.3.2.tar.xz 230409812 BLAKE2B f9cdad1540c45525bd70596dc3033e3466fcdf3d96547222b936141e49ff6d45581ca59d0e42c4bb79fcb63586d748ccafae712369e024105235e2a9b69be7ce SHA512 ee11c704fa7184ffe371aa36c835c4c7fb06ef03d08fa0a5a9e647e80610db275e091d1ac79c1fe11af0c7f14dd72c821da9e7e6ba59573fc88cec79f84c873a
30 DIST libreoffice-6.4.4.2.tar.xz 231325236 BLAKE2B 25e1c765cb0ff9c195ca46a9fe857eef22ab6319da6b069e2c5c093a8f13eac2e1c5efa31fbacd4e3acbdc07e75745ff5c62c180cb61141319422720405a4638 SHA512 8e2b6a2d34fbc182ce4ec0b6d6bfb30665ff5cee0a27a22551c71d4eddf63b812d676ea8dea9a2e4bb028a2365b5e23908679efbe4696032e1abeedecb85b8d3
31 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f
32 DIST libreoffice-help-6.3.4.2.tar.xz 13191636 BLAKE2B c1696efa0ec9fef9dbcc0c0388de8a384484af1453d200e08820ba910cdcb65638b189566a19868281fd1777213812fde06adb07c1a662302eea1d0a791ff5a0 SHA512 8c74c82c7d73adb1523300d1f7500769f5a623fdba60b440a63c122cbfeb631a6a34ecbcb115b0154a6957be1918306f7d0c1f465030f8e8cfd5c9a1acad17c9
33 -DIST libreoffice-help-6.3.5.2.tar.xz 13192732 BLAKE2B 79e869d8d2bb91243e9fe2ba279bfcd4f3b759904fdd2efbeb1add773cb732621a41841c4064ad63ad9713a53e626c50bfcc1b3d9137ddb4fe73fca39f710bb9 SHA512 aec83b210cc596131aa5bcb37012a98cc42c365274c4f80e8e87595f4f50d8f36588256616738ba3c2c9a8a61d03ed5e6c33a4b588561c5084cd008c5dbe787a
34 DIST libreoffice-help-6.4.3.2.tar.xz 88297704 BLAKE2B bbd1af159c8b8db1909335f37095812ec3ce81d73644a30a85f3e37daeabeb9a158451b8e586f24d4b7544c8cd0948eeb20ede464384c3277d196f33322e63fb SHA512 9f8c1bcde27d153389d124af1393d0939262c85a1624f0b475a5515b5737612cb607d04742a069534771eee51ba98896926804ec7001d6bc2110dccdd6e7615a
35 DIST libreoffice-help-6.4.4.2.tar.xz 88296340 BLAKE2B 73ef558b830e0e2899eb72727e0eb81327807ff2d474c8d956700a09bcadc73cbff26688063f91d3a496afa55ab9a7d4847d84334b89fe4fafe17fb445fbb33d SHA512 7084428e63a458c4e35c135b16dd980fa98695be0ba974cac656a7ef6cb15b059a082891c3f74b72a62f92549afefe46c14ab30b5491fd9e3fea6d5923720b3d
36 DIST skia-m83-8ce842d38d0b32149e874d6855c91e8c68ba65a7.tar.xz 8218672 BLAKE2B cfeb805d82ce1f5dd70c7365983fa8107d5ccda9409b2654c032115cdf8a1c32fa0451162b0cceec3dcc0054e3d0d0e13583ea93843b0d0a6eb948cc31c15ce0 SHA512 1018fc1cc8a7edc15745cc20791f9a22e5b318018ba619d6cb5b6995d3e81ab93c910bb3a42734872d3be54893c2ce7db507b2c61088660b2ce6630ff9b36ebb
37
38 diff --git a/app-office/libreoffice/libreoffice-6.3.5.2.ebuild b/app-office/libreoffice/libreoffice-6.3.5.2.ebuild
39 deleted file mode 100644
40 index 0132cdd8dd5..00000000000
41 --- a/app-office/libreoffice/libreoffice-6.3.5.2.ebuild
42 +++ /dev/null
43 @@ -1,558 +0,0 @@
44 -# Copyright 1999-2020 Gentoo Authors
45 -# Distributed under the terms of the GNU General Public License v2
46 -
47 -EAPI=7
48 -
49 -PYTHON_COMPAT=( python3_{6,7,8} )
50 -PYTHON_REQ_USE="threads(+),xml"
51 -
52 -MY_PV="${PV/_alpha/.alpha}"
53 -MY_PV="${MY_PV/_beta/.beta}"
54 -# experimental ; release ; old
55 -# Usually the tarballs are moved a lot so this should make everyone happy.
56 -DEV_URI="
57 - https://dev-builds.libreoffice.org/pre-releases/src
58 - https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
59 - https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
60 -"
61 -ADDONS_URI="https://dev-www.libreoffice.org/src/"
62 -
63 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
64 -# PATCHSET="${P}-patchset-01.tar.xz"
65 -
66 -[[ ${MY_PV} == *9999* ]] && inherit git-r3
67 -inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
68 -
69 -DESCRIPTION="A full office productivity suite"
70 -HOMEPAGE="https://www.libreoffice.org"
71 -SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
72 -[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
73 -
74 -# Split modules following git/tarballs; Core MUST be first!
75 -# Help is used for the image generator
76 -# Only release has the tarballs
77 -if [[ ${MY_PV} != *9999* ]]; then
78 - for i in ${DEV_URI}; do
79 - SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
80 - SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
81 - done
82 - unset i
83 -fi
84 -unset DEV_URI
85 -
86 -# Really required addons
87 -# These are bundles that can't be removed for now due to huge patchsets.
88 -# If you want them gone, patches are welcome.
89 -ADDONS_SRC=(
90 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
91 - # no release for 8 years, should we package it?
92 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
93 - # Does not build with 1.6 rhino at all
94 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
95 - # requirement of rhino
96 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
97 - # not packageable
98 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
99 -)
100 -SRC_URI+=" ${ADDONS_SRC[*]}"
101 -
102 -unset ADDONS_URI
103 -unset ADDONS_SRC
104 -
105 -# Extensions that need extra work:
106 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
107 -
108 -IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird
109 -googledrive gstreamer +gtk gtk2 kde ldap +mariadb odk pdfimport postgres test
110 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
111 -
112 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
113 - bluetooth? ( dbus )
114 - libreoffice_extensions_nlpsolver? ( java )
115 - libreoffice_extensions_scripting-beanshell? ( java )
116 - libreoffice_extensions_scripting-javascript? ( java )
117 - libreoffice_extensions_wiki-publisher? ( java )
118 -"
119 -
120 -RESTRICT="!test? ( test )"
121 -
122 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
123 -SLOT="0"
124 -[[ ${MY_PV} == *9999* ]] || \
125 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
126 -
127 -BDEPEND="
128 - dev-util/intltool
129 - sys-devel/bison
130 - sys-devel/flex
131 - sys-devel/gettext
132 - virtual/pkgconfig
133 - odk? ( >=app-doc/doxygen-1.8.4 )
134 -"
135 -COMMON_DEPEND="${PYTHON_DEPS}
136 - app-arch/unzip
137 - app-arch/zip
138 - app-crypt/gpgme[cxx]
139 - app-text/hunspell:=
140 - >=app-text/libabw-0.1.0
141 - >=app-text/libebook-0.1
142 - app-text/libepubgen
143 - >=app-text/libetonyek-0.1
144 - app-text/libexttextcat
145 - app-text/liblangtag
146 - >=app-text/libmspub-0.1.0
147 - >=app-text/libmwaw-0.3.1
148 - app-text/libnumbertext
149 - >=app-text/libodfgen-0.1.0
150 - app-text/libqxp
151 - app-text/libstaroffice
152 - app-text/libwpd:0.10[tools]
153 - app-text/libwpg:0.3
154 - >=app-text/libwps-0.4
155 - app-text/mythes
156 - >=dev-cpp/clucene-2.3.3.4-r2
157 - >=dev-cpp/libcmis-0.5.2
158 - dev-db/unixODBC
159 - dev-lang/perl
160 - dev-libs/boost:=[nls]
161 - dev-libs/expat
162 - dev-libs/hyphen
163 - dev-libs/icu:=
164 - dev-libs/libassuan
165 - dev-libs/libgpg-error
166 - =dev-libs/liborcus-0.14*
167 - dev-libs/librevenge
168 - dev-libs/libxml2
169 - dev-libs/libxslt
170 - dev-libs/nspr
171 - dev-libs/nss
172 - >=dev-libs/redland-1.0.16
173 - >=dev-libs/xmlsec-1.2.28[nss]
174 - media-gfx/fontforge
175 - media-gfx/graphite2
176 - media-libs/fontconfig
177 - media-libs/freetype:2
178 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
179 - media-libs/lcms:2
180 - >=media-libs/libcdr-0.1.0
181 - >=media-libs/libepoxy-1.3.1[X]
182 - >=media-libs/libfreehand-0.1.0
183 - media-libs/libpagemaker
184 - >=media-libs/libpng-1.4:0=
185 - >=media-libs/libvisio-0.1.0
186 - media-libs/libzmf
187 - net-libs/neon
188 - net-misc/curl
189 - sci-mathematics/lpsolve
190 - sys-libs/zlib
191 - virtual/glu
192 - virtual/jpeg:0
193 - virtual/opengl
194 - x11-libs/cairo[X]
195 - x11-libs/libXinerama
196 - x11-libs/libXrandr
197 - x11-libs/libXrender
198 - accessibility? (
199 - $(python_gen_cond_dep '
200 - dev-python/lxml[${PYTHON_MULTI_USEDEP}]
201 - ')
202 - )
203 - bluetooth? (
204 - dev-libs/glib:2
205 - net-wireless/bluez
206 - )
207 - coinmp? ( sci-libs/coinor-mp )
208 - cups? ( net-print/cups )
209 - dbus? ( sys-apps/dbus )
210 - eds? (
211 - dev-libs/glib:2
212 - gnome-base/dconf
213 - gnome-extra/evolution-data-server
214 - )
215 - firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
216 - gstreamer? (
217 - media-libs/gstreamer:1.0
218 - media-libs/gst-plugins-base:1.0
219 - )
220 - gtk? (
221 - dev-libs/glib:2
222 - dev-libs/gobject-introspection
223 - gnome-base/dconf
224 - media-libs/mesa[egl]
225 - x11-libs/gtk+:3
226 - x11-libs/pango
227 - )
228 - gtk2? (
229 - x11-libs/gdk-pixbuf
230 - >=x11-libs/gtk+-2.24:2
231 - x11-libs/pango
232 - )
233 - kde? (
234 - dev-qt/qtcore:5
235 - dev-qt/qtgui:5
236 - dev-qt/qtwidgets:5
237 - dev-qt/qtx11extras:5
238 - kde-frameworks/kconfig:5
239 - kde-frameworks/kcoreaddons:5
240 - kde-frameworks/ki18n:5
241 - kde-frameworks/kio:5
242 - kde-frameworks/kwindowsystem:5
243 - )
244 - ldap? ( net-nds/openldap )
245 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
246 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
247 - mariadb? ( dev-db/mariadb-connector-c )
248 - !mariadb? ( dev-db/mysql-connector-c )
249 - pdfimport? ( app-text/poppler:=[cxx] )
250 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
251 -"
252 -# FIXME: cppunit should be moved to test conditional
253 -# after everything upstream is under gbuild
254 -# as dmake execute tests right away
255 -# tests apparently also need google-carlito-fonts (not packaged)
256 -DEPEND="${COMMON_DEPEND}
257 - >=dev-libs/libatomic_ops-7.2d
258 - dev-perl/Archive-Zip
259 - >=dev-util/cppunit-1.14.0
260 - >=dev-util/gperf-3.1
261 - =dev-util/mdds-1.4*:1=
262 - media-libs/glm
263 - sys-devel/ucpp
264 - x11-base/xorg-proto
265 - x11-libs/libXt
266 - x11-libs/libXtst
267 - java? (
268 - dev-java/ant-core
269 - >=virtual/jdk-1.6
270 - )
271 - test? (
272 - app-crypt/gnupg
273 - dev-util/cppunit
274 - media-fonts/dejavu
275 - media-fonts/liberation-fonts
276 - )
277 -"
278 -RDEPEND="${COMMON_DEPEND}
279 - !app-office/libreoffice-bin
280 - !app-office/libreoffice-bin-debug
281 - !app-office/openoffice
282 - media-fonts/liberation-fonts
283 - || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
284 - java? ( >=virtual/jre-1.6 )
285 - kde? ( kde-frameworks/breeze-icons:* )
286 -"
287 -if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
288 - PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
289 -else
290 - # Translations are not reliable on live ebuilds
291 - # rather force people to use english only.
292 - PDEPEND="!app-office/libreoffice-l10n"
293 -fi
294 -
295 -PATCHES=(
296 - # "${WORKDIR}"/${PATCHSET/.tar.xz/}
297 -
298 - # not upstreamable stuff
299 - "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
300 - "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
301 - "${FILESDIR}/${PN}-6.1-nomancompress.patch"
302 -
303 - # master branch
304 - "${FILESDIR}/${PN}-6.3.3.2-mysql-connector-c-8.patch" # bug #692422
305 -)
306 -
307 -S="${WORKDIR}/${PN}-${MY_PV}"
308 -
309 -_check_reqs() {
310 - CHECKREQS_MEMORY="512M"
311 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
312 - CHECKREQS_DISK_BUILD="22G"
313 - else
314 - CHECKREQS_DISK_BUILD="6G"
315 - fi
316 - check-reqs_$1
317 -}
318 -
319 -pkg_pretend() {
320 - if ! use java && ! use firebird; then
321 - ewarn "If you plan to use Base application you must enable either firebird or java."
322 - fi
323 -
324 - use java || ewarn "Without java, several wizards are not going to be available."
325 -
326 - if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
327 - ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
328 - ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
329 - ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
330 - fi
331 -
332 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
333 -}
334 -
335 -pkg_setup() {
336 - java-pkg-opt-2_pkg_setup
337 - python-single-r1_pkg_setup
338 - xdg_environment_reset
339 -
340 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
341 -}
342 -
343 -src_unpack() {
344 - default
345 -
346 - if [[ ${MY_PV} = *9999* ]]; then
347 - local base_uri branch mypv
348 - base_uri="https://anongit.freedesktop.org/git"
349 - branch="master"
350 - mypv=${MY_PV/.9999}
351 - [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
352 - git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
353 - git-r3_checkout "${base_uri}/${PN}/core"
354 - LOCOREGIT_VERSION=${EGIT_VERSION}
355 -
356 - git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
357 - git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
358 - fi
359 -}
360 -
361 -src_prepare() {
362 - default
363 -
364 - # sandbox violations on many systems, we don't need it. Bug #646406
365 - sed -i \
366 - -e "/KF5_CONFIG/s/kf5-config/no/" \
367 - configure.ac || die "Failed to disable kf5-config"
368 -
369 - AT_M4DIR="m4" eautoreconf
370 - # hack in the autogen.sh
371 - touch autogen.lastrun
372 -
373 - # system pyuno mess
374 - sed -i \
375 - -e "s:%eprefix%:${EPREFIX}:g" \
376 - -e "s:%libdir%:$(get_libdir):g" \
377 - pyuno/source/module/uno.py \
378 - pyuno/source/officehelper.py || die
379 - # sed in the tests
380 - sed -i \
381 - -e "s#all : build unitcheck#all : build#g" \
382 - solenv/gbuild/Module.mk || die
383 - sed -i \
384 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
385 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
386 - Makefile.in || die
387 -
388 - sed -i \
389 - -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
390 - -e "s,\$INSTALLDIRNAME.sh,${PN}," \
391 - bin/distro-install-desktop-integration || die
392 -
393 - if use branding; then
394 - # hack...
395 - mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
396 - fi
397 -
398 - # Don't list pdfimport support in desktop when built with none, bug # 605464
399 - if ! use pdfimport; then
400 - sed -i \
401 - -e ":MimeType: s:application/pdf;::" \
402 - -e ":Keywords: s:pdf;::" \
403 - sysui/desktop/menus/draw.desktop || die
404 - fi
405 -}
406 -
407 -src_configure() {
408 - # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
409 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
410 - # your own set of keys. Feel free to contact chromium@g.o for more info.
411 - local google_default_client_id="329227923882.apps.googleusercontent.com"
412 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
413 -
414 - # optimization flags
415 - export GMAKE_OPTIONS="${MAKEOPTS}"
416 - # System python enablement:
417 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
418 - export PYTHON_LIBS=$(python_get_LIBS)
419 -
420 - if use kde; then
421 - export QT_SELECT=5 # bug 639620 needs proper fix though
422 - export QT5DIR="$(qt5_get_bindir)/../"
423 - export MOC5="$(qt5_get_bindir)/moc"
424 - fi
425 -
426 - local gentoo_buildid="Gentoo official package"
427 - if [[ -n ${LOCOREGIT_VERSION} ]]; then
428 - gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
429 - fi
430 -
431 - # system headers/libs/...: enforce using system packages
432 - # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
433 - # --enable-cairo: ensure that cairo is always required
434 - # --enable-*-link: link to the library rather than just dlopen on runtime
435 - # --enable-release-build: build the libreoffice as release
436 - # --disable-fetch-external: prevent dowloading during compile phase
437 - # --enable-extension-integration: enable any extension integration support
438 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
439 - # --disable-report-builder: too much java packages pulled in without pkgs
440 - # --without-system-sane: just sane.h header that is used for scan in writer,
441 - # not linked or anything else, worthless to depend on
442 - # --disable-pdfium: not yet packaged
443 - local myeconfargs=(
444 - --with-system-dicts
445 - --with-system-epoxy
446 - --with-system-headers
447 - --with-system-jars
448 - --with-system-libs
449 - --enable-build-opensymbol
450 - --enable-cairo-canvas
451 - --enable-largefile
452 - --enable-mergelibs
453 - --enable-neon
454 - --enable-python=system
455 - --enable-randr
456 - --enable-release-build
457 - --disable-breakpad
458 - --disable-bundle-mariadb
459 - --disable-ccache
460 - --disable-epm
461 - --disable-fetch-external
462 - --disable-gstreamer-0-10
463 - --disable-gtk3-kde5
464 - --disable-online-update
465 - --disable-openssl
466 - --disable-pdfium
467 - --disable-report-builder
468 - --disable-vlc
469 - --with-build-version="${gentoo_buildid}"
470 - --enable-extension-integration
471 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
472 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
473 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
474 - --with-external-tar="${DISTDIR}"
475 - --with-lang=""
476 - --with-parallelism=$(makeopts_jobs)
477 - --with-system-ucpp
478 - --with-tls=nss
479 - --with-vendor="Gentoo Foundation"
480 - --with-x
481 - --without-fonts
482 - --without-myspell-dicts
483 - --with-help="html"
484 - --without-helppack-integration
485 - --with-system-gpgmepp
486 - --without-system-sane
487 - $(use_enable bluetooth sdremote-bluetooth)
488 - $(use_enable coinmp)
489 - $(use_enable cups)
490 - $(use_enable dbus)
491 - $(use_enable debug)
492 - $(use_enable eds evolution2)
493 - $(use_enable firebird firebird-sdbc)
494 - $(use_enable gstreamer gstreamer-1-0)
495 - $(use_enable gtk gtk3)
496 - $(use_enable gtk2 gtk)
497 - $(use_enable kde kde5)
498 - $(use_enable kde qt5)
499 - $(use_enable ldap)
500 - $(use_enable odk)
501 - $(use_enable pdfimport)
502 - $(use_enable postgres postgresql-sdbc)
503 - $(use_with accessibility lxml)
504 - $(use_with coinmp system-coinmp)
505 - $(use_with googledrive gdrive-client-id ${google_default_client_id})
506 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
507 - $(use_with java)
508 - $(use_with odk doxygen)
509 - )
510 -
511 - if use eds || use gtk; then
512 - myeconfargs+=( --enable-dconf --enable-gio )
513 - else
514 - myeconfargs+=( --disable-dconf --disable-gio )
515 - fi
516 -
517 - # libreoffice extensions handling
518 - for lo_xt in ${LO_EXTS}; do
519 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
520 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
521 - else
522 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
523 - fi
524 - done
525 -
526 - if use java; then
527 - # hsqldb: system one is too new
528 - myeconfargs+=(
529 - --without-junit
530 - --without-system-hsqldb
531 - --with-ant-home="${ANT_HOME}"
532 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
533 - --with-jvm-path="${EPREFIX}/usr/lib/"
534 - )
535 -
536 - use libreoffice_extensions_scripting-beanshell && \
537 - myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
538 -
539 - use libreoffice_extensions_scripting-javascript && \
540 - myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
541 - fi
542 -
543 - is-flagq "-flto*" && myeconfargs+=( --enable-lto )
544 -
545 - MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
546 - econf "${myeconfargs[@]}"
547 -}
548 -
549 -src_compile() {
550 - # more and more LO stuff tries to use OpenGL, including tests during build
551 - # bug 501508, bug 540624, bug 545974 and probably more
552 - addpredict /dev/dri
553 - addpredict /dev/ati
554 - addpredict /dev/nvidiactl
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 -
591 -pkg_postinst() {
592 - xdg_icon_cache_update
593 - xdg_desktop_database_update
594 - xdg_mimeinfo_database_update
595 -}
596 -
597 -pkg_postrm() {
598 - xdg_icon_cache_update
599 - xdg_desktop_database_update
600 - xdg_mimeinfo_database_update
601 -}
602
603 diff --git a/app-office/libreoffice/libreoffice-6.3.9999.ebuild b/app-office/libreoffice/libreoffice-6.3.9999.ebuild
604 deleted file mode 100644
605 index c66886c27b0..00000000000
606 --- a/app-office/libreoffice/libreoffice-6.3.9999.ebuild
607 +++ /dev/null
608 @@ -1,558 +0,0 @@
609 -# Copyright 1999-2020 Gentoo Authors
610 -# Distributed under the terms of the GNU General Public License v2
611 -
612 -EAPI=7
613 -
614 -PYTHON_COMPAT=( python3_{6,7,8} )
615 -PYTHON_REQ_USE="threads(+),xml"
616 -
617 -MY_PV="${PV/_alpha/.alpha}"
618 -MY_PV="${MY_PV/_beta/.beta}"
619 -# experimental ; release ; old
620 -# Usually the tarballs are moved a lot so this should make everyone happy.
621 -DEV_URI="
622 - https://dev-builds.libreoffice.org/pre-releases/src
623 - https://download.documentfoundation.org/libreoffice/src/${MY_PV:0:5}/
624 - https://downloadarchive.documentfoundation.org/libreoffice/old/${MY_PV}/src
625 -"
626 -ADDONS_URI="https://dev-www.libreoffice.org/src/"
627 -
628 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
629 -# PATCHSET="${P}-patchset-01.tar.xz"
630 -
631 -[[ ${MY_PV} == *9999* ]] && inherit git-r3
632 -inherit autotools bash-completion-r1 check-reqs flag-o-matic java-pkg-opt-2 multiprocessing python-single-r1 qmake-utils toolchain-funcs xdg-utils
633 -
634 -DESCRIPTION="A full office productivity suite"
635 -HOMEPAGE="https://www.libreoffice.org"
636 -SRC_URI="branding? ( https://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
637 -[[ -n ${PATCHSET} ]] && SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}"
638 -
639 -# Split modules following git/tarballs; Core MUST be first!
640 -# Help is used for the image generator
641 -# Only release has the tarballs
642 -if [[ ${MY_PV} != *9999* ]]; then
643 - for i in ${DEV_URI}; do
644 - SRC_URI+=" ${i}/${PN}-${MY_PV}.tar.xz"
645 - SRC_URI+=" ${i}/${PN}-help-${MY_PV}.tar.xz"
646 - done
647 - unset i
648 -fi
649 -unset DEV_URI
650 -
651 -# Really required addons
652 -# These are bundles that can't be removed for now due to huge patchsets.
653 -# If you want them gone, patches are welcome.
654 -ADDONS_SRC=(
655 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
656 - # no release for 8 years, should we package it?
657 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
658 - # Does not build with 1.6 rhino at all
659 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
660 - # requirement of rhino
661 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
662 - # not packageable
663 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
664 -)
665 -SRC_URI+=" ${ADDONS_SRC[*]}"
666 -
667 -unset ADDONS_URI
668 -unset ADDONS_SRC
669 -
670 -# Extensions that need extra work:
671 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
672 -
673 -IUSE="accessibility bluetooth +branding coinmp +cups dbus debug eds firebird
674 -googledrive gstreamer +gtk gtk2 kde ldap +mariadb odk pdfimport postgres test
675 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
676 -
677 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
678 - bluetooth? ( dbus )
679 - libreoffice_extensions_nlpsolver? ( java )
680 - libreoffice_extensions_scripting-beanshell? ( java )
681 - libreoffice_extensions_scripting-javascript? ( java )
682 - libreoffice_extensions_wiki-publisher? ( java )
683 -"
684 -
685 -RESTRICT="!test? ( test )"
686 -
687 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
688 -SLOT="0"
689 -[[ ${MY_PV} == *9999* ]] || \
690 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux"
691 -
692 -BDEPEND="
693 - dev-util/intltool
694 - sys-devel/bison
695 - sys-devel/flex
696 - sys-devel/gettext
697 - virtual/pkgconfig
698 - odk? ( >=app-doc/doxygen-1.8.4 )
699 -"
700 -COMMON_DEPEND="${PYTHON_DEPS}
701 - app-arch/unzip
702 - app-arch/zip
703 - app-crypt/gpgme[cxx]
704 - app-text/hunspell:=
705 - >=app-text/libabw-0.1.0
706 - >=app-text/libebook-0.1
707 - app-text/libepubgen
708 - >=app-text/libetonyek-0.1
709 - app-text/libexttextcat
710 - app-text/liblangtag
711 - >=app-text/libmspub-0.1.0
712 - >=app-text/libmwaw-0.3.1
713 - app-text/libnumbertext
714 - >=app-text/libodfgen-0.1.0
715 - app-text/libqxp
716 - app-text/libstaroffice
717 - app-text/libwpd:0.10[tools]
718 - app-text/libwpg:0.3
719 - >=app-text/libwps-0.4
720 - app-text/mythes
721 - >=dev-cpp/clucene-2.3.3.4-r2
722 - >=dev-cpp/libcmis-0.5.2
723 - dev-db/unixODBC
724 - dev-lang/perl
725 - dev-libs/boost:=[nls]
726 - dev-libs/expat
727 - dev-libs/hyphen
728 - dev-libs/icu:=
729 - dev-libs/libassuan
730 - dev-libs/libgpg-error
731 - =dev-libs/liborcus-0.14*
732 - dev-libs/librevenge
733 - dev-libs/libxml2
734 - dev-libs/libxslt
735 - dev-libs/nspr
736 - dev-libs/nss
737 - >=dev-libs/redland-1.0.16
738 - >=dev-libs/xmlsec-1.2.28[nss]
739 - media-gfx/fontforge
740 - media-gfx/graphite2
741 - media-libs/fontconfig
742 - media-libs/freetype:2
743 - >=media-libs/harfbuzz-0.9.42:=[graphite,icu]
744 - media-libs/lcms:2
745 - >=media-libs/libcdr-0.1.0
746 - >=media-libs/libepoxy-1.3.1[X]
747 - >=media-libs/libfreehand-0.1.0
748 - media-libs/libpagemaker
749 - >=media-libs/libpng-1.4:0=
750 - >=media-libs/libvisio-0.1.0
751 - media-libs/libzmf
752 - net-libs/neon
753 - net-misc/curl
754 - sci-mathematics/lpsolve
755 - sys-libs/zlib
756 - virtual/glu
757 - virtual/jpeg:0
758 - virtual/opengl
759 - x11-libs/cairo[X]
760 - x11-libs/libXinerama
761 - x11-libs/libXrandr
762 - x11-libs/libXrender
763 - accessibility? (
764 - $(python_gen_cond_dep '
765 - dev-python/lxml[${PYTHON_MULTI_USEDEP}]
766 - ')
767 - )
768 - bluetooth? (
769 - dev-libs/glib:2
770 - net-wireless/bluez
771 - )
772 - coinmp? ( sci-libs/coinor-mp )
773 - cups? ( net-print/cups )
774 - dbus? ( sys-apps/dbus )
775 - eds? (
776 - dev-libs/glib:2
777 - gnome-base/dconf
778 - gnome-extra/evolution-data-server
779 - )
780 - firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] )
781 - gstreamer? (
782 - media-libs/gstreamer:1.0
783 - media-libs/gst-plugins-base:1.0
784 - )
785 - gtk? (
786 - dev-libs/glib:2
787 - dev-libs/gobject-introspection
788 - gnome-base/dconf
789 - media-libs/mesa[egl]
790 - x11-libs/gtk+:3
791 - x11-libs/pango
792 - )
793 - gtk2? (
794 - x11-libs/gdk-pixbuf
795 - >=x11-libs/gtk+-2.24:2
796 - x11-libs/pango
797 - )
798 - kde? (
799 - dev-qt/qtcore:5
800 - dev-qt/qtgui:5
801 - dev-qt/qtwidgets:5
802 - dev-qt/qtx11extras:5
803 - kde-frameworks/kconfig:5
804 - kde-frameworks/kcoreaddons:5
805 - kde-frameworks/ki18n:5
806 - kde-frameworks/kio:5
807 - kde-frameworks/kwindowsystem:5
808 - )
809 - ldap? ( net-nds/openldap )
810 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
811 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
812 - mariadb? ( dev-db/mariadb-connector-c )
813 - !mariadb? ( dev-db/mysql-connector-c )
814 - pdfimport? ( app-text/poppler:=[cxx] )
815 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
816 -"
817 -# FIXME: cppunit should be moved to test conditional
818 -# after everything upstream is under gbuild
819 -# as dmake execute tests right away
820 -# tests apparently also need google-carlito-fonts (not packaged)
821 -DEPEND="${COMMON_DEPEND}
822 - >=dev-libs/libatomic_ops-7.2d
823 - dev-perl/Archive-Zip
824 - >=dev-util/cppunit-1.14.0
825 - >=dev-util/gperf-3.1
826 - dev-util/mdds:1/1.4
827 - media-libs/glm
828 - sys-devel/ucpp
829 - x11-base/xorg-proto
830 - x11-libs/libXt
831 - x11-libs/libXtst
832 - java? (
833 - dev-java/ant-core
834 - >=virtual/jdk-1.6
835 - )
836 - test? (
837 - app-crypt/gnupg
838 - dev-util/cppunit
839 - media-fonts/dejavu
840 - media-fonts/liberation-fonts
841 - )
842 -"
843 -RDEPEND="${COMMON_DEPEND}
844 - !app-office/libreoffice-bin
845 - !app-office/libreoffice-bin-debug
846 - !app-office/openoffice
847 - media-fonts/liberation-fonts
848 - || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools )
849 - java? ( >=virtual/jre-1.6 )
850 - kde? ( kde-frameworks/breeze-icons:* )
851 -"
852 -if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then
853 - PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*"
854 -else
855 - # Translations are not reliable on live ebuilds
856 - # rather force people to use english only.
857 - PDEPEND="!app-office/libreoffice-l10n"
858 -fi
859 -
860 -PATCHES=(
861 - # "${WORKDIR}"/${PATCHSET/.tar.xz/}
862 -
863 - # not upstreamable stuff
864 - "${FILESDIR}/${PN}-5.4-system-pyuno.patch"
865 - "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch"
866 - "${FILESDIR}/${PN}-6.1-nomancompress.patch"
867 -
868 - # master branch
869 - "${FILESDIR}/${PN}-6.3.3.2-mysql-connector-c-8.patch" # bug #692422
870 -)
871 -
872 -S="${WORKDIR}/${PN}-${MY_PV}"
873 -
874 -_check_reqs() {
875 - CHECKREQS_MEMORY="512M"
876 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
877 - CHECKREQS_DISK_BUILD="22G"
878 - else
879 - CHECKREQS_DISK_BUILD="6G"
880 - fi
881 - check-reqs_$1
882 -}
883 -
884 -pkg_pretend() {
885 - if ! use java && ! use firebird; then
886 - ewarn "If you plan to use Base application you must enable either firebird or java."
887 - fi
888 -
889 - use java || ewarn "Without java, several wizards are not going to be available."
890 -
891 - if has_version "<app-office/libreoffice-5.3.0[firebird]"; then
892 - ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so"
893 - ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version."
894 - ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base"
895 - fi
896 -
897 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend
898 -}
899 -
900 -pkg_setup() {
901 - java-pkg-opt-2_pkg_setup
902 - python-single-r1_pkg_setup
903 - xdg_environment_reset
904 -
905 - [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup
906 -}
907 -
908 -src_unpack() {
909 - default
910 -
911 - if [[ ${MY_PV} = *9999* ]]; then
912 - local base_uri branch mypv
913 - base_uri="https://anongit.freedesktop.org/git"
914 - branch="master"
915 - mypv=${MY_PV/.9999}
916 - [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}"
917 - git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}"
918 - git-r3_checkout "${base_uri}/${PN}/core"
919 - LOCOREGIT_VERSION=${EGIT_VERSION}
920 -
921 - git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master"
922 - git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help
923 - fi
924 -}
925 -
926 -src_prepare() {
927 - default
928 -
929 - # sandbox violations on many systems, we don't need it. Bug #646406
930 - sed -i \
931 - -e "/KF5_CONFIG/s/kf5-config/no/" \
932 - configure.ac || die "Failed to disable kf5-config"
933 -
934 - AT_M4DIR="m4" eautoreconf
935 - # hack in the autogen.sh
936 - touch autogen.lastrun
937 -
938 - # system pyuno mess
939 - sed -i \
940 - -e "s:%eprefix%:${EPREFIX}:g" \
941 - -e "s:%libdir%:$(get_libdir):g" \
942 - pyuno/source/module/uno.py \
943 - pyuno/source/officehelper.py || die
944 - # sed in the tests
945 - sed -i \
946 - -e "s#all : build unitcheck#all : build#g" \
947 - solenv/gbuild/Module.mk || die
948 - sed -i \
949 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
950 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
951 - Makefile.in || die
952 -
953 - sed -i \
954 - -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
955 - -e "s,\$INSTALLDIRNAME.sh,${PN}," \
956 - bin/distro-install-desktop-integration || die
957 -
958 - if use branding; then
959 - # hack...
960 - mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die
961 - fi
962 -
963 - # Don't list pdfimport support in desktop when built with none, bug # 605464
964 - if ! use pdfimport; then
965 - sed -i \
966 - -e ":MimeType: s:application/pdf;::" \
967 - -e ":Keywords: s:pdf;::" \
968 - sysui/desktop/menus/draw.desktop || die
969 - fi
970 -}
971 -
972 -src_configure() {
973 - # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys
974 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
975 - # your own set of keys. Feel free to contact chromium@g.o for more info.
976 - local google_default_client_id="329227923882.apps.googleusercontent.com"
977 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
978 -
979 - # optimization flags
980 - export GMAKE_OPTIONS="${MAKEOPTS}"
981 - # System python enablement:
982 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
983 - export PYTHON_LIBS=$(python_get_LIBS)
984 -
985 - if use kde; then
986 - export QT_SELECT=5 # bug 639620 needs proper fix though
987 - export QT5DIR="$(qt5_get_bindir)/../"
988 - export MOC5="$(qt5_get_bindir)/moc"
989 - fi
990 -
991 - local gentoo_buildid="Gentoo official package"
992 - if [[ -n ${LOCOREGIT_VERSION} ]]; then
993 - gentoo_buildid+=" (from git: ${LOCOREGIT_VERSION})"
994 - fi
995 -
996 - # system headers/libs/...: enforce using system packages
997 - # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
998 - # --enable-cairo: ensure that cairo is always required
999 - # --enable-*-link: link to the library rather than just dlopen on runtime
1000 - # --enable-release-build: build the libreoffice as release
1001 - # --disable-fetch-external: prevent dowloading during compile phase
1002 - # --enable-extension-integration: enable any extension integration support
1003 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
1004 - # --disable-report-builder: too much java packages pulled in without pkgs
1005 - # --without-system-sane: just sane.h header that is used for scan in writer,
1006 - # not linked or anything else, worthless to depend on
1007 - # --disable-pdfium: not yet packaged
1008 - local myeconfargs=(
1009 - --with-system-dicts
1010 - --with-system-epoxy
1011 - --with-system-headers
1012 - --with-system-jars
1013 - --with-system-libs
1014 - --enable-build-opensymbol
1015 - --enable-cairo-canvas
1016 - --enable-largefile
1017 - --enable-mergelibs
1018 - --enable-neon
1019 - --enable-python=system
1020 - --enable-randr
1021 - --enable-release-build
1022 - --disable-breakpad
1023 - --disable-bundle-mariadb
1024 - --disable-ccache
1025 - --disable-epm
1026 - --disable-fetch-external
1027 - --disable-gstreamer-0-10
1028 - --disable-gtk3-kde5
1029 - --disable-online-update
1030 - --disable-openssl
1031 - --disable-pdfium
1032 - --disable-report-builder
1033 - --disable-vlc
1034 - --with-build-version="${gentoo_buildid}"
1035 - --enable-extension-integration
1036 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell"
1037 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell"
1038 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell"
1039 - --with-external-tar="${DISTDIR}"
1040 - --with-lang=""
1041 - --with-parallelism=$(makeopts_jobs)
1042 - --with-system-ucpp
1043 - --with-tls=nss
1044 - --with-vendor="Gentoo Foundation"
1045 - --with-x
1046 - --without-fonts
1047 - --without-myspell-dicts
1048 - --with-help="html"
1049 - --without-helppack-integration
1050 - --with-system-gpgmepp
1051 - --without-system-sane
1052 - $(use_enable bluetooth sdremote-bluetooth)
1053 - $(use_enable coinmp)
1054 - $(use_enable cups)
1055 - $(use_enable dbus)
1056 - $(use_enable debug)
1057 - $(use_enable eds evolution2)
1058 - $(use_enable firebird firebird-sdbc)
1059 - $(use_enable gstreamer gstreamer-1-0)
1060 - $(use_enable gtk gtk3)
1061 - $(use_enable gtk2 gtk)
1062 - $(use_enable kde kde5)
1063 - $(use_enable kde qt5)
1064 - $(use_enable ldap)
1065 - $(use_enable odk)
1066 - $(use_enable pdfimport)
1067 - $(use_enable postgres postgresql-sdbc)
1068 - $(use_with accessibility lxml)
1069 - $(use_with coinmp system-coinmp)
1070 - $(use_with googledrive gdrive-client-id ${google_default_client_id})
1071 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret})
1072 - $(use_with java)
1073 - $(use_with odk doxygen)
1074 - )
1075 -
1076 - if use eds || use gtk; then
1077 - myeconfargs+=( --enable-dconf --enable-gio )
1078 - else
1079 - myeconfargs+=( --disable-dconf --disable-gio )
1080 - fi
1081 -
1082 - # libreoffice extensions handling
1083 - for lo_xt in ${LO_EXTS}; do
1084 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
1085 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) )
1086 - else
1087 - myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) )
1088 - fi
1089 - done
1090 -
1091 - if use java; then
1092 - # hsqldb: system one is too new
1093 - myeconfargs+=(
1094 - --without-junit
1095 - --without-system-hsqldb
1096 - --with-ant-home="${ANT_HOME}"
1097 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
1098 - --with-jvm-path="${EPREFIX}/usr/lib/"
1099 - )
1100 -
1101 - use libreoffice_extensions_scripting-beanshell && \
1102 - myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) )
1103 -
1104 - use libreoffice_extensions_scripting-javascript && \
1105 - myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) )
1106 - fi
1107 -
1108 - is-flagq "-flto*" && myeconfargs+=( --enable-lto )
1109 -
1110 - MARIADBCONFIG="$(type -p $(usex mariadb mariadb mysql)_config)" \
1111 - econf "${myeconfargs[@]}"
1112 -}
1113 -
1114 -src_compile() {
1115 - # more and more LO stuff tries to use OpenGL, including tests during build
1116 - # bug 501508, bug 540624, bug 545974 and probably more
1117 - addpredict /dev/dri
1118 - addpredict /dev/ati
1119 - addpredict /dev/nvidiactl
1120 -
1121 - local target
1122 - use test && target="build" || target="build-nocheck"
1123 -
1124 - # this is not a proper make script
1125 - make ${target} || die
1126 -}
1127 -
1128 -src_test() {
1129 - make unitcheck || die
1130 - make slowcheck || die
1131 -}
1132 -
1133 -src_install() {
1134 - # This is not Makefile so no buildserver
1135 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
1136 -
1137 - # bug 593514
1138 - if use gtk; then
1139 - dosym libreoffice/program/liblibreofficekitgtk.so \
1140 - /usr/$(get_libdir)/liblibreofficekitgtk.so
1141 - fi
1142 -
1143 - # bash completion aliases
1144 - bashcomp_alias \
1145 - libreoffice \
1146 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
1147 -
1148 - if use branding; then
1149 - insinto /usr/$(get_libdir)/${PN}/program
1150 - newins "${WORKDIR}/branding-sofficerc" sofficerc
1151 - dodir /etc/env.d
1152 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"/etc/env.d/99${PN} || die
1153 - fi
1154 -}
1155 -
1156 -pkg_postinst() {
1157 - xdg_icon_cache_update
1158 - xdg_desktop_database_update
1159 - xdg_mimeinfo_database_update
1160 -}
1161 -
1162 -pkg_postrm() {
1163 - xdg_icon_cache_update
1164 - xdg_desktop_database_update
1165 - xdg_mimeinfo_database_update
1166 -}