commit: 3b7afdfc1b3f1b3d5196e1377d0f0daed265c341 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> AuthorDate: Sun May 14 13:30:19 2023 +0000 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> CommitDate: Sun May 14 13:35:44 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b7afdfc
media-libs/mesa: Depend on dev-python/ply For Intel Vulkan ray tracing. Closes: https://bugs.gentoo.org/906327 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> media-libs/mesa/mesa-23.1.0.ebuild | 12 +++++++++++- media-libs/mesa/mesa-9999.ebuild | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/media-libs/mesa/mesa-23.1.0.ebuild b/media-libs/mesa/mesa-23.1.0.ebuild index 77a082163db6..0f1ac3b60433 100644 --- a/media-libs/mesa/mesa-23.1.0.ebuild +++ b/media-libs/mesa/mesa-23.1.0.ebuild @@ -168,7 +168,14 @@ BDEPEND=" sys-devel/flex virtual/pkgconfig $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]") - vulkan? ( dev-util/glslang ) + vulkan? ( + dev-util/glslang + video_cards_intel? ( + amd64? ( + $(python_gen_any_dep "dev-python/ply[\${PYTHON_USEDEP}]") + ) + ) + ) wayland? ( dev-util/wayland-scanner ) " @@ -248,6 +255,9 @@ pkg_pretend() { python_check_deps() { python_has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]" + if use vulkan && use video_cards_intel && use amd64; then + python_has_version -b "dev-python/ply[${PYTHON_USEDEP}]" + fi } pkg_setup() { diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild index 53b4182fdad3..c97b387abfac 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -168,7 +168,14 @@ BDEPEND=" sys-devel/flex virtual/pkgconfig $(python_gen_any_dep ">=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]") - vulkan? ( dev-util/glslang ) + vulkan? ( + dev-util/glslang + video_cards_intel? ( + amd64? ( + $(python_gen_any_dep "dev-python/ply[\${PYTHON_USEDEP}]") + ) + ) + ) wayland? ( dev-util/wayland-scanner ) " @@ -246,6 +253,9 @@ pkg_pretend() { python_check_deps() { python_has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]" + if use vulkan && use video_cards_intel && use amd64; then + python_has_version -b "dev-python/ply[${PYTHON_USEDEP}]" + fi } pkg_setup() {
