Gentoo Archives: gentoo-commits

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