1 |
commit: a79ad26addc2af783af670075cc769b14edbaf98 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 28 19:26:24 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 28 19:48:33 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a79ad26a |
7 |
|
8 |
app-office/libreoffice: Drop 5.2 stable branch |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
app-office/libreoffice/libreoffice-5.2.9999.ebuild | 595 --------------------- |
13 |
1 file changed, 595 deletions(-) |
14 |
|
15 |
diff --git a/app-office/libreoffice/libreoffice-5.2.9999.ebuild b/app-office/libreoffice/libreoffice-5.2.9999.ebuild |
16 |
deleted file mode 100644 |
17 |
index 89c487827d..0000000000 |
18 |
--- a/app-office/libreoffice/libreoffice-5.2.9999.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,595 +0,0 @@ |
21 |
-# Copyright 1999-2017 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Id$ |
24 |
- |
25 |
-EAPI=6 |
26 |
- |
27 |
-KDE_REQUIRED="optional" |
28 |
-KDE_SCM="git" |
29 |
-CMAKE_REQUIRED="never" |
30 |
- |
31 |
-PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
32 |
-PYTHON_REQ_USE="threads,xml" |
33 |
- |
34 |
-# experimental ; release ; old |
35 |
-# Usually the tarballs are moved a lot so this should make |
36 |
-# everyone happy. |
37 |
-DEV_URI=" |
38 |
- http://dev-builds.libreoffice.org/pre-releases/src |
39 |
- http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/ |
40 |
- http://download.documentfoundation.org/libreoffice/old/${PV}/ |
41 |
-" |
42 |
-ADDONS_URI="http://dev-www.libreoffice.org/src/" |
43 |
- |
44 |
-BRANDING="${PN}-branding-gentoo-0.8.tar.xz" |
45 |
-# PATCHSET="${P}-patchset-01.tar.xz" |
46 |
- |
47 |
-[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3" |
48 |
-inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator xdg-utils qmake-utils ${SCM_ECLASS} |
49 |
-unset SCM_ECLASS |
50 |
- |
51 |
-DESCRIPTION="A full office productivity suite" |
52 |
-HOMEPAGE="http://www.libreoffice.org" |
53 |
-SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )" |
54 |
-[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}" |
55 |
- |
56 |
-# Split modules following git/tarballs |
57 |
-# Core MUST be first! |
58 |
-# Help is used for the image generator |
59 |
-MODULES="core help" |
60 |
-# Only release has the tarballs |
61 |
-if [[ ${PV} != *9999* ]]; then |
62 |
- for i in ${DEV_URI}; do |
63 |
- for mod in ${MODULES}; do |
64 |
- if [[ ${mod} == core ]]; then |
65 |
- SRC_URI+=" ${i}/${P}.tar.xz" |
66 |
- else |
67 |
- SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz" |
68 |
- fi |
69 |
- done |
70 |
- unset mod |
71 |
- done |
72 |
- unset i |
73 |
-fi |
74 |
-unset DEV_URI |
75 |
- |
76 |
-# Really required addons |
77 |
-# These are bundles that can't be removed for now due to huge patchsets. |
78 |
-# If you want them gone, patches are welcome. |
79 |
-ADDONS_SRC=( |
80 |
- "${ADDONS_URI}/ce12af00283eb90d9281956524250d6e-xmlsec1-1.2.20.tar.gz" # modifies source code |
81 |
- "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )" |
82 |
- "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )" |
83 |
- # no release for 8 years, should we package it? |
84 |
- "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )" |
85 |
- # Does not build with 1.6 rhino at all |
86 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )" |
87 |
- # requirement of rhino |
88 |
- "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )" |
89 |
- # not packageable |
90 |
- "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )" |
91 |
-) |
92 |
-SRC_URI+=" ${ADDONS_SRC[*]}" |
93 |
- |
94 |
-unset ADDONS_URI |
95 |
-unset ADDONS_SRC |
96 |
- |
97 |
-# Extensions that need extra work: |
98 |
-LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
99 |
- |
100 |
-IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome googledrive |
101 |
-gstreamer +gtk gtk3 jemalloc kde libressl mysql odk pdfimport postgres quickstarter telepathy test vlc |
102 |
-$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
103 |
- |
104 |
-LICENSE="|| ( LGPL-3 MPL-1.1 )" |
105 |
-SLOT="0" |
106 |
-[[ ${PV} == *9999* ]] || \ |
107 |
-KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux" |
108 |
- |
109 |
-COMMON_DEPEND="${PYTHON_DEPS} |
110 |
- app-arch/unzip |
111 |
- app-arch/zip |
112 |
- app-text/hunspell |
113 |
- >=app-text/libabw-0.1.0 |
114 |
- >=app-text/libebook-0.1 |
115 |
- >=app-text/libetonyek-0.1 |
116 |
- app-text/libexttextcat |
117 |
- app-text/liblangtag |
118 |
- >=app-text/libmspub-0.1.0 |
119 |
- >=app-text/libmwaw-0.3.1 |
120 |
- >=app-text/libodfgen-0.1.0 |
121 |
- app-text/libwpd:0.10[tools] |
122 |
- app-text/libwpg:0.3 |
123 |
- >=app-text/libwps-0.4 |
124 |
- app-text/mythes |
125 |
- >=dev-cpp/clucene-2.3.3.4-r2 |
126 |
- =dev-cpp/libcmis-0.5* |
127 |
- dev-db/unixODBC |
128 |
- dev-lang/perl |
129 |
- >=dev-libs/boost-1.55:= |
130 |
- dev-libs/expat |
131 |
- dev-libs/hyphen |
132 |
- dev-libs/icu:= |
133 |
- =dev-libs/liborcus-0.11* |
134 |
- dev-libs/librevenge |
135 |
- dev-libs/nspr |
136 |
- dev-libs/nss |
137 |
- !libressl? ( >=dev-libs/openssl-1.0.0d:0 ) |
138 |
- libressl? ( dev-libs/libressl ) |
139 |
- >=dev-libs/redland-1.0.16 |
140 |
- media-gfx/graphite2 |
141 |
- media-libs/fontconfig |
142 |
- media-libs/freetype:2 |
143 |
- >=media-libs/glew-1.10:= |
144 |
- >=media-libs/harfbuzz-0.9.18:=[icu(+)] |
145 |
- media-libs/lcms:2 |
146 |
- >=media-libs/libcdr-0.1.0 |
147 |
- >=media-libs/libfreehand-0.1.0 |
148 |
- media-libs/libpagemaker |
149 |
- >=media-libs/libpng-1.4:0= |
150 |
- >=media-libs/libvisio-0.1.0 |
151 |
- net-libs/neon |
152 |
- net-misc/curl |
153 |
- net-nds/openldap |
154 |
- sci-mathematics/lpsolve |
155 |
- virtual/jpeg:0 |
156 |
- x11-libs/cairo[X,-xlib-xcb(-)] |
157 |
- x11-libs/libXinerama |
158 |
- x11-libs/libXrandr |
159 |
- x11-libs/libXrender |
160 |
- virtual/glu |
161 |
- virtual/opengl |
162 |
- bluetooth? ( net-wireless/bluez ) |
163 |
- coinmp? ( sci-libs/coinor-mp ) |
164 |
- collada? ( >=media-libs/opencollada-1.2.2_p20150207 ) |
165 |
- cups? ( net-print/cups ) |
166 |
- dbus? ( dev-libs/dbus-glib ) |
167 |
- eds? ( |
168 |
- dev-libs/glib:2 |
169 |
- gnome-extra/evolution-data-server |
170 |
- ) |
171 |
- firebird? ( >=dev-db/firebird-2.5 ) |
172 |
- gltf? ( media-libs/libgltf ) |
173 |
- gnome? ( gnome-base/dconf ) |
174 |
- gstreamer? ( |
175 |
- media-libs/gstreamer:1.0 |
176 |
- media-libs/gst-plugins-base:1.0 |
177 |
- ) |
178 |
- gtk? ( |
179 |
- x11-libs/gdk-pixbuf |
180 |
- >=x11-libs/gtk+-2.24:2 |
181 |
- ) |
182 |
- gtk3? ( |
183 |
- dev-libs/glib:2 |
184 |
- dev-libs/gobject-introspection |
185 |
- >=x11-libs/gtk+-3.8:3 |
186 |
- ) |
187 |
- jemalloc? ( dev-libs/jemalloc ) |
188 |
- libreoffice_extensions_scripting-beanshell? ( dev-java/bsh ) |
189 |
- libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 ) |
190 |
- mysql? ( dev-db/mysql-connector-c++ ) |
191 |
- pdfimport? ( app-text/poppler:=[cxx] ) |
192 |
- postgres? ( >=dev-db/postgresql-9.0:*[kerberos] ) |
193 |
- telepathy? ( net-libs/telepathy-glib ) |
194 |
-" |
195 |
- |
196 |
-RDEPEND="${COMMON_DEPEND} |
197 |
- !app-office/libreoffice-bin |
198 |
- !app-office/libreoffice-bin-debug |
199 |
- !app-office/openoffice |
200 |
- media-fonts/liberation-fonts |
201 |
- media-fonts/libertine |
202 |
- media-fonts/urw-fonts |
203 |
- java? ( >=virtual/jre-1.6 ) |
204 |
- kde? ( $(add_kdeapps_dep kioclient) ) |
205 |
- vlc? ( media-video/vlc ) |
206 |
-" |
207 |
- |
208 |
-if [[ ${PV} != *9999* ]]; then |
209 |
- PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*" |
210 |
-else |
211 |
- # Translations are not reliable on live ebuilds |
212 |
- # rather force people to use english only. |
213 |
- PDEPEND="!app-office/libreoffice-l10n" |
214 |
-fi |
215 |
- |
216 |
-# FIXME: cppunit should be moved to test conditional |
217 |
-# after everything upstream is under gbuild |
218 |
-# as dmake execute tests right away |
219 |
-DEPEND="${COMMON_DEPEND} |
220 |
- !<sys-devel/make-3.82 |
221 |
- >=dev-libs/libatomic_ops-7.2d |
222 |
- >=dev-libs/libxml2-2.7.8 |
223 |
- dev-libs/libxslt |
224 |
- dev-perl/Archive-Zip |
225 |
- dev-util/cppunit |
226 |
- >=dev-util/gperf-3 |
227 |
- dev-util/intltool |
228 |
- >=dev-util/mdds-1.2.0:1= |
229 |
- media-libs/glm |
230 |
- sys-devel/bison |
231 |
- sys-devel/flex |
232 |
- sys-devel/gettext |
233 |
- sys-devel/ucpp |
234 |
- sys-libs/zlib |
235 |
- virtual/pkgconfig |
236 |
- x11-libs/libXt |
237 |
- x11-libs/libXtst |
238 |
- x11-proto/randrproto |
239 |
- x11-proto/xextproto |
240 |
- x11-proto/xineramaproto |
241 |
- x11-proto/xproto |
242 |
- java? ( |
243 |
- dev-java/ant-core |
244 |
- >=virtual/jdk-1.6 |
245 |
- ) |
246 |
- odk? ( >=app-doc/doxygen-1.8.4 ) |
247 |
- test? ( dev-util/cppunit ) |
248 |
-" |
249 |
- |
250 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE} |
251 |
- bluetooth? ( dbus ) |
252 |
- collada? ( gltf ) |
253 |
- eds? ( gnome ) |
254 |
- gnome? ( gtk ) |
255 |
- telepathy? ( gtk ) |
256 |
- libreoffice_extensions_nlpsolver? ( java ) |
257 |
- libreoffice_extensions_scripting-beanshell? ( java ) |
258 |
- libreoffice_extensions_scripting-javascript? ( java ) |
259 |
- libreoffice_extensions_wiki-publisher? ( java ) |
260 |
-" |
261 |
- |
262 |
-PATCHES=( |
263 |
- # from master branch |
264 |
- "${FILESDIR}/${PN}-5.2-icu58.patch" |
265 |
- |
266 |
- # not upstreamable stuff |
267 |
- "${FILESDIR}/${PN}-5.2-system-pyuno.patch" |
268 |
- |
269 |
- # TODO: upstream |
270 |
- "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch" |
271 |
-) |
272 |
- |
273 |
-pkg_pretend() { |
274 |
- use java || \ |
275 |
- ewarn "If you plan to use lbase application you should enable java or you will get various crashes." |
276 |
- |
277 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
278 |
- |
279 |
- CHECKREQS_MEMORY="512M" |
280 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
281 |
- CHECKREQS_DISK_BUILD="22G" |
282 |
- else |
283 |
- CHECKREQS_DISK_BUILD="6G" |
284 |
- fi |
285 |
- check-reqs_pkg_pretend |
286 |
- |
287 |
- if ! $(tc-is-clang) && { [[ $(gcc-major-version) -lt 4 ]] || |
288 |
- [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; } then |
289 |
- eerror "Compilation with gcc older than 4.7 is not supported" |
290 |
- die "Too old gcc found." |
291 |
- fi |
292 |
- fi |
293 |
- |
294 |
- # Ensure pg version but we have to be sure the pg is installed (first |
295 |
- # install on clean system) |
296 |
- if use postgres && has_version dev-db/postgresql; then |
297 |
- local pgslot=$(postgresql-config show) |
298 |
- if [[ ${pgslot//.} -lt 90 ]] ; then |
299 |
- eerror "PostgreSQL slot must be set to 9.0 or higher." |
300 |
- eerror " postgresql-config set 9.0" |
301 |
- die "PostgreSQL slot is not set to 9.0 or higher." |
302 |
- fi |
303 |
- fi |
304 |
-} |
305 |
- |
306 |
-pkg_setup() { |
307 |
- java-pkg-opt-2_pkg_setup |
308 |
- kde4-base_pkg_setup |
309 |
- python-single-r1_pkg_setup |
310 |
- xdg_environment_reset |
311 |
- |
312 |
- if [[ ${MERGE_TYPE} != binary ]]; then |
313 |
- CHECKREQS_MEMORY="512M" |
314 |
- if is-flagq "-g*" && ! is-flagq "-g*0" ; then |
315 |
- CHECKREQS_DISK_BUILD="22G" |
316 |
- else |
317 |
- CHECKREQS_DISK_BUILD="6G" |
318 |
- fi |
319 |
- check-reqs_pkg_setup |
320 |
- fi |
321 |
-} |
322 |
- |
323 |
-src_unpack() { |
324 |
- local mod |
325 |
- |
326 |
- [[ -n ${PATCHSET} ]] && unpack ${PATCHSET} |
327 |
- use branding && unpack "${BRANDING}" |
328 |
- |
329 |
- if [[ ${PV} != *9999* ]]; then |
330 |
- unpack "${P}.tar.xz" |
331 |
- for mod in ${MODULES}; do |
332 |
- [[ ${mod} == core ]] && continue |
333 |
- unpack "${PN}-${mod}-${PV}.tar.xz" |
334 |
- done |
335 |
- else |
336 |
- local base_uri branch checkout mypv |
337 |
- base_uri="git://anongit.freedesktop.org" |
338 |
- for mod in ${MODULES}; do |
339 |
- branch="master" |
340 |
- mypv=${PV/.9999} |
341 |
- [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}" |
342 |
- git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}" |
343 |
- [[ ${mod} != core ]] && checkout="${S}/${mod}" |
344 |
- [[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help |
345 |
- git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout} |
346 |
- done |
347 |
- fi |
348 |
-} |
349 |
- |
350 |
-src_prepare() { |
351 |
- [[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}" |
352 |
- eapply "${PATCHES[@]}" |
353 |
- eapply_user |
354 |
- |
355 |
- AT_M4DIR="m4" eautoreconf |
356 |
- # hack in the autogen.sh |
357 |
- touch autogen.lastrun |
358 |
- |
359 |
- # system pyuno mess |
360 |
- sed -i \ |
361 |
- -e "s:%eprefix%:${EPREFIX}:g" \ |
362 |
- -e "s:%libdir%:$(get_libdir):g" \ |
363 |
- pyuno/source/module/uno.py \ |
364 |
- pyuno/source/officehelper.py || die |
365 |
- # sed in the tests |
366 |
- sed -i \ |
367 |
- -e "s#all : build unitcheck#all : build#g" \ |
368 |
- solenv/gbuild/Module.mk || die |
369 |
- sed -i \ |
370 |
- -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \ |
371 |
- -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \ |
372 |
- Makefile.in || die |
373 |
- |
374 |
- sed -i \ |
375 |
- -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \ |
376 |
- -e "s,\$INSTALLDIRNAME.sh,${PN}," \ |
377 |
- bin/distro-install-desktop-integration || die |
378 |
- |
379 |
- if use branding; then |
380 |
- # hack... |
381 |
- mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die |
382 |
- fi |
383 |
- |
384 |
- # Don't list pdfimport support in desktop when built with none, bug # 605464 |
385 |
- if ! use pdfimport; then |
386 |
- sed -i \ |
387 |
- -e ":MimeType: s:application/pdf;::" \ |
388 |
- -e ":Keywords: s:pdf;::" \ |
389 |
- sysui/desktop/menus/draw.desktop || die |
390 |
- fi |
391 |
-} |
392 |
- |
393 |
-src_configure() { |
394 |
- local java_opts |
395 |
- local ext_opts |
396 |
- |
397 |
- # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys |
398 |
- # Note: these are for Gentoo use ONLY. For your own distribution, please get |
399 |
- # your own set of keys. Feel free to contact chromium@g.o for more info. |
400 |
- local google_default_client_id="329227923882.apps.googleusercontent.com" |
401 |
- local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
402 |
- |
403 |
- # optimization flags |
404 |
- export GMAKE_OPTIONS="${MAKEOPTS}" |
405 |
- # System python enablement: |
406 |
- export PYTHON_CFLAGS=$(python_get_CFLAGS) |
407 |
- export PYTHON_LIBS=$(python_get_LIBS) |
408 |
- |
409 |
- if use collada; then |
410 |
- export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser" |
411 |
- export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser" |
412 |
- fi |
413 |
- |
414 |
- # libreoffice extensions handling |
415 |
- for lo_xt in ${LO_EXTS}; do |
416 |
- if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then |
417 |
- ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})" |
418 |
- else |
419 |
- ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})" |
420 |
- fi |
421 |
- done |
422 |
- |
423 |
- if use java; then |
424 |
- # hsqldb: system one is too new |
425 |
- java_opts=" |
426 |
- --without-junit |
427 |
- --without-system-hsqldb |
428 |
- --with-ant-home="${ANT_HOME}" |
429 |
- --with-jdk-home=$(java-config --jdk-home 2>/dev/null) |
430 |
- --with-jvm-path="${EPREFIX}/usr/lib/" |
431 |
- " |
432 |
- |
433 |
- use libreoffice_extensions_scripting-beanshell && \ |
434 |
- java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)" |
435 |
- |
436 |
- use libreoffice_extensions_scripting-javascript && \ |
437 |
- java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)" |
438 |
- fi |
439 |
- |
440 |
- if use kde; then |
441 |
- # bug 544108, bug 599076 |
442 |
- export QMAKEQT4="$(qt4_get_bindir)/qmake" |
443 |
- export MOCQT4="$(qt4_get_bindir)/moc" |
444 |
- fi |
445 |
- |
446 |
- # system headers/libs/...: enforce using system packages |
447 |
- # --enable-cairo: ensure that cairo is always required |
448 |
- # --enable-graphite: disabling causes build breakages |
449 |
- # --enable-*-link: link to the library rather than just dlopen on runtime |
450 |
- # --enable-release-build: build the libreoffice as release |
451 |
- # --disable-fetch-external: prevent dowloading during compile phase |
452 |
- # --enable-extension-integration: enable any extension integration support |
453 |
- # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs |
454 |
- # --disable-report-builder: too much java packages pulled in without pkgs |
455 |
- # --without-system-sane: just sane.h header that is used for scan in writer, |
456 |
- # not linked or anything else, worthless to depend on |
457 |
- econf \ |
458 |
- --docdir="${EPREFIX}/usr/share/doc/${PF}/" \ |
459 |
- --with-system-dicts \ |
460 |
- --with-system-headers \ |
461 |
- --with-system-jars \ |
462 |
- --with-system-libs \ |
463 |
- --enable-cairo-canvas \ |
464 |
- --enable-graphite \ |
465 |
- --enable-largefile \ |
466 |
- --enable-mergelibs \ |
467 |
- --enable-neon \ |
468 |
- --enable-python=system \ |
469 |
- --enable-randr \ |
470 |
- --enable-release-build \ |
471 |
- --disable-ccache \ |
472 |
- --disable-crashdump \ |
473 |
- --disable-dependency-tracking \ |
474 |
- --disable-epm \ |
475 |
- --disable-fetch-external \ |
476 |
- --disable-gstreamer-0-10 \ |
477 |
- --disable-hardlink-deliver \ |
478 |
- --disable-online-update \ |
479 |
- --disable-report-builder \ |
480 |
- --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \ |
481 |
- --with-build-version="Gentoo official package" \ |
482 |
- --enable-extension-integration \ |
483 |
- --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \ |
484 |
- --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \ |
485 |
- --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \ |
486 |
- --with-external-tar="${DISTDIR}" \ |
487 |
- --with-lang="" \ |
488 |
- --with-parallelism=$(makeopts_jobs) \ |
489 |
- --with-system-ucpp \ |
490 |
- --with-vendor="Gentoo Foundation" \ |
491 |
- --with-x \ |
492 |
- --without-fonts \ |
493 |
- --without-myspell-dicts \ |
494 |
- --without-help \ |
495 |
- --with-helppack-integration \ |
496 |
- --without-sun-templates \ |
497 |
- --without-system-sane \ |
498 |
- $(use_enable bluetooth sdremote-bluetooth) \ |
499 |
- $(use_enable coinmp) \ |
500 |
- $(use_enable collada) \ |
501 |
- $(use_enable cups) \ |
502 |
- $(use_enable debug) \ |
503 |
- $(use_enable dbus) \ |
504 |
- $(use_enable eds evolution2) \ |
505 |
- $(use_enable firebird firebird-sdbc) \ |
506 |
- $(use_enable gltf) \ |
507 |
- $(use_enable gnome gio) \ |
508 |
- $(use_enable gnome dconf) \ |
509 |
- $(use_enable gstreamer gstreamer-1-0) \ |
510 |
- $(use_enable gtk) \ |
511 |
- $(use_enable gtk3) \ |
512 |
- $(use_enable kde kde4) \ |
513 |
- $(use_enable mysql ext-mariadb-connector) \ |
514 |
- $(use_enable odk) \ |
515 |
- $(use_enable pdfimport) \ |
516 |
- $(use_enable postgres postgresql-sdbc) \ |
517 |
- $(use_enable quickstarter systray) \ |
518 |
- $(use_enable telepathy) \ |
519 |
- $(use_enable vlc) \ |
520 |
- $(use_with coinmp system-coinmp) \ |
521 |
- $(use_with collada system-opencollada) \ |
522 |
- $(use_with gltf system-libgltf) \ |
523 |
- $(use_with googledrive gdrive-client-id ${google_default_client_id}) \ |
524 |
- $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) \ |
525 |
- $(use_with java) \ |
526 |
- $(use_with mysql system-mysql-cppconn) \ |
527 |
- $(use_with odk doxygen) \ |
528 |
- ${java_opts} \ |
529 |
- ${ext_opts} |
530 |
-} |
531 |
- |
532 |
-src_compile() { |
533 |
- # more and more LO stuff tries to use OpenGL, including tests during build |
534 |
- # bug 501508, bug 540624, bug 545974 and probably more |
535 |
- addpredict /dev/dri |
536 |
- addpredict /dev/ati |
537 |
- addpredict /dev/nvidiactl |
538 |
- |
539 |
- # hack for offlinehelp, this needs fixing upstream at some point |
540 |
- # it is broken because we send --without-help |
541 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
542 |
- ( |
543 |
- grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die |
544 |
- source "${T}/config_host.mk" 2&> /dev/null |
545 |
- |
546 |
- local path="${WORKDIR}/helpcontent2/source/auxiliary/" |
547 |
- mkdir -p "${path}" || die |
548 |
- |
549 |
- echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\"" |
550 |
- perl "${S}/helpcontent2/helpers/create_ilst.pl" \ |
551 |
- -dir=icon-themes/galaxy/res/helpimg \ |
552 |
- > "${path}/helpimg.ilst" |
553 |
- [[ -s "${path}/helpimg.ilst" ]] || \ |
554 |
- ewarn "The help images list is empty, something is fishy, report a bug." |
555 |
- ) |
556 |
- |
557 |
- local target |
558 |
- use test && target="build" || target="build-nocheck" |
559 |
- |
560 |
- # this is not a proper make script |
561 |
- make ${target} || die |
562 |
-} |
563 |
- |
564 |
-src_test() { |
565 |
- make unitcheck || die |
566 |
- make slowcheck || die |
567 |
-} |
568 |
- |
569 |
-src_install() { |
570 |
- # This is not Makefile so no buildserver |
571 |
- make DESTDIR="${D}" distro-pack-install -o build -o check || die |
572 |
- |
573 |
- # bug 593514 |
574 |
- if use gtk3; then |
575 |
- dosym /usr/$(get_libdir)/libreoffice/program/liblibreofficekitgtk.so \ |
576 |
- /usr/$(get_libdir)/liblibreofficekitgtk.so |
577 |
- fi |
578 |
- |
579 |
- # bash completion aliases |
580 |
- bashcomp_alias \ |
581 |
- libreoffice \ |
582 |
- unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice |
583 |
- |
584 |
- if use branding; then |
585 |
- insinto /usr/$(get_libdir)/${PN}/program |
586 |
- newins "${WORKDIR}/branding-sofficerc" sofficerc |
587 |
- dodir /etc/env.d |
588 |
- echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die |
589 |
- fi |
590 |
- |
591 |
- # Hack for offlinehelp, this needs fixing upstream at some point. |
592 |
- # It is broken because we send --without-help |
593 |
- # https://bugs.freedesktop.org/show_bug.cgi?id=46506 |
594 |
- insinto /usr/$(get_libdir)/libreoffice/help |
595 |
- doins xmlhelp/util/*.xsl |
596 |
- |
597 |
- # Remove desktop files to support old installs that can't parse mime |
598 |
- rm -r "${ED}"usr/share/mimelnk/ || die |
599 |
- |
600 |
- pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin |
601 |
- pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin |
602 |
-} |
603 |
- |
604 |
-pkg_preinst() { |
605 |
- # Cache updates - all handled by kde eclass for all environments |
606 |
- kde4-base_pkg_preinst |
607 |
-} |
608 |
- |
609 |
-pkg_postinst() { |
610 |
- kde4-base_pkg_postinst |
611 |
-} |
612 |
- |
613 |
-pkg_postrm() { |
614 |
- kde4-base_pkg_postrm |
615 |
-} |