media-libs/libplacebo: workaround vulkan leaking into .pc

Is a bit of a edge case, so skipping revbump.

Would've been simpler to patch the meson.build to handle
all cases but ah well, at least won't need to rebase.

Closes: https://bugs.gentoo.org/951125
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2025-03-11 18:46:14 -04:00
parent cb8e218ee7
commit 71df98450b
2 changed files with 20 additions and 0 deletions

View File

@@ -124,3 +124,13 @@ multilib_src_configure() {
meson_src_configure
}
multilib_src_install() {
meson_src_install
# prevent vulkan from leaking into the .pc here for now (bug #951125)
if use !vulkan && has_version media-libs/vulkan-loader; then
sed -Ee '/^Requires/s/vulkan[^,]*,? ?//;s/, $//;/^Requires[^:]*: $/d' \
-i "${ED}"/usr/$(get_libdir)/pkgconfig/libplacebo.pc || die
fi
}

View File

@@ -124,3 +124,13 @@ multilib_src_configure() {
meson_src_configure
}
multilib_src_install() {
meson_src_install
# prevent vulkan from leaking into the .pc here for now (bug #951125)
if use !vulkan && has_version media-libs/vulkan-loader; then
sed -Ee '/^Requires/s/vulkan[^,]*,? ?//;s/, $//;/^Requires[^:]*: $/d' \
-i "${ED}"/usr/$(get_libdir)/pkgconfig/libplacebo.pc || die
fi
}