Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/libreoffice/
Date: Wed, 29 Mar 2017 17:46:59
Message-Id: 1490809576.9b2e17eaa79d4b54628f756eba61e7b1b78fafc7.asturm@gentoo
1 commit: 9b2e17eaa79d4b54628f756eba61e7b1b78fafc7
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 29 16:19:23 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 29 17:46:16 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b2e17ea
7
8 app-office/libreoffice: Drop old
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 app-office/libreoffice/Manifest | 4 -
13 app-office/libreoffice/libreoffice-5.2.5.1.ebuild | 594 ----------------------
14 app-office/libreoffice/libreoffice-5.3.0.3.ebuild | 594 ----------------------
15 3 files changed, 1192 deletions(-)
16
17 diff --git a/app-office/libreoffice/Manifest b/app-office/libreoffice/Manifest
18 index f0050169297..32b24cae627 100644
19 --- a/app-office/libreoffice/Manifest
20 +++ b/app-office/libreoffice/Manifest
21 @@ -7,15 +7,11 @@ DIST 86b1daaa438f5a7bea9a52d7b9799ac0-xmlsec1-1.2.23.tar.gz 1794694 SHA256 41d46
22 DIST a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip 23150 SHA256 75823776fb51a9c526af904f1503a7afaaab900fba83eda64f8a41073724c870 SHA512 2d3835f7ac356805025cafedcad97faa48d0f5da386e6ac7b7451030059df8e2fdb0861ade07a576ebf9fb5b88a973585ab0437944b06aac9289d6898ba8586a WHIRLPOOL 60b98d9af2c83c0cf12a5a60ba30957d335b8b967cac07971e1edbc787b9caecd4b3c5bb480e8b38fe8109c1cf74439ebafae130c976182c2c15399f38f5d28c
23 DIST ce12af00283eb90d9281956524250d6e-xmlsec1-1.2.20.tar.gz 1769329 SHA256 3221593ca50f362b546a0888a1431ad24be1470f96b2469c0e0df5e1c55e7305 SHA512 2f8d473916abf9822367edbe857fc2e12dc9858d12e790d689d787e439904bd6a452bf631043aa66e7502457ab0815a473657f58fca17a213e2490f5655e5ae5 WHIRLPOOL 29ddaef03d46fe08aa2dba200be755817f8e77de3bbbb3ed86dae65e891239f3051f79fdfadec6ae56023197e32e1c44a94385a1ce306081f3bf94be6226f8c7
24 DIST libreoffice-5.2.3.3.tar.xz 183870036 SHA256 a8f1365d166bf24ac4b97ed8466f46cca29cf72e7e992bb84d24c3dc8e1c32c1 SHA512 8628a820ad620ca946457adf0b0ed9741f13c67aa061761d04b743340d13ef498f23e75e6183206b34ce7154b1ec3096f8afcb69b2ab02e17c6ef00155e1b084 WHIRLPOOL 17edc4dd47938db71a5b5ec3ba318d02fbcab7c389bdb51432d36f1f018667c58b1ec3b38b09610542653c9442b65950e0daa062149cfeb7e35e699c6c9f89eb
25 -DIST libreoffice-5.2.5.1.tar.xz 184242832 SHA256 9756a322a497aa83d096fa0ac5541622d9a8f5038ce9c0ded48199566ab0d300 SHA512 72b88fc44bc440def7be8971a6976b87de41562eaa968eeb40bc5b9bd2d3ce4fb8581fc070ade804a8f7257e350df2cc8f2ac42c9d3241bd65d2a89c35602c00 WHIRLPOOL 776845b4b34afd42c7b65179c2d77449e7f2917b4a475b93434ff0817688cbecc69f946640408750221cdd950f6982c4a3f9a9ce370c977a6d10613c61f5d494
26 DIST libreoffice-5.2.6.2.tar.xz 164804780 SHA256 3d49e339631114652820b890859eef85601d1aeda2acb1309f0de24009f53570 SHA512 b84420a773739162555b28700a5588771a1fa7131d82a5861799f402df65f84a17715f80b8ba9aa793c1fed78c7e38b8bfbff2c3b9e0e8f119c9b453a8e6edc9 WHIRLPOOL fe6e739c78172add6fb1235c5ddcffc7d62767008ca5acafd2d95ba143367b26bae94c7f295527d55312ecec4bee47d53daab8b2f2ac159f8d581c7532e3ee48
27 -DIST libreoffice-5.3.0.3.tar.xz 168797580 SHA256 04b9215e1c4b8c7ce2d79b8e322bff8d097426a2d103476cf237cfd42262556e SHA512 06cf8a59c2b08f6aaf5012347aeae482ecccc4587c67fc6d3f267572f236999ec6fe1f1290926830ebe5631c705cf4e938b65a5765e99556c8d19178e0fece45 WHIRLPOOL 4591366575e5e8da7f892d6549d0ae0cdae7e0afcd8e1c1d771fe735e73de901ae26f8b95ca589ffeba1d3b73830853aea14a84e26a94a5465b872583ed0519d
28 DIST libreoffice-5.3.1.2.tar.xz 189706056 SHA256 5746cd7ccaf64e51eb0fc07128e75cf145a32b318d572aba18855f14c10754ff SHA512 f35a037eb823603295187f958bab290a51dd3d189ab5bf10b087a7900bad50de5cb477c5a0cf2ca5e5190e9c31b0e7f382980cc03d139014f3b706b4cd4082b0 WHIRLPOOL a4a697ee460f3a96cf8b406645d77f11b2ce9814245ad2b8c191d6b362e0f2fef571b46c64e9b34cc304545740af8807ad77087b6c613e83c50898755f738a29
29 DIST libreoffice-5.3.2.1.tar.xz 189746408 SHA256 07052dccc52e427c2898bc5768c7f55d181aa0f79ffcd827dc8dd1f17e844e55 SHA512 7a59a5c3e5b4436c5c9d99c9941fb1d2dc7d8e12bcda87976edfda59a2278351341f61ffc03c13fcf20a5aa8a3e7c14aee711f9edad3dd01e5cf53245547c781 WHIRLPOOL 003fe59c3aa5e117cd8bb74af3abad84651300e7b6dd979c00480f1add973226e0bfcb564f04b163c921dad013a7430cb2ab23e4f93fd3a0c002fa2c0ef908d0
30 DIST libreoffice-branding-gentoo-0.8.tar.xz 151568 SHA256 22722121be062742624e0634beae92289c75e6a99ed507d3bf0a05c5164e3c69 SHA512 785031a699b1d1895ce4b50ffc3ddf645f3a0ef9acdf37facfd18cf75db9484cb8f53a50abb63d6006ead76a80b6ff5aa99661063245ebb84bd64013d713de7f WHIRLPOOL 1f36652a52d501d6548cfa9aa013b3e3a1867aa2b0693d2274cf7816d4aa4e0cde3c7096cc71ed47cf74e5f96da2757bf537f553021f8fd86939accb227bf538
31 DIST libreoffice-help-5.2.3.3.tar.xz 1936920 SHA256 443be26b35c6b454d5d1ca17c58cc33ae90946f8e1003a98118467b49989cd3a SHA512 927421887d2d41538ba79d6d584bf84ad3fd7a58d3b9d95801cf67a0dcce61421934cd273a38803b5519c434232d1aaeb88d52cab391ae7292809ebbb3b501f9 WHIRLPOOL 36da9c200c0174f745827afb099530d06f6489f8be4a521b7dd37441fc2a1f9691a7d4a07e2914dec0f57845f96e4e143133105e5a730eebeb2e1c5c3283d3bb
32 -DIST libreoffice-help-5.2.5.1.tar.xz 1936260 SHA256 11199cca59748dc9cade4f5cbb0478f600d3c54114b09819eac54338dbbd49b4 SHA512 2319784da7733eb21a15fba4dab4b74a1aff89c89634727e6d5013b4ca14bd65d0951bdaff569a79544a8c44ff494e92eb0573e11391ec88e2cb811e47689cf9 WHIRLPOOL 714d6bfe696f4fc69203f5cd3e9a2914d2d73cc78c06f6ef4ae860f52b5c1c34305e1c7330eff380d73b8006e2c47e3f033ec6fdefe14e65c8e11289aa75364e
33 DIST libreoffice-help-5.2.6.2.tar.xz 1446048 SHA256 c0cd648d9994814925083d1a891b63b5e5233718eb8f8782810bb602c0fdb88b SHA512 10568ffb0d7fbd1a01681e52e594b39f120802e8fd70d12824a2be0185bdf491c28818fc8a9fe16fed8533fa61119b90d6f0a1a8f9488a83b33f6a6be2d75e37 WHIRLPOOL e3921ba0b64819b19cd278f7a87dec4313e6cd9df58108170e2d438b0c08644395ac568f7cc601e88ff466e78fa6bbd426fdc9b4a704d3d8693b8c0cb1537ab8
34 -DIST libreoffice-help-5.3.0.3.tar.xz 1615344 SHA256 df58d501b9514160767810df0b0e4b44a01262244f81f83df8654b0ccd4b1a7f SHA512 c575b19beb42ec44fe8d63d72df31853d224e78ca14bf8bd6d5b81bfebfda71c17943fd0b59c019548910bb76ea269340436d54375121f559bdb1d38d6b3296f WHIRLPOOL cd662dcfe8e6eaa63872820b42a68aa4e0913c4fb4688db1f1c611169f9ba1e7f05e77dba5786d42cb738b353a2df81caa417c60e525a073c04beee0f2bbcfa0
35 DIST libreoffice-help-5.3.1.2.tar.xz 2127368 SHA256 df49c7bf1caa872f542a69875b44b450b724644585fc847f41e549f88da4c20e SHA512 a6fc9912c67e485a01a71fa85c09eca464f6ae37024e7ae96e92d9f9582390955df069c3ef633b5df83eb6cd96c3654bd22eab728a58961a08dda7b18f754391 WHIRLPOOL 0746f8a5be49bd67b8eff536c97c1b398e2490794dd3f8147ba33adafc887c550bf4a446f81bf5fec427970ec377774e6baf7ab6d1ba4d12e80653d8e087825f
36 DIST libreoffice-help-5.3.2.1.tar.xz 2127012 SHA256 a462e6f1a575eb9185dfeffac37f77878454d5bee5bf9eb7ce5f6b6ae38dc622 SHA512 110feb04a6654ceeb1de1c7246f6297a7eba30af37aee07b4d621432b1f20529dbc74f3edcb104948c0b1d54cd9d5b7f945fdaa0d4ccd6372f198b44cad3118a WHIRLPOOL 5e3e666b7d359e6b2cf87e72014be43bbb355046a4e1cb5e6dcdf9a3462bfd2b77c5b041a825e33068a59abcf23158b22aa84bf91055017c66404d879c9a9dd5
37
38 diff --git a/app-office/libreoffice/libreoffice-5.2.5.1.ebuild b/app-office/libreoffice/libreoffice-5.2.5.1.ebuild
39 deleted file mode 100644
40 index 65dc7d55a84..00000000000
41 --- a/app-office/libreoffice/libreoffice-5.2.5.1.ebuild
42 +++ /dev/null
43 @@ -1,594 +0,0 @@
44 -# Copyright 1999-2017 Gentoo Foundation
45 -# Distributed under the terms of the GNU General Public License v2
46 -
47 -EAPI=6
48 -
49 -KDE_REQUIRED="optional"
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 -ADDONS_URI="http://dev-www.libreoffice.org/src/"
65 -
66 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
67 -# PATCHSET="${P}-patchset-01.tar.xz"
68 -
69 -[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
70 -inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator xdg-utils qmake-utils ${SCM_ECLASS}
71 -unset SCM_ECLASS
72 -
73 -DESCRIPTION="A full office productivity suite"
74 -HOMEPAGE="http://www.libreoffice.org"
75 -SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
76 -[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
77 -
78 -# Split modules following git/tarballs
79 -# Core MUST be first!
80 -# Help is used for the image generator
81 -MODULES="core help"
82 -# Only release has the tarballs
83 -if [[ ${PV} != *9999* ]]; then
84 - for i in ${DEV_URI}; do
85 - for mod in ${MODULES}; do
86 - if [[ ${mod} == core ]]; then
87 - SRC_URI+=" ${i}/${P}.tar.xz"
88 - else
89 - SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
90 - fi
91 - done
92 - unset mod
93 - done
94 - unset i
95 -fi
96 -unset DEV_URI
97 -
98 -# Really required addons
99 -# These are bundles that can't be removed for now due to huge patchsets.
100 -# If you want them gone, patches are welcome.
101 -ADDONS_SRC=(
102 - "${ADDONS_URI}/ce12af00283eb90d9281956524250d6e-xmlsec1-1.2.20.tar.gz" # modifies source code
103 - "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
104 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
105 - # no release for 8 years, should we package it?
106 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
107 - # Does not build with 1.6 rhino at all
108 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
109 - # requirement of rhino
110 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
111 - # not packageable
112 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
113 -)
114 -SRC_URI+=" ${ADDONS_SRC[*]}"
115 -
116 -unset ADDONS_URI
117 -unset ADDONS_SRC
118 -
119 -# Extensions that need extra work:
120 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
121 -
122 -IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome googledrive
123 -gstreamer +gtk gtk3 jemalloc kde libressl mysql odk pdfimport postgres quickstarter telepathy test vlc
124 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
125 -
126 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
127 -SLOT="0"
128 -[[ ${PV} == *9999* ]] || \
129 -KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
130 -
131 -COMMON_DEPEND="${PYTHON_DEPS}
132 - app-arch/unzip
133 - app-arch/zip
134 - app-text/hunspell
135 - >=app-text/libabw-0.1.0
136 - >=app-text/libebook-0.1
137 - >=app-text/libetonyek-0.1
138 - app-text/libexttextcat
139 - app-text/liblangtag
140 - >=app-text/libmspub-0.1.0
141 - >=app-text/libmwaw-0.3.1
142 - >=app-text/libodfgen-0.1.0
143 - app-text/libwpd:0.10[tools]
144 - app-text/libwpg:0.3
145 - >=app-text/libwps-0.4
146 - app-text/mythes
147 - >=dev-cpp/clucene-2.3.3.4-r2
148 - =dev-cpp/libcmis-0.5*
149 - dev-db/unixODBC
150 - dev-lang/perl
151 - >=dev-libs/boost-1.55:=
152 - dev-libs/expat
153 - dev-libs/hyphen
154 - dev-libs/icu:=
155 - =dev-libs/liborcus-0.11*
156 - dev-libs/librevenge
157 - dev-libs/nspr
158 - dev-libs/nss
159 - !libressl? ( >=dev-libs/openssl-1.0.0d:0 )
160 - libressl? ( dev-libs/libressl )
161 - >=dev-libs/redland-1.0.16
162 - media-gfx/graphite2
163 - media-libs/fontconfig
164 - media-libs/freetype:2
165 - >=media-libs/glew-1.10:=
166 - >=media-libs/harfbuzz-0.9.18:=[icu(+)]
167 - media-libs/lcms:2
168 - >=media-libs/libcdr-0.1.0
169 - >=media-libs/libfreehand-0.1.0
170 - media-libs/libpagemaker
171 - >=media-libs/libpng-1.4:0=
172 - >=media-libs/libvisio-0.1.0
173 - net-libs/neon
174 - net-misc/curl
175 - net-nds/openldap
176 - sci-mathematics/lpsolve
177 - virtual/jpeg:0
178 - x11-libs/cairo[X,-xlib-xcb(-)]
179 - x11-libs/libXinerama
180 - x11-libs/libXrandr
181 - x11-libs/libXrender
182 - virtual/glu
183 - virtual/opengl
184 - bluetooth? ( net-wireless/bluez )
185 - coinmp? ( sci-libs/coinor-mp )
186 - collada? ( >=media-libs/opencollada-1.2.2_p20150207 )
187 - cups? ( net-print/cups )
188 - dbus? ( dev-libs/dbus-glib )
189 - eds? (
190 - dev-libs/glib:2
191 - gnome-extra/evolution-data-server
192 - )
193 - firebird? ( >=dev-db/firebird-2.5 )
194 - gltf? ( media-libs/libgltf )
195 - gnome? ( gnome-base/dconf )
196 - gstreamer? (
197 - media-libs/gstreamer:1.0
198 - media-libs/gst-plugins-base:1.0
199 - )
200 - gtk? (
201 - x11-libs/gdk-pixbuf
202 - >=x11-libs/gtk+-2.24:2
203 - )
204 - gtk3? (
205 - dev-libs/glib:2
206 - dev-libs/gobject-introspection
207 - >=x11-libs/gtk+-3.8:3
208 - )
209 - jemalloc? ( dev-libs/jemalloc )
210 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
211 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
212 - mysql? ( dev-db/mysql-connector-c++ )
213 - pdfimport? ( app-text/poppler:=[cxx] )
214 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
215 - telepathy? ( net-libs/telepathy-glib )
216 -"
217 -
218 -RDEPEND="${COMMON_DEPEND}
219 - !app-office/libreoffice-bin
220 - !app-office/libreoffice-bin-debug
221 - !app-office/openoffice
222 - media-fonts/liberation-fonts
223 - media-fonts/libertine
224 - media-fonts/urw-fonts
225 - java? ( >=virtual/jre-1.6 )
226 - kde? ( $(add_kdeapps_dep kioclient) )
227 - vlc? ( media-video/vlc )
228 -"
229 -
230 -if [[ ${PV} != *9999* ]]; then
231 - PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
232 -else
233 - # Translations are not reliable on live ebuilds
234 - # rather force people to use english only.
235 - PDEPEND="!app-office/libreoffice-l10n"
236 -fi
237 -
238 -# FIXME: cppunit should be moved to test conditional
239 -# after everything upstream is under gbuild
240 -# as dmake execute tests right away
241 -DEPEND="${COMMON_DEPEND}
242 - !<sys-devel/make-3.82
243 - >=dev-libs/libatomic_ops-7.2d
244 - >=dev-libs/libxml2-2.7.8
245 - dev-libs/libxslt
246 - dev-perl/Archive-Zip
247 - dev-util/cppunit
248 - >=dev-util/gperf-3
249 - dev-util/intltool
250 - >=dev-util/mdds-1.2.0:1=
251 - media-libs/glm
252 - sys-devel/bison
253 - sys-devel/flex
254 - sys-devel/gettext
255 - sys-devel/ucpp
256 - sys-libs/zlib
257 - virtual/pkgconfig
258 - x11-libs/libXt
259 - x11-libs/libXtst
260 - x11-proto/randrproto
261 - x11-proto/xextproto
262 - x11-proto/xineramaproto
263 - x11-proto/xproto
264 - java? (
265 - dev-java/ant-core
266 - >=virtual/jdk-1.6
267 - )
268 - odk? ( >=app-doc/doxygen-1.8.4 )
269 - test? ( dev-util/cppunit )
270 -"
271 -
272 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
273 - bluetooth? ( dbus )
274 - collada? ( gltf )
275 - eds? ( gnome )
276 - gnome? ( gtk )
277 - telepathy? ( gtk )
278 - libreoffice_extensions_nlpsolver? ( java )
279 - libreoffice_extensions_scripting-beanshell? ( java )
280 - libreoffice_extensions_scripting-javascript? ( java )
281 - libreoffice_extensions_wiki-publisher? ( java )
282 -"
283 -
284 -PATCHES=(
285 - # from master branch
286 - "${FILESDIR}/${PN}-5.2-icu58.patch"
287 -
288 - # not upstreamable stuff
289 - "${FILESDIR}/${PN}-5.2-system-pyuno.patch"
290 -
291 - # TODO: upstream
292 - "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch"
293 -)
294 -
295 -pkg_pretend() {
296 - use java || \
297 - ewarn "If you plan to use lbase application you should enable java or you will get various crashes."
298 -
299 - if [[ ${MERGE_TYPE} != binary ]]; then
300 -
301 - CHECKREQS_MEMORY="512M"
302 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
303 - CHECKREQS_DISK_BUILD="22G"
304 - else
305 - CHECKREQS_DISK_BUILD="6G"
306 - fi
307 - check-reqs_pkg_pretend
308 -
309 - if ! $(tc-is-clang) && { [[ $(gcc-major-version) -lt 4 ]] ||
310 - [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; } then
311 - eerror "Compilation with gcc older than 4.7 is not supported"
312 - die "Too old gcc found."
313 - fi
314 - fi
315 -
316 - # Ensure pg version but we have to be sure the pg is installed (first
317 - # install on clean system)
318 - if use postgres && has_version dev-db/postgresql; then
319 - local pgslot=$(postgresql-config show)
320 - if [[ ${pgslot//.} -lt 90 ]] ; then
321 - eerror "PostgreSQL slot must be set to 9.0 or higher."
322 - eerror " postgresql-config set 9.0"
323 - die "PostgreSQL slot is not set to 9.0 or higher."
324 - fi
325 - fi
326 -}
327 -
328 -pkg_setup() {
329 - java-pkg-opt-2_pkg_setup
330 - kde4-base_pkg_setup
331 - python-single-r1_pkg_setup
332 - xdg_environment_reset
333 -
334 - if [[ ${MERGE_TYPE} != binary ]]; then
335 - CHECKREQS_MEMORY="512M"
336 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
337 - CHECKREQS_DISK_BUILD="22G"
338 - else
339 - CHECKREQS_DISK_BUILD="6G"
340 - fi
341 - check-reqs_pkg_setup
342 - fi
343 -}
344 -
345 -src_unpack() {
346 - local mod
347 -
348 - [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
349 - use branding && unpack "${BRANDING}"
350 -
351 - if [[ ${PV} != *9999* ]]; then
352 - unpack "${P}.tar.xz"
353 - for mod in ${MODULES}; do
354 - [[ ${mod} == core ]] && continue
355 - unpack "${PN}-${mod}-${PV}.tar.xz"
356 - done
357 - else
358 - local base_uri branch checkout mypv
359 - base_uri="git://anongit.freedesktop.org"
360 - for mod in ${MODULES}; do
361 - branch="master"
362 - mypv=${PV/.9999}
363 - [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
364 - git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}"
365 - [[ ${mod} != core ]] && checkout="${S}/${mod}"
366 - [[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help
367 - git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout}
368 - done
369 - fi
370 -}
371 -
372 -src_prepare() {
373 - [[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}"
374 - eapply "${PATCHES[@]}"
375 - eapply_user
376 -
377 - AT_M4DIR="m4" eautoreconf
378 - # hack in the autogen.sh
379 - touch autogen.lastrun
380 -
381 - # system pyuno mess
382 - sed -i \
383 - -e "s:%eprefix%:${EPREFIX}:g" \
384 - -e "s:%libdir%:$(get_libdir):g" \
385 - pyuno/source/module/uno.py \
386 - pyuno/source/officehelper.py || die
387 - # sed in the tests
388 - sed -i \
389 - -e "s#all : build unitcheck#all : build#g" \
390 - solenv/gbuild/Module.mk || die
391 - sed -i \
392 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
393 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
394 - Makefile.in || die
395 -
396 - sed -i \
397 - -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
398 - -e "s,\$INSTALLDIRNAME.sh,${PN}," \
399 - bin/distro-install-desktop-integration || die
400 -
401 - if use branding; then
402 - # hack...
403 - mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
404 - fi
405 -
406 - # Don't list pdfimport support in desktop when built with none, bug # 605464
407 - if ! use pdfimport; then
408 - sed -i \
409 - -e ":MimeType: s:application/pdf;::" \
410 - -e ":Keywords: s:pdf;::" \
411 - sysui/desktop/menus/draw.desktop || die
412 - fi
413 -}
414 -
415 -src_configure() {
416 - local java_opts
417 - local ext_opts
418 -
419 - # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
420 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
421 - # your own set of keys. Feel free to contact chromium@g.o for more info.
422 - local google_default_client_id="329227923882.apps.googleusercontent.com"
423 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
424 -
425 - # optimization flags
426 - export GMAKE_OPTIONS="${MAKEOPTS}"
427 - # System python enablement:
428 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
429 - export PYTHON_LIBS=$(python_get_LIBS)
430 -
431 - if use collada; then
432 - export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
433 - export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
434 - fi
435 -
436 - # libreoffice extensions handling
437 - for lo_xt in ${LO_EXTS}; do
438 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
439 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
440 - else
441 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
442 - fi
443 - done
444 -
445 - if use java; then
446 - # hsqldb: system one is too new
447 - java_opts="
448 - --without-junit
449 - --without-system-hsqldb
450 - --with-ant-home="${ANT_HOME}"
451 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
452 - --with-jvm-path="${EPREFIX}/usr/lib/"
453 - "
454 -
455 - use libreoffice_extensions_scripting-beanshell && \
456 - java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
457 -
458 - use libreoffice_extensions_scripting-javascript && \
459 - java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
460 - fi
461 -
462 - if use kde; then
463 - # bug 544108, bug 599076
464 - export QMAKEQT4="$(qt4_get_bindir)/qmake"
465 - export MOCQT4="$(qt4_get_bindir)/moc"
466 - fi
467 -
468 - # system headers/libs/...: enforce using system packages
469 - # --enable-cairo: ensure that cairo is always required
470 - # --enable-graphite: disabling causes build breakages
471 - # --enable-*-link: link to the library rather than just dlopen on runtime
472 - # --enable-release-build: build the libreoffice as release
473 - # --disable-fetch-external: prevent dowloading during compile phase
474 - # --enable-extension-integration: enable any extension integration support
475 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
476 - # --disable-report-builder: too much java packages pulled in without pkgs
477 - # --without-system-sane: just sane.h header that is used for scan in writer,
478 - # not linked or anything else, worthless to depend on
479 - econf \
480 - --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
481 - --with-system-dicts \
482 - --with-system-headers \
483 - --with-system-jars \
484 - --with-system-libs \
485 - --enable-cairo-canvas \
486 - --enable-graphite \
487 - --enable-largefile \
488 - --enable-mergelibs \
489 - --enable-neon \
490 - --enable-python=system \
491 - --enable-randr \
492 - --enable-release-build \
493 - --disable-ccache \
494 - --disable-crashdump \
495 - --disable-dependency-tracking \
496 - --disable-epm \
497 - --disable-fetch-external \
498 - --disable-gstreamer-0-10 \
499 - --disable-hardlink-deliver \
500 - --disable-online-update \
501 - --disable-report-builder \
502 - --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
503 - --with-build-version="Gentoo official package" \
504 - --enable-extension-integration \
505 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
506 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
507 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
508 - --with-external-tar="${DISTDIR}" \
509 - --with-lang="" \
510 - --with-parallelism=$(makeopts_jobs) \
511 - --with-system-ucpp \
512 - --with-vendor="Gentoo Foundation" \
513 - --with-x \
514 - --without-fonts \
515 - --without-myspell-dicts \
516 - --without-help \
517 - --with-helppack-integration \
518 - --without-sun-templates \
519 - --without-system-sane \
520 - $(use_enable bluetooth sdremote-bluetooth) \
521 - $(use_enable coinmp) \
522 - $(use_enable collada) \
523 - $(use_enable cups) \
524 - $(use_enable debug) \
525 - $(use_enable dbus) \
526 - $(use_enable eds evolution2) \
527 - $(use_enable firebird firebird-sdbc) \
528 - $(use_enable gltf) \
529 - $(use_enable gnome gio) \
530 - $(use_enable gnome dconf) \
531 - $(use_enable gstreamer gstreamer-1-0) \
532 - $(use_enable gtk) \
533 - $(use_enable gtk3) \
534 - $(use_enable kde kde4) \
535 - $(use_enable mysql ext-mariadb-connector) \
536 - $(use_enable odk) \
537 - $(use_enable pdfimport) \
538 - $(use_enable postgres postgresql-sdbc) \
539 - $(use_enable quickstarter systray) \
540 - $(use_enable telepathy) \
541 - $(use_enable vlc) \
542 - $(use_with coinmp system-coinmp) \
543 - $(use_with collada system-opencollada) \
544 - $(use_with gltf system-libgltf) \
545 - $(use_with googledrive gdrive-client-id ${google_default_client_id}) \
546 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) \
547 - $(use_with java) \
548 - $(use_with mysql system-mysql-cppconn) \
549 - $(use_with odk doxygen) \
550 - ${java_opts} \
551 - ${ext_opts}
552 -}
553 -
554 -src_compile() {
555 - # more and more LO stuff tries to use OpenGL, including tests during build
556 - # bug 501508, bug 540624, bug 545974 and probably more
557 - addpredict /dev/dri
558 - addpredict /dev/ati
559 - addpredict /dev/nvidiactl
560 -
561 - # hack for offlinehelp, this needs fixing upstream at some point
562 - # it is broken because we send --without-help
563 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
564 - (
565 - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
566 - source "${T}/config_host.mk" 2&> /dev/null
567 -
568 - local path="${WORKDIR}/helpcontent2/source/auxiliary/"
569 - mkdir -p "${path}" || die
570 -
571 - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
572 - perl "${S}/helpcontent2/helpers/create_ilst.pl" \
573 - -dir=icon-themes/galaxy/res/helpimg \
574 - > "${path}/helpimg.ilst"
575 - [[ -s "${path}/helpimg.ilst" ]] || \
576 - ewarn "The help images list is empty, something is fishy, report a bug."
577 - )
578 -
579 - local target
580 - use test && target="build" || target="build-nocheck"
581 -
582 - # this is not a proper make script
583 - make ${target} || die
584 -}
585 -
586 -src_test() {
587 - make unitcheck || die
588 - make slowcheck || die
589 -}
590 -
591 -src_install() {
592 - # This is not Makefile so no buildserver
593 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
594 -
595 - # bug 593514
596 - if use gtk3; then
597 - dosym /usr/$(get_libdir)/libreoffice/program/liblibreofficekitgtk.so \
598 - /usr/$(get_libdir)/liblibreofficekitgtk.so
599 - fi
600 -
601 - # bash completion aliases
602 - bashcomp_alias \
603 - libreoffice \
604 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
605 -
606 - if use branding; then
607 - insinto /usr/$(get_libdir)/${PN}/program
608 - newins "${WORKDIR}/branding-sofficerc" sofficerc
609 - dodir /etc/env.d
610 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
611 - fi
612 -
613 - # Hack for offlinehelp, this needs fixing upstream at some point.
614 - # It is broken because we send --without-help
615 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
616 - insinto /usr/$(get_libdir)/libreoffice/help
617 - doins xmlhelp/util/*.xsl
618 -
619 - # Remove desktop files to support old installs that can't parse mime
620 - rm -r "${ED}"usr/share/mimelnk/ || die
621 -
622 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
623 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
624 -}
625 -
626 -pkg_preinst() {
627 - # Cache updates - all handled by kde eclass for all environments
628 - kde4-base_pkg_preinst
629 -}
630 -
631 -pkg_postinst() {
632 - kde4-base_pkg_postinst
633 -}
634 -
635 -pkg_postrm() {
636 - kde4-base_pkg_postrm
637 -}
638
639 diff --git a/app-office/libreoffice/libreoffice-5.3.0.3.ebuild b/app-office/libreoffice/libreoffice-5.3.0.3.ebuild
640 deleted file mode 100644
641 index 143f06d774f..00000000000
642 --- a/app-office/libreoffice/libreoffice-5.3.0.3.ebuild
643 +++ /dev/null
644 @@ -1,594 +0,0 @@
645 -# Copyright 1999-2017 Gentoo Foundation
646 -# Distributed under the terms of the GNU General Public License v2
647 -
648 -EAPI=6
649 -
650 -KDE_REQUIRED="optional"
651 -KDE_SCM="git"
652 -CMAKE_REQUIRED="never"
653 -
654 -PYTHON_COMPAT=( python{2_7,3_4,3_5} )
655 -PYTHON_REQ_USE="threads,xml"
656 -
657 -# experimental ; release ; old
658 -# Usually the tarballs are moved a lot so this should make
659 -# everyone happy.
660 -DEV_URI="
661 - http://dev-builds.libreoffice.org/pre-releases/src
662 - http://download.documentfoundation.org/libreoffice/src/${PV:0:5}/
663 - http://download.documentfoundation.org/libreoffice/old/${PV}/
664 -"
665 -ADDONS_URI="http://dev-www.libreoffice.org/src/"
666 -
667 -BRANDING="${PN}-branding-gentoo-0.8.tar.xz"
668 -# PATCHSET="${P}-patchset-01.tar.xz"
669 -
670 -[[ ${PV} == *9999* ]] && SCM_ECLASS="git-r3"
671 -inherit multiprocessing autotools bash-completion-r1 check-reqs eutils java-pkg-opt-2 kde4-base pax-utils python-single-r1 multilib toolchain-funcs flag-o-matic versionator xdg-utils qmake-utils ${SCM_ECLASS}
672 -unset SCM_ECLASS
673 -
674 -DESCRIPTION="A full office productivity suite"
675 -HOMEPAGE="http://www.libreoffice.org"
676 -SRC_URI="branding? ( http://dev.gentoo.org/~dilfridge/distfiles/${BRANDING} )"
677 -[[ -n ${PATCHSET} ]] && SRC_URI+=" http://dev.gentooexperimental.org/~scarabeus/${PATCHSET}"
678 -
679 -# Split modules following git/tarballs
680 -# Core MUST be first!
681 -# Help is used for the image generator
682 -MODULES="core help"
683 -# Only release has the tarballs
684 -if [[ ${PV} != *9999* ]]; then
685 - for i in ${DEV_URI}; do
686 - for mod in ${MODULES}; do
687 - if [[ ${mod} == core ]]; then
688 - SRC_URI+=" ${i}/${P}.tar.xz"
689 - else
690 - SRC_URI+=" ${i}/${PN}-${mod}-${PV}.tar.xz"
691 - fi
692 - done
693 - unset mod
694 - done
695 - unset i
696 -fi
697 -unset DEV_URI
698 -
699 -# Really required addons
700 -# These are bundles that can't be removed for now due to huge patchsets.
701 -# If you want them gone, patches are welcome.
702 -ADDONS_SRC=(
703 - "${ADDONS_URI}/86b1daaa438f5a7bea9a52d7b9799ac0-xmlsec1-1.2.23.tar.gz" # modifies source code
704 - "collada? ( ${ADDONS_URI}/4b87018f7fff1d054939d19920b751a0-collada2gltf-master-cb1d97788a.tar.bz2 )"
705 - "java? ( ${ADDONS_URI}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip )"
706 - # no release for 8 years, should we package it?
707 - "libreoffice_extensions_wiki-publisher? ( ${ADDONS_URI}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip )"
708 - # Does not build with 1.6 rhino at all
709 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip )"
710 - # requirement of rhino
711 - "libreoffice_extensions_scripting-javascript? ( ${ADDONS_URI}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip )"
712 - # not packageable
713 - "odk? ( http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll )"
714 -)
715 -SRC_URI+=" ${ADDONS_SRC[*]}"
716 -
717 -unset ADDONS_URI
718 -unset ADDONS_SRC
719 -
720 -# Extensions that need extra work:
721 -LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
722 -
723 -IUSE="bluetooth +branding coinmp collada +cups dbus debug eds gltf gnome googledrive
724 -gstreamer +gtk gtk3 jemalloc kde libressl mysql odk pdfimport postgres quickstarter telepathy test vlc
725 -$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
726 -
727 -LICENSE="|| ( LGPL-3 MPL-1.1 )"
728 -SLOT="0"
729 -[[ ${PV} == *9999* ]] || \
730 -KEYWORDS=""
731 -#KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
732 -
733 -# TODO: not packaged: firebird? ( >=dev-db/firebird-3.0 )
734 -COMMON_DEPEND="${PYTHON_DEPS}
735 - app-arch/unzip
736 - app-arch/zip
737 - app-text/hunspell
738 - >=app-text/libabw-0.1.0
739 - >=app-text/libebook-0.1
740 - >=app-text/libetonyek-0.1
741 - app-text/libexttextcat
742 - app-text/liblangtag
743 - >=app-text/libmspub-0.1.0
744 - >=app-text/libmwaw-0.3.1
745 - >=app-text/libodfgen-0.1.0
746 - app-text/libstaroffice
747 - app-text/libwpd:0.10[tools]
748 - app-text/libwpg:0.3
749 - >=app-text/libwps-0.4
750 - app-text/mythes
751 - >=dev-cpp/clucene-2.3.3.4-r2
752 - =dev-cpp/libcmis-0.5*
753 - dev-db/unixODBC
754 - dev-lang/perl
755 - dev-libs/boost:=
756 - dev-libs/expat
757 - dev-libs/hyphen
758 - dev-libs/icu:=
759 - >=dev-libs/liborcus-0.12.1
760 - dev-libs/librevenge
761 - dev-libs/nspr
762 - dev-libs/nss
763 - !libressl? ( >=dev-libs/openssl-1.0.0d:0 )
764 - libressl? ( dev-libs/libressl )
765 - >=dev-libs/redland-1.0.16
766 - media-gfx/graphite2
767 - media-libs/fontconfig
768 - media-libs/freetype:2
769 - >=media-libs/glew-1.10:=
770 - media-libs/harfbuzz:=[graphite,icu]
771 - media-libs/lcms:2
772 - >=media-libs/libcdr-0.1.0
773 - >=media-libs/libfreehand-0.1.0
774 - media-libs/libpagemaker
775 - >=media-libs/libpng-1.4:0=
776 - >=media-libs/libvisio-0.1.0
777 - media-libs/libzmf
778 - net-libs/neon
779 - net-misc/curl
780 - net-nds/openldap
781 - sci-mathematics/lpsolve
782 - x11-libs/cairo[X,-xlib-xcb(-)]
783 - x11-libs/libXinerama
784 - x11-libs/libXrandr
785 - x11-libs/libXrender
786 - virtual/glu
787 - virtual/jpeg:0
788 - virtual/opengl
789 - bluetooth? ( net-wireless/bluez )
790 - coinmp? ( sci-libs/coinor-mp )
791 - collada? ( media-libs/opencollada )
792 - cups? ( net-print/cups )
793 - dbus? ( dev-libs/dbus-glib )
794 - eds? (
795 - dev-libs/glib:2
796 - gnome-extra/evolution-data-server
797 - )
798 - gltf? ( media-libs/libgltf )
799 - gnome? ( gnome-base/dconf )
800 - gstreamer? (
801 - media-libs/gstreamer:1.0
802 - media-libs/gst-plugins-base:1.0
803 - )
804 - gtk? (
805 - x11-libs/gdk-pixbuf
806 - >=x11-libs/gtk+-2.24:2
807 - )
808 - gtk3? (
809 - dev-libs/glib:2
810 - dev-libs/gobject-introspection
811 - x11-libs/gtk+:3
812 - )
813 - jemalloc? ( dev-libs/jemalloc )
814 - libreoffice_extensions_scripting-beanshell? ( dev-java/bsh )
815 - libreoffice_extensions_scripting-javascript? ( dev-java/rhino:1.6 )
816 - mysql? ( dev-db/mysql-connector-c++ )
817 - pdfimport? ( app-text/poppler:=[cxx] )
818 - postgres? ( >=dev-db/postgresql-9.0:*[kerberos] )
819 - telepathy? ( net-libs/telepathy-glib )
820 -"
821 -
822 -RDEPEND="${COMMON_DEPEND}
823 - !app-office/libreoffice-bin
824 - !app-office/libreoffice-bin-debug
825 - !app-office/openoffice
826 - media-fonts/liberation-fonts
827 - media-fonts/libertine
828 - media-fonts/urw-fonts
829 - java? ( >=virtual/jre-1.6 )
830 - kde? ( $(add_kdeapps_dep kioclient) )
831 - vlc? ( media-video/vlc )
832 -"
833 -
834 -if [[ ${PV} != *9999* ]]; then
835 - PDEPEND="=app-office/libreoffice-l10n-$(get_version_component_range 1-2)*"
836 -else
837 - # Translations are not reliable on live ebuilds
838 - # rather force people to use english only.
839 - PDEPEND="!app-office/libreoffice-l10n"
840 -fi
841 -
842 -# FIXME: cppunit should be moved to test conditional
843 -# after everything upstream is under gbuild
844 -# as dmake execute tests right away
845 -DEPEND="${COMMON_DEPEND}
846 - !<sys-devel/make-3.82
847 - >=dev-libs/libatomic_ops-7.2d
848 - >=dev-libs/libxml2-2.7.8
849 - dev-libs/libxslt
850 - dev-perl/Archive-Zip
851 - dev-util/cppunit
852 - >=dev-util/gperf-3
853 - dev-util/intltool
854 - >=dev-util/mdds-1.2.2:1=
855 - media-libs/glm
856 - sys-devel/bison
857 - sys-devel/flex
858 - sys-devel/gettext
859 - sys-devel/ucpp
860 - sys-libs/zlib
861 - virtual/pkgconfig
862 - x11-libs/libXt
863 - x11-libs/libXtst
864 - x11-proto/randrproto
865 - x11-proto/xextproto
866 - x11-proto/xineramaproto
867 - x11-proto/xproto
868 - java? (
869 - dev-java/ant-core
870 - >=virtual/jdk-1.6
871 - )
872 - odk? ( >=app-doc/doxygen-1.8.4 )
873 - test? ( dev-util/cppunit )
874 -"
875 -
876 -REQUIRED_USE="${PYTHON_REQUIRED_USE}
877 - bluetooth? ( dbus )
878 - collada? ( gltf )
879 - eds? ( gnome )
880 - gnome? ( gtk )
881 - telepathy? ( gtk )
882 - libreoffice_extensions_nlpsolver? ( java )
883 - libreoffice_extensions_scripting-beanshell? ( java )
884 - libreoffice_extensions_scripting-javascript? ( java )
885 - libreoffice_extensions_wiki-publisher? ( java )
886 -"
887 -
888 -PATCHES=(
889 - # not upstreamable stuff
890 - "${FILESDIR}/${PN}-5.3-system-pyuno.patch"
891 -
892 - # TODO: upstream
893 - "${FILESDIR}/${PN}-5.2.5.1-glibc-2.24.patch"
894 -)
895 -
896 -pkg_pretend() {
897 - use java || \
898 - ewarn "If you plan to use lbase application you should enable java or you will get various crashes."
899 -
900 - if [[ ${MERGE_TYPE} != binary ]]; then
901 -
902 - CHECKREQS_MEMORY="512M"
903 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
904 - CHECKREQS_DISK_BUILD="22G"
905 - else
906 - CHECKREQS_DISK_BUILD="6G"
907 - fi
908 - check-reqs_pkg_pretend
909 -
910 - if ! $(tc-is-clang) && { [[ $(gcc-major-version) -lt 4 ]] ||
911 - [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; } then
912 - eerror "Compilation with gcc older than 4.7 is not supported"
913 - die "Too old gcc found."
914 - fi
915 - fi
916 -
917 - # Ensure pg version but we have to be sure the pg is installed (first
918 - # install on clean system)
919 - if use postgres && has_version dev-db/postgresql; then
920 - local pgslot=$(postgresql-config show)
921 - if [[ ${pgslot//.} -lt 90 ]] ; then
922 - eerror "PostgreSQL slot must be set to 9.0 or higher."
923 - eerror " postgresql-config set 9.0"
924 - die "PostgreSQL slot is not set to 9.0 or higher."
925 - fi
926 - fi
927 -}
928 -
929 -pkg_setup() {
930 - java-pkg-opt-2_pkg_setup
931 - kde4-base_pkg_setup
932 - python-single-r1_pkg_setup
933 - xdg_environment_reset
934 -
935 - if [[ ${MERGE_TYPE} != binary ]]; then
936 - CHECKREQS_MEMORY="512M"
937 - if is-flagq "-g*" && ! is-flagq "-g*0" ; then
938 - CHECKREQS_DISK_BUILD="22G"
939 - else
940 - CHECKREQS_DISK_BUILD="6G"
941 - fi
942 - check-reqs_pkg_setup
943 - fi
944 -}
945 -
946 -src_unpack() {
947 - local mod
948 -
949 - [[ -n ${PATCHSET} ]] && unpack ${PATCHSET}
950 - use branding && unpack "${BRANDING}"
951 -
952 - if [[ ${PV} != *9999* ]]; then
953 - unpack "${P}.tar.xz"
954 - for mod in ${MODULES}; do
955 - [[ ${mod} == core ]] && continue
956 - unpack "${PN}-${mod}-${PV}.tar.xz"
957 - done
958 - else
959 - local base_uri branch checkout mypv
960 - base_uri="git://anongit.freedesktop.org"
961 - for mod in ${MODULES}; do
962 - branch="master"
963 - mypv=${PV/.9999}
964 - [[ ${mypv} != ${PV} ]] && branch="${PN}-${mypv/./-}"
965 - git-r3_fetch "${base_uri}/${PN}/${mod}" "refs/heads/${branch}"
966 - [[ ${mod} != core ]] && checkout="${S}/${mod}"
967 - [[ ${mod} == help ]] && checkout="helpcontent2" # doesn't match on help
968 - git-r3_checkout "${base_uri}/${PN}/${mod}" ${checkout}
969 - done
970 - fi
971 -}
972 -
973 -src_prepare() {
974 - [[ -n ${PATCHSET} ]] && eapply "${WORKDIR}/${PATCHSET/.tar.xz/}"
975 - eapply "${PATCHES[@]}"
976 - eapply_user
977 -
978 - AT_M4DIR="m4" eautoreconf
979 - # hack in the autogen.sh
980 - touch autogen.lastrun
981 -
982 - # system pyuno mess
983 - sed -i \
984 - -e "s:%eprefix%:${EPREFIX}:g" \
985 - -e "s:%libdir%:$(get_libdir):g" \
986 - pyuno/source/module/uno.py \
987 - pyuno/source/officehelper.py || die
988 - # sed in the tests
989 - sed -i \
990 - -e "s#all : build unitcheck#all : build#g" \
991 - solenv/gbuild/Module.mk || die
992 - sed -i \
993 - -e "s#check: dev-install subsequentcheck#check: unitcheck slowcheck dev-install subsequentcheck#g" \
994 - -e "s#Makefile.gbuild all slowcheck#Makefile.gbuild all#g" \
995 - Makefile.in || die
996 -
997 - sed -i \
998 - -e "s,/usr/share/bash-completion/completions,$(get_bashcompdir)," \
999 - -e "s,\$INSTALLDIRNAME.sh,${PN}," \
1000 - bin/distro-install-desktop-integration || die
1001 -
1002 - if use branding; then
1003 - # hack...
1004 - mv -v "${WORKDIR}/branding-intro.png" "${S}/icon-themes/galaxy/brand/intro.png" || die
1005 - fi
1006 -
1007 - # Don't list pdfimport support in desktop when built with none, bug # 605464
1008 - if ! use pdfimport; then
1009 - sed -i \
1010 - -e ":MimeType: s:application/pdf;::" \
1011 - -e ":Keywords: s:pdf;::" \
1012 - sysui/desktop/menus/draw.desktop || die
1013 - fi
1014 -}
1015 -
1016 -src_configure() {
1017 - local java_opts
1018 - local ext_opts
1019 -
1020 - # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
1021 - # Note: these are for Gentoo use ONLY. For your own distribution, please get
1022 - # your own set of keys. Feel free to contact chromium@g.o for more info.
1023 - local google_default_client_id="329227923882.apps.googleusercontent.com"
1024 - local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
1025 -
1026 - # optimization flags
1027 - export GMAKE_OPTIONS="${MAKEOPTS}"
1028 - # System python enablement:
1029 - export PYTHON_CFLAGS=$(python_get_CFLAGS)
1030 - export PYTHON_LIBS=$(python_get_LIBS)
1031 -
1032 - if use collada; then
1033 - export OPENCOLLADA_CFLAGS="-I/usr/include/opencollada/COLLADABaseUtils -I/usr/include/opencollada/COLLADAFramework -I/usr/include/opencollada/COLLADASaxFrameworkLoader -I/usr/include/opencollada/GeneratedSaxParser"
1034 - export OPENCOLLADA_LIBS="-L /usr/$(get_libdir)/opencollada -lOpenCOLLADABaseUtils -lOpenCOLLADAFramework -lOpenCOLLADASaxFrameworkLoader -lGeneratedSaxParser"
1035 - fi
1036 -
1037 - # libreoffice extensions handling
1038 - for lo_xt in ${LO_EXTS}; do
1039 - if [[ "${lo_xt}" == "scripting-beanshell" || "${lo_xt}" == "scripting-javascript" ]]; then
1040 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ${lo_xt})"
1041 - else
1042 - ext_opts+=" $(use_enable libreoffice_extensions_${lo_xt} ext-${lo_xt})"
1043 - fi
1044 - done
1045 -
1046 - if use java; then
1047 - # hsqldb: system one is too new
1048 - java_opts="
1049 - --without-junit
1050 - --without-system-hsqldb
1051 - --with-ant-home="${ANT_HOME}"
1052 - --with-jdk-home=$(java-config --jdk-home 2>/dev/null)
1053 - --with-jvm-path="${EPREFIX}/usr/lib/"
1054 - "
1055 -
1056 - use libreoffice_extensions_scripting-beanshell && \
1057 - java_opts+=" --with-beanshell-jar=$(java-pkg_getjar bsh bsh.jar)"
1058 -
1059 - use libreoffice_extensions_scripting-javascript && \
1060 - java_opts+=" --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar)"
1061 - fi
1062 -
1063 - if use kde; then
1064 - # bug 544108, bug 599076
1065 - export QMAKEQT4="$(qt4_get_bindir)/qmake"
1066 - export MOCQT4="$(qt4_get_bindir)/moc"
1067 - fi
1068 -
1069 - # system headers/libs/...: enforce using system packages
1070 - # --disable-breakpad: requires not-yet-in-tree dev-utils/breakpad
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 - # --enable-extension-integration: enable any extension integration support
1077 - # --without-{fonts,myspell-dicts,ppsd}: prevent install of sys pkgs
1078 - # --disable-report-builder: too much java packages pulled in without pkgs
1079 - # --without-system-sane: just sane.h header that is used for scan in writer,
1080 - # not linked or anything else, worthless to depend on
1081 - # TODO: $(use_enable firebird firebird-sdbc) \
1082 - econf \
1083 - --docdir="${EPREFIX}/usr/share/doc/${PF}/" \
1084 - --with-system-dicts \
1085 - --with-system-headers \
1086 - --with-system-jars \
1087 - --with-system-libs \
1088 - --enable-cairo-canvas \
1089 - --enable-graphite \
1090 - --enable-largefile \
1091 - --enable-mergelibs \
1092 - --enable-neon \
1093 - --enable-python=system \
1094 - --enable-randr \
1095 - --enable-release-build \
1096 - --disable-breakpad \
1097 - --disable-ccache \
1098 - --disable-dependency-tracking \
1099 - --disable-epm \
1100 - --disable-fetch-external \
1101 - --disable-firebird-sdbc \
1102 - --disable-gstreamer-0-10 \
1103 - --disable-online-update \
1104 - --disable-report-builder \
1105 - --with-alloc=$(use jemalloc && echo "jemalloc" || echo "system") \
1106 - --with-build-version="Gentoo official package" \
1107 - --enable-extension-integration \
1108 - --with-external-dict-dir="${EPREFIX}/usr/share/myspell" \
1109 - --with-external-hyph-dir="${EPREFIX}/usr/share/myspell" \
1110 - --with-external-thes-dir="${EPREFIX}/usr/share/myspell" \
1111 - --with-external-tar="${DISTDIR}" \
1112 - --with-lang="" \
1113 - --with-parallelism=$(makeopts_jobs) \
1114 - --with-system-ucpp \
1115 - --with-vendor="Gentoo Foundation" \
1116 - --with-x \
1117 - --without-fonts \
1118 - --without-myspell-dicts \
1119 - --without-help \
1120 - --with-helppack-integration \
1121 - --without-system-sane \
1122 - $(use_enable bluetooth sdremote-bluetooth) \
1123 - $(use_enable coinmp) \
1124 - $(use_enable collada) \
1125 - $(use_enable cups) \
1126 - $(use_enable debug) \
1127 - $(use_enable dbus) \
1128 - $(use_enable eds evolution2) \
1129 - $(use_enable gltf) \
1130 - $(use_enable gnome gio) \
1131 - $(use_enable gnome dconf) \
1132 - $(use_enable gstreamer gstreamer-1-0) \
1133 - $(use_enable gtk) \
1134 - $(use_enable gtk3) \
1135 - $(use_enable kde kde4) \
1136 - $(use_enable mysql ext-mariadb-connector) \
1137 - $(use_enable odk) \
1138 - $(use_enable pdfimport) \
1139 - $(use_enable postgres postgresql-sdbc) \
1140 - $(use_enable quickstarter systray) \
1141 - $(use_enable telepathy) \
1142 - $(use_enable vlc) \
1143 - $(use_with coinmp system-coinmp) \
1144 - $(use_with collada system-opencollada) \
1145 - $(use_with gltf system-libgltf) \
1146 - $(use_with googledrive gdrive-client-id ${google_default_client_id}) \
1147 - $(use_with googledrive gdrive-client-secret ${google_default_client_secret}) \
1148 - $(use_with java) \
1149 - $(use_with mysql system-mysql-cppconn) \
1150 - $(use_with odk doxygen) \
1151 - ${java_opts} \
1152 - ${ext_opts}
1153 -}
1154 -
1155 -src_compile() {
1156 - # more and more LO stuff tries to use OpenGL, including tests during build
1157 - # bug 501508, bug 540624, bug 545974 and probably more
1158 - addpredict /dev/dri
1159 - addpredict /dev/ati
1160 - addpredict /dev/nvidiactl
1161 -
1162 - # hack for offlinehelp, this needs fixing upstream at some point
1163 - # it is broken because we send --without-help
1164 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
1165 - (
1166 - grep "^export" "${S}/config_host.mk" > "${T}/config_host.mk" || die
1167 - source "${T}/config_host.mk" 2&> /dev/null
1168 -
1169 - local path="${WORKDIR}/helpcontent2/source/auxiliary/"
1170 - mkdir -p "${path}" || die
1171 -
1172 - echo "perl \"${S}/helpcontent2/helpers/create_ilst.pl\" -dir=icon-themes/galaxy/res/helpimg > \"${path}/helpimg.ilst\""
1173 - perl "${S}/helpcontent2/helpers/create_ilst.pl" \
1174 - -dir=icon-themes/galaxy/res/helpimg \
1175 - > "${path}/helpimg.ilst"
1176 - [[ -s "${path}/helpimg.ilst" ]] || \
1177 - ewarn "The help images list is empty, something is fishy, report a bug."
1178 - )
1179 -
1180 - local target
1181 - use test && target="build" || target="build-nocheck"
1182 -
1183 - # this is not a proper make script
1184 - make ${target} || die
1185 -}
1186 -
1187 -src_test() {
1188 - make unitcheck || die
1189 - make slowcheck || die
1190 -}
1191 -
1192 -src_install() {
1193 - # This is not Makefile so no buildserver
1194 - make DESTDIR="${D}" distro-pack-install -o build -o check || die
1195 -
1196 - # bug 593514
1197 - if use gtk3; then
1198 - dosym /usr/$(get_libdir)/libreoffice/program/liblibreofficekitgtk.so \
1199 - /usr/$(get_libdir)/liblibreofficekitgtk.so
1200 - fi
1201 -
1202 - # bash completion aliases
1203 - bashcomp_alias \
1204 - libreoffice \
1205 - unopkg loimpress lobase localc lodraw lomath lowriter lofromtemplate loweb loffice
1206 -
1207 - if use branding; then
1208 - insinto /usr/$(get_libdir)/${PN}/program
1209 - newins "${WORKDIR}/branding-sofficerc" sofficerc
1210 - dodir /etc/env.d
1211 - echo "CONFIG_PROTECT=/usr/$(get_libdir)/${PN}/program/sofficerc" > "${ED}"etc/env.d/99${PN} || die
1212 - fi
1213 -
1214 - # Hack for offlinehelp, this needs fixing upstream at some point.
1215 - # It is broken because we send --without-help
1216 - # https://bugs.freedesktop.org/show_bug.cgi?id=46506
1217 - insinto /usr/$(get_libdir)/libreoffice/help
1218 - doins xmlhelp/util/*.xsl
1219 -
1220 - # Remove desktop files to support old installs that can't parse mime
1221 - rm -r "${ED}"usr/share/mimelnk/ || die
1222 -
1223 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/soffice.bin
1224 - pax-mark -m "${ED}"usr/$(get_libdir)/libreoffice/program/unopkg.bin
1225 -}
1226 -
1227 -pkg_preinst() {
1228 - # Cache updates - all handled by kde eclass for all environments
1229 - kde4-base_pkg_preinst
1230 -}
1231 -
1232 -pkg_postinst() {
1233 - kde4-base_pkg_postinst
1234 -}
1235 -
1236 -pkg_postrm() {
1237 - kde4-base_pkg_postrm
1238 -}