Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: gui-libs/egl-wayland/
Date: Tue, 18 May 2021 19:01:16
Message-Id: 1621364449.855c0465f04b4148c69495fee24a64c70859bf11.soap@gentoo
1 commit: 855c0465f04b4148c69495fee24a64c70859bf11
2 Author: Ionen Wolkens <sudinave <AT> gmail <DOT> com>
3 AuthorDate: Tue May 18 19:00:49 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue May 18 19:00:49 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=855c0465
7
8 gui-libs/egl-wayland: add 1.1.7
9
10 Signed-off-by: Ionen Wolkens <sudinave <AT> gmail.com>
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 gui-libs/egl-wayland/Manifest | 1 +
14 gui-libs/egl-wayland/egl-wayland-1.1.7.ebuild | 60 +++++++++++++++++++++++++++
15 2 files changed, 61 insertions(+)
16
17 diff --git a/gui-libs/egl-wayland/Manifest b/gui-libs/egl-wayland/Manifest
18 index 8789cb0974d..c5ab0422ed1 100644
19 --- a/gui-libs/egl-wayland/Manifest
20 +++ b/gui-libs/egl-wayland/Manifest
21 @@ -1 +1,2 @@
22 DIST egl-wayland-1.1.6.tar.gz 48674 BLAKE2B 66f58d4b841ebaaec6c0711e0dae0b3c774a7b0206f9cfd4d9e94a2c05688d563fddbbf9a60247980df00c3c493147e292bc536e2eb56de962f3b34c6215e026 SHA512 81fd3be3f49ad012efd31189d85666e869653f1f4004de4103f4ad13b7fda036cef432d1e30e33664ae423092dc1b86cfd2773d6542bb09d7a74720ba14e0fa4
23 +DIST egl-wayland-1.1.7.tar.gz 48681 BLAKE2B eebbd0e36045c50b39ef70292156f5cd137a51af2169b56a35d318d90ade3d4a5b94206d86246d52fda0c6c093ff25e389b1a3ccbe60595dc9661d199e30f33b SHA512 edc81d9f2c617587044d5f9d35b3e355db8544e8fa1d861c1b92a5a11bc1af7d994ca8abd49ce6f462a1971f20296b4c757bdf1df0d2bfc981cdafaa839f12af
24
25 diff --git a/gui-libs/egl-wayland/egl-wayland-1.1.7.ebuild b/gui-libs/egl-wayland/egl-wayland-1.1.7.ebuild
26 new file mode 100644
27 index 00000000000..01dea054a2c
28 --- /dev/null
29 +++ b/gui-libs/egl-wayland/egl-wayland-1.1.7.ebuild
30 @@ -0,0 +1,60 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit flag-o-matic meson
37 +
38 +DESCRIPTION="EGLStream-based Wayland external platform (for NVIDIA)"
39 +HOMEPAGE="https://github.com/NVIDIA/egl-wayland"
40 +SRC_URI="https://github.com/NVIDIA/egl-wayland/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~amd64"
45 +
46 +RDEPEND="
47 + dev-libs/wayland
48 + !x11-drivers/nvidia-drivers[wayland(-)]"
49 +DEPEND="
50 + ${RDEPEND}
51 + gui-libs/eglexternalplatform
52 + media-libs/libglvnd"
53 +BDEPEND="dev-util/wayland-scanner"
54 +
55 +PATCHES=(
56 + "${FILESDIR}"/${PN}-1.1.6-remove-werror.patch
57 +)
58 +
59 +src_configure() {
60 + # EGLStream is not intended for X11, always build without (bug #777558)
61 + append-cppflags -DEGL_NO_X11
62 +
63 + meson_src_configure
64 +}
65 +
66 +src_install() {
67 + meson_src_install
68 +
69 + insinto /usr/share/egl/egl_external_platform.d
70 + doins "${FILESDIR}"/10_nvidia_wayland.json
71 +}
72 +
73 +pkg_postinst() {
74 + if [[ ! ${REPLACING_VERSIONS} ]]; then
75 + elog "To use EGLStream with x11-drivers/nvidia-drivers, it is necessary to"
76 + elog "load the nvidia-drm module with experimental nvidia-drm.modeset=1."
77 + elog
78 + elog "Can be accomplished by:"
79 + elog " echo 'options nvidia-drm modeset=1' > ${EROOT}/etc/modprobe.d/nvidia-drm.conf"
80 + elog "...then reloading the module."
81 + elog
82 + elog "Note that EGLStream requires support from the wayland compositor and"
83 + elog "is not currently supported by many popular options such as gui-wm/sway."
84 + fi
85 +
86 + if has_version "<x11-drivers/nvidia-drivers-391"; then
87 + ewarn "<=nvidia-drivers-390.xx may not work properly with this version of"
88 + ewarn "egl-wayland, it is recommended to use nouveau drivers for wayland."
89 + fi
90 +}