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