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