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