Gentoo Archives: gentoo-commits

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