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: Sun, 28 Feb 2016 22:10:58
Message-Id: 1456697386.4d3d2f6f8048e08b8fb5ae3b6345815f021984eb.dilfridge@gentoo
1 commit: 4d3d2f6f8048e08b8fb5ae3b6345815f021984eb
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 22:09:46 2016 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 22:09:46 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d3d2f6f
7
8 app-office/libreoffice: Drop old
9
10 Package-Manager: portage-2.2.27
11
12 app-office/libreoffice/Manifest | 4 -
13 app-office/libreoffice/libreoffice-4.4.6.3.ebuild | 618 ---------------------
14 app-office/libreoffice/libreoffice-4.4.9999.ebuild | 618 ---------------------
15 app-office/libreoffice/libreoffice-5.0.4.2.ebuild | 608 --------------------
16 4 files changed, 1848 deletions(-)
17
18 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
19 index 5364ce9..2687867 100644
20 --- a/app-office/libreoffice/Manifest
21 +++ b/app-office/libreoffice/Manifest
22 @@ -6,14 +6,10 @@ DIST 4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 555
23 DIST 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip 1521926 SHA256 1fb458d6aab06932693cc8a9b6e4e70944ee1ff052fa63606e3131df34e21753 SHA512 ec5ae23c8fe2f5efc377f7a9665039afadf28b4d8f2791379296766a5fbc9a3bf7548f9b0e3b3b07762229ec733a92ccbb69791ee0318c9c6f78f8e847253d3f WHIRLPOOL 8e446eb44188046b0e90694feba232f42c2e9f13d0f43783a18de37c94b86ff919b994931125c5d8001ecd320c1f4db5da482847304aa61646600a3bb33144b4
24 DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 SHA256 75823776fb51a9c526af904f1503a7afaaab900fba83eda64f8a41073724c870 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a WHIRLPOOL 60b98d9af2c83c0cf12a5a60ba30957d335b8b967cac07971e1edbc787b9caecd4b3c5bb480e8b38fe8109c1cf74439ebafae130c976182c2c15399f38f5d28c
25 DIST d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz 16525605 SHA256 1f188ac03a8aa4663223eca8c82f91a55293d066d67127082e29a7dba1a98c9f SHA512 d08a7fe432e8df47d1d8992a45bb5f33149cb75b90eb74b2f2e457628d21a94b17eae0045096b053d2a866bf7710c775581c3e417b5dfaf66601aa18071b7305 WHIRLPOOL 95dc6ec0fb293c3538c1d51241283edf4e21647dcfd10229233ab7c3f13f7c78e6bb02c4d292a7cd2a2ec95575d775f0395e837bbc88ab4ddbaa5adfd62be2f0
26 -DIST libreoffice-4.4.6.3.tar.xz 164742068 SHA256 3f1bd66fedc34d60448f74e864c1cb79c3e44aeadbd1d0bb9544011d29f422ac SHA512 ffdbe9b46622d30b176f3120e84cd9bd3d0ea35b2759e1886bc3038455bf63a09305cc9c6ceba9e02a6279e12859c78e689ddfe02d60585115ebb0d3787db8bd WHIRLPOOL 9ce888415d9366e0402ac9d6bbb189d41a9bf42aa49bd8b1c90ef9071fbdb5ce4da7bd7029efcf538fd6cf4ec412d246e943b29cffbbd53499d50065103e2566
27 DIST libreoffice-5.0.3.2.tar.xz 167009360 SHA256 77f9c9569c1199d914f38afa01547c1874535c56ad74b19614a0afc3ad66d4bd SHA512 fe49577d26c2241a2e7d6f2e8faa25cacf77dc94dbe76f7dbbf1b208295695298d24842c73444b284e9af2a323b7536cce6727ffab0431ac22d80691a9902e62 WHIRLPOOL 2a907729d9f2b436a0206f558022d9ace69d494106e3c76f9c141d1202438ca7c662eca102595e8143cb4c70cece44447f99b1093e813249433684725f3287d0
28 -DIST libreoffice-5.0.4.2.tar.xz 167305516 SHA256 647440b70fc190a43a3373cfe5b06a87558ee07711e3d74cab8fb9d8cbac6dc8 SHA512 729403edaec752bbb933548e15bf1d417a307e58e0cc6db045bfb97eb99c65b29ae785d207a2611c25b2a55a1fa25e3f0905adbb6500f571fb2f345ccfa53be8 WHIRLPOOL e903d2a218416051002103a7670febca384db8e1e3d6d3e25bbe116629b24534e99d5571ecf4663a8aefe81d3d7211b9f2ec0604fa9c2b861487ed615fc5afc2
29 DIST libreoffice-5.0.5.2.tar.xz 167135308 SHA256 1ee729db840cf98bb00fed8c65550ccd6ced03123e3befcc511fe8df6f671b88 SHA512 f469d2faccd3e445324b0e8219a8a31b4dc8314a9b0559bfff06dd422eb6e6a9194dd4777391e71daa9bddf362cccca958defe165805f91e8334f95f36a011d2 WHIRLPOOL df4d74171c95f57a1a0fc7d25b7668abde5bb4eb8b326fd2179b4f311f5e63408919ca69bf2efe7effb2700488e11a0b4dc2059a5ce9c6a2de81d8f80314f598
30 DIST libreoffice-5.1.0.3.tar.xz 175720564 SHA256 b41b03f008dab3439bde31c1918f0477c035eab629166a79eeebb0bb6e8757b3 SHA512 ff068df64ca3a566d709e00e30d12d81095c88e9f05f785db805387ae5ff47dc7f8cd801ec6657a121fc6683fc7e32ff9abc508cae3b4f06d6ad22404a875de8 WHIRLPOOL 68930103295c2136915c015e0b62388586413fb62bc9c7bf2bb6cea7c7820449438af151c64a9efbd00e205b60e5860ee26a2b288495562a8bab1a33f008d064
31 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 SHA256 22722121be062742624e0634beae92289c75e6a99ed507d3bf0a05c5164e3c69 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f WHIRLPOOL 1f36652a52d501d6548cfa9aa013b3e3a1867aa2b0693d2274cf7816d4aa4e0cde3c7096cc71ed47cf74e5f96da2757bf537f553021f8fd86939accb227bf538
32 -DIST libreoffice-help-4.4.6.3.tar.xz 1875828 SHA256 d3b18c7dc4c68d152c298498f014e82183ade008d9d64a74353df306b286818b SHA512 6871252079738c7c1a44a17dba6aa842411c1c0a7e92a92dcfa3afe0e314edf9ba4d277bacbc558cf26362e94ff1e8370c91a00f81aee697528ba359f5559a3c WHIRLPOOL 2383ce2bf9a52529d7a4d34e8eeb3ea3d74ec547375ab8cb5556e694519976121528019f53ebd287d07ef40dd19a946acdf469ce0b75301c4ed51fc0add6f6f0
33 DIST libreoffice-help-5.0.3.2.tar.xz 1882292 SHA256 7e5535b8bd9be88170abdef187d3cf16d2cccdb1fdbd4404a22f1cff55bd953e SHA512 73de5507b0e7994a189d5580ad7bfdf842e9a3a10cc0a9bbe39eb11f20e47fa7016f6cf6748ad7c35260587cfc7078eaac6055b439292068a9d9783509bd715d WHIRLPOOL 1e7c79250a407c0eac5f1538290dfe1f04b22799bc04a295cd6dfbf0405dc4478283dea09ede52adf25077729852c11f9f74e98f257c47a8a30b350d83d532ac
34 -DIST libreoffice-help-5.0.4.2.tar.xz 1882964 SHA256 5d3c20037a8c2abc04aa3d5991a956538a8dad6669ce0ee0de56d78ebce5b200 SHA512 42c6c8361ec2c8b7d1652110818dcf162ad2508e17f8152713fe4a28439a103346144500a569c9b993ad7edab18637006c8787984756931ab8953868fc97cb44 WHIRLPOOL 238511d7a0ef16c22a774bbcb732da180e8d5d56a3d952a30c0da1cb1cf2154ece7efbe993409a9e6bcae8c2e5ebba049dcf68058a8c151a967f0d6df1dce93b
35 DIST libreoffice-help-5.0.5.2.tar.xz 1882884 SHA256 6664496d23d3e7e56dbca22b7cd9a2cf66e0e91609a20976870e0e235540c02a SHA512 63a27a160a98360d04f062c4a9b123ed0e89a4e081aaa03e50b0df7ef04c4396977401f909541a5f3510a3c2d7dbfc4c52839a1a4adc1a29bae8dd6a8056a170 WHIRLPOOL b9aae3d2f622ebb27bd9943d8111ec9c3fcfc77b35b1b93f294ed8fe7106ab001a10260c7f9ed45b5f9ca65229d15f25a3a92f6000682b6ae651c0cf16e81fed
36 DIST libreoffice-help-5.1.0.3.tar.xz 1903996 SHA256 c2e9dff6a930637ca9b203dc31b7f87b17a03419891201a386e81bfbbdc1b447 SHA512 5a7f9b59d14aa8b3f760abc835f7541d2458b6c2239a42653db91681d82a8f90bfc5c593c74ed086a64de8078eea6367ecd27f0ba07ce37fb13f6dd935f5a438 WHIRLPOOL 6d650f0faf230184a2db7e20440e755b0d05bbda1374bb4fc1bb3ed832d89b4f115bda4fad9f0a280d91d12aec1730b5b9dd76ef1d6acb417a03f7d3f6c4f320
37
38 diff --git a/app-office/libreoffice/libreoffice-4.4.6.3.ebuild b/app-office/libreoffice/libreoffice-4.4.6.3.ebuild
39 deleted file mode 100644
40 index 1dad190..0000000
41 --- a/app-office/libreoffice/libreoffice-4.4.6.3.ebuild
42 +++ /dev/null
43 @@ -1,618 +0,0 @@
44 -# Copyright 1999-2015 Gentoo Foundation
45 -# Distributed under the terms of the GNU General Public License v2
46 -# $Id$
47 -
48 -EAPI=5
49 -
50 -KDE_REQUIRED="optional"
51 -QT_MINIMAL="4.7.4"
52 -KDE_SCM="git"
53 -CMAKE_REQUIRED="never"
54 -
55 -PYTHON_COMPAT=( python{2_7,3_4} )
56 -PYTHON_REQ_USE="threads,xml"
57 -
58 -# experimental ; release ; old
59 -# Usually the tarballs are moved a lot so this should make
60 -# everyone happy.
61 -DEV_URI="
62 - http://dev-builds.libreoffice.org/pre-releases/src
63 - http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
64 - http://download.documentfoundation.org/libreoffice/old/${PV}/
65 -"
66 -EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
67 -ADDONS_URI="http://dev-www.libreoffice.org/src/"
68 -
69 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
70 -# PATCHSET="${P}-patchset-01.tar.xz"
71 -
72 -[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
73 -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}
74 -unset SCM_ECLASS
75 -
76 -DESCRIPTION="A full office productivity suite"
77 -HOMEPAGE="http://www.libreoffice.org"
78 -SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
79 -[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
80 -
81 -# Split modules following git/tarballs
82 -# Core MUST be first!
83 -# Help is used for the image generator
84 -MODULES="core help"
85 -# Only release has the tarballs
86 -if [[ ${PV} != *9999* ]]; then
87 - for i in ${DEV_URI}; do
88 - for mod in ${MODULES}; do
89 - if [[ ${mod} == core ]]; then
90 - SRC_URI+=" ${i}/${P}.tar.xz"
91 - else
92 - SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
93 - fi
94 - done
95 - unset mod
96 - done
97 - unset i
98 -fi
99 -unset DEV_URI
100 -
101 -# Really required addons
102 -# These are bundles that can't be removed for now due to huge patchsets.
103 -# If you want them gone, patches are welcome.
104 -ADDONS_SRC=(
105 - "${ADDONS_URI}/d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz"
106 - "${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
107 - "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
108 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
109 - # no release for 8 years, should we package it?
110 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
111 - # Does not build with 1.6 rhino at all
112 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
113 - # requirement of rhino
114 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
115 - # not packageable
116 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
117 -)
118 -SRC_URI+=" ${ADDONS_SRC[*]}"
119 -
120 -unset ADDONS_URI
121 -unset EXT_URI
122 -unset ADDONS_SRC
123 -
124 -IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer
125 -+gtk gtk3 jemalloc kde mysql odk postgres telepathy test vlc"
126 -
127 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
128 -# Unpackaged separate extensions:
129 -# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
130 -# hunart: only on ooo extensions -> fubared download path somewhere on sf
131 -# numbertext, typo, validator, watch-window: ^^
132 -# oooblogger: no homepage or anything
133 -# Extensions that need extra work:
134 -for lo_xt in ${LO_EXTS}; do
135 - IUSE+=" libreoffice_extensions_${lo_xt}"
136 -done
137 -unset lo_xt
138 -
139 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
140 -SLOT="0"
141 -[[ ${PV} == *9999* ]] || \
142 -KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
143 -
144 -COMMON_DEPEND="
145 - ${PYTHON_DEPS}
146 - app-arch/zip
147 - app-arch/unzip
148 - >=app-text/hunspell-1.3.2-r3
149 - app-text/mythes
150 - >=app-text/libabw-0.1.0
151 - >=app-text/libexttextcat-3.2
152 - >=app-text/libebook-0.1.1
153 - >=app-text/libetonyek-0.1.1
154 - app-text/liblangtag
155 - >=app-text/libmspub-0.1.0
156 - >=app-text/libmwaw-0.3.4
157 - >=app-text/libodfgen-0.1.0
158 - app-text/libwpd:0.10[tools]
159 - app-text/libwpg:0.3
160 - =app-text/libwps-0.3*
161 - >=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
162 - >=dev-cpp/clucene-2.3.3.4-r2
163 - =dev-cpp/libcmis-0.5*
164 - dev-db/unixODBC
165 - >=dev-libs/boost-1.55:=
166 - dev-libs/expat
167 - >=dev-libs/hyphen-2.7.1
168 - >=dev-libs/icu-4.8.1.1:=
169 - =dev-libs/liborcus-0.7*
170 - >=dev-libs/librevenge-0.0.1
171 - >=dev-libs/nspr-4.8.8
172 - >=dev-libs/nss-3.12.9
173 - >=dev-lang/perl-5.0
174 - >=dev-libs/openssl-1.0.0d:0
175 - >=dev-libs/redland-1.0.16
176 - media-gfx/graphite2
177 - >=media-libs/fontconfig-2.8.0
178 - media-libs/freetype:2
179 - >=media-libs/glew-1.10
180 - >=media-libs/harfbuzz-0.9.18:=[icu(+)]
181 - media-libs/lcms:2
182 - >=media-libs/libpng-1.4:0=
183 - >=media-libs/libcdr-0.1.0
184 - >=media-libs/libfreehand-0.1.0
185 - media-libs/libpagemaker
186 - >=media-libs/libvisio-0.1.0
187 - >=net-misc/curl-7.21.4
188 - net-libs/neon
189 - net-nds/openldap
190 - sci-mathematics/lpsolve
191 - virtual/jpeg:0
192 - >=x11-libs/cairo-1.10.0[X]
193 - x11-libs/libXinerama
194 - x11-libs/libXrandr
195 - x11-libs/libXrender
196 - virtual/glu
197 - virtual/opengl
198 - bluetooth? ( net-wireless/bluez )
199 - coinmp? ( sci-libs/coinor-mp )
200 - collada? ( >=media-libs/opencollada-1.2.2_p20150207 )
201 - cups? ( net-print/cups )
202 - dbus? ( >=dev-libs/dbus-glib-0.92 )
203 - eds? ( gnome-extra/evolution-data-server )
204 - firebird? ( >=dev-db/firebird-2.5 )
205 - gltf? ( media-libs/libgltf )
206 - gnome? ( gnome-base/gconf:2 )
207 - gtk? (
208 - x11-libs/gdk-pixbuf[X]
209 - >=x11-libs/gtk+-2.24:2
210 - )
211 - gtk3? ( >=x11-libs/gtk+-3.2:3 )
212 - gstreamer? (
213 - media-libs/gstreamer:1.0
214 - media-libs/gst-plugins-base:1.0
215 - )
216 - jemalloc? ( dev-libs/jemalloc )
217 - libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
218 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
219 - libreoffice_extensions_wiki-publisher? (
220 - dev-java/commons-codec:0
221 - dev-java/commons-httpclient:3
222 - dev-java/commons-lang:2.1
223 - dev-java/commons-logging:0
224 - )
225 - mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
226 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
227 - telepathy? (
228 - dev-libs/glib:2
229 - >=net-libs/telepathy-glib-0.18.0
230 - >=x11-libs/gtk+-2.24:2
231 - )
232 -"
233 -
234 -RDEPEND="${COMMON_DEPEND}
235 - !app-office/libreoffice-bin
236 - !app-office/libreoffice-bin-debug
237 - !<app-office/openoffice-bin-3.4.0-r1
238 - !app-office/openoffice
239 - media-fonts/libertine
240 - media-fonts/liberation-fonts
241 - media-fonts/urw-fonts
242 - java? ( >=virtual/jre-1.6 )
243 - kde? ( $(add_kdeapps_dep kioclient) )
244 - vlc? ( media-video/vlc )
245 -"
246 -
247 -if [[ ${PV} != *9999* ]]; then
248 - PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
249 -else
250 - # Translations are not reliable on live ebuilds
251 - # rather force people to use english only.
252 - PDEPEND="!app-office/libreoffice-l10n"
253 -fi
254 -
255 -# FIXME: cppunit should be moved to test conditional
256 -# after everything upstream is under gbuild
257 -# as dmake execute tests right away
258 -DEPEND="${COMMON_DEPEND}
259 - >=dev-libs/libatomic_ops-7.2d
260 - >=dev-libs/libxml2-2.7.8
261 - dev-libs/libxslt
262 - dev-perl/Archive-Zip
263 - dev-util/cppunit
264 - >=dev-util/gperf-3
265 - dev-util/intltool
266 - >=dev-util/mdds-0.11.2:0=
267 - media-libs/glm
268 - net-misc/npapi-sdk
269 - >=sys-apps/findutils-4.4.2
270 - sys-devel/bison
271 - sys-apps/coreutils
272 - sys-devel/flex
273 - sys-devel/gettext
274 - >=sys-devel/make-3.82
275 - sys-devel/ucpp
276 - sys-libs/zlib
277 - virtual/pkgconfig
278 - x11-libs/libXt
279 - x11-libs/libXtst
280 - x11-proto/randrproto
281 - x11-proto/xextproto
282 - x11-proto/xineramaproto
283 - x11-proto/xproto
284 - java? (
285 - >=virtual/jdk-1.6
286 - >=dev-java/ant-core-1.7
287 - )
288 - odk? ( >=app-doc/doxygen-1.8.4 )
289 - test? ( dev-util/cppunit )
290 -"
291 -
292 -REQUIRED_USE="
293 - ${PYTHON_REQUIRED_USE}
294 - bluetooth? ( dbus )
295 - collada? ( gltf )
296 - gnome? ( gtk )
297 - eds? ( gnome )
298 - telepathy? ( gtk )
299 - libreoffice_extensions_nlpsolver? ( java )
300 - libreoffice_extensions_scripting-beanshell? ( java )
301 - libreoffice_extensions_scripting-javascript? ( java )
302 - libreoffice_extensions_wiki-publisher? ( java )
303 -"
304 -
305 -PATCHES=(
306 - # not upstreamable stuff
307 - "${FILESDIR}/${PN}-4.4-system-pyuno.patch"
308 -
309 - # from 5.0 branch
310 - "${FILESDIR}/${PN}-4.3.5.2-remove-bashisms.patch" # bug 525454
311 - "${FILESDIR}/${PN}-4.4.0.3-telepathy-build-fix.patch"
312 - "${FILESDIR}/${PN}-4.4.1.2-add-kde4-open-url-script.patch"
313 - "${FILESDIR}/${PN}-4.4.4.3-improve-KDE4FilePicker.patch"
314 - "${FILESDIR}/${PN}-4.4.4.3-fix-KDE4-FileDialog.patch"
315 - "${FILESDIR}/${PN}-4.4.4.3-cleanup-IsNativeControlSupported.patch"
316 -
317 - # from master branch
318 - "${FILESDIR}/${PN}-4.4.5.2-fix-KDE4-listbox-regression.patch"
319 -)
320 -
321 -CHECKREQS_MEMORY="512M"
322 -if [[ ${MERGE_TYPE} != binary ]] ; then CHECKREQS_DISK_BUILD="6G" ; fi
323 -
324 -pkg_pretend() {
325 - local pgslot
326 -
327 - use java || \
328 - ewarn "If you plan to use lbase application you should enable java or you will get various crashes."
329 -
330 - if [[ ${MERGE_TYPE} != binary ]]; then
331 - check-reqs_pkg_pretend
332 -
333 - if [[ $(gcc-major-version) -lt 4 ]] || {
334 - [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]]; }
335 - then
336 - eerror "Compilation with gcc older than 4.6 is not supported"
337 - die "Too old gcc found."
338 - fi
339 - fi
340 -
341 - # Ensure pg version but we have to be sure the pg is installed (first
342 - # install on clean system)
343 - if use postgres && has_version dev-db/postgresql; then
344 - pgslot=$(postgresql-config show)
345 - if [[ ${pgslot//.} -lt 90 ]] ; then
346 - eerror "PostgreSQL slot must be set to 9.0 or higher."
347 - eerror " postgresql-config set 9.0"
348 - die "PostgreSQL slot is not set to 9.0 or higher."
349 - fi
350 - fi
351 -}
352 -
353 -pkg_setup() {
354 - java-pkg-opt-2_pkg_setup
355 - kde4-base_pkg_setup
356 - python-single-r1_pkg_setup
357 -
358 - [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
359 -}
360 -
361 -src_unpack() {
362 - local mod
363 -
364 - [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
365 - use branding && unpack "${BRANDING}"
366 -
367 - if [[ ${PV} != *9999* ]]; then
368 - unpack "${P}.tar.xz"
369 - for mod in ${MODULES}; do
370 - [[ ${mod} == core ]] && continue
371 - unpack "${PN}-${mod}-${PV}.tar.xz"
372 - done
373 - else
374 - local base_uri branch checkout mypv
375 - base_uri="git://anongit.freedesktop.org"
376 - for mod in ${MODULES}; do
377 - branch="master"
378 - mypv=${PV/.9999}
379 - [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
380 - git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}"
381 - [[ ${mod} != core ]] && checkout="${S}/${mod}"
382 - [[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help
383 - git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout}
384 - done
385 - fi
386 -}
387 -
388 -src_prepare() {
389 - # patchset
390 - if [[ -n ${PATCHSET} ]]; then
391 - EPATCH_FORCE="yes" \
392 - EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
393 - EPATCH_SUFFIX="patch" \
394 - epatch
395 - fi
396 -
397 - epatch "${PATCHES[@]}"
398 - epatch_user
399 -
400 - AT_M4DIR="m4" eautoreconf
401 - # hack in the autogen.sh
402 - touch autogen.lastrun
403 -
404 - # system pyuno mess
405 - sed -i \
406 - -e "s:%eprefix%:${EPREFIX}:g" \
407 - -e "s:%libdir%:$(get_libdir):g" \
408 - pyuno/source/module/uno.py \
409 - pyuno/source/officehelper.py || die
410 - # sed in the tests
411 - sed -i \
412 - -e "s#all : build unitcheck#all : build#g" \
413 - solenv/gbuild/Module.mk || die
414 - sed -i \
415 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
416 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
417 - Makefile.in || die
418 -
419 - if use branding; then
420 - # hack...
421 - mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
422 - fi
423 -}
424 -
425 -src_configure() {
426 - local java_opts
427 - local internal_libs
428 - local lo_ext
429 - local ext_opts
430 -
431 - # optimization flags
432 - export GMAKE_OPTIONS="${MAKEOPTS}"
433 - # System python 2.7 enablement:
434 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
435 - export PYTHON_LIBS=$(python_get_LIBS)
436 -
437 - if use collada; then
438 - export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
439 - export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
440 - fi
441 -
442 - # sane: just sane.h header that is used for scan in writer, not
443 - # linked or anything else, worthless to depend on
444 - # vigra: just uses templates from there
445 - # it is serious pain in the ass for packaging
446 - # should be replaced by boost::gil if someone interested
447 - internal_libs+="
448 - --without-system-sane
449 - --without-system-vigra
450 - "
451 -
452 - # libreoffice extensions handling
453 - for lo_xt in ${LO_EXTS}; do
454 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
455 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
456 - else
457 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
458 - fi
459 - done
460 -
461 - if use java; then
462 - # hsqldb: system one is too new
463 - java_opts="
464 - --without-junit
465 - --without-system-hsqldb
466 - --with-ant-home="${ANT_HOME}"
467 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
468 - --with-jvm-path="${EPREFIX}/usr/lib/"
469 - "
470 -
471 - use libreoffice_extensions_scripting-beanshell && \
472 - java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
473 -
474 - use libreoffice_extensions_scripting-javascript && \
475 - java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
476 -
477 - if use libreoffice_extensions_wiki-publisher; then
478 - java_opts+="
479 - --with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
480 - --with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
481 - --with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
482 - --with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
483 - "
484 - fi
485 - fi
486 -
487 - # system headers/libs/...: enforce using system packages
488 - # --enable-cairo: ensure that cairo is always required
489 - # --enable-graphite: disabling causes build breakages
490 - # --enable-*-link: link to the library rather than just dlopen on runtime
491 - # --enable-release-build: build the libreoffice as release
492 - # --disable-fetch-external: prevent dowloading during compile phase
493 - # --disable-gnome-vfs: old gnome virtual fs support
494 - # --disable-kdeab: kde3 adressbook
495 - # --disable-kde: kde3 support
496 - # --disable-systray: quickstarter does not actually work at all so do not
497 - # promote it
498 - # --enable-extension-integration: enable any extension integration support
499 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
500 - # --disable-report-builder: too much java packages pulled in without pkgs
501 - econf \
502 - --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
503 - --with-system-headers \
504 - --with-system-libs \
505 - --with-system-jars \
506 - --with-system-dicts \
507 - --enable-cairo-canvas \
508 - --enable-graphite \
509 - --enable-largefile \
510 - --enable-mergelibs \
511 - --enable-neon \
512 - --enable-python=system \
513 - --enable-randr \
514 - --enable-randr-link \
515 - --enable-release-build \
516 - --disable-hardlink-deliver \
517 - --disable-ccache \
518 - --disable-crashdump \
519 - --disable-dependency-tracking \
520 - --disable-epm \
521 - --disable-fetch-external \
522 - --disable-gnome-vfs \
523 - --disable-gstreamer-0-10 \
524 - --disable-report-builder \
525 - --disable-kdeab \
526 - --disable-kde \
527 - --disable-online-update \
528 - --disable-systray \
529 - --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
530 - --with-build-version="Gentoo official package" \
531 - --enable-extension-integration \
532 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
533 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
534 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
535 - --with-external-tar="${DISTDIR}" \
536 - --with-lang="" \
537 - --with-parallelism=$(makeopts_jobs) \
538 - --with-system-ucpp \
539 - --with-vendor="Gentoo Foundation" \
540 - --with-x \
541 - --without-fonts \
542 - --without-myspell-dicts \
543 - --without-help \
544 - --with-helppack-integration \
545 - --without-sun-templates \
546 - $(use_enable bluetooth sdremote-bluetooth) \
547 - $(use_enable coinmp) \
548 - $(use_enable collada) \
549 - $(use_enable cups) \
550 - $(use_enable debug) \
551 - $(use_enable dbus) \
552 - $(use_enable eds evolution2) \
553 - $(use_enable firebird firebird-sdbc) \
554 - $(use_enable gltf) \
555 - $(use_enable gnome gconf) \
556 - $(use_enable gnome gio) \
557 - $(use_enable gnome lockdown) \
558 - $(use_enable gstreamer gstreamer-1-0) \
559 - $(use_enable gtk) \
560 - $(use_enable gtk3) \
561 - $(use_enable kde kde4) \
562 - $(use_enable mysql ext-mariadb-connector) \
563 - $(use_enable odk) \
564 - $(use_enable postgres postgresql-sdbc) \
565 - $(use_enable telepathy) \
566 - $(use_enable vlc) \
567 - $(use_with coinmp system-coinmp) \
568 - $(use_with collada system-opencollada) \
569 - $(use_with gltf system-libgltf) \
570 - $(use_with java) \
571 - $(use_with mysql system-mysql-cppconn) \
572 - $(use_with odk doxygen) \
573 - ${internal_libs} \
574 - ${java_opts} \
575 - ${ext_opts}
576 -}
577 -
578 -src_compile() {
579 - # more and more LO stuff tries to use OpenGL, including tests during build
580 - # bug 501508, bug 540624, bug 545974 and probably more
581 - addpredict /dev/dri
582 - addpredict /dev/ati
583 - addpredict /dev/nvidiactl
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 - (
589 - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
590 - source "${T}/config_host.mk" 2&> /dev/null
591 -
592 - local path="${WORKDIR}/helpcontent2/source/auxiliary/"
593 - mkdir -p "${path}" || die
594 -
595 - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
596 - perl "${S}/helpcontent2/helpers/create_ilst.pl" \
597 - -dir=icon-themes/galaxy/res/helpimg \
598 - > "${path}/helpimg.ilst"
599 - [[ -s "${path}/helpimg.ilst" ]] || \
600 - ewarn "The help images list is empty, something is fishy, report a bug."
601 - )
602 -
603 - local target
604 - use test && target="build" || target="build-nocheck"
605 -
606 - # this is not a proper make script
607 - make ${target} || die
608 -}
609 -
610 -src_test() {
611 - make unitcheck || die
612 - make slowcheck || die
613 -}
614 -
615 -src_install() {
616 - # This is not Makefile so no buildserver
617 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
618 -
619 - # Fix bash completion placement
620 - newbashcomp "${ED}"etc/bash_completion.d/libreoffice.sh ${PN}
621 - bashcomp_alias \
622 - libreoffice \
623 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
624 - rm -rf "${ED}"etc/ || die
625 -
626 - if use branding; then
627 - insinto /usr/$(get_libdir)/${PN}/program
628 - newins "${WORKDIR}/branding-sofficerc" sofficerc
629 - dodir /etc/env.d
630 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
631 - fi
632 -
633 - # Hack for offlinehelp, this needs fixing upstream at some point.
634 - # It is broken because we send --without-help
635 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
636 - insinto /usr/$(get_libdir)/libreoffice/help
637 - doins xmlhelp/util/*.xsl
638 -
639 - # Remove desktop files for support to old installs that can't parse mime
640 - rm -r "${ED}"usr/share/mimelnk/ || die
641 -
642 - # FIXME: Hack add missing file
643 - exeinto /usr/$(get_libdir)/${PN}/program
644 - doexe "${S}"/instdir/program/libsaxlo.so
645 -
646 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
647 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
648 -}
649 -
650 -pkg_preinst() {
651 - # Cache updates - all handled by kde eclass for all environments
652 - kde4-base_pkg_preinst
653 -}
654 -
655 -pkg_postinst() {
656 - kde4-base_pkg_postinst
657 -}
658 -
659 -pkg_postrm() {
660 - kde4-base_pkg_postrm
661 -}
662
663 diff --git a/app-office/libreoffice/libreoffice-4.4.9999.ebuild b/app-office/libreoffice/libreoffice-4.4.9999.ebuild
664 deleted file mode 100644
665 index 1dad190..0000000
666 --- a/app-office/libreoffice/libreoffice-4.4.9999.ebuild
667 +++ /dev/null
668 @@ -1,618 +0,0 @@
669 -# Copyright 1999-2015 Gentoo Foundation
670 -# Distributed under the terms of the GNU General Public License v2
671 -# $Id$
672 -
673 -EAPI=5
674 -
675 -KDE_REQUIRED="optional"
676 -QT_MINIMAL="4.7.4"
677 -KDE_SCM="git"
678 -CMAKE_REQUIRED="never"
679 -
680 -PYTHON_COMPAT=( python{2_7,3_4} )
681 -PYTHON_REQ_USE="threads,xml"
682 -
683 -# experimental ; release ; old
684 -# Usually the tarballs are moved a lot so this should make
685 -# everyone happy.
686 -DEV_URI="
687 - http://dev-builds.libreoffice.org/pre-releases/src
688 - http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
689 - http://download.documentfoundation.org/libreoffice/old/${PV}/
690 -"
691 -EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
692 -ADDONS_URI="http://dev-www.libreoffice.org/src/"
693 -
694 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
695 -# PATCHSET="${P}-patchset-01.tar.xz"
696 -
697 -[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
698 -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}
699 -unset SCM_ECLASS
700 -
701 -DESCRIPTION="A full office productivity suite"
702 -HOMEPAGE="http://www.libreoffice.org"
703 -SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
704 -[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
705 -
706 -# Split modules following git/tarballs
707 -# Core MUST be first!
708 -# Help is used for the image generator
709 -MODULES="core help"
710 -# Only release has the tarballs
711 -if [[ ${PV} != *9999* ]]; then
712 - for i in ${DEV_URI}; do
713 - for mod in ${MODULES}; do
714 - if [[ ${mod} == core ]]; then
715 - SRC_URI+=" ${i}/${P}.tar.xz"
716 - else
717 - SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
718 - fi
719 - done
720 - unset mod
721 - done
722 - unset i
723 -fi
724 -unset DEV_URI
725 -
726 -# Really required addons
727 -# These are bundles that can't be removed for now due to huge patchsets.
728 -# If you want them gone, patches are welcome.
729 -ADDONS_SRC=(
730 - "${ADDONS_URI}/d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz"
731 - "${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
732 - "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
733 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
734 - # no release for 8 years, should we package it?
735 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
736 - # Does not build with 1.6 rhino at all
737 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
738 - # requirement of rhino
739 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
740 - # not packageable
741 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
742 -)
743 -SRC_URI+=" ${ADDONS_SRC[*]}"
744 -
745 -unset ADDONS_URI
746 -unset EXT_URI
747 -unset ADDONS_SRC
748 -
749 -IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer
750 -+gtk gtk3 jemalloc kde mysql odk postgres telepathy test vlc"
751 -
752 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
753 -# Unpackaged separate extensions:
754 -# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
755 -# hunart: only on ooo extensions -> fubared download path somewhere on sf
756 -# numbertext, typo, validator, watch-window: ^^
757 -# oooblogger: no homepage or anything
758 -# Extensions that need extra work:
759 -for lo_xt in ${LO_EXTS}; do
760 - IUSE+=" libreoffice_extensions_${lo_xt}"
761 -done
762 -unset lo_xt
763 -
764 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
765 -SLOT="0"
766 -[[ ${PV} == *9999* ]] || \
767 -KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
768 -
769 -COMMON_DEPEND="
770 - ${PYTHON_DEPS}
771 - app-arch/zip
772 - app-arch/unzip
773 - >=app-text/hunspell-1.3.2-r3
774 - app-text/mythes
775 - >=app-text/libabw-0.1.0
776 - >=app-text/libexttextcat-3.2
777 - >=app-text/libebook-0.1.1
778 - >=app-text/libetonyek-0.1.1
779 - app-text/liblangtag
780 - >=app-text/libmspub-0.1.0
781 - >=app-text/libmwaw-0.3.4
782 - >=app-text/libodfgen-0.1.0
783 - app-text/libwpd:0.10[tools]
784 - app-text/libwpg:0.3
785 - =app-text/libwps-0.3*
786 - >=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
787 - >=dev-cpp/clucene-2.3.3.4-r2
788 - =dev-cpp/libcmis-0.5*
789 - dev-db/unixODBC
790 - >=dev-libs/boost-1.55:=
791 - dev-libs/expat
792 - >=dev-libs/hyphen-2.7.1
793 - >=dev-libs/icu-4.8.1.1:=
794 - =dev-libs/liborcus-0.7*
795 - >=dev-libs/librevenge-0.0.1
796 - >=dev-libs/nspr-4.8.8
797 - >=dev-libs/nss-3.12.9
798 - >=dev-lang/perl-5.0
799 - >=dev-libs/openssl-1.0.0d:0
800 - >=dev-libs/redland-1.0.16
801 - media-gfx/graphite2
802 - >=media-libs/fontconfig-2.8.0
803 - media-libs/freetype:2
804 - >=media-libs/glew-1.10
805 - >=media-libs/harfbuzz-0.9.18:=[icu(+)]
806 - media-libs/lcms:2
807 - >=media-libs/libpng-1.4:0=
808 - >=media-libs/libcdr-0.1.0
809 - >=media-libs/libfreehand-0.1.0
810 - media-libs/libpagemaker
811 - >=media-libs/libvisio-0.1.0
812 - >=net-misc/curl-7.21.4
813 - net-libs/neon
814 - net-nds/openldap
815 - sci-mathematics/lpsolve
816 - virtual/jpeg:0
817 - >=x11-libs/cairo-1.10.0[X]
818 - x11-libs/libXinerama
819 - x11-libs/libXrandr
820 - x11-libs/libXrender
821 - virtual/glu
822 - virtual/opengl
823 - bluetooth? ( net-wireless/bluez )
824 - coinmp? ( sci-libs/coinor-mp )
825 - collada? ( >=media-libs/opencollada-1.2.2_p20150207 )
826 - cups? ( net-print/cups )
827 - dbus? ( >=dev-libs/dbus-glib-0.92 )
828 - eds? ( gnome-extra/evolution-data-server )
829 - firebird? ( >=dev-db/firebird-2.5 )
830 - gltf? ( media-libs/libgltf )
831 - gnome? ( gnome-base/gconf:2 )
832 - gtk? (
833 - x11-libs/gdk-pixbuf[X]
834 - >=x11-libs/gtk+-2.24:2
835 - )
836 - gtk3? ( >=x11-libs/gtk+-3.2:3 )
837 - gstreamer? (
838 - media-libs/gstreamer:1.0
839 - media-libs/gst-plugins-base:1.0
840 - )
841 - jemalloc? ( dev-libs/jemalloc )
842 - libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
843 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
844 - libreoffice_extensions_wiki-publisher? (
845 - dev-java/commons-codec:0
846 - dev-java/commons-httpclient:3
847 - dev-java/commons-lang:2.1
848 - dev-java/commons-logging:0
849 - )
850 - mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
851 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
852 - telepathy? (
853 - dev-libs/glib:2
854 - >=net-libs/telepathy-glib-0.18.0
855 - >=x11-libs/gtk+-2.24:2
856 - )
857 -"
858 -
859 -RDEPEND="${COMMON_DEPEND}
860 - !app-office/libreoffice-bin
861 - !app-office/libreoffice-bin-debug
862 - !<app-office/openoffice-bin-3.4.0-r1
863 - !app-office/openoffice
864 - media-fonts/libertine
865 - media-fonts/liberation-fonts
866 - media-fonts/urw-fonts
867 - java? ( >=virtual/jre-1.6 )
868 - kde? ( $(add_kdeapps_dep kioclient) )
869 - vlc? ( media-video/vlc )
870 -"
871 -
872 -if [[ ${PV} != *9999* ]]; then
873 - PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
874 -else
875 - # Translations are not reliable on live ebuilds
876 - # rather force people to use english only.
877 - PDEPEND="!app-office/libreoffice-l10n"
878 -fi
879 -
880 -# FIXME: cppunit should be moved to test conditional
881 -# after everything upstream is under gbuild
882 -# as dmake execute tests right away
883 -DEPEND="${COMMON_DEPEND}
884 - >=dev-libs/libatomic_ops-7.2d
885 - >=dev-libs/libxml2-2.7.8
886 - dev-libs/libxslt
887 - dev-perl/Archive-Zip
888 - dev-util/cppunit
889 - >=dev-util/gperf-3
890 - dev-util/intltool
891 - >=dev-util/mdds-0.11.2:0=
892 - media-libs/glm
893 - net-misc/npapi-sdk
894 - >=sys-apps/findutils-4.4.2
895 - sys-devel/bison
896 - sys-apps/coreutils
897 - sys-devel/flex
898 - sys-devel/gettext
899 - >=sys-devel/make-3.82
900 - sys-devel/ucpp
901 - sys-libs/zlib
902 - virtual/pkgconfig
903 - x11-libs/libXt
904 - x11-libs/libXtst
905 - x11-proto/randrproto
906 - x11-proto/xextproto
907 - x11-proto/xineramaproto
908 - x11-proto/xproto
909 - java? (
910 - >=virtual/jdk-1.6
911 - >=dev-java/ant-core-1.7
912 - )
913 - odk? ( >=app-doc/doxygen-1.8.4 )
914 - test? ( dev-util/cppunit )
915 -"
916 -
917 -REQUIRED_USE="
918 - ${PYTHON_REQUIRED_USE}
919 - bluetooth? ( dbus )
920 - collada? ( gltf )
921 - gnome? ( gtk )
922 - eds? ( gnome )
923 - telepathy? ( gtk )
924 - libreoffice_extensions_nlpsolver? ( java )
925 - libreoffice_extensions_scripting-beanshell? ( java )
926 - libreoffice_extensions_scripting-javascript? ( java )
927 - libreoffice_extensions_wiki-publisher? ( java )
928 -"
929 -
930 -PATCHES=(
931 - # not upstreamable stuff
932 - "${FILESDIR}/${PN}-4.4-system-pyuno.patch"
933 -
934 - # from 5.0 branch
935 - "${FILESDIR}/${PN}-4.3.5.2-remove-bashisms.patch" # bug 525454
936 - "${FILESDIR}/${PN}-4.4.0.3-telepathy-build-fix.patch"
937 - "${FILESDIR}/${PN}-4.4.1.2-add-kde4-open-url-script.patch"
938 - "${FILESDIR}/${PN}-4.4.4.3-improve-KDE4FilePicker.patch"
939 - "${FILESDIR}/${PN}-4.4.4.3-fix-KDE4-FileDialog.patch"
940 - "${FILESDIR}/${PN}-4.4.4.3-cleanup-IsNativeControlSupported.patch"
941 -
942 - # from master branch
943 - "${FILESDIR}/${PN}-4.4.5.2-fix-KDE4-listbox-regression.patch"
944 -)
945 -
946 -CHECKREQS_MEMORY="512M"
947 -if [[ ${MERGE_TYPE} != binary ]] ; then CHECKREQS_DISK_BUILD="6G" ; fi
948 -
949 -pkg_pretend() {
950 - local pgslot
951 -
952 - use java || \
953 - ewarn "If you plan to use lbase application you should enable java or you will get various crashes."
954 -
955 - if [[ ${MERGE_TYPE} != binary ]]; then
956 - check-reqs_pkg_pretend
957 -
958 - if [[ $(gcc-major-version) -lt 4 ]] || {
959 - [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]]; }
960 - then
961 - eerror "Compilation with gcc older than 4.6 is not supported"
962 - die "Too old gcc found."
963 - fi
964 - fi
965 -
966 - # Ensure pg version but we have to be sure the pg is installed (first
967 - # install on clean system)
968 - if use postgres && has_version dev-db/postgresql; then
969 - pgslot=$(postgresql-config show)
970 - if [[ ${pgslot//.} -lt 90 ]] ; then
971 - eerror "PostgreSQL slot must be set to 9.0 or higher."
972 - eerror " postgresql-config set 9.0"
973 - die "PostgreSQL slot is not set to 9.0 or higher."
974 - fi
975 - fi
976 -}
977 -
978 -pkg_setup() {
979 - java-pkg-opt-2_pkg_setup
980 - kde4-base_pkg_setup
981 - python-single-r1_pkg_setup
982 -
983 - [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
984 -}
985 -
986 -src_unpack() {
987 - local mod
988 -
989 - [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
990 - use branding && unpack "${BRANDING}"
991 -
992 - if [[ ${PV} != *9999* ]]; then
993 - unpack "${P}.tar.xz"
994 - for mod in ${MODULES}; do
995 - [[ ${mod} == core ]] && continue
996 - unpack "${PN}-${mod}-${PV}.tar.xz"
997 - done
998 - else
999 - local base_uri branch checkout mypv
1000 - base_uri="git://anongit.freedesktop.org"
1001 - for mod in ${MODULES}; do
1002 - branch="master"
1003 - mypv=${PV/.9999}
1004 - [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
1005 - git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}"
1006 - [[ ${mod} != core ]] && checkout="${S}/${mod}"
1007 - [[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help
1008 - git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout}
1009 - done
1010 - fi
1011 -}
1012 -
1013 -src_prepare() {
1014 - # patchset
1015 - if [[ -n ${PATCHSET} ]]; then
1016 - EPATCH_FORCE="yes" \
1017 - EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
1018 - EPATCH_SUFFIX="patch" \
1019 - epatch
1020 - fi
1021 -
1022 - epatch "${PATCHES[@]}"
1023 - epatch_user
1024 -
1025 - AT_M4DIR="m4" eautoreconf
1026 - # hack in the autogen.sh
1027 - touch autogen.lastrun
1028 -
1029 - # system pyuno mess
1030 - sed -i \
1031 - -e "s:%eprefix%:${EPREFIX}:g" \
1032 - -e "s:%libdir%:$(get_libdir):g" \
1033 - pyuno/source/module/uno.py \
1034 - pyuno/source/officehelper.py || die
1035 - # sed in the tests
1036 - sed -i \
1037 - -e "s#all : build unitcheck#all : build#g" \
1038 - solenv/gbuild/Module.mk || die
1039 - sed -i \
1040 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
1041 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
1042 - Makefile.in || die
1043 -
1044 - if use branding; then
1045 - # hack...
1046 - mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
1047 - fi
1048 -}
1049 -
1050 -src_configure() {
1051 - local java_opts
1052 - local internal_libs
1053 - local lo_ext
1054 - local ext_opts
1055 -
1056 - # optimization flags
1057 - export GMAKE_OPTIONS="${MAKEOPTS}"
1058 - # System python 2.7 enablement:
1059 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
1060 - export PYTHON_LIBS=$(python_get_LIBS)
1061 -
1062 - if use collada; then
1063 - export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
1064 - export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
1065 - fi
1066 -
1067 - # sane: just sane.h header that is used for scan in writer, not
1068 - # linked or anything else, worthless to depend on
1069 - # vigra: just uses templates from there
1070 - # it is serious pain in the ass for packaging
1071 - # should be replaced by boost::gil if someone interested
1072 - internal_libs+="
1073 - --without-system-sane
1074 - --without-system-vigra
1075 - "
1076 -
1077 - # libreoffice extensions handling
1078 - for lo_xt in ${LO_EXTS}; do
1079 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
1080 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
1081 - else
1082 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
1083 - fi
1084 - done
1085 -
1086 - if use java; then
1087 - # hsqldb: system one is too new
1088 - java_opts="
1089 - --without-junit
1090 - --without-system-hsqldb
1091 - --with-ant-home="${ANT_HOME}"
1092 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
1093 - --with-jvm-path="${EPREFIX}/usr/lib/"
1094 - "
1095 -
1096 - use libreoffice_extensions_scripting-beanshell && \
1097 - java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
1098 -
1099 - use libreoffice_extensions_scripting-javascript && \
1100 - java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
1101 -
1102 - if use libreoffice_extensions_wiki-publisher; then
1103 - java_opts+="
1104 - --with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
1105 - --with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
1106 - --with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
1107 - --with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
1108 - "
1109 - fi
1110 - fi
1111 -
1112 - # system headers/libs/...: enforce using system packages
1113 - # --enable-cairo: ensure that cairo is always required
1114 - # --enable-graphite: disabling causes build breakages
1115 - # --enable-*-link: link to the library rather than just dlopen on runtime
1116 - # --enable-release-build: build the libreoffice as release
1117 - # --disable-fetch-external: prevent dowloading during compile phase
1118 - # --disable-gnome-vfs: old gnome virtual fs support
1119 - # --disable-kdeab: kde3 adressbook
1120 - # --disable-kde: kde3 support
1121 - # --disable-systray: quickstarter does not actually work at all so do not
1122 - # promote it
1123 - # --enable-extension-integration: enable any extension integration support
1124 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
1125 - # --disable-report-builder: too much java packages pulled in without pkgs
1126 - econf \
1127 - --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
1128 - --with-system-headers \
1129 - --with-system-libs \
1130 - --with-system-jars \
1131 - --with-system-dicts \
1132 - --enable-cairo-canvas \
1133 - --enable-graphite \
1134 - --enable-largefile \
1135 - --enable-mergelibs \
1136 - --enable-neon \
1137 - --enable-python=system \
1138 - --enable-randr \
1139 - --enable-randr-link \
1140 - --enable-release-build \
1141 - --disable-hardlink-deliver \
1142 - --disable-ccache \
1143 - --disable-crashdump \
1144 - --disable-dependency-tracking \
1145 - --disable-epm \
1146 - --disable-fetch-external \
1147 - --disable-gnome-vfs \
1148 - --disable-gstreamer-0-10 \
1149 - --disable-report-builder \
1150 - --disable-kdeab \
1151 - --disable-kde \
1152 - --disable-online-update \
1153 - --disable-systray \
1154 - --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
1155 - --with-build-version="Gentoo official package" \
1156 - --enable-extension-integration \
1157 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
1158 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
1159 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
1160 - --with-external-tar="${DISTDIR}" \
1161 - --with-lang="" \
1162 - --with-parallelism=$(makeopts_jobs) \
1163 - --with-system-ucpp \
1164 - --with-vendor="Gentoo Foundation" \
1165 - --with-x \
1166 - --without-fonts \
1167 - --without-myspell-dicts \
1168 - --without-help \
1169 - --with-helppack-integration \
1170 - --without-sun-templates \
1171 - $(use_enable bluetooth sdremote-bluetooth) \
1172 - $(use_enable coinmp) \
1173 - $(use_enable collada) \
1174 - $(use_enable cups) \
1175 - $(use_enable debug) \
1176 - $(use_enable dbus) \
1177 - $(use_enable eds evolution2) \
1178 - $(use_enable firebird firebird-sdbc) \
1179 - $(use_enable gltf) \
1180 - $(use_enable gnome gconf) \
1181 - $(use_enable gnome gio) \
1182 - $(use_enable gnome lockdown) \
1183 - $(use_enable gstreamer gstreamer-1-0) \
1184 - $(use_enable gtk) \
1185 - $(use_enable gtk3) \
1186 - $(use_enable kde kde4) \
1187 - $(use_enable mysql ext-mariadb-connector) \
1188 - $(use_enable odk) \
1189 - $(use_enable postgres postgresql-sdbc) \
1190 - $(use_enable telepathy) \
1191 - $(use_enable vlc) \
1192 - $(use_with coinmp system-coinmp) \
1193 - $(use_with collada system-opencollada) \
1194 - $(use_with gltf system-libgltf) \
1195 - $(use_with java) \
1196 - $(use_with mysql system-mysql-cppconn) \
1197 - $(use_with odk doxygen) \
1198 - ${internal_libs} \
1199 - ${java_opts} \
1200 - ${ext_opts}
1201 -}
1202 -
1203 -src_compile() {
1204 - # more and more LO stuff tries to use OpenGL, including tests during build
1205 - # bug 501508, bug 540624, bug 545974 and probably more
1206 - addpredict /dev/dri
1207 - addpredict /dev/ati
1208 - addpredict /dev/nvidiactl
1209 -
1210 - # hack for offlinehelp, this needs fixing upstream at some point
1211 - # it is broken because we send --without-help
1212 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
1213 - (
1214 - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
1215 - source "${T}/config_host.mk" 2&> /dev/null
1216 -
1217 - local path="${WORKDIR}/helpcontent2/source/auxiliary/"
1218 - mkdir -p "${path}" || die
1219 -
1220 - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
1221 - perl "${S}/helpcontent2/helpers/create_ilst.pl" \
1222 - -dir=icon-themes/galaxy/res/helpimg \
1223 - > "${path}/helpimg.ilst"
1224 - [[ -s "${path}/helpimg.ilst" ]] || \
1225 - ewarn "The help images list is empty, something is fishy, report a bug."
1226 - )
1227 -
1228 - local target
1229 - use test && target="build" || target="build-nocheck"
1230 -
1231 - # this is not a proper make script
1232 - make ${target} || die
1233 -}
1234 -
1235 -src_test() {
1236 - make unitcheck || die
1237 - make slowcheck || die
1238 -}
1239 -
1240 -src_install() {
1241 - # This is not Makefile so no buildserver
1242 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
1243 -
1244 - # Fix bash completion placement
1245 - newbashcomp "${ED}"etc/bash_completion.d/libreoffice.sh ${PN}
1246 - bashcomp_alias \
1247 - libreoffice \
1248 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
1249 - rm -rf "${ED}"etc/ || die
1250 -
1251 - if use branding; then
1252 - insinto /usr/$(get_libdir)/${PN}/program
1253 - newins "${WORKDIR}/branding-sofficerc" sofficerc
1254 - dodir /etc/env.d
1255 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
1256 - fi
1257 -
1258 - # Hack for offlinehelp, this needs fixing upstream at some point.
1259 - # It is broken because we send --without-help
1260 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
1261 - insinto /usr/$(get_libdir)/libreoffice/help
1262 - doins xmlhelp/util/*.xsl
1263 -
1264 - # Remove desktop files for support to old installs that can't parse mime
1265 - rm -r "${ED}"usr/share/mimelnk/ || die
1266 -
1267 - # FIXME: Hack add missing file
1268 - exeinto /usr/$(get_libdir)/${PN}/program
1269 - doexe "${S}"/instdir/program/libsaxlo.so
1270 -
1271 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
1272 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
1273 -}
1274 -
1275 -pkg_preinst() {
1276 - # Cache updates - all handled by kde eclass for all environments
1277 - kde4-base_pkg_preinst
1278 -}
1279 -
1280 -pkg_postinst() {
1281 - kde4-base_pkg_postinst
1282 -}
1283 -
1284 -pkg_postrm() {
1285 - kde4-base_pkg_postrm
1286 -}
1287
1288 diff --git a/app-office/libreoffice/libreoffice-5.0.4.2.ebuild b/app-office/libreoffice/libreoffice-5.0.4.2.ebuild
1289 deleted file mode 100644
1290 index 1cf15be..0000000
1291 --- a/app-office/libreoffice/libreoffice-5.0.4.2.ebuild
1292 +++ /dev/null
1293 @@ -1,608 +0,0 @@
1294 -# Copyright 1999-2015 Gentoo Foundation
1295 -# Distributed under the terms of the GNU General Public License v2
1296 -# $Id$
1297 -
1298 -EAPI=5
1299 -
1300 -KDE_REQUIRED="optional"
1301 -QT_MINIMAL="4.7.4"
1302 -KDE_SCM="git"
1303 -CMAKE_REQUIRED="never"
1304 -
1305 -PYTHON_COMPAT=( python{2_7,3_4,3_5} )
1306 -PYTHON_REQ_USE="threads,xml"
1307 -
1308 -# experimental ; release ; old
1309 -# Usually the tarballs are moved a lot so this should make
1310 -# everyone happy.
1311 -DEV_URI="
1312 - http://dev-builds.libreoffice.org/pre-releases/src
1313 - http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
1314 - http://download.documentfoundation.org/libreoffice/old/${PV}/
1315 -"
1316 -EXT_URI="http://ooo.itc.hu/oxygenoffice/download/libreoffice"
1317 -ADDONS_URI="http://dev-www.libreoffice.org/src/"
1318 -
1319 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
1320 -# PATCHSET="${P}-patchset-01.tar.xz"
1321 -
1322 -[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
1323 -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}
1324 -unset SCM_ECLASS
1325 -
1326 -DESCRIPTION="A full office productivity suite"
1327 -HOMEPAGE="http://www.libreoffice.org"
1328 -SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
1329 -[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
1330 -
1331 -# Split modules following git/tarballs
1332 -# Core MUST be first!
1333 -# Help is used for the image generator
1334 -MODULES="core help"
1335 -# Only release has the tarballs
1336 -if [[ ${PV} != *9999* ]]; then
1337 - for i in ${DEV_URI}; do
1338 - for mod in ${MODULES}; do
1339 - if [[ ${mod} == core ]]; then
1340 - SRC_URI+=" ${i}/${P}.tar.xz"
1341 - else
1342 - SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
1343 - fi
1344 - done
1345 - unset mod
1346 - done
1347 - unset i
1348 -fi
1349 -unset DEV_URI
1350 -
1351 -# Really required addons
1352 -# These are bundles that can't be removed for now due to huge patchsets.
1353 -# If you want them gone, patches are welcome.
1354 -ADDONS_SRC=(
1355 - "${ADDONS_URI}/d62650a6f908e85643e557a236ea989c-vigra1.6.0.tar.gz"
1356 - "${ADDONS_URI}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz" # modifies source code
1357 - "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
1358 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
1359 - # no release for 8 years, should we package it?
1360 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
1361 - # Does not build with 1.6 rhino at all
1362 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
1363 - # requirement of rhino
1364 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
1365 - # not packageable
1366 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
1367 -)
1368 -SRC_URI+=" ${ADDONS_SRC[*]}"
1369 -
1370 -unset ADDONS_URI
1371 -unset EXT_URI
1372 -unset ADDONS_SRC
1373 -
1374 -IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer
1375 -+gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc"
1376 -
1377 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
1378 -# Unpackaged separate extensions:
1379 -# diagram: lo has 0.9.5 upstream is weirdly patched 0.9.4 -> wtf?
1380 -# hunart: only on ooo extensions -> fubared download path somewhere on sf
1381 -# numbertext, typo, validator, watch-window: ^^
1382 -# oooblogger: no homepage or anything
1383 -# Extensions that need extra work:
1384 -for lo_xt in ${LO_EXTS}; do
1385 - IUSE+=" libreoffice_extensions_${lo_xt}"
1386 -done
1387 -unset lo_xt
1388 -
1389 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
1390 -SLOT="0"
1391 -[[ ${PV} == *9999* ]] || \
1392 -KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
1393 -
1394 -COMMON_DEPEND="
1395 - ${PYTHON_DEPS}
1396 - app-arch/zip
1397 - app-arch/unzip
1398 - >=app-text/hunspell-1.3.2-r3
1399 - app-text/mythes
1400 - >=app-text/libabw-0.1.0
1401 - >=app-text/libexttextcat-3.2
1402 - >=app-text/libebook-0.1.1
1403 - >=app-text/libetonyek-0.1.2
1404 - app-text/liblangtag
1405 - >=app-text/libmspub-0.1.0
1406 - >=app-text/libmwaw-0.3.5
1407 - >=app-text/libodfgen-0.1.0
1408 - app-text/libwpd:0.10[tools]
1409 - app-text/libwpg:0.3
1410 - =app-text/libwps-0.4*
1411 - >=app-text/poppler-0.16:=[cxx]
1412 - >=dev-cpp/clucene-2.3.3.4-r2
1413 - =dev-cpp/libcmis-0.5*
1414 - dev-db/unixODBC
1415 - >=dev-libs/boost-1.55:=
1416 - dev-libs/expat
1417 - >=dev-libs/hyphen-2.7.1
1418 - >=dev-libs/icu-4.8.1.1:=
1419 - =dev-libs/liborcus-0.7*
1420 - >=dev-libs/librevenge-0.0.1
1421 - >=dev-libs/nspr-4.8.8
1422 - >=dev-libs/nss-3.12.9
1423 - >=dev-lang/perl-5.0
1424 - !libressl? ( >=dev-libs/openssl-1.0.0d:0 )
1425 - libressl? ( dev-libs/libressl )
1426 - >=dev-libs/redland-1.0.16
1427 - media-gfx/graphite2
1428 - >=media-libs/fontconfig-2.8.0
1429 - media-libs/freetype:2
1430 - >=media-libs/glew-1.10
1431 - >=media-libs/harfbuzz-0.9.18:=[icu(+)]
1432 - media-libs/lcms:2
1433 - >=media-libs/libpng-1.4:0=
1434 - >=media-libs/libcdr-0.1.0
1435 - >=media-libs/libfreehand-0.1.0
1436 - media-libs/libpagemaker
1437 - >=media-libs/libvisio-0.1.0
1438 - >=net-misc/curl-7.21.4
1439 - net-libs/neon
1440 - net-nds/openldap
1441 - sci-mathematics/lpsolve
1442 - virtual/jpeg:0
1443 - >=x11-libs/cairo-1.10.0[X]
1444 - x11-libs/libXinerama
1445 - x11-libs/libXrandr
1446 - x11-libs/libXrender
1447 - virtual/glu
1448 - virtual/opengl
1449 - bluetooth? ( net-wireless/bluez )
1450 - coinmp? ( sci-libs/coinor-mp )
1451 - collada? ( >=media-libs/opencollada-1.2.2_p20150207 )
1452 - cups? ( net-print/cups )
1453 - dbus? ( >=dev-libs/dbus-glib-0.92 )
1454 - eds? ( gnome-extra/evolution-data-server )
1455 - firebird? ( >=dev-db/firebird-2.5 )
1456 - gltf? ( media-libs/libgltf )
1457 - gnome? ( gnome-base/gconf:2 )
1458 - gtk? (
1459 - x11-libs/gdk-pixbuf[X]
1460 - >=x11-libs/gtk+-2.24:2
1461 - )
1462 - gtk3? ( >=x11-libs/gtk+-3.8:3 )
1463 - gstreamer? (
1464 - media-libs/gstreamer:1.0
1465 - media-libs/gst-plugins-base:1.0
1466 - )
1467 - jemalloc? ( dev-libs/jemalloc )
1468 - libreoffice_extensions_scripting-beanshell? ( >=dev-java/bsh-2.0_beta4 )
1469 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
1470 - libreoffice_extensions_wiki-publisher? (
1471 - dev-java/commons-codec:0
1472 - dev-java/commons-httpclient:3
1473 - dev-java/commons-lang:2.1
1474 - dev-java/commons-logging:0
1475 - )
1476 - mysql? ( >=dev-db/mysql-connector-c++-1.1.0 )
1477 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
1478 - telepathy? (
1479 - dev-libs/glib:2
1480 - >=net-libs/telepathy-glib-0.18.0
1481 - >=x11-libs/gtk+-2.24:2
1482 - )
1483 -"
1484 -
1485 -RDEPEND="${COMMON_DEPEND}
1486 - !app-office/libreoffice-bin
1487 - !app-office/libreoffice-bin-debug
1488 - !<app-office/openoffice-bin-3.4.0-r1
1489 - !app-office/openoffice
1490 - media-fonts/libertine
1491 - media-fonts/liberation-fonts
1492 - media-fonts/urw-fonts
1493 - java? ( >=virtual/jre-1.6 )
1494 - kde? ( $(add_kdeapps_dep kioclient) )
1495 - vlc? ( media-video/vlc )
1496 -"
1497 -
1498 -if [[ ${PV} != *9999* ]]; then
1499 - PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
1500 -else
1501 - # Translations are not reliable on live ebuilds
1502 - # rather force people to use english only.
1503 - PDEPEND="!app-office/libreoffice-l10n"
1504 -fi
1505 -
1506 -# FIXME: cppunit should be moved to test conditional
1507 -# after everything upstream is under gbuild
1508 -# as dmake execute tests right away
1509 -DEPEND="${COMMON_DEPEND}
1510 - >=dev-libs/libatomic_ops-7.2d
1511 - >=dev-libs/libxml2-2.7.8
1512 - dev-libs/libxslt
1513 - dev-perl/Archive-Zip
1514 - dev-util/cppunit
1515 - >=dev-util/gperf-3
1516 - dev-util/intltool
1517 - >=dev-util/mdds-0.12.0:0=
1518 - media-libs/glm
1519 - net-misc/npapi-sdk
1520 - >=sys-apps/findutils-4.4.2
1521 - sys-devel/bison
1522 - sys-apps/coreutils
1523 - sys-devel/flex
1524 - sys-devel/gettext
1525 - >=sys-devel/make-3.82
1526 - sys-devel/ucpp
1527 - sys-libs/zlib
1528 - virtual/pkgconfig
1529 - x11-libs/libXt
1530 - x11-libs/libXtst
1531 - x11-proto/randrproto
1532 - x11-proto/xextproto
1533 - x11-proto/xineramaproto
1534 - x11-proto/xproto
1535 - java? (
1536 - >=virtual/jdk-1.6
1537 - >=dev-java/ant-core-1.7
1538 - )
1539 - odk? ( >=app-doc/doxygen-1.8.4 )
1540 - test? ( dev-util/cppunit )
1541 -"
1542 -
1543 -REQUIRED_USE="
1544 - ${PYTHON_REQUIRED_USE}
1545 - bluetooth? ( dbus )
1546 - collada? ( gltf )
1547 - gnome? ( gtk )
1548 - eds? ( gnome )
1549 - telepathy? ( gtk )
1550 - libreoffice_extensions_nlpsolver? ( java )
1551 - libreoffice_extensions_scripting-beanshell? ( java )
1552 - libreoffice_extensions_scripting-javascript? ( java )
1553 - libreoffice_extensions_wiki-publisher? ( java )
1554 -"
1555 -
1556 -PATCHES=(
1557 - # not upstreamable stuff
1558 - "${FILESDIR}/${PN}-4.4-system-pyuno.patch"
1559 -)
1560 -
1561 -CHECKREQS_MEMORY="512M"
1562 -if [[ ${MERGE_TYPE} != binary ]] ; then CHECKREQS_DISK_BUILD="6G" ; fi
1563 -
1564 -pkg_pretend() {
1565 - local pgslot
1566 -
1567 - use java || \
1568 - ewarn "If you plan to use lbase application you should enable java or you will get various crashes."
1569 -
1570 - if [[ ${MERGE_TYPE} != binary ]]; then
1571 - check-reqs_pkg_pretend
1572 -
1573 - if [[ $(gcc-major-version) -lt 4 ]] || {
1574 - [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 6 ]]; }
1575 - then
1576 - eerror "Compilation with gcc older than 4.6 is not supported"
1577 - die "Too old gcc found."
1578 - fi
1579 - fi
1580 -
1581 - # Ensure pg version but we have to be sure the pg is installed (first
1582 - # install on clean system)
1583 - if use postgres && has_version dev-db/postgresql; then
1584 - pgslot=$(postgresql-config show)
1585 - if [[ ${pgslot//.} -lt 90 ]] ; then
1586 - eerror "PostgreSQL slot must be set to 9.0 or higher."
1587 - eerror " postgresql-config set 9.0"
1588 - die "PostgreSQL slot is not set to 9.0 or higher."
1589 - fi
1590 - fi
1591 -}
1592 -
1593 -pkg_setup() {
1594 - java-pkg-opt-2_pkg_setup
1595 - kde4-base_pkg_setup
1596 - python-single-r1_pkg_setup
1597 -
1598 - [[ ${MERGE_TYPE} != binary ]] && check-reqs_pkg_setup
1599 -}
1600 -
1601 -src_unpack() {
1602 - local mod
1603 -
1604 - [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
1605 - use branding && unpack "${BRANDING}"
1606 -
1607 - if [[ ${PV} != *9999* ]]; then
1608 - unpack "${P}.tar.xz"
1609 - for mod in ${MODULES}; do
1610 - [[ ${mod} == core ]] && continue
1611 - unpack "${PN}-${mod}-${PV}.tar.xz"
1612 - done
1613 - else
1614 - local base_uri branch checkout mypv
1615 - base_uri="git://anongit.freedesktop.org"
1616 - for mod in ${MODULES}; do
1617 - branch="master"
1618 - mypv=${PV/.9999}
1619 - [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
1620 - git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}"
1621 - [[ ${mod} != core ]] && checkout="${S}/${mod}"
1622 - [[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help
1623 - git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout}
1624 - done
1625 - fi
1626 -}
1627 -
1628 -src_prepare() {
1629 - # patchset
1630 - if [[ -n ${PATCHSET} ]]; then
1631 - EPATCH_FORCE="yes" \
1632 - EPATCH_SOURCE="${WORKDIR}/${PATCHSET/.tar.xz/}" \
1633 - EPATCH_SUFFIX="patch" \
1634 - epatch
1635 - fi
1636 -
1637 - epatch "${PATCHES[@]}"
1638 - epatch_user
1639 -
1640 - AT_M4DIR="m4" eautoreconf
1641 - # hack in the autogen.sh
1642 - touch autogen.lastrun
1643 -
1644 - # system pyuno mess
1645 - sed -i \
1646 - -e "s:%eprefix%:${EPREFIX}:g" \
1647 - -e "s:%libdir%:$(get_libdir):g" \
1648 - pyuno/source/module/uno.py \
1649 - pyuno/source/officehelper.py || die
1650 - # sed in the tests
1651 - sed -i \
1652 - -e "s#all : build unitcheck#all : build#g" \
1653 - solenv/gbuild/Module.mk || die
1654 - sed -i \
1655 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
1656 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
1657 - Makefile.in || die
1658 -
1659 - if use branding; then
1660 - # hack...
1661 - mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
1662 - fi
1663 -}
1664 -
1665 -src_configure() {
1666 - local java_opts
1667 - local internal_libs
1668 - local lo_ext
1669 - local ext_opts
1670 -
1671 - # optimization flags
1672 - export GMAKE_OPTIONS="${MAKEOPTS}"
1673 - # System python 2.7 enablement:
1674 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
1675 - export PYTHON_LIBS=$(python_get_LIBS)
1676 -
1677 - if use collada; then
1678 - export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
1679 - export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
1680 - fi
1681 -
1682 - # sane: just sane.h header that is used for scan in writer, not
1683 - # linked or anything else, worthless to depend on
1684 - # vigra: just uses templates from there
1685 - # it is serious pain in the ass for packaging
1686 - # should be replaced by boost::gil if someone interested
1687 - internal_libs+="
1688 - --without-system-sane
1689 - --without-system-vigra
1690 - "
1691 -
1692 - # libreoffice extensions handling
1693 - for lo_xt in ${LO_EXTS}; do
1694 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
1695 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
1696 - else
1697 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
1698 - fi
1699 - done
1700 -
1701 - if use java; then
1702 - # hsqldb: system one is too new
1703 - java_opts="
1704 - --without-junit
1705 - --without-system-hsqldb
1706 - --with-ant-home="${ANT_HOME}"
1707 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
1708 - --with-jvm-path="${EPREFIX}/usr/lib/"
1709 - "
1710 -
1711 - use libreoffice_extensions_scripting-beanshell && \
1712 - java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
1713 -
1714 - use libreoffice_extensions_scripting-javascript && \
1715 - java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
1716 -
1717 - if use libreoffice_extensions_wiki-publisher; then
1718 - java_opts+="
1719 - --with-commons-codec-jar=$(java-pkg_getjar commons-codec commons-codec.jar)
1720 - --with-commons-httpclient-jar=$(java-pkg_getjar commons-httpclient-3 commons-httpclient.jar)
1721 - --with-commons-lang-jar=$(java-pkg_getjar commons-lang-2.1 commons-lang.jar)
1722 - --with-commons-logging-jar=$(java-pkg_getjar commons-logging commons-logging.jar)
1723 - "
1724 - fi
1725 - fi
1726 -
1727 - # system headers/libs/...: enforce using system packages
1728 - # --enable-cairo: ensure that cairo is always required
1729 - # --enable-graphite: disabling causes build breakages
1730 - # --enable-*-link: link to the library rather than just dlopen on runtime
1731 - # --enable-release-build: build the libreoffice as release
1732 - # --disable-fetch-external: prevent dowloading during compile phase
1733 - # --disable-gnome-vfs: old gnome virtual fs support
1734 - # --disable-kdeab: kde3 adressbook
1735 - # --disable-kde: kde3 support
1736 - # --disable-systray: quickstarter does not actually work at all so do not
1737 - # promote it
1738 - # --enable-extension-integration: enable any extension integration support
1739 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
1740 - # --disable-report-builder: too much java packages pulled in without pkgs
1741 - econf \
1742 - --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
1743 - --with-system-headers \
1744 - --with-system-libs \
1745 - --with-system-jars \
1746 - --with-system-dicts \
1747 - --enable-cairo-canvas \
1748 - --enable-graphite \
1749 - --enable-largefile \
1750 - --enable-mergelibs \
1751 - --enable-neon \
1752 - --enable-python=system \
1753 - --enable-randr \
1754 - --enable-randr-link \
1755 - --enable-release-build \
1756 - --disable-hardlink-deliver \
1757 - --disable-ccache \
1758 - --disable-crashdump \
1759 - --disable-dependency-tracking \
1760 - --disable-epm \
1761 - --disable-fetch-external \
1762 - --disable-gnome-vfs \
1763 - --disable-gstreamer-0-10 \
1764 - --disable-report-builder \
1765 - --disable-kdeab \
1766 - --disable-kde \
1767 - --disable-online-update \
1768 - --disable-systray \
1769 - --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
1770 - --with-build-version="Gentoo official package" \
1771 - --enable-extension-integration \
1772 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
1773 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
1774 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
1775 - --with-external-tar="${DISTDIR}" \
1776 - --with-lang="" \
1777 - --with-parallelism=$(makeopts_jobs) \
1778 - --with-system-ucpp \
1779 - --with-vendor="Gentoo Foundation" \
1780 - --with-x \
1781 - --without-fonts \
1782 - --without-myspell-dicts \
1783 - --without-help \
1784 - --with-helppack-integration \
1785 - --without-sun-templates \
1786 - $(use_enable bluetooth sdremote-bluetooth) \
1787 - $(use_enable coinmp) \
1788 - $(use_enable collada) \
1789 - $(use_enable cups) \
1790 - $(use_enable debug) \
1791 - $(use_enable dbus) \
1792 - $(use_enable eds evolution2) \
1793 - $(use_enable firebird firebird-sdbc) \
1794 - $(use_enable gltf) \
1795 - $(use_enable gnome gconf) \
1796 - $(use_enable gnome gio) \
1797 - $(use_enable gnome lockdown) \
1798 - $(use_enable gstreamer gstreamer-1-0) \
1799 - $(use_enable gtk) \
1800 - $(use_enable gtk3) \
1801 - $(use_enable kde kde4) \
1802 - $(use_enable mysql ext-mariadb-connector) \
1803 - $(use_enable odk) \
1804 - $(use_enable postgres postgresql-sdbc) \
1805 - $(use_enable telepathy) \
1806 - $(use_enable vlc) \
1807 - $(use_with coinmp system-coinmp) \
1808 - $(use_with collada system-opencollada) \
1809 - $(use_with gltf system-libgltf) \
1810 - $(use_with java) \
1811 - $(use_with mysql system-mysql-cppconn) \
1812 - $(use_with odk doxygen) \
1813 - ${internal_libs} \
1814 - ${java_opts} \
1815 - ${ext_opts}
1816 -}
1817 -
1818 -src_compile() {
1819 - # more and more LO stuff tries to use OpenGL, including tests during build
1820 - # bug 501508, bug 540624, bug 545974 and probably more
1821 - addpredict /dev/dri
1822 - addpredict /dev/ati
1823 - addpredict /dev/nvidiactl
1824 -
1825 - # hack for offlinehelp, this needs fixing upstream at some point
1826 - # it is broken because we send --without-help
1827 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
1828 - (
1829 - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
1830 - source "${T}/config_host.mk" 2&> /dev/null
1831 -
1832 - local path="${WORKDIR}/helpcontent2/source/auxiliary/"
1833 - mkdir -p "${path}" || die
1834 -
1835 - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
1836 - perl "${S}/helpcontent2/helpers/create_ilst.pl" \
1837 - -dir=icon-themes/galaxy/res/helpimg \
1838 - > "${path}/helpimg.ilst"
1839 - [[ -s "${path}/helpimg.ilst" ]] || \
1840 - ewarn "The help images list is empty, something is fishy, report a bug."
1841 - )
1842 -
1843 - local target
1844 - use test && target="build" || target="build-nocheck"
1845 -
1846 - # this is not a proper make script
1847 - make ${target} || die
1848 -}
1849 -
1850 -src_test() {
1851 - make unitcheck || die
1852 - make slowcheck || die
1853 -}
1854 -
1855 -src_install() {
1856 - # This is not Makefile so no buildserver
1857 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
1858 -
1859 - # Fix bash completion placement
1860 - newbashcomp "${ED}"etc/bash_completion.d/libreoffice.sh ${PN}
1861 - bashcomp_alias \
1862 - libreoffice \
1863 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
1864 - rm -rf "${ED}"etc/ || die
1865 -
1866 - if use branding; then
1867 - insinto /usr/$(get_libdir)/${PN}/program
1868 - newins "${WORKDIR}/branding-sofficerc" sofficerc
1869 - dodir /etc/env.d
1870 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
1871 - fi
1872 -
1873 - # Hack for offlinehelp, this needs fixing upstream at some point.
1874 - # It is broken because we send --without-help
1875 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
1876 - insinto /usr/$(get_libdir)/libreoffice/help
1877 - doins xmlhelp/util/*.xsl
1878 -
1879 - # Remove desktop files for support to old installs that can't parse mime
1880 - rm -r "${ED}"usr/share/mimelnk/ || die
1881 -
1882 - # FIXME: Hack add missing file
1883 - exeinto /usr/$(get_libdir)/${PN}/program
1884 - doexe "${S}"/instdir/program/libsaxlo.so
1885 -
1886 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
1887 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
1888 -}
1889 -
1890 -pkg_preinst() {
1891 - # Cache updates - all handled by kde eclass for all environments
1892 - kde4-base_pkg_preinst
1893 -}
1894 -
1895 -pkg_postinst() {
1896 - kde4-base_pkg_postinst
1897 -}
1898 -
1899 -pkg_postrm() {
1900 - kde4-base_pkg_postrm
1901 -}