1 |
commit: 314ec15ecf6570c2870c615d2f51e40ab66351d6 |
2 |
Author: Julian Ospald <hasufell <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 2 16:58:06 2015 +0000 |
4 |
Commit: Julian Ospald <hasufell <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 2 16:58:47 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=314ec15e |
7 |
|
8 |
dev-libs/ecore: add libressl support |
9 |
|
10 |
dev-libs/ecore/ecore-1.7.10-r1.ebuild | 206 ++++++++++++++++++++++++++++++++++ |
11 |
1 file changed, 206 insertions(+) |
12 |
|
13 |
diff --git a/dev-libs/ecore/ecore-1.7.10-r1.ebuild b/dev-libs/ecore/ecore-1.7.10-r1.ebuild |
14 |
new file mode 100644 |
15 |
index 0000000..ca6bdd6 |
16 |
--- /dev/null |
17 |
+++ b/dev-libs/ecore/ecore-1.7.10-r1.ebuild |
18 |
@@ -0,0 +1,206 @@ |
19 |
+# Copyright 1999-2015 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+# $Id$ |
22 |
+ |
23 |
+EAPI=5 |
24 |
+ |
25 |
+if [[ ${PV} == "9999" ]] ; then |
26 |
+ EGIT_SUB_PROJECT="legacy" |
27 |
+ EGIT_URI_APPEND=${PN} |
28 |
+ EGIT_BRANCH=${PN}-1.7 |
29 |
+else |
30 |
+ SRC_URI="https://download.enlightenment.org/releases/${P}.tar.bz2" |
31 |
+ EKEY_STATE="snap" |
32 |
+fi |
33 |
+ |
34 |
+# virtualx is required for tests, which are currently broken |
35 |
+#inherit virtualx |
36 |
+inherit enlightenment eutils |
37 |
+ |
38 |
+DESCRIPTION="Enlightenment's core event abstraction layer and OS abstraction layer" |
39 |
+ |
40 |
+LICENSE="BSD-2" |
41 |
+IUSE="ares curl directfb +evas examples fbcon gles glib gnutls +inotify ipv6 libressl opengl sdl ssl static-libs test +threads tslib wayland +X xcb xinerama xprint xscreensaver" |
42 |
+ |
43 |
+RDEPEND=">=dev-libs/eina-${PV} |
44 |
+ ares? ( net-dns/c-ares ) |
45 |
+ glib? ( dev-libs/glib:2 ) |
46 |
+ curl? ( net-misc/curl ) |
47 |
+ gnutls? ( net-libs/gnutls ) |
48 |
+ !gnutls? ( |
49 |
+ ssl? ( |
50 |
+ !libressl? ( dev-libs/openssl:0 ) |
51 |
+ libressl? ( dev-libs/libressl ) |
52 |
+ ) |
53 |
+ ) |
54 |
+ evas? ( |
55 |
+ >=media-libs/evas-${PV}[directfb?,fbcon?,opengl?,X?,xcb?] |
56 |
+ opengl? ( virtual/opengl ) |
57 |
+ wayland? ( |
58 |
+ >=media-libs/evas-${PV}[directfb?,fbcon?,gles?,opengl?,wayland?,X?,xcb?] |
59 |
+ ) |
60 |
+ ) |
61 |
+ directfb? ( >=dev-libs/DirectFB-0.9.16 ) |
62 |
+ tslib? ( x11-libs/tslib ) |
63 |
+ sdl? ( media-libs/libsdl ) |
64 |
+ wayland? ( dev-libs/wayland ) |
65 |
+ X? ( |
66 |
+ x11-libs/libX11 |
67 |
+ x11-libs/libXcomposite |
68 |
+ x11-libs/libXcursor |
69 |
+ x11-libs/libXdamage |
70 |
+ x11-libs/libXext |
71 |
+ x11-libs/libXfixes |
72 |
+ x11-libs/libXi |
73 |
+ x11-libs/libXrender |
74 |
+ x11-libs/libXtst |
75 |
+ xinerama? ( x11-libs/libXinerama x11-libs/libXrandr ) |
76 |
+ xprint? ( x11-libs/libXp ) |
77 |
+ xscreensaver? ( x11-libs/libXScrnSaver ) |
78 |
+ ) |
79 |
+ !X? ( xcb? ( |
80 |
+ x11-libs/pixman |
81 |
+ x11-libs/xcb-util |
82 |
+ ) )" |
83 |
+DEPEND="${RDEPEND}" |
84 |
+ |
85 |
+# tests depend on temp data from eina WORKDIR. |
86 |
+RESTRICT="test" |
87 |
+ |
88 |
+src_configure() { |
89 |
+ local ssl_flags=() evas_flags=() x_flags=() |
90 |
+ |
91 |
+ if use gnutls && use ssl; then |
92 |
+ einfo "You have enabled both 'ssl' and 'gnutls', so we will use" |
93 |
+ einfo "gnutls and not openssl for ecore-con support." |
94 |
+ fi |
95 |
+ ssl_flags=( |
96 |
+ $(usex gnutls "--disable-openssl" "$(use_enable ssl openssl)") |
97 |
+ $(use_enable gnutls) |
98 |
+ ) |
99 |
+ |
100 |
+ local x_or_xcb=$(usex X "X" "$(usev xcb)") |
101 |
+ |
102 |
+ if use evas; then |
103 |
+ if use opengl && [[ -z ${x_or_xcb} ]]; then |
104 |
+ ewarn "Ecore/Evas usage of OpenGL requires X11." |
105 |
+ ewarn "Compile dev-libs/ecore with USE=X or xcb." |
106 |
+ ewarn "Compiling without opengl support." |
107 |
+ evas_flags=( |
108 |
+ --disable-ecore-evas-software-x11 |
109 |
+ --disable-ecore-evas-software-16-x11 |
110 |
+ ) |
111 |
+ else |
112 |
+ evas_flags=( |
113 |
+ --enable-ecore-evas-software-x11 |
114 |
+ --enable-ecore-evas-software-16-x11 |
115 |
+ ) |
116 |
+ fi |
117 |
+ evas_flags+=( |
118 |
+ $(use_enable directfb ecore-evas-directfb) |
119 |
+ $(use_enable fbcon ecore-evas-fb) |
120 |
+ $(use_enable opengl ecore-evas-opengl-x11) |
121 |
+ $(use_enable wayland ecore-evas-wayland-shm) |
122 |
+ $(usex wayland "--disable-ecore-evas-wayland-egl" "$(use_enable gles ecore-evas-wayland-egl)") |
123 |
+ ) |
124 |
+ else |
125 |
+ evas_flags=( |
126 |
+ --disable-ecore-evas-directfb |
127 |
+ --disable-ecore-evas-fb |
128 |
+ --disable-ecore-evas-software-x11 |
129 |
+ --disable-ecore-evas-software-16-x11 |
130 |
+ --disable-ecore-evas-opengl-x11 |
131 |
+ --disable-ecore-evas-wayland-shm |
132 |
+ --disable-ecore-evas-wayland-egl |
133 |
+ ) |
134 |
+ if use opengl; then |
135 |
+ ewarn "Ecore usage of OpenGL is dependent on media-libs/evas." |
136 |
+ ewarn "Compile dev-libs/ecore with USE=evas." |
137 |
+ fi |
138 |
+ fi |
139 |
+ |
140 |
+ if use X; then |
141 |
+ if use xcb; then |
142 |
+ ewarn "You have enabled both 'X' and 'xcb', so we will use" |
143 |
+ ewarn "X as it's considered the most stable for ecore-x." |
144 |
+ fi |
145 |
+ x_flags=( |
146 |
+ --enable-ecore-x |
147 |
+ --disable-ecore-x-xcb |
148 |
+ ) |
149 |
+ elif use xcb; then |
150 |
+ x_flags=( |
151 |
+ --enable-ecore-x |
152 |
+ --enable-ecore-x-xcb |
153 |
+ ) |
154 |
+ else |
155 |
+ x_flags=( |
156 |
+ --disable-ecore-x |
157 |
+ --disable-ecore-x-xcb |
158 |
+ ) |
159 |
+ fi |
160 |
+ |
161 |
+ if [[ -n ${x_or_xcb} ]]; then |
162 |
+ x_flags+=( |
163 |
+ $(use_enable xinerama ecore-x-xinerama) |
164 |
+ $(use_enable xprint ecore-x-xprint) |
165 |
+ $(use_enable xscreensaver ecore-x-screensaver) |
166 |
+ ) |
167 |
+ else |
168 |
+ x_flags+=( |
169 |
+ --disable-ecore-x-xinerama |
170 |
+ --disable-ecore-x-xprint |
171 |
+ --disable-ecore-x-screensaver |
172 |
+ ) |
173 |
+ fi |
174 |
+ |
175 |
+ if use tslib && ! use fbcon; then |
176 |
+ ewarn "Ecore just uses tslib for framebuffer input." |
177 |
+ ewarn "Compile dev-libs/ecore with USE=fbcon." |
178 |
+ fi |
179 |
+ |
180 |
+ E_ECONF=( |
181 |
+ --enable-ecore-con |
182 |
+ --enable-ecore-ipc |
183 |
+ --enable-ecore-file |
184 |
+ --enable-ecore-imf |
185 |
+ --enable-ecore-input |
186 |
+ --disable-ecore-win32 |
187 |
+ --disable-ecore-wince |
188 |
+ --disable-ecore-evas-software-gdi |
189 |
+ --disable-ecore-evas-software-ddraw |
190 |
+ --disable-ecore-evas-direct3d |
191 |
+ --disable-ecore-evas-opengl-glew |
192 |
+ --disable-ecore-evas-software-16-ddraw |
193 |
+ --disable-ecore-evas-software-16-wince |
194 |
+ --disable-ecore_imf_scim |
195 |
+ $(use_enable ares cares) |
196 |
+ $(use_enable curl) |
197 |
+ $(use_enable directfb ecore-directfb) |
198 |
+ $(use_enable doc) |
199 |
+ $(use_enable examples build-examples) |
200 |
+ $(use_enable examples install-examples) |
201 |
+ $(use_enable evas ecore-evas) |
202 |
+ $(use_enable evas ecore-input-evas) |
203 |
+ $(use_enable evas ecore-imf-evas) |
204 |
+ $(use_enable evas ecore-evas-software-buffer) |
205 |
+ $(use_enable fbcon ecore-fb) |
206 |
+ $(use_enable glib) |
207 |
+ $(use_enable inotify) |
208 |
+ $(use_enable ipv6) |
209 |
+ $(use_enable sdl ecore-sdl) |
210 |
+ $(use_enable test tests) |
211 |
+ $(use_enable threads posix-threads) |
212 |
+ $(use_enable tslib) |
213 |
+ $(use_enable wayland ecore-wayland) |
214 |
+ $(use_enable X xim) |
215 |
+ "${ssl_flags[@]}" |
216 |
+ "${evas_flags[@]}" |
217 |
+ "${x_flags[@]}" |
218 |
+ ) |
219 |
+ enlightenment_src_configure |
220 |
+} |
221 |
+ |
222 |
+src_test() { |
223 |
+ Xemake check |
224 |
+} |