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