1 |
commit: 1c8cf2757d1e8085ed7b1969718ce22650edb23f |
2 |
Author: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 4 00:36:03 2017 +0000 |
4 |
Commit: Alon Bar-Lev <alonbl <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 4 00:37:16 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c8cf275 |
7 |
|
8 |
dev-libs/efl: support gnutls-3.4 |
9 |
|
10 |
Bug: 584924 |
11 |
|
12 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
13 |
|
14 |
dev-libs/efl/efl-1.17.0-r1.ebuild | 279 +++++++++++++++++++++++++ |
15 |
dev-libs/efl/files/efl-1.17.0-gnutls-3.4.patch | 39 ++++ |
16 |
2 files changed, 318 insertions(+) |
17 |
|
18 |
diff --git a/dev-libs/efl/efl-1.17.0-r1.ebuild b/dev-libs/efl/efl-1.17.0-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..27b0c680047 |
21 |
--- /dev/null |
22 |
+++ b/dev-libs/efl/efl-1.17.0-r1.ebuild |
23 |
@@ -0,0 +1,279 @@ |
24 |
+# Copyright 1999-2017 Gentoo Foundation |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI="5" |
28 |
+ |
29 |
+MY_P=${P/_/-} |
30 |
+ |
31 |
+if [[ "${PV}" == "9999" ]] ; then |
32 |
+ EGIT_SUB_PROJECT="core" |
33 |
+ EGIT_URI_APPEND="${PN}" |
34 |
+elif [[ *"${PV}" == *"_pre"* ]] ; then |
35 |
+ MY_P=${P%%_*} |
36 |
+ SRC_URI="https://download.enlightenment.org/pre-releases/${MY_P}.tar.xz" |
37 |
+ EKEY_STATE="snap" |
38 |
+else |
39 |
+ SRC_URI="https://download.enlightenment.org/rel/libs/${PN}/${MY_P}.tar.xz" |
40 |
+ EKEY_STATE="release" |
41 |
+fi |
42 |
+ |
43 |
+inherit enlightenment pax-utils |
44 |
+ |
45 |
+DESCRIPTION="Enlightenment Foundation Libraries all-in-one package" |
46 |
+ |
47 |
+LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB" |
48 |
+IUSE="+bmp debug drm +eet egl fbcon +fontconfig fribidi gif gles glib gnutls gstreamer harfbuzz +ico ibus jpeg2k libressl neon oldlua opengl ssl physics pixman +png +ppm +psd pulseaudio scim sdl sound systemd tga tiff tslib v4l valgrind wayland webp X xim xine xpm" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x64-solaris ~x86-solaris" |
50 |
+ |
51 |
+REQUIRED_USE=" |
52 |
+ pulseaudio? ( sound ) |
53 |
+ opengl? ( || ( X sdl wayland ) ) |
54 |
+ gles? ( || ( X wayland ) ) |
55 |
+ gles? ( !sdl ) |
56 |
+ gles? ( egl ) |
57 |
+ sdl? ( opengl ) |
58 |
+ wayland? ( egl !opengl gles ) |
59 |
+ xim? ( X ) |
60 |
+" |
61 |
+ |
62 |
+RDEPEND=" |
63 |
+ drm? ( |
64 |
+ >=dev-libs/libinput-0.8 |
65 |
+ media-libs/mesa[gbm] |
66 |
+ >=x11-libs/libdrm-2.4 |
67 |
+ >=x11-libs/libxkbcommon-0.3.0 |
68 |
+ ) |
69 |
+ fontconfig? ( media-libs/fontconfig ) |
70 |
+ fribidi? ( dev-libs/fribidi ) |
71 |
+ gif? ( media-libs/giflib ) |
72 |
+ glib? ( dev-libs/glib:2 ) |
73 |
+ gnutls? ( net-libs/gnutls ) |
74 |
+ !gnutls? ( |
75 |
+ ssl? ( |
76 |
+ !libressl? ( dev-libs/openssl:0= ) |
77 |
+ libressl? ( dev-libs/libressl ) |
78 |
+ ) |
79 |
+ ) |
80 |
+ gstreamer? ( |
81 |
+ media-libs/gstreamer:1.0 |
82 |
+ media-libs/gst-plugins-base:1.0 |
83 |
+ ) |
84 |
+ harfbuzz? ( media-libs/harfbuzz ) |
85 |
+ ibus? ( app-i18n/ibus ) |
86 |
+ jpeg2k? ( media-libs/openjpeg:0 ) |
87 |
+ !oldlua? ( >=dev-lang/luajit-2.0.0 ) |
88 |
+ oldlua? ( dev-lang/lua:* ) |
89 |
+ physics? ( >=sci-physics/bullet-2.80 ) |
90 |
+ pixman? ( x11-libs/pixman ) |
91 |
+ png? ( media-libs/libpng:0= ) |
92 |
+ pulseaudio? ( media-sound/pulseaudio ) |
93 |
+ scim? ( app-i18n/scim ) |
94 |
+ sdl? ( |
95 |
+ media-libs/libsdl2 |
96 |
+ virtual/opengl |
97 |
+ ) |
98 |
+ sound? ( media-libs/libsndfile ) |
99 |
+ systemd? ( sys-apps/systemd ) |
100 |
+ tiff? ( media-libs/tiff:0= ) |
101 |
+ tslib? ( x11-libs/tslib ) |
102 |
+ valgrind? ( dev-util/valgrind ) |
103 |
+ wayland? ( |
104 |
+ >=dev-libs/wayland-1.8.0 |
105 |
+ >=x11-libs/libxkbcommon-0.3.1 |
106 |
+ media-libs/mesa[gles2,wayland] |
107 |
+ ) |
108 |
+ webp? ( media-libs/libwebp ) |
109 |
+ X? ( |
110 |
+ x11-libs/libXcursor |
111 |
+ x11-libs/libX11 |
112 |
+ x11-libs/libXcomposite |
113 |
+ x11-libs/libXdamage |
114 |
+ x11-libs/libXext |
115 |
+ x11-libs/libXfixes |
116 |
+ x11-libs/libXinerama |
117 |
+ x11-libs/libXp |
118 |
+ x11-libs/libXrandr |
119 |
+ x11-libs/libXrender |
120 |
+ x11-libs/libXtst |
121 |
+ x11-libs/libXScrnSaver |
122 |
+ |
123 |
+ opengl? ( |
124 |
+ x11-libs/libX11 |
125 |
+ x11-libs/libXrender |
126 |
+ virtual/opengl |
127 |
+ ) |
128 |
+ |
129 |
+ gles? ( |
130 |
+ x11-libs/libX11 |
131 |
+ x11-libs/libXrender |
132 |
+ virtual/opengl |
133 |
+ ) |
134 |
+ ) |
135 |
+ xine? ( >=media-libs/xine-lib-1.1.1 ) |
136 |
+ xpm? ( x11-libs/libXpm ) |
137 |
+ |
138 |
+ sys-apps/dbus |
139 |
+ >=sys-apps/util-linux-2.20.0 |
140 |
+ sys-libs/zlib |
141 |
+ virtual/jpeg:0= |
142 |
+ |
143 |
+ !dev-libs/ecore |
144 |
+ !dev-libs/edbus |
145 |
+ !dev-libs/eet |
146 |
+ !dev-libs/eeze |
147 |
+ !dev-libs/efreet |
148 |
+ !dev-libs/eina |
149 |
+ !dev-libs/eio |
150 |
+ !dev-libs/embryo |
151 |
+ !dev-libs/eobj |
152 |
+ !dev-libs/ephysics |
153 |
+ !media-libs/edje |
154 |
+ !media-libs/emotion |
155 |
+ !media-libs/ethumb |
156 |
+ !media-libs/evas |
157 |
+" |
158 |
+#external lz4 support currently broken because of unstable ABI/API |
159 |
+# app-arch/lz4 |
160 |
+ |
161 |
+#soft blockers added above for binpkg users |
162 |
+#hard blocks are needed for building |
163 |
+CORE_EFL_CONFLICTS=" |
164 |
+ !!dev-libs/ecore |
165 |
+ !!dev-libs/edbus |
166 |
+ !!dev-libs/eet |
167 |
+ !!dev-libs/eeze |
168 |
+ !!dev-libs/efreet |
169 |
+ !!dev-libs/eina |
170 |
+ !!dev-libs/eio |
171 |
+ !!dev-libs/embryo |
172 |
+ !!dev-libs/eobj |
173 |
+ !!dev-libs/ephysics |
174 |
+ !!media-libs/edje |
175 |
+ !!media-libs/emotion |
176 |
+ !!media-libs/ethumb |
177 |
+ !!media-libs/evas |
178 |
+" |
179 |
+ |
180 |
+DEPEND=" |
181 |
+ ${CORE_EFL_CONFLICTS} |
182 |
+ |
183 |
+ ${RDEPEND} |
184 |
+ doc? ( app-doc/doxygen ) |
185 |
+" |
186 |
+ |
187 |
+S=${WORKDIR}/${MY_P} |
188 |
+ |
189 |
+src_prepare() { |
190 |
+ enlightenment_src_prepare |
191 |
+ |
192 |
+ epatch "${FILESDIR}/${P}-gnutls-3.4.patch" |
193 |
+ |
194 |
+ # Remove stupid sleep command. |
195 |
+ # Also back out gnu make hack that causes regen of Makefiles. |
196 |
+ # Delete var setting that causes the build to abort. |
197 |
+ sed -i \ |
198 |
+ -e '/sleep 10/d' \ |
199 |
+ -e '/^#### Work around bug in automake check macro$/,/^#### Info$/d' \ |
200 |
+ -e '/BARF_OK=/s:=.*:=:' \ |
201 |
+ configure || die |
202 |
+} |
203 |
+ |
204 |
+src_configure() { |
205 |
+ if use ssl && use gnutls ; then |
206 |
+ einfo "You enabled both USE=ssl and USE=gnutls, but only one can be used;" |
207 |
+ einfo "gnutls has been selected for you." |
208 |
+ fi |
209 |
+ if use opengl && use gles ; then |
210 |
+ einfo "You enabled both USE=opengl and USE=gles, but only one can be used;" |
211 |
+ einfo "opengl has been selected for you." |
212 |
+ fi |
213 |
+ |
214 |
+ E_ECONF=( |
215 |
+ --with-profile=$(usex debug debug release) |
216 |
+ --with-crypto=$(usex gnutls gnutls $(usex ssl openssl none)) |
217 |
+ --with-x11=$(usex X xlib none) |
218 |
+ $(use_with X x) |
219 |
+ --with-opengl=$(usex opengl full $(usex gles es none)) |
220 |
+ --with-glib=$(usex glib) |
221 |
+ --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb |
222 |
+ |
223 |
+ $(use_enable bmp image-loader-bmp) |
224 |
+ $(use_enable bmp image-loader-wbmp) |
225 |
+ $(use_enable drm) |
226 |
+ $(use_enable doc) |
227 |
+ $(use_enable eet image-loader-eet) |
228 |
+ $(use_enable egl) |
229 |
+ $(use_enable fbcon fb) |
230 |
+ $(use_enable fontconfig) |
231 |
+ $(use_enable fribidi) |
232 |
+ $(use_enable gif image-loader-gif) |
233 |
+ $(use_enable gstreamer gstreamer1) |
234 |
+ $(use_enable harfbuzz) |
235 |
+ $(use_enable ico image-loader-ico) |
236 |
+ $(use_enable ibus) |
237 |
+ $(use_enable jpeg2k image-loader-jp2k) |
238 |
+ $(use_enable neon) |
239 |
+ $(use_enable nls) |
240 |
+ $(use_enable oldlua lua-old) |
241 |
+ $(use_enable physics) |
242 |
+ $(use_enable pixman) |
243 |
+ $(use_enable pixman pixman-font) |
244 |
+ $(use_enable pixman pixman-rect) |
245 |
+ $(use_enable pixman pixman-line) |
246 |
+ $(use_enable pixman pixman-poly) |
247 |
+ $(use_enable pixman pixman-image) |
248 |
+ $(use_enable pixman pixman-image-scale-sample) |
249 |
+ $(use_enable png image-loader-png) |
250 |
+ $(use_enable ppm image-loader-pmaps) |
251 |
+ $(use_enable psd image-loader-psd) |
252 |
+ $(use_enable pulseaudio) |
253 |
+ $(use_enable scim) |
254 |
+ $(use_enable sdl) |
255 |
+ $(use_enable sound audio) |
256 |
+ $(use_enable systemd) |
257 |
+ $(use_enable tga image-loader-tga) |
258 |
+ $(use_enable tiff image-loader-tiff) |
259 |
+ $(use_enable tslib) |
260 |
+ $(use_enable v4l v4l2) |
261 |
+ $(use_enable valgrind) |
262 |
+ $(use_enable wayland) |
263 |
+ $(use_enable webp image-loader-webp) |
264 |
+ $(use_enable xim) |
265 |
+ $(use_enable xine) |
266 |
+ $(use_enable xpm image-loader-xpm) |
267 |
+ --enable-cserve |
268 |
+ --enable-image-loader-generic |
269 |
+ --enable-image-loader-jpeg |
270 |
+ |
271 |
+ --disable-tizen |
272 |
+ --disable-gesture |
273 |
+ --disable-gstreamer |
274 |
+ --enable-xinput2 |
275 |
+ --disable-xinput22 |
276 |
+ --disable-multisense |
277 |
+ --enable-libmount |
278 |
+ |
279 |
+ # external lz4 support currently broken because of unstable ABI/API |
280 |
+ #--enable-liblz4 |
281 |
+ ) |
282 |
+ |
283 |
+ enlightenment_src_configure |
284 |
+} |
285 |
+ |
286 |
+src_compile() { |
287 |
+ if host-is-pax && ! use oldlua ; then |
288 |
+ # We need to build the lua code first so we can pax-mark it. #547076 |
289 |
+ local target='_e_built_sources_target_gogogo_' |
290 |
+ printf '%s: $(BUILT_SOURCES)\n' "${target}" >> src/Makefile || die |
291 |
+ emake -C src "${target}" |
292 |
+ emake -C src bin/elua/elua |
293 |
+ pax-mark m src/bin/elua/.libs/elua |
294 |
+ fi |
295 |
+ enlightenment_src_compile |
296 |
+} |
297 |
+ |
298 |
+src_install() { |
299 |
+ MAKEOPTS+=" -j1" |
300 |
+ |
301 |
+ enlightenment_src_install |
302 |
+} |
303 |
|
304 |
diff --git a/dev-libs/efl/files/efl-1.17.0-gnutls-3.4.patch b/dev-libs/efl/files/efl-1.17.0-gnutls-3.4.patch |
305 |
new file mode 100644 |
306 |
index 00000000000..6c5f8eb757c |
307 |
--- /dev/null |
308 |
+++ b/dev-libs/efl/files/efl-1.17.0-gnutls-3.4.patch |
309 |
@@ -0,0 +1,39 @@ |
310 |
+From 6f42992b4f1110f44d2db57cd6fe42559cfffdc2 Mon Sep 17 00:00:00 2001 |
311 |
+From: Cedric BAIL <cedric@×××××××××××.com> |
312 |
+Date: Wed, 21 Sep 2016 10:33:44 -0700 |
313 |
+Subject: [PATCH] eet: fix gnutls support with newer version. |
314 |
+ |
315 |
+--- |
316 |
+ src/lib/eet/eet_cipher.c | 9 ++++----- |
317 |
+ 1 file changed, 4 insertions(+), 5 deletions(-) |
318 |
+ |
319 |
+diff --git a/src/lib/eet/eet_cipher.c b/src/lib/eet/eet_cipher.c |
320 |
+index a34fdff..cf9ef71 100644 |
321 |
+--- a/src/lib/eet/eet_cipher.c |
322 |
++++ b/src/lib/eet/eet_cipher.c |
323 |
+@@ -679,7 +679,6 @@ eet_identity_check(const void *data_base, |
324 |
+ gnutls_datum_t datum; |
325 |
+ gnutls_datum_t signature; |
326 |
+ gnutls_pubkey_t pubkey; |
327 |
+- gnutls_digest_algorithm_t hash_algo; |
328 |
+ unsigned char *hash; |
329 |
+ gcry_md_hd_t md; |
330 |
+ int err; |
331 |
+@@ -717,10 +716,10 @@ eet_identity_check(const void *data_base, |
332 |
+ if (gnutls_pubkey_import_x509(pubkey, cert, 0) < 0) |
333 |
+ goto on_error; |
334 |
+ |
335 |
+- if (gnutls_pubkey_get_verify_algorithm(pubkey, &signature, &hash_algo) < 0) |
336 |
+- goto on_error; |
337 |
+- |
338 |
+- if (gnutls_pubkey_verify_hash(pubkey, 0, &datum, &signature) < 0) |
339 |
++ if (gnutls_pubkey_verify_hash2(pubkey, |
340 |
++ gnutls_x509_crt_get_signature_algorithm(cert), |
341 |
++ 0, |
342 |
++ &datum, &signature) < 0) |
343 |
+ goto on_error; |
344 |
+ |
345 |
+ if (sha1) |
346 |
+-- |
347 |
+2.10.2 |
348 |
+ |