summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2022-08-23 22:22:22 -0400
committerMatt Turner <mattst88@gentoo.org>2022-08-23 22:27:27 -0400
commit2754ddb2110034930faa9d59a8ce957b80079df8 (patch)
tree4e1825ee5a6d832ff2c756109a8273000998a3f0 /media-libs
parentmedia-libs/libglvnd: Add Python 3.11 compatibility (diff)
downloadgentoo-2754ddb2110034930faa9d59a8ce957b80079df8.tar.gz
gentoo-2754ddb2110034930faa9d59a8ce957b80079df8.tar.bz2
gentoo-2754ddb2110034930faa9d59a8ce957b80079df8.zip
media-libs/libglvnd: Version bump to 1.5.0
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libglvnd/Manifest1
-rw-r--r--media-libs/libglvnd/libglvnd-1.5.0.ebuild65
2 files changed, 66 insertions, 0 deletions
diff --git a/media-libs/libglvnd/Manifest b/media-libs/libglvnd/Manifest
index b343e551b0fd..d1fdcecb5e34 100644
--- a/media-libs/libglvnd/Manifest
+++ b/media-libs/libglvnd/Manifest
@@ -1 +1,2 @@
DIST libglvnd-1.4.0.tar.bz2 563441 BLAKE2B 079b37571da7f1eb3cf8f87ea727aeec04a27158f015889552787ff269cc779f33c10a426a7113d4e45b13008b6540c2a2eec2ac69cb1cb5c551ac82e11475e5 SHA512 a887044b6b3b8bb2dae74f28a9b92ffa0ab7b65adc74d788e28c292b99ed618f93deb1ddc041b9a9460cf46eba5f63a4ba1c20f120dea868659a022428689287
+DIST libglvnd-1.5.0.tar.bz2 565918 BLAKE2B b81bbd231ec66e045690aac877681f1a09ee3596519d86cf8952e1c91e4b79979e8fd76867ccb713e133ae127aec37010d1f09c1c15e77a9e173878adc75b2b9 SHA512 8bb6b53a92160bcee9ab37a3bce9e51a855f1e5e94d22ef42b9ae0a04fec2c19bd29070084a021ce34938856790f505462cfc653c2f517117d166284688c4dfd
diff --git a/media-libs/libglvnd/libglvnd-1.5.0.ebuild b/media-libs/libglvnd/libglvnd-1.5.0.ebuild
new file mode 100644
index 000000000000..8fc4e707e6ae
--- /dev/null
+++ b/media-libs/libglvnd/libglvnd-1.5.0.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2018-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+EGIT_REPO_URI="https://gitlab.freedesktop.org/glvnd/libglvnd.git"
+
+if [[ ${PV} = 9999* ]]; then
+ GIT_ECLASS="git-r3"
+fi
+
+PYTHON_COMPAT=( python3_{8..11} )
+VIRTUALX_REQUIRED=manual
+
+inherit ${GIT_ECLASS} meson-multilib python-any-r1 virtualx
+
+DESCRIPTION="The GL Vendor-Neutral Dispatch library"
+HOMEPAGE="https://gitlab.freedesktop.org/glvnd/libglvnd"
+if [[ ${PV} = 9999* ]]; then
+ SRC_URI=""
+else
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+ SRC_URI="https://gitlab.freedesktop.org/glvnd/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2 -> ${P}.tar.bz2"
+ S=${WORKDIR}/${PN}-v${PV}
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="test X"
+RESTRICT="!test? ( test )"
+
+BDEPEND="${PYTHON_DEPS}
+ test? ( X? ( ${VIRTUALX_DEPEND} ) )"
+RDEPEND="
+ !media-libs/mesa[-libglvnd(+)]
+ X? (
+ x11-libs/libX11[${MULTILIB_USEDEP}]
+ x11-libs/libXext[${MULTILIB_USEDEP}]
+ )"
+DEPEND="${RDEPEND}
+ X? ( x11-base/xorg-proto )"
+
+src_prepare() {
+ default
+ sed -i -e "/^PLATFORM_SYMBOLS/a '__gentoo_check_ldflags__'," \
+ bin/symbols-check.py || die
+}
+
+multilib_src_configure() {
+ local emesonargs=(
+ $(meson_feature X x11)
+ $(meson_feature X glx)
+ )
+ use elibc_musl && emesonargs+=( -Dtls=false )
+
+ meson_src_configure
+}
+
+multilib_src_test() {
+ if use X; then
+ virtx meson_src_test
+ else
+ meson_src_test
+ fi
+}