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