1 |
commit: 3ffdc403135e5196a395f1325ab0c80f0c7d47ff |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 8 08:51:32 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 8 09:10:57 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ffdc403 |
7 |
|
8 |
dev-libs/efl: add 1.26.2 |
9 |
|
10 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
11 |
|
12 |
dev-libs/efl/Manifest | 1 + |
13 |
dev-libs/efl/efl-1.26.2.ebuild | 310 +++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 311 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/efl/Manifest b/dev-libs/efl/Manifest |
17 |
index a7ff465e370d..fd9fd7120411 100644 |
18 |
--- a/dev-libs/efl/Manifest |
19 |
+++ b/dev-libs/efl/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST efl-1.25.1.tar.xz 72306872 BLAKE2B 060d729380ba62677307c5346da1786e879c14c4e40f0a3288c8cb81ece08f4ac501d989495b1c3dcbfeb19a86d23130892ae874861de5684c867aef60cb07d6 SHA512 cd281c2299aa6f74f0204e59a13dc254135e6dc40641e0a437c6f5025efe517d415f0915f69e123123319a9bbddb748aec1948ed0b5eb386e028cf45b244bed8 |
22 |
DIST efl-1.26.1.tar.xz 168538588 BLAKE2B 2274b8939635d472560a7131651586e6ab5dfc71094f15fad0a30711ae2fdf40098ce6cd70a9b664c9f16c6b6880f51de96372dcc6d251bcad8c069429c3bfcb SHA512 50fd972315d10997a077e403e3484a6637a66217a66865216a3e47d214cfe7647876fade087da8d9ee5104ca99ce11db27ba6279564b1076f3353f3f9c702cb1 |
23 |
+DIST efl-1.26.2.tar.xz 168537016 BLAKE2B b7ca59dbcd483edf31e68aae4df512a195a8239935febf8497ce039eb18696ca84e4f6d0206818c84f6e1f625abf3e730fc812304459e5615feca2c3fa07092c SHA512 d8478b6f197600c5abb7e2fcc030f8938e6726dde5e1947df4b042e6e9c77b0f31770b6b86a76ee2be52bf5354e02716bd7e5daf0771d149004d9447e432dc32 |
24 |
|
25 |
diff --git a/dev-libs/efl/efl-1.26.2.ebuild b/dev-libs/efl/efl-1.26.2.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..8528716bda38 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/efl/efl-1.26.2.ebuild |
30 |
@@ -0,0 +1,310 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DOCS_BUILDER="doxygen" |
37 |
+DOCS_DEPEND="dev-texlive/texlive-fontutils" |
38 |
+DOCS_DIR="${S}/doc" |
39 |
+ |
40 |
+LUA_REQ_USE="deprecated(+)" |
41 |
+LUA_COMPAT=( lua5-{1,2} luajit ) |
42 |
+ |
43 |
+PYTHON_COMPAT=( python3_{8..10} ) |
44 |
+ |
45 |
+inherit docs lua-single meson python-any-r1 xdg |
46 |
+ |
47 |
+DESCRIPTION="Enlightenment Foundation Libraries all-in-one package" |
48 |
+HOMEPAGE="https://www.enlightenment.org" |
49 |
+SRC_URI="https://download.enlightenment.org/rel/libs/${PN}/${P}.tar.xz" |
50 |
+ |
51 |
+LICENSE="BSD-2 GPL-2 LGPL-2.1 ZLIB" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" |
54 |
+IUSE="+X avif bmp connman cpu_flags_arm_neon dds debug drm +eet efl-one elogind examples fbcon |
55 |
+ +fontconfig fribidi gif gnutls glib +gstreamer harfbuzz heif hyphen ibus ico |
56 |
+ jpeg2k json nls mono opengl +pdf physics pmaps postscript psd pulseaudio raw scim |
57 |
+ sdl +sound +svg +system-lz4 systemd tga tgv tiff tslib unwind v4l vnc wayland webp xcf |
58 |
+ xim xpm xpresent zeroconf" |
59 |
+ |
60 |
+REQUIRED_USE="${LUA_REQUIRED_USE} |
61 |
+ ?? ( elogind systemd ) |
62 |
+ ?? ( fbcon tslib ) |
63 |
+ drm? ( wayland ) |
64 |
+ examples? ( eet svg ) |
65 |
+ ibus? ( glib ) |
66 |
+ opengl? ( X ) |
67 |
+ pulseaudio? ( sound ) |
68 |
+ xim? ( X ) |
69 |
+ xpresent? ( X )" |
70 |
+ |
71 |
+# Requires everything to be enabled unconditionally. |
72 |
+RESTRICT="test" |
73 |
+ |
74 |
+RDEPEND="${LUA_DEPS} |
75 |
+ !x11-themes/e-flat-theme |
76 |
+ dev-libs/libinput:= |
77 |
+ net-misc/curl |
78 |
+ media-libs/giflib:= |
79 |
+ media-libs/libpng:0= |
80 |
+ sys-apps/dbus |
81 |
+ sys-libs/zlib |
82 |
+ virtual/jpeg |
83 |
+ X? ( |
84 |
+ !opengl? ( media-libs/mesa[egl(+),gles2] ) |
85 |
+ media-libs/freetype |
86 |
+ x11-libs/libX11 |
87 |
+ x11-libs/libXScrnSaver |
88 |
+ x11-libs/libXcomposite |
89 |
+ x11-libs/libXcursor |
90 |
+ x11-libs/libXdamage |
91 |
+ x11-libs/libXext |
92 |
+ x11-libs/libXfixes |
93 |
+ x11-libs/libXi |
94 |
+ x11-libs/libXinerama |
95 |
+ x11-libs/libXrandr |
96 |
+ x11-libs/libXrender |
97 |
+ x11-libs/libXtst |
98 |
+ x11-libs/libxkbcommon |
99 |
+ wayland? ( x11-libs/libxkbcommon[X] ) |
100 |
+ ) |
101 |
+ avif? ( media-libs/libavif:= ) |
102 |
+ connman? ( net-misc/connman ) |
103 |
+ drm? ( |
104 |
+ dev-libs/libinput:= |
105 |
+ dev-libs/wayland |
106 |
+ media-libs/mesa[gbm(+)] |
107 |
+ x11-libs/libdrm |
108 |
+ x11-libs/libxkbcommon |
109 |
+ ) |
110 |
+ elogind? ( |
111 |
+ sys-auth/elogind |
112 |
+ virtual/libudev:= |
113 |
+ ) |
114 |
+ fontconfig? ( media-libs/fontconfig ) |
115 |
+ fribidi? ( dev-libs/fribidi ) |
116 |
+ glib? ( dev-libs/glib:2 ) |
117 |
+ gnutls? ( net-libs/gnutls:= ) |
118 |
+ !gnutls? ( dev-libs/openssl:0= ) |
119 |
+ gstreamer? ( |
120 |
+ media-libs/gstreamer:1.0 |
121 |
+ media-libs/gst-plugins-base:1.0 |
122 |
+ ) |
123 |
+ harfbuzz? ( media-libs/harfbuzz:= ) |
124 |
+ heif? ( media-libs/libheif:= ) |
125 |
+ hyphen? ( dev-libs/hyphen ) |
126 |
+ ibus? ( app-i18n/ibus ) |
127 |
+ jpeg2k? ( media-libs/openjpeg:= ) |
128 |
+ json? ( >=media-libs/rlottie-0.0.1_pre20200424:= ) |
129 |
+ mono? ( dev-lang/mono ) |
130 |
+ opengl? ( virtual/opengl ) |
131 |
+ pdf? ( app-text/poppler:=[cxx] ) |
132 |
+ physics? ( sci-physics/bullet:= ) |
133 |
+ postscript? ( app-text/libspectre ) |
134 |
+ pulseaudio? ( media-sound/pulseaudio ) |
135 |
+ raw? ( media-libs/libraw:= ) |
136 |
+ scim? ( app-i18n/scim ) |
137 |
+ sdl? ( media-libs/libsdl2 ) |
138 |
+ sound? ( media-libs/libsndfile ) |
139 |
+ svg? ( gnome-base/librsvg:2 ) |
140 |
+ system-lz4? ( app-arch/lz4:= ) |
141 |
+ systemd? ( sys-apps/systemd:= ) |
142 |
+ tiff? ( media-libs/tiff ) |
143 |
+ tslib? ( x11-libs/tslib:= ) |
144 |
+ unwind? ( sys-libs/libunwind:= ) |
145 |
+ v4l? ( media-libs/libv4l ) |
146 |
+ vnc? ( net-libs/libvncserver ) |
147 |
+ wayland? ( |
148 |
+ dev-libs/wayland |
149 |
+ media-libs/mesa[gles2,wayland] |
150 |
+ x11-libs/libxkbcommon |
151 |
+ ) |
152 |
+ webp? ( media-libs/libwebp:= ) |
153 |
+ xpm? ( x11-libs/libXpm ) |
154 |
+ xpresent? ( x11-libs/libXpresent ) |
155 |
+ zeroconf? ( net-dns/avahi )" |
156 |
+DEPEND="${RDEPEND}" |
157 |
+BDEPEND="${PYTHON_DEPS} |
158 |
+ virtual/pkgconfig |
159 |
+ nls? ( sys-devel/gettext ) |
160 |
+ wayland? ( dev-util/wayland-scanner )" |
161 |
+ |
162 |
+pkg_setup() { |
163 |
+ # Deprecated, provided for backward-compatibility. Everything is moved to libefreet.so. |
164 |
+ QA_FLAGS_IGNORED="/usr/$(get_libdir)/libefreet_trash.so.${PV} |
165 |
+ /usr/$(get_libdir)/libefreet_mime.so.${PV}" |
166 |
+ |
167 |
+ python-any-r1_pkg_setup |
168 |
+} |
169 |
+ |
170 |
+src_prepare() { |
171 |
+ default |
172 |
+ |
173 |
+ # Remove automagic unwind configure option, #743154 |
174 |
+ if ! use unwind; then |
175 |
+ sed -i "/config_h.set('HAVE_UNWIND/,/eina_ext_deps += unwind/d" src/lib/eina/meson.build || |
176 |
+ die "Failed to remove libunwind dep" |
177 |
+ fi |
178 |
+ |
179 |
+ # Fixup Doxyfile |
180 |
+ pushd "${DOCS_DIR}" || die |
181 |
+ cp Doxyfile.in Doxyfile || die |
182 |
+ sed -i \ |
183 |
+ -e "s/@PACKAGE_VERSION@/${PV}/g" \ |
184 |
+ -e "s/@top_builddir@/../g" \ |
185 |
+ -e "s/@top_srcdir@/../g" \ |
186 |
+ -e "s/@srcdir@/./g" \ |
187 |
+ Doxyfile || die |
188 |
+ popd || die |
189 |
+ |
190 |
+ # Fix python shebangs for python-exec[-native-symlinks], #764086 |
191 |
+ local shebangs=($(grep -rl "#!/usr/bin/env python3" || die)) |
192 |
+ python_fix_shebang -q ${shebangs[*]} |
193 |
+} |
194 |
+ |
195 |
+src_configure() { |
196 |
+ local emesonargs=( |
197 |
+ --buildtype=plain |
198 |
+ |
199 |
+ -D buffer=false |
200 |
+ -D build-tests=false |
201 |
+ -D cocoa=false |
202 |
+ -D drm-deprecated=false |
203 |
+ -D g-mainloop=false |
204 |
+ -D mono-beta=false |
205 |
+ -D dotnet=false |
206 |
+ -D pixman=false |
207 |
+ -D wl-deprecated=false |
208 |
+ -D dotnet-stylecop-severity=Warning |
209 |
+ |
210 |
+ -D edje-sound-and-video=true |
211 |
+ -D eeze=true |
212 |
+ -D input=true |
213 |
+ -D install-eo-files=true |
214 |
+ -D libmount=true |
215 |
+ -D native-arch-optimization=true |
216 |
+ -D xinput2=true |
217 |
+ -D xinput22=true |
218 |
+ |
219 |
+ $(meson_use X x11) |
220 |
+ $(meson_use debug debug-threads) |
221 |
+ $(meson_use drm) |
222 |
+ $(meson_use examples build-examples) |
223 |
+ $(meson_use fbcon fb) |
224 |
+ $(meson_use fontconfig) |
225 |
+ $(meson_use fribidi) |
226 |
+ $(meson_use glib) |
227 |
+ $(meson_use gstreamer) |
228 |
+ $(meson_use harfbuzz) |
229 |
+ $(meson_use hyphen) |
230 |
+ $(meson_use lua_single_target_luajit elua) |
231 |
+ $(meson_use nls) |
232 |
+ $(meson_use physics) |
233 |
+ $(meson_use pulseaudio) |
234 |
+ $(meson_use sdl) |
235 |
+ $(meson_use sound audio) |
236 |
+ $(meson_use tslib) |
237 |
+ $(meson_use v4l v4l2) |
238 |
+ $(meson_use vnc vnc-server) |
239 |
+ $(meson_use wayland wl) |
240 |
+ $(meson_use xpresent) |
241 |
+ $(meson_use zeroconf avahi) |
242 |
+ |
243 |
+ $(meson_use !system-lz4 embedded-lz4) |
244 |
+ ) |
245 |
+ |
246 |
+ if use elogind || use systemd; then |
247 |
+ emesonargs+=( -D systemd=true ) |
248 |
+ else |
249 |
+ emesonargs+=( -D systemd=false ) |
250 |
+ fi |
251 |
+ |
252 |
+ if use wayland; then |
253 |
+ emesonargs+=( -D opengl=es-egl ) |
254 |
+ elif ! use wayland && use opengl; then |
255 |
+ emesonargs+=( -D opengl=full ) |
256 |
+ elif ! use wayland && use X && ! use opengl; then |
257 |
+ emesonargs+=( -D opengl=es-egl ) |
258 |
+ else |
259 |
+ emesonargs+=( -D opengl=none ) |
260 |
+ fi |
261 |
+ |
262 |
+ if use gnutls; then |
263 |
+ emesonargs+=( -D crypto=gnutls ) |
264 |
+ else |
265 |
+ emesonargs+=( -D crypto=openssl ) |
266 |
+ fi |
267 |
+ |
268 |
+ if use connman; then |
269 |
+ emesonargs+=( -D network-backend=connman ) |
270 |
+ else |
271 |
+ emesonargs+=( -D network-backend=none ) |
272 |
+ fi |
273 |
+ |
274 |
+ local disabledEvasLoaders="" |
275 |
+ ! use avif && disabledEvasLoaders="avif," |
276 |
+ ! use bmp && disabledEvasLoaders+="bmp,wbmp," |
277 |
+ ! use dds && disabledEvasLoaders+="dds," |
278 |
+ ! use eet && disabledEvasLoaders+="eet," |
279 |
+ ! use gstreamer && disabledEvasLoaders+="gst," |
280 |
+ ! use heif && disabledEvasLoaders+="heif," |
281 |
+ ! use ico && disabledEvasLoaders+="ico," |
282 |
+ ! use jpeg2k && disabledEvasLoaders+="jp2k," |
283 |
+ ! use json && disabledEvasLoaders+="json," |
284 |
+ ! use pdf && disabledEvasLoaders+="pdf," |
285 |
+ ! use pmaps && disabledEvasLoaders+="pmaps," |
286 |
+ ! use postscript && disabledEvasLoaders+="ps," |
287 |
+ ! use psd && disabledEvasLoaders+="psd," |
288 |
+ ! use raw && disabledEvasLoaders+="raw," |
289 |
+ ! use svg && disabledEvasLoaders+="rsvg,svg," |
290 |
+ ! use tga && disabledEvasLoaders+="tga," |
291 |
+ ! use tgv && disabledEvasLoaders+="tgv," |
292 |
+ ! use tiff && disabledEvasLoaders+="tiff," |
293 |
+ ! use webp && disabledEvasLoaders+="webp," |
294 |
+ ! use xcf && disabledEvasLoaders+="xcf," |
295 |
+ ! use xpm && disabledEvasLoaders+="xpm," |
296 |
+ [[ ! -z "$disabledEvasLoaders" ]] && disabledEvasLoaders=${disabledEvasLoaders::-1} |
297 |
+ emesonargs+=( -D evas-loaders-disabler="${disabledEvasLoaders}" ) |
298 |
+ |
299 |
+ local disabledImfLoaders="" |
300 |
+ ! use ibus && disabledImfLoaders+="ibus," |
301 |
+ ! use scim && disabledImfLoaders+="scim," |
302 |
+ ! use xim && disabledImfLoaders+="xim," |
303 |
+ [[ ! -z "$disabledImfLoaders" ]] && disabledImfLoaders=${disabledImfLoaders::-1} |
304 |
+ emesonargs+=( -D ecore-imf-loaders-disabler="${disabledImfLoaders}" ) |
305 |
+ |
306 |
+ local bindingsList="cxx," |
307 |
+ use lua_single_target_luajit && bindingsList+="lua," |
308 |
+ use mono && bindingsList+="mono," |
309 |
+ [[ ! -z "$bindingsList" ]] && bindingsList=${bindingsList::-1} |
310 |
+ emesonargs+=( -D bindings="${bindingsList}" ) |
311 |
+ |
312 |
+ local luaChoice="" |
313 |
+ if use lua_single_target_luajit; then |
314 |
+ luaChoice+="luajit" |
315 |
+ else |
316 |
+ luaChoice+="lua" |
317 |
+ fi |
318 |
+ emesonargs+=( -D lua-interpreter="${luaChoice}" ) |
319 |
+ |
320 |
+ # Not all arm CPU's have neon instruction set, #722552 |
321 |
+ if use arm && ! use cpu_flags_arm_neon; then |
322 |
+ emesonargs+=( -D native-arch-optimization=false ) |
323 |
+ fi |
324 |
+ |
325 |
+ meson_src_configure |
326 |
+} |
327 |
+ |
328 |
+src_compile() { |
329 |
+ docs_compile |
330 |
+ meson_src_compile |
331 |
+} |
332 |
+ |
333 |
+src_install() { |
334 |
+ meson_src_install |
335 |
+ |
336 |
+ if use examples; then |
337 |
+ docompress -x /usr/share/doc/${PF}/examples/ |
338 |
+ dodoc -r "${BUILD_DIR}"/src/examples/ |
339 |
+ fi |
340 |
+} |