summaryrefslogtreecommitdiff
path: root/media-libs/libglvnd
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libglvnd')
-rw-r--r--media-libs/libglvnd/Manifest4
-rw-r--r--media-libs/libglvnd/libglvnd-1.3.3.ebuild73
-rw-r--r--media-libs/libglvnd/libglvnd-9999.ebuild2
3 files changed, 77 insertions, 2 deletions
diff --git a/media-libs/libglvnd/Manifest b/media-libs/libglvnd/Manifest
index edea1955521a..1af9a854b5f7 100644
--- a/media-libs/libglvnd/Manifest
+++ b/media-libs/libglvnd/Manifest
@@ -1,4 +1,6 @@
DIST libglvnd-1.3.2.tar.bz2 715212 BLAKE2B 4f8d32d630a94dbce3d87926a25941fb915f9b1bb8ba167ee7392e32e55b26c5bb80db4000dd11188449f662b810f0c986b6ecf7f4c5ebf05d7a895b0fdb3c82 SHA512 4fea59150a7dd2c710ded26270e74ae73af00cc127d7141fe70e31263fb492c5c43eabc8ab27d5a568d12394a95023c22f1b60968f4c403dcf6ad6202bec508c
+DIST libglvnd-1.3.3.tar.bz2 715179 BLAKE2B 781550cbda489dca31596115c78edd1d4f1fe66062218c83ccf6cb34707501fce839b649c2b0aee3621c283397acca8fb40ad16c0388551ce7caa7fd79b7dbf5 SHA512 7da9e12c010a8f109cd24ca4c2ffc846dd7d23f82157e1e39b8ae69575fabcc9592c0b639b23d2112fe2026b679f1536f1b705a5c948fefea105418803e1b629
EBUILD libglvnd-1.3.2-r2.ebuild 1528 BLAKE2B 592e19b30551860fbfb735e2e4b6eed4d293ffb28b68c2653ecaf16722a396971203e6a3b52577cf524e599d9f037852d9434f4038bbc0e43ce40a0db5944de6 SHA512 460609a9aba15122b3a05cc5ab7fbfda83eaa731188f58d51dda5b51910a332964a286d840a12dc6c86e2c397a169d095bfc5b82282b21d34cbaa1972cf09e27
-EBUILD libglvnd-9999.ebuild 1535 BLAKE2B ba68151edcded5eedc994b1c0e140929de294515a37de46f991bec806c78a751fef009d05b4069cbf5738ae55d2159d2194fb5f522ea554b998cba9d667dac0f SHA512 a48b8cf5d458541ce8b75947742471fd6e3c679d34e9c5505b2570c4610bf6f421c18ce75c0663545e15329a3abd7394357c5a793e7275fedc059f30f1422747
+EBUILD libglvnd-1.3.3.ebuild 1535 BLAKE2B 33d8925075c50b240597fca54aa6a804bc6c4e79a0afae8b263ee9c222e52973adf51a944b4463071395062a3a46bcf5c010eec0a7b990f6fb8dc3a789bf8fbe SHA512 b977631fe3c0317c6efbc72f32fd0dee4405c14b05594acee42043d3b3675d08eea7c6c4698b29efae392f44c31ef2b509ca83720aa6e72605d8f7e2bd0089c1
+EBUILD libglvnd-9999.ebuild 1535 BLAKE2B 33d8925075c50b240597fca54aa6a804bc6c4e79a0afae8b263ee9c222e52973adf51a944b4463071395062a3a46bcf5c010eec0a7b990f6fb8dc3a789bf8fbe SHA512 b977631fe3c0317c6efbc72f32fd0dee4405c14b05594acee42043d3b3675d08eea7c6c4698b29efae392f44c31ef2b509ca83720aa6e72605d8f7e2bd0089c1
MISC metadata.xml 314 BLAKE2B 34c95a3e321c3059bca39c7beb5b7b15e8085b54affb267947fb3676018fa183040a157716e979c5e0381acdea6e738294b37841e75da308c3632fb3587dec33 SHA512 fa12f7fa880b0721baf2eb40b9fd8a68e51c143dd8ede7a199c5afcd5a208f84c51a80fc1f4bc68b266338bac8bf4137b2443d88567150f2c54b2f11913df89c
diff --git a/media-libs/libglvnd/libglvnd-1.3.3.ebuild b/media-libs/libglvnd/libglvnd-1.3.3.ebuild
new file mode 100644
index 000000000000..ffdb47646a23
--- /dev/null
+++ b/media-libs/libglvnd/libglvnd-1.3.3.ebuild
@@ -0,0 +1,73 @@
+# Copyright 2018-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+EGIT_REPO_URI="https://gitlab.freedesktop.org/glvnd/libglvnd.git"
+
+if [[ ${PV} = 9999* ]]; then
+ GIT_ECLASS="git-r3"
+fi
+
+PYTHON_COMPAT=( python3_{7..9} )
+VIRTUALX_REQUIRED=manual
+
+inherit ${GIT_ECLASS} meson multilib-minimal 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 ~mips ~ppc ~ppc64 ~riscv ~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=disabled )
+
+ meson_src_configure
+}
+
+multilib_src_compile() {
+ meson_src_compile
+}
+
+multilib_src_test() {
+ if use X; then
+ virtx meson_src_test
+ else
+ meson_src_test
+ fi
+}
+
+multilib_src_install() {
+ meson_src_install
+}
diff --git a/media-libs/libglvnd/libglvnd-9999.ebuild b/media-libs/libglvnd/libglvnd-9999.ebuild
index b11f59ab1c2c..ffdb47646a23 100644
--- a/media-libs/libglvnd/libglvnd-9999.ebuild
+++ b/media-libs/libglvnd/libglvnd-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2018-2020 Gentoo Authors
+# Copyright 2018-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7