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