Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/glfw/
Date: Sat, 30 Oct 2021 03:55:54
Message-Id: 1635565746.cc3ae22277f0a4164e14492860abecac8fc9bfdf.ionen@gentoo
1 commit: cc3ae22277f0a4164e14492860abecac8fc9bfdf
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 30 01:48:25 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 30 03:49:06 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc3ae222
7
8 media-libs/glfw: add 3.3.5, EAPI7->8 and tighten deps
9
10 No changes needed for this bugfix release (the next major
11 release will have runtime platform selection), but still a
12 few ebuild updates.
13
14 This dlopen() many of its deps but mostly only libglvnd matters,
15 e.g. if xinerama is not on the system it doesn't need load xinerama
16 because it's likely not used -- so tentatively moved to DEPEND-only
17 for their headers (libXxf86vm removed entirely as it does not use
18 its header).
19
20 Also depend on libglvnd (rather than mesa) to better control X
21 (libGL/GLX) vs -X (libEGL), whether the vendor supports egl/wayland
22 is not something to be verified here (otherwise we'd need to also
23 depend on the nvidia-drivers[wayland] alternative so it adds up).
24
25 Moved libxkbcommon to wayland-only, not used at all by X.
26
27 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
28
29 media-libs/glfw/Manifest | 1 +
30 media-libs/glfw/glfw-3.3.5.ebuild | 50 +++++++++++++++++++++++++++++++++++++++
31 2 files changed, 51 insertions(+)
32
33 diff --git a/media-libs/glfw/Manifest b/media-libs/glfw/Manifest
34 index 30dd003a8d3..f1af4ed2fe4 100644
35 --- a/media-libs/glfw/Manifest
36 +++ b/media-libs/glfw/Manifest
37 @@ -1 +1,2 @@
38 DIST glfw-3.3.4.tar.gz 762885 BLAKE2B b88f80ec8cfb1607a8c5ce5e6eabfe5c9813235c6225629ef8001ba5f46cdbed1d726aeed170a8749bbd048f1517cb614f9fc5ad7604ae1698b83b5e995b8cd6 SHA512 2b45ab72da7a2c007c0f42ccd56205f9684cfb980e2b1df127850cd057bb2b02ce02c7c64acd54cd433778e7017148f214afedf09badff9d2edf5f9b8d9d2701
39 +DIST glfw-3.3.5.tar.gz 776593 BLAKE2B ce92a42ef7361ae2580c9d6722d340106f9ca26e7fb436b9a4be2f25bf4a15d2b08d82ff71ad4ce4cd6a59e31d934d0fe6ab0e546474a3e7de38e229795ee0e8 SHA512 cbb8ebf25d3d826eb1daeff3ad2e0e965ce9def3352955f297743d918f625d96bc05bf87c90f7b57ec53376a0f2f6ce62f80b57fac4e81e023400de275e97beb
40
41 diff --git a/media-libs/glfw/glfw-3.3.5.ebuild b/media-libs/glfw/glfw-3.3.5.ebuild
42 new file mode 100644
43 index 00000000000..c82e318544e
44 --- /dev/null
45 +++ b/media-libs/glfw/glfw-3.3.5.ebuild
46 @@ -0,0 +1,50 @@
47 +# Copyright 1999-2021 Gentoo Authors
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=8
51 +
52 +inherit cmake-multilib
53 +
54 +DESCRIPTION="Portable OpenGL FrameWork"
55 +HOMEPAGE="https://www.glfw.org/"
56 +SRC_URI="https://github.com/glfw/glfw/archive/${PV}.tar.gz -> ${P}.tar.gz"
57 +
58 +LICENSE="ZLIB"
59 +SLOT="0"
60 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc64 ~x86"
61 +IUSE="wayland-only"
62 +
63 +RDEPEND="
64 + media-libs/libglvnd[${MULTILIB_USEDEP}]
65 + wayland-only? ( dev-libs/wayland[${MULTILIB_USEDEP}] )
66 + !wayland-only? (
67 + media-libs/libglvnd[X]
68 + x11-libs/libX11[${MULTILIB_USEDEP}]
69 + )"
70 +DEPEND="
71 + ${RDEPEND}
72 + wayland-only? (
73 + dev-libs/wayland-protocols
74 + x11-libs/libxkbcommon[${MULTILIB_USEDEP}]
75 + )
76 + !wayland-only? (
77 + x11-base/xorg-proto
78 + x11-libs/libXcursor[${MULTILIB_USEDEP}]
79 + x11-libs/libXi[${MULTILIB_USEDEP}]
80 + x11-libs/libXinerama[${MULTILIB_USEDEP}]
81 + x11-libs/libXrandr[${MULTILIB_USEDEP}]
82 + )"
83 +BDEPEND="
84 + wayland-only? (
85 + dev-util/wayland-scanner
86 + kde-frameworks/extra-cmake-modules
87 + )"
88 +
89 +src_configure() {
90 + local mycmakeargs=(
91 + -DGLFW_BUILD_EXAMPLES=no
92 + -DGLFW_USE_WAYLAND=$(usex wayland-only)
93 + )
94 +
95 + cmake-multilib_src_configure
96 +}