diff options
author | Niklas Haas <gentoo@haasn.xyz> | 2020-06-17 03:46:46 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-06-18 17:37:43 +0200 |
commit | 3df6cb26d8ce817a8ce4a67c0795854f6f051016 (patch) | |
tree | 118620f58f0ba0516cd5f86344bfc55573e91fc0 /media-libs/libplacebo/libplacebo-9999.ebuild | |
parent | media-libs/libplacebo: update HOMEPAGE url (diff) | |
download | gentoo-3df6cb26d8ce817a8ce4a67c0795854f6f051016.tar.gz gentoo-3df6cb26d8ce817a8ce4a67c0795854f6f051016.tar.bz2 gentoo-3df6cb26d8ce817a8ce4a67c0795854f6f051016.zip |
media-libs/libplacebo: update to v2.72.0
The notable change in this release is the switch to auto-generated code,
based on the vulkan registry XML provided by `vulkan-headers`. This
requires the use of python[xml] and python-mako at build time. We also
fix a missing dependency on vulkan-headers.
Also synchronized the live ebuild.
Signed-off-by: Niklas Haas <gentoo@haasn.xyz>
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs/libplacebo/libplacebo-9999.ebuild')
-rw-r--r-- | media-libs/libplacebo/libplacebo-9999.ebuild | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/media-libs/libplacebo/libplacebo-9999.ebuild b/media-libs/libplacebo/libplacebo-9999.ebuild index 3da7505d8c1d..15f1430100f8 100644 --- a/media-libs/libplacebo/libplacebo-9999.ebuild +++ b/media-libs/libplacebo/libplacebo-9999.ebuild @@ -3,6 +3,9 @@ EAPI=7 +PYTHON_REQ_USE="xml" +PYTHON_COMPAT=( python3_{6,7,8,9} ) + if [[ "${PV}" == "9999" ]]; then EGIT_REPO_URI="https://code.videolan.org/videolan/libplacebo.git" inherit git-r3 @@ -12,7 +15,7 @@ else S="${WORKDIR}/${PN}-v${PV}" fi -inherit meson multilib-minimal +inherit meson multilib-minimal python-any-r1 DESCRIPTION="Reusable library for GPU-accelerated image processing primitives" HOMEPAGE="https://code.videolan.org/videolan/libplacebo" @@ -22,16 +25,31 @@ LICENSE="LGPL-2.1+" SLOT="0" IUSE="glslang lcms +opengl +shaderc test +vulkan" REQUIRED_USE="vulkan? ( || ( glslang shaderc ) )" +RESTRICT="!test? ( test )" RDEPEND="glslang? ( dev-util/glslang[${MULTILIB_USEDEP}] ) lcms? ( media-libs/lcms:2[${MULTILIB_USEDEP}] ) opengl? ( media-libs/libepoxy[${MULTILIB_USEDEP}] ) shaderc? ( >=media-libs/shaderc-2017.2[${MULTILIB_USEDEP}] ) - vulkan? ( media-libs/vulkan-loader[${MULTILIB_USEDEP}] )" + vulkan? ( + dev-util/vulkan-headers + media-libs/vulkan-loader[${MULTILIB_USEDEP}] + )" DEPEND="${RDEPEND}" -BDEPEND="virtual/pkgconfig" -RESTRICT="!test? ( test )" +BDEPEND="virtual/pkgconfig + vulkan? ( + ${PYTHON_DEPS} + $(python_gen_any_dep 'dev-python/mako[${PYTHON_USEDEP}]') + )" + +python_check_deps() { + has_version -b "dev-python/mako[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use vulkan && python-any-r1_pkg_setup +} multilib_src_configure() { local emesonargs=( @@ -41,6 +59,8 @@ multilib_src_configure() { $(meson_feature shaderc) $(meson_feature vulkan) $(meson_use test tests) + # hard-code path from dev-util/vulkan-headers + -Dvulkan-registry=/usr/share/vulkan/registry/vk.xml ) meson_src_configure } |