Gentoo Archives: gentoo-commits

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