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@gentoo.org>
This commit is contained in:
Matt Turner 2023-05-14 09:30:19 -04:00
parent 6ce08ee91f
commit 3b7afdfc1b
No known key found for this signature in database
GPG Key ID: ACEB29740C9A4E97
2 changed files with 22 additions and 2 deletions

View File

@ -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() {

View File

@ -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() {