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