Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libglvnd/
Date: Thu, 25 Jun 2020 22:27:07
Message-Id: 1593124013.ce5e62a19a602646523282eaadcc203fdc25ca84.mattst88@gentoo
1 commit: ce5e62a19a602646523282eaadcc203fdc25ca84
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 25 22:25:56 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 25 22:26:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce5e62a1
7
8 media-libs/libglvnd: Version bump to 1.3.2
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 media-libs/libglvnd/Manifest | 1 +
13 media-libs/libglvnd/libglvnd-1.3.2.ebuild | 74 +++++++++++++++++++++++++++++++
14 2 files changed, 75 insertions(+)
15
16 diff --git a/media-libs/libglvnd/Manifest b/media-libs/libglvnd/Manifest
17 index 2d46b7953ce..9f45dbf196a 100644
18 --- a/media-libs/libglvnd/Manifest
19 +++ b/media-libs/libglvnd/Manifest
20 @@ -1 +1,2 @@
21 DIST libglvnd-1.3.1.tar.bz2 714436 BLAKE2B 31b91f678b0335a7db3e697129dabd157c37fee0ec0f81f7d0be68ffcf9d6be2989a929f7b1fb87b505168ab4a3cc07b4cecf103f1d5a2a3b866eedb5a3a494b SHA512 99bbe8447f7791c8a4b2ab4e9f3067309ea3ffb9a042b0b5e80d1eac7e6e36af8b5ec56ec3266f34343d705521827956f2fdca27be386f40e130cec300e8342c
22 +DIST libglvnd-1.3.2.tar.bz2 715212 BLAKE2B 4f8d32d630a94dbce3d87926a25941fb915f9b1bb8ba167ee7392e32e55b26c5bb80db4000dd11188449f662b810f0c986b6ecf7f4c5ebf05d7a895b0fdb3c82 SHA512 4fea59150a7dd2c710ded26270e74ae73af00cc127d7141fe70e31263fb492c5c43eabc8ab27d5a568d12394a95023c22f1b60968f4c403dcf6ad6202bec508c
23
24 diff --git a/media-libs/libglvnd/libglvnd-1.3.2.ebuild b/media-libs/libglvnd/libglvnd-1.3.2.ebuild
25 new file mode 100644
26 index 00000000000..4c976349c6d
27 --- /dev/null
28 +++ b/media-libs/libglvnd/libglvnd-1.3.2.ebuild
29 @@ -0,0 +1,74 @@
30 +# Copyright 2018-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +EGIT_REPO_URI="https://gitlab.freedesktop.org/glvnd/libglvnd.git"
36 +
37 +if [[ ${PV} = 9999* ]]; then
38 + GIT_ECLASS="git-r3"
39 +fi
40 +
41 +PYTHON_COMPAT=( python3_{6,7,8} )
42 +VIRTUALX_REQUIRED=manual
43 +
44 +inherit ${GIT_ECLASS} meson multilib-minimal python-any-r1 virtualx
45 +
46 +DESCRIPTION="The GL Vendor-Neutral Dispatch library"
47 +HOMEPAGE="https://gitlab.freedesktop.org/glvnd/libglvnd"
48 +if [[ ${PV} = 9999* ]]; then
49 + SRC_URI=""
50 +else
51 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
52 + SRC_URI="https://gitlab.freedesktop.org/glvnd/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2 -> ${P}.tar.bz2"
53 + S=${WORKDIR}/${PN}-v${PV}
54 +fi
55 +
56 +LICENSE="MIT"
57 +SLOT="0"
58 +IUSE="test X"
59 +RESTRICT="!test? ( test )"
60 +
61 +BDEPEND="${PYTHON_DEPS}
62 + test? ( X? ( ${VIRTUALX_DEPEND} ) )"
63 +RDEPEND="
64 + !media-libs/mesa[-libglvnd(-)]
65 + !<media-libs/mesa-19.2.2
66 + X? (
67 + x11-libs/libX11[${MULTILIB_USEDEP}]
68 + x11-libs/libXext[${MULTILIB_USEDEP}]
69 + )"
70 +DEPEND="${RDEPEND}
71 + X? ( x11-base/xorg-proto )"
72 +
73 +src_prepare() {
74 + default
75 + sed -i -e "/^PLATFORM_SYMBOLS/a \ '__gentoo_check_ldflags__'," \
76 + bin/symbols-check.py || die
77 +}
78 +
79 +multilib_src_configure() {
80 + local emesonargs=(
81 + $(meson_feature X x11)
82 + $(meson_feature X glx)
83 + )
84 + use elibc_musl && emesonargs+=( -Dtls=disabled )
85 +
86 + meson_src_configure
87 +}
88 +
89 +multilib_src_compile() {
90 + meson_src_compile
91 +}
92 +
93 +multilib_src_test() {
94 + if use X; then
95 + virtx meson_src_test
96 + else
97 + meson_src_test
98 + fi
99 +}
100 +
101 +multilib_src_install() {
102 + meson_src_install
103 +}