summaryrefslogtreecommitdiff
path: root/media-libs/waffle
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-07 12:37:21 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-07 12:37:21 +0100
commitb8c7370a682e4e29cda623222d17a790c01c3642 (patch)
treef6caa14689bd00a5760eadaa381ff41e50ef3c1b /media-libs/waffle
parent8a4997a7e2d1e36c089d4d76935b5a902d98d3d0 (diff)
gentoo auto-resync : 07:08:2024 - 12:37:20
Diffstat (limited to 'media-libs/waffle')
-rw-r--r--media-libs/waffle/Manifest2
-rw-r--r--media-libs/waffle/waffle-1.8.1.ebuild97
2 files changed, 99 insertions, 0 deletions
diff --git a/media-libs/waffle/Manifest b/media-libs/waffle/Manifest
index 3846b05bc721..5db76a93c30a 100644
--- a/media-libs/waffle/Manifest
+++ b/media-libs/waffle/Manifest
@@ -1,4 +1,6 @@
DIST waffle-v1.8.0.tar.bz2 310657 BLAKE2B cfc5f6fb32ae379457d9e1a9806504f8e2d22a2e320afab81db04a8e459cc2e127ea546e27a01a36cbb76a3095ca1d87bf96d40286f78f8ef7e1c270a6170521 SHA512 432786f1e255638a866af5c95d4ec0421ce9ffa661696482f9b40f9dbad9198f93caca484a0739a34d37d7a7070efb007771fcc6ea7acb70152c34892466e1e4
+DIST waffle-v1.8.1.tar.bz2 309259 BLAKE2B bfc4cd9043df854e34ab0ee0edd7d231fbc2253e41de8eb3bb702428a2b22569a407dc595a4c13a1a5e7cac2686dfe8b4ec26397e3dbed1a433de31fd3616b4f SHA512 c0e47047776de9cc20791974dec0944c769d766e5fe4f4e66a25a0d5900f3a756d95b4df434ff2e595079659d79d95398f6f411e4b8cc969cace7b2c3532b79f
EBUILD waffle-1.8.0.ebuild 2229 BLAKE2B df6682b229e294b1f80575c2c3031583a55581cc5bb7e24d6b04aa48d5c2aec939caaf78be54b888872ac6dad26535c3b01cd3abeaaa684cacfff924a7950a86 SHA512 2e3ae36dbdb946abebf2198eacfe2b9b0bbc09438cddf96d580f3430ce1c0e37d3b0c5b429ef21af19bbec3075cb6446f79620f2c3ffb16dbd6075623bee577d
+EBUILD waffle-1.8.1.ebuild 2232 BLAKE2B 101041e962157173e3005d068e561a213533cca635c24d348a6f08ab0cea90c0b59e9358e790470a280dc236a075eabfa0745ec3bfb153591876b879dc322987 SHA512 c69c3c4ede3134217c7aa38e744b50240b9b3610924a325bd89f5986e84f3b1b3c74513a7ced6396e025771ab0c5d069300603d9a5ce5a440aeee40b324e6775
EBUILD waffle-9999.ebuild 2232 BLAKE2B ff02fd006b2aa45fa80bc122f8b3ff7c36a209d84d96aa878e9902ffe080b7cf7efbd82e1fabf59bda989d069962e549b76297fe4ee8fa6012b5bb9dd267b40b SHA512 eb360c4bea12fe6f9296c29bf7249d61e1423e5864666681470a5b60b2486938708a3a558258d2dbeb2b743256fa36273aeae43957bf7da2ee859a9768072700
MISC metadata.xml 405 BLAKE2B 1099c7b162b3c7331e9a232c17763fbf52bf9318a4a6848eafe556cb5b197daf2e545469e225c6a4c8af903f396815061ccb59018d49d5118ae6d6477cae981a SHA512 c2d3a9d27808203de3c76ae4afd2a08e5c54a96a9200ebf5ec1acab3f772ec464d0f6ad69e4da9e5b4861c7546a0a9d54c8ec21f1db636f997c62885b547de73
diff --git a/media-libs/waffle/waffle-1.8.1.ebuild b/media-libs/waffle/waffle-1.8.1.ebuild
new file mode 100644
index 000000000000..c90b20ae53d1
--- /dev/null
+++ b/media-libs/waffle/waffle-1.8.1.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+if [[ ${PV} = *9999* ]]; then
+ EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/${PN}"
+ GIT_ECLASS="git-r3"
+else
+ SRC_URI="https://gitlab.freedesktop.org/mesa/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+ S="${WORKDIR}"/${PN}-v${PV}
+fi
+inherit meson-multilib multilib virtualx ${GIT_ECLASS}
+
+DESCRIPTION="Library that allows selection of GL API and of window system at runtime"
+HOMEPAGE="https://gitlab.freedesktop.org/mesa/waffle"
+
+LICENSE="BSD-2"
+SLOT="0"
+IUSE="doc test wayland X"
+RESTRICT="!test? ( test ) test" # gl_basic tests don't work when run under sandbox
+
+RDEPEND="
+ >=media-libs/mesa-23[${MULTILIB_USEDEP}]
+ >=virtual/libudev-208:=[${MULTILIB_USEDEP}]
+ X? (
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
+ >=x11-libs/libxcb-1.9.1[${MULTILIB_USEDEP}]
+ )
+ wayland? ( >=dev-libs/wayland-1.10[${MULTILIB_USEDEP}] )
+"
+DEPEND="${RDEPEND}
+ X? ( >=x11-base/xcb-proto-1.8-r3 )
+"
+BDEPEND="
+ app-text/docbook-xml-dtd:4.2
+ dev-libs/libxslt
+ dev-util/wayland-scanner
+"
+# test? (
+# wayland? ( dev-libs/weston[headless] )
+# )
+
+MULTILIB_CHOST_TOOLS=(
+ /usr/bin/wflinfo$(get_exeext)
+)
+
+multilib_src_configure() {
+ local emesonargs=(
+ $(meson_feature X glx)
+ $(meson_feature wayland)
+ $(meson_feature X x11_egl)
+ -Dgbm=enabled
+ -Dsurfaceless_egl=enabled
+
+ $(meson_use test build-tests)
+ $(meson_native_true build-manpages)
+ -Dbuild-htmldocs=false
+ -Dbuild-examples=false
+ )
+ meson_src_configure
+}
+
+multilib_src_test() {
+ if use wayland; then
+ export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
+
+ weston --backend=headless-backend.so --socket=wayland-6 --idle-time=0 &
+ compositor=$!
+ export WAYLAND_DISPLAY=wayland-6
+ fi
+
+ export MESA_SHADER_CACHE_DISABLE=true
+ virtx meson_src_test
+
+ if use wayland; then
+ kill ${compositor}
+ fi
+}
+
+multilib_src_install() {
+ meson_src_install
+}
+
+multilib_src_install_all() {
+ einstalldocs
+
+ rm -r \
+ "${ED}"/usr/share/doc/${P} \
+ "${ED}"/usr/share/doc/waffle1/release-notes || die
+ mv "${ED}"/usr/share/doc/{waffle1,${P}} || die
+ if ! use doc; then
+ rm -rf \
+ "${ED}"/usr/share/man/man{3,7} || die
+ fi
+}