1 |
commit: ccf78800bd4bc4d0e4cc1e1dddefffb3efe00dbd |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 1 23:22:52 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 2 08:28:54 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccf78800 |
7 |
|
8 |
app-office/libreoffice: 6.1.3.2 version bump |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
app-office/libreoffice/Manifest | 3 + |
14 |
app-office/libreoffice/libreoffice-6.1.3.2.ebuild | 568 ++++++++++++++++++++++ |
15 |
2 files changed, 571 insertions(+) |
16 |
|
17 |
diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest |
18 |
index eadf3888eb5..ba3db4af588 100644 |
19 |
--- a/app-office/libreoffice/Manifest |
20 |
+++ b/app-office/libreoffice/Manifest |
21 |
@@ -6,6 +6,9 @@ DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 BLAKE2B 51db6bd9058 |
22 |
DIST libreoffice-6.0.5.2-patchset-01.tar.xz 39820 BLAKE2B d8b436378b05a8a58156817b5d1e0323fd6fcfde9aa9fc4fc6a8056a06a16c84c5860ffe1ae715faddb707c5aa417b43e6c7f5c05821f86208edbb3778d830a1 SHA512 ec99a6358c0a20075abc0aa136ad6ccded4562fa0f25897efe2a8783fb33b97b92a2dd8041206b3344a79dfd10ebe98b79c8bf0b4e8539e45942978f0028dc59 |
23 |
DIST libreoffice-6.0.6.2.tar.xz 205022916 BLAKE2B 715d24c7bbfe4d570011f5090cf647421f68e73fb76047ec0fb973ec0bfb30be3ec1d521bdd92369e23abaa444e7afd3e070ff613486e8f85b9ca76d9496fd0e SHA512 8cf7bd4d8f81ee09f8a21c4ccb12f788c67cf1cba71e08b9b720f9e8b4ec2dfcc25452ef05b6b60529463241c2b23a70eb6a79a8f15b95e890a2ea9cbb458517 |
24 |
DIST libreoffice-6.1.2.1.tar.xz 207364016 BLAKE2B 9046cd4eaa30be40e5223718491ef5f39ad6940ae6bef1c88618eb42dfffeb9980db164367f7c6518979f57b31688abcc81068be2da4de08b6da5a7245e50283 SHA512 b7c7839da8251fd0f01794381d77a5abd4d092f21589df046402a1d332d782608aa00ab29ad60c9a34f27f11576d70c5a678e87a0f53c5b4065ae59fe77a0367 |
25 |
+DIST libreoffice-6.1.3.1-patchset-01.tar.xz 5068 BLAKE2B 5152903a580bbf44b40cb219c6d875753be354893470e6c5bad1b214ef3835529f3d1ba359baa362268d2b2bc72b698d4b319e0900e39c8dbfe9bfcfaaf0c171 SHA512 3cbf149f43ca89c1c22e6a67d6a66bc59e538588412b5363e662ee27ed764cd728fceffe141c7a49ea5c049640737e2fbbf673095397f422af9ae9b33af9e139 |
26 |
+DIST libreoffice-6.1.3.2.tar.xz 207404836 BLAKE2B d0ba57f8ca93a6bc4406ec21f1338659714af00afb861dca324a21af50abae160f3512bc1c0c5fbac23dfc24e7d8d855e377cb7e71e7ed3991456e922cb09d44 SHA512 1d3de497cbda49df6a59b550a18db5fc92f67ff522ba7432dea7052099226a260997c2efa0a59ce861c3bd921d7d569738721c5ed6efbd8a24e74c52eae5c484 |
27 |
DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 BLAKE2B f03c7ddeb53c5ca3fd23401679601fcf2c4037ba17be4eb7b784c7ce7ebb71a24b8ab4aac8b7da8c6b1f14dd23bc1294ba85ff4f70ad271fb4ee3c5372e10883 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f |
28 |
DIST libreoffice-help-6.0.6.2.tar.xz 2972748 BLAKE2B 38534d5fd08751af587fd5b5be03b39b086e2bc26878c50e98bafd7a2b48f517ac29b8d434748449b0a3e8a451c31f40255094d64965800aadfd94c111295be5 SHA512 89caab57774f85f3e58523c0debb57247a0f10959634bf296aaacc4928bcce6ea8ed9f167b267e2e0eeb52b69714eeb094fedfa3e810cf409dfbc7c5e49b7c13 |
29 |
DIST libreoffice-help-6.1.2.1.tar.xz 15757852 BLAKE2B 2f40eeb16956695e6a4f5d9bf6ac6ad8a72a4a38dd4b481320c1ffe7bf41b789e938291631816ee84cf4da83a0347d34383e9ed9c3f4b48374cf15cea13243a7 SHA512 6cabaed79d0405e4e35af3e3689561e0d447bbf98b081b6a40fd52c37bda7b0886d4df4ea1c2deaa7db56c26933b5697ae4ef796f6e763a58b7ee729debcca6e |
30 |
+DIST libreoffice-help-6.1.3.2.tar.xz 15757496 BLAKE2B cebfe42728c0374c355ba8d449d1858e9596b19d76b689c5eac422fa8cc749fec88e0a44fcc55e4c13cfab7a8219f565bd62944e004b7afb6f2e1fb3571c2dde SHA512 e52c9ff796696ab3dc6d32b468f3ca13f346b999a7bdbbffb7811eb8b7b347f4feb9ee02ff500f8b9e64cc246bc171a6166fcbd43e79a9ee75e2dafe37df9994 |
31 |
|
32 |
diff --git a/app-office/libreoffice/libreoffice-6.1.3.2.ebuild b/app-office/libreoffice/libreoffice-6.1.3.2.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..16abc13fd3e |
35 |
--- /dev/null |
36 |
+++ b/app-office/libreoffice/libreoffice-6.1.3.2.ebuild |
37 |
@@ -0,0 +1,568 @@ |
38 |
+# Copyright 1999-2018 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_{4,5,6} ) |
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.1.3.1-patchset-01.tar.xz" |
59 |
+ |
60 |
+[[ ${MY_PV} == *9999* ]] && SCM_ECLASS="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 ${SCM_ECLASS} |
62 |
+unset SCM_ECLASS |
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 mysql odk pdfimport postgres test vlc |
105 |
+$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
106 |
+ |
107 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
108 |
+ bluetooth? ( dbus ) |
109 |
+ kde? ( gtk ) |
110 |
+ libreoffice_extensions_nlpsolver? ( java ) |
111 |
+ libreoffice_extensions_scripting-beanshell? ( java ) |
112 |
+ libreoffice_extensions_scripting-javascript? ( java ) |
113 |
+ libreoffice_extensions_wiki-publisher? ( java ) |
114 |
+" |
115 |
+ |
116 |
+LICENSE="|| ( LGPL-3 MPL-1.1 )" |
117 |
+SLOT="0" |
118 |
+[[ ${MY_PV} == *9999* ]] || \ |
119 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
120 |
+ |
121 |
+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.13* |
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/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? ( net-wireless/bluez ) |
186 |
+ coinmp? ( sci-libs/coinor-mp ) |
187 |
+ cups? ( net-print/cups ) |
188 |
+ dbus? ( dev-libs/dbus-glib ) |
189 |
+ eds? ( |
190 |
+ dev-libs/glib:2 |
191 |
+ gnome-base/dconf |
192 |
+ gnome-extra/evolution-data-server |
193 |
+ ) |
194 |
+ firebird? ( >=dev-db/firebird-3.0.2.32703.0-r1[server] ) |
195 |
+ gstreamer? ( |
196 |
+ media-libs/gstreamer:1.0 |
197 |
+ media-libs/gst-plugins-base:1.0 |
198 |
+ ) |
199 |
+ gtk? ( |
200 |
+ dev-libs/glib:2 |
201 |
+ dev-libs/gobject-introspection |
202 |
+ gnome-base/dconf |
203 |
+ media-libs/mesa[egl] |
204 |
+ x11-libs/gtk+:3 |
205 |
+ x11-libs/pango |
206 |
+ ) |
207 |
+ gtk2? ( |
208 |
+ x11-libs/gdk-pixbuf |
209 |
+ >=x11-libs/gtk+-2.24:2 |
210 |
+ x11-libs/pango |
211 |
+ ) |
212 |
+ kde? ( |
213 |
+ dev-qt/qtcore:5 |
214 |
+ dev-qt/qtgui:5 |
215 |
+ dev-qt/qtx11extras:5 |
216 |
+ dev-qt/qtwidgets:5 |
217 |
+ kde-frameworks/kconfig:5 |
218 |
+ kde-frameworks/kcoreaddons:5 |
219 |
+ kde-frameworks/ki18n:5 |
220 |
+ kde-frameworks/kio:5 |
221 |
+ kde-frameworks/kwindowsystem:5 |
222 |
+ ) |
223 |
+ libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) |
224 |
+ libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
225 |
+ mysql? ( dev-db/mysql-connector-c++ ) |
226 |
+ pdfimport? ( app-text/poppler:=[cxx] ) |
227 |
+ postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
228 |
+" |
229 |
+ |
230 |
+RDEPEND="${COMMON_DEPEND} |
231 |
+ !app-office/libreoffice-bin |
232 |
+ !app-office/libreoffice-bin-debug |
233 |
+ !app-office/openoffice |
234 |
+ media-fonts/dejavu |
235 |
+ media-fonts/liberation-fonts |
236 |
+ media-fonts/libertine |
237 |
+ || ( x11-misc/xdg-utils kde-plasma/kde-cli-tools ) |
238 |
+ java? ( >=virtual/jre-1.6 ) |
239 |
+ kde? ( kde-frameworks/breeze-icons:* ) |
240 |
+ vlc? ( media-video/vlc ) |
241 |
+" |
242 |
+ |
243 |
+if [[ ${MY_PV} != *9999* ]] && [[ ${PV} != *_* ]]; then |
244 |
+ PDEPEND="=app-office/libreoffice-l10n-$(ver_cut 1-2)*" |
245 |
+else |
246 |
+ # Translations are not reliable on live ebuilds |
247 |
+ # rather force people to use english only. |
248 |
+ PDEPEND="!app-office/libreoffice-l10n" |
249 |
+fi |
250 |
+ |
251 |
+# FIXME: cppunit should be moved to test conditional |
252 |
+# after everything upstream is under gbuild |
253 |
+# as dmake execute tests right away |
254 |
+DEPEND="${COMMON_DEPEND} |
255 |
+ >=dev-libs/libatomic_ops-7.2d |
256 |
+ dev-perl/Archive-Zip |
257 |
+ >=dev-util/cppunit-1.14.0 |
258 |
+ >=dev-util/gperf-3 |
259 |
+ dev-util/intltool |
260 |
+ =dev-util/mdds-1.3*:1= |
261 |
+ media-libs/glm |
262 |
+ sys-devel/bison |
263 |
+ sys-devel/flex |
264 |
+ sys-devel/gettext |
265 |
+ sys-devel/ucpp |
266 |
+ virtual/pkgconfig |
267 |
+ x11-base/xorg-proto |
268 |
+ x11-libs/libXt |
269 |
+ x11-libs/libXtst |
270 |
+ java? ( |
271 |
+ dev-java/ant-core |
272 |
+ >=virtual/jdk-1.6 |
273 |
+ ) |
274 |
+ odk? ( >=app-doc/doxygen-1.8.4 ) |
275 |
+ test? ( |
276 |
+ app-crypt/gnupg |
277 |
+ dev-util/cppunit |
278 |
+ media-fonts/dejavu |
279 |
+ ) |
280 |
+" |
281 |
+ |
282 |
+PATCHES=( |
283 |
+ "${WORKDIR}"/${PATCHSET/.tar.xz/} |
284 |
+ |
285 |
+ # not upstreamable stuff |
286 |
+ "${FILESDIR}/${PN}-5.4-system-pyuno.patch" |
287 |
+ "${FILESDIR}/${PN}-5.3.4.2-kioclient5.patch" |
288 |
+ |
289 |
+ # TODO: upstream |
290 |
+ "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch" |
291 |
+) |
292 |
+ |
293 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
294 |
+ |
295 |
+_check_reqs() { |
296 |
+ CHECKREQS_MEMORY="512M" |
297 |
+ if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
298 |
+ CHECKREQS_DISK_BUILD="22G" |
299 |
+ else |
300 |
+ CHECKREQS_DISK_BUILD="6G" |
301 |
+ fi |
302 |
+ check-reqs_$1 |
303 |
+} |
304 |
+ |
305 |
+pkg_pretend() { |
306 |
+ use java || \ |
307 |
+ ewarn "If you plan to use Base application you should enable java or you will get various crashes." |
308 |
+ |
309 |
+ if has_version "<app-office/libreoffice-5.3.0[firebird]"; then |
310 |
+ ewarn "Firebird has been upgraded to version 3. It is unable to read back Firebird 2.5 data, so" |
311 |
+ ewarn "embedded firebird odb files created in LibreOffice pre-5.3 can't be opened with this version." |
312 |
+ ewarn "See also: https://wiki.documentfoundation.org/ReleaseNotes/5.3#Base" |
313 |
+ fi |
314 |
+ |
315 |
+ [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_pretend |
316 |
+} |
317 |
+ |
318 |
+pkg_setup() { |
319 |
+ java-pkg-opt-2_pkg_setup |
320 |
+ python-single-r1_pkg_setup |
321 |
+ xdg_environment_reset |
322 |
+ |
323 |
+ [[ ${MERGE_TYPE} != binary ]] && _check_reqs pkg_setup |
324 |
+} |
325 |
+ |
326 |
+src_unpack() { |
327 |
+ default |
328 |
+ |
329 |
+ if [[ ${MY_PV} = *9999* ]]; then |
330 |
+ local base_uri branch mypv |
331 |
+ base_uri="https://anongit.freedesktop.org/git" |
332 |
+ branch="master" |
333 |
+ mypv=${MY_PV/.9999} |
334 |
+ [[ ${mypv} != ${MY_PV} ]] && branch="${PN}-${mypv/./-}" |
335 |
+ git-r3_fetch "${base_uri}/${PN}/core" "refs/heads/${branch}" |
336 |
+ git-r3_checkout "${base_uri}/${PN}/core" |
337 |
+ |
338 |
+ git-r3_fetch "${base_uri}/${PN}/help" "refs/heads/master" |
339 |
+ git-r3_checkout "${base_uri}/${PN}/help" "helpcontent2" # doesn't match on help |
340 |
+ fi |
341 |
+} |
342 |
+ |
343 |
+src_prepare() { |
344 |
+ default |
345 |
+ |
346 |
+ # sandbox violations on many systems, we don't need it. Bug #646406 |
347 |
+ sed -i \ |
348 |
+ -e "/KF5_CONFIG/s/kf5-config/no/" \ |
349 |
+ configure.ac || die "Failed to disable kf5-config" |
350 |
+ |
351 |
+ AT_M4DIR="m4" eautoreconf |
352 |
+ # hack in the autogen.sh |
353 |
+ touch autogen.lastrun |
354 |
+ |
355 |
+ # system pyuno mess |
356 |
+ sed -i \ |
357 |
+ -e "s:%eprefix%:${EPREFIX}:g" \ |
358 |
+ -e "s:%libdir%:$(get_libdir):g" \ |
359 |
+ pyuno/source/module/uno.py \ |
360 |
+ pyuno/source/officehelper.py || die |
361 |
+ # sed in the tests |
362 |
+ sed -i \ |
363 |
+ -e "s#all : build unitcheck#all : build#g" \ |
364 |
+ solenv/gbuild/Module.mk || die |
365 |
+ sed -i \ |
366 |
+ -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
367 |
+ -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
368 |
+ Makefile.in || die |
369 |
+ |
370 |
+ sed -i \ |
371 |
+ -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
372 |
+ -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
373 |
+ bin/distro-install-desktop-integration || die |
374 |
+ |
375 |
+ if use branding; then |
376 |
+ # hack... |
377 |
+ mv -v "${WORKDIR}/branding-intro.png" "icon-themes/colibre/brand/intro.png" || die |
378 |
+ fi |
379 |
+ |
380 |
+ # Don't list pdfimport support in desktop when built with none, bug # 605464 |
381 |
+ if ! use pdfimport; then |
382 |
+ sed -i \ |
383 |
+ -e ":MimeType: s:application/pdf;::" \ |
384 |
+ -e ":Keywords: s:pdf;::" \ |
385 |
+ sysui/desktop/menus/draw.desktop || die |
386 |
+ fi |
387 |
+} |
388 |
+ |
389 |
+src_configure() { |
390 |
+ # Set up Google API keys, see https://www.chromium.org/developers/how-tos/api-keys |
391 |
+ # Note: these are for Gentoo use ONLY. For your own distribution, please get |
392 |
+ # your own set of keys. Feel free to contact chromium@g.o for more info. |
393 |
+ local google_default_client_id="329227923882.apps.googleusercontent.com" |
394 |
+ local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
395 |
+ |
396 |
+ # optimization flags |
397 |
+ export GMAKE_OPTIONS="${MAKEOPTS}" |
398 |
+ # System python enablement: |
399 |
+ export PYTHON_CFLAGS=$(python_get_CFLAGS) |
400 |
+ export PYTHON_LIBS=$(python_get_LIBS) |
401 |
+ |
402 |
+ if use kde; then |
403 |
+ export QT_SELECT=5 # bug 639620 needs proper fix though |
404 |
+ export QT5DIR="$(qt5_get_bindir)/../" |
405 |
+ export MOC5="$(qt5_get_bindir)/moc" |
406 |
+ fi |
407 |
+ |
408 |
+ # system headers/libs/...: enforce using system packages |
409 |
+ # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad |
410 |
+ # --enable-cairo: ensure that cairo is always required |
411 |
+ # --enable-*-link: link to the library rather than just dlopen on runtime |
412 |
+ # --enable-release-build: build the libreoffice as release |
413 |
+ # --disable-fetch-external: prevent dowloading during compile phase |
414 |
+ # --enable-extension-integration: enable any extension integration support |
415 |
+ # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
416 |
+ # --disable-report-builder: too much java packages pulled in without pkgs |
417 |
+ # --without-system-sane: just sane.h header that is used for scan in writer, |
418 |
+ # not linked or anything else, worthless to depend on |
419 |
+ # --disable-pdfium: not yet packaged |
420 |
+ local myeconfargs=( |
421 |
+ --with-system-dicts |
422 |
+ --with-system-epoxy |
423 |
+ --with-system-headers |
424 |
+ --with-system-jars |
425 |
+ --with-system-libs |
426 |
+ --enable-cairo-canvas |
427 |
+ --enable-largefile |
428 |
+ --enable-mergelibs |
429 |
+ --enable-neon |
430 |
+ --enable-python=system |
431 |
+ --enable-randr |
432 |
+ --enable-release-build |
433 |
+ --disable-breakpad |
434 |
+ --disable-ccache |
435 |
+ --disable-dependency-tracking |
436 |
+ --disable-epm |
437 |
+ --disable-fetch-external |
438 |
+ --disable-gstreamer-0-10 |
439 |
+ --disable-kde5 |
440 |
+ --disable-online-update |
441 |
+ --disable-openssl |
442 |
+ --disable-pdfium |
443 |
+ --disable-qt5 |
444 |
+ --disable-report-builder |
445 |
+ --with-alloc=system |
446 |
+ --with-build-version="Gentoo official package" |
447 |
+ --enable-extension-integration |
448 |
+ --with-external-dict-dir="${EPREFIX}/usr/share/myspell" |
449 |
+ --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" |
450 |
+ --with-external-thes-dir="${EPREFIX}/usr/share/myspell" |
451 |
+ --with-external-tar="${DISTDIR}" |
452 |
+ --with-lang="" |
453 |
+ --with-parallelism=$(makeopts_jobs) |
454 |
+ --with-system-ucpp |
455 |
+ --with-tls=nss |
456 |
+ --with-vendor="Gentoo Foundation" |
457 |
+ --with-x |
458 |
+ --without-fonts |
459 |
+ --without-myspell-dicts |
460 |
+ --without-help |
461 |
+ --with-helppack-integration |
462 |
+ --with-system-gpgmepp |
463 |
+ --without-system-sane |
464 |
+ $(use_enable bluetooth sdremote-bluetooth) |
465 |
+ $(use_enable coinmp) |
466 |
+ $(use_enable cups) |
467 |
+ $(use_enable dbus) |
468 |
+ $(use_enable debug) |
469 |
+ $(use_enable eds evolution2) |
470 |
+ $(use_enable firebird firebird-sdbc) |
471 |
+ $(use_enable gstreamer gstreamer-1-0) |
472 |
+ $(use_enable gtk gtk3) |
473 |
+ $(use_enable gtk2 gtk) |
474 |
+ $(use_enable kde gtk3-kde5) |
475 |
+ $(use_enable mysql ext-mariadb-connector) |
476 |
+ $(use_enable odk) |
477 |
+ $(use_enable pdfimport) |
478 |
+ $(use_enable postgres postgresql-sdbc) |
479 |
+ $(use_enable vlc) |
480 |
+ $(use_with accessibility lxml) |
481 |
+ $(use_with coinmp system-coinmp) |
482 |
+ $(use_with googledrive gdrive-client-id ${google_default_client_id}) |
483 |
+ $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) |
484 |
+ $(use_with java) |
485 |
+ $(use_with mysql system-mysql-cppconn) |
486 |
+ $(use_with odk doxygen) |
487 |
+ ) |
488 |
+ |
489 |
+ if use eds || use gtk; then |
490 |
+ myeconfargs+=( --enable-dconf --enable-gio ) |
491 |
+ else |
492 |
+ myeconfargs+=( --disable-dconf --disable-gio ) |
493 |
+ fi |
494 |
+ |
495 |
+ # libreoffice extensions handling |
496 |
+ for lo_xt in ${LO_EXTS}; do |
497 |
+ if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
498 |
+ myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt}) ) |
499 |
+ else |
500 |
+ myeconfargs+=( $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt}) ) |
501 |
+ fi |
502 |
+ done |
503 |
+ |
504 |
+ if use java; then |
505 |
+ # hsqldb: system one is too new |
506 |
+ myeconfargs+=( |
507 |
+ --without-junit |
508 |
+ --without-system-hsqldb |
509 |
+ --with-ant-home="${ANT_HOME}" |
510 |
+ --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
511 |
+ --with-jvm-path="${EPREFIX}/usr/lib/" |
512 |
+ ) |
513 |
+ |
514 |
+ use libreoffice_extensions_scripting-beanshell && \ |
515 |
+ myeconfargs+=( --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar) ) |
516 |
+ |
517 |
+ use libreoffice_extensions_scripting-javascript && \ |
518 |
+ myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) |
519 |
+ fi |
520 |
+ |
521 |
+ is-flagq "-flto*" && myeconfargs+=( --enable-lto ) |
522 |
+ |
523 |
+ econf "${myeconfargs[@]}" |
524 |
+} |
525 |
+ |
526 |
+src_compile() { |
527 |
+ # more and more LO stuff tries to use OpenGL, including tests during build |
528 |
+ # bug 501508, bug 540624, bug 545974 and probably more |
529 |
+ addpredict /dev/dri |
530 |
+ addpredict /dev/ati |
531 |
+ addpredict /dev/nvidiactl |
532 |
+ |
533 |
+ # hack for offlinehelp, this needs fixing upstream at some point |
534 |
+ # it is broken because we send --without-help |
535 |
+ # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
536 |
+ ( |
537 |
+ grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die |
538 |
+ source "${T}/config_host.mk" 2&> /dev/null |
539 |
+ |
540 |
+ local path="${WORKDIR}/helpcontent2/source/auxiliary/" |
541 |
+ mkdir -p "${path}" || die |
542 |
+ |
543 |
+ echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=helpcontent2/source/media/helpimg > \"${path}/helpimg.ilst\"" |
544 |
+ perl "${S}/helpcontent2/helpers/create_ilst.pl" \ |
545 |
+ -dir=helpcontent2/source/media/helpimg \ |
546 |
+ > "${path}/helpimg.ilst" |
547 |
+ [[ -s "${path}/helpimg.ilst" ]] || \ |
548 |
+ ewarn "The help images list is empty, something is fishy, report a bug." |
549 |
+ ) |
550 |
+ |
551 |
+ local target |
552 |
+ use test && target="build" || target="build-nocheck" |
553 |
+ |
554 |
+ # this is not a proper make script |
555 |
+ make ${target} || die |
556 |
+} |
557 |
+ |
558 |
+src_test() { |
559 |
+ make unitcheck || die |
560 |
+ make slowcheck || die |
561 |
+} |
562 |
+ |
563 |
+src_install() { |
564 |
+ # This is not Makefile so no buildserver |
565 |
+ make DESTDIR="${D}" distro-pack-install -o build -o check || die |
566 |
+ |
567 |
+ # bug 593514 |
568 |
+ if use gtk; then |
569 |
+ dosym libreoffice/program/liblibreofficekitgtk.so \ |
570 |
+ /usr/$(get_libdir)/liblibreofficekitgtk.so |
571 |
+ fi |
572 |
+ |
573 |
+ # bash completion aliases |
574 |
+ bashcomp_alias \ |
575 |
+ libreoffice \ |
576 |
+ unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
577 |
+ |
578 |
+ if use branding; then |
579 |
+ insinto /usr/$(get_libdir)/${PN}/program |
580 |
+ newins "${WORKDIR}/branding-sofficerc" sofficerc |
581 |
+ dodir /etc/env.d |
582 |
+ echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die |
583 |
+ fi |
584 |
+ |
585 |
+ # Hack for offlinehelp, this needs fixing upstream at some point. |
586 |
+ # It is broken because we send --without-help |
587 |
+ # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
588 |
+ insinto /usr/$(get_libdir)/libreoffice/help |
589 |
+ doins xmlhelp/util/*.xsl |
590 |
+ |
591 |
+ pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin |
592 |
+ pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin |
593 |
+} |
594 |
+ |
595 |
+pkg_postinst() { |
596 |
+ gnome2_icon_cache_update |
597 |
+ xdg_desktop_database_update |
598 |
+ xdg_mimeinfo_database_update |
599 |
+} |
600 |
+ |
601 |
+pkg_postrm() { |
602 |
+ gnome2_icon_cache_update |
603 |
+ xdg_desktop_database_update |
604 |
+ xdg_mimeinfo_database_update |
605 |
+} |