From 5e17597e28426c21f051f449c7855c84a136c469 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 4 Feb 2017 13:47:34 +0100 Subject: [PATCH] media-libs/mesa: Update deps for slotted LLVM Support slotted LLVM versions correctly. Allow any version for 9999, limit to <5 for 17.0.0_rc2 as current git does not work anymore. For the older 13.0.4 branch, just force slot :0 since it does not support 4.0 (the oldest slotted version). --- media-libs/mesa/mesa-13.0.4.ebuild | 8 ++++---- media-libs/mesa/mesa-17.0.0.ebuild | 26 ++++++++++++++++++++------ media-libs/mesa/mesa-9999.ebuild | 7 ++++--- 3 files changed, 28 insertions(+), 13 deletions(-) diff --git a/media-libs/mesa/mesa-13.0.4.ebuild b/media-libs/mesa/mesa-13.0.4.ebuild index 9948e240507c7..84081c5be9e34 100644 --- a/media-libs/mesa/mesa-13.0.4.ebuild +++ b/media-libs/mesa/mesa-13.0.4.ebuild @@ -99,9 +99,9 @@ RDEPEND=" llvm? ( video_cards_radeonsi? ( virtual/libelf:0=[${MULTILIB_USEDEP}] - vulkan? ( >=sys-devel/llvm-3.9.0:=[${MULTILIB_USEDEP}] ) + vulkan? ( >=sys-devel/llvm-3.9.0:0=[${MULTILIB_USEDEP}] ) ) - >=sys-devel/llvm-3.6.0:=[${MULTILIB_USEDEP}] + >=sys-devel/llvm-3.6.0:0=[${MULTILIB_USEDEP}] ) nettle? ( dev-libs/nettle:=[${MULTILIB_USEDEP}] ) !nettle? ( @@ -151,8 +151,8 @@ DEPEND="${RDEPEND} ) ) ) opencl? ( - >=sys-devel/llvm-3.4.2:=[${MULTILIB_USEDEP}] - >=sys-devel/clang-3.4.2:=[${MULTILIB_USEDEP}] + >=sys-devel/llvm-3.4.2:0=[${MULTILIB_USEDEP}] + >=sys-devel/clang-3.4.2:0=[${MULTILIB_USEDEP}] >=sys-devel/gcc-4.6 ) sys-devel/gettext diff --git a/media-libs/mesa/mesa-17.0.0.ebuild b/media-libs/mesa/mesa-17.0.0.ebuild index 11b03e23a36e2..b35f0bc5ef275 100644 --- a/media-libs/mesa/mesa-17.0.0.ebuild +++ b/media-libs/mesa/mesa-17.0.0.ebuild @@ -13,7 +13,7 @@ fi PYTHON_COMPAT=( python2_7 ) -inherit autotools multilib-minimal python-any-r1 pax-utils ${GIT_ECLASS} +inherit autotools llvm multilib-minimal python-any-r1 pax-utils ${GIT_ECLASS} OPENGL_DIR="xorg-x11" @@ -99,9 +99,16 @@ RDEPEND=" llvm? ( video_cards_radeonsi? ( virtual/libelf:0=[${MULTILIB_USEDEP}] - vulkan? ( >=sys-devel/llvm-3.9.0:=[${MULTILIB_USEDEP}] ) + vulkan? ( + || ( + sys-devel/llvm:4 + >=sys-devel/llvm-3.9.0:0[${MULTILIB_USEDEP}] ) ) ) - >=sys-devel/llvm-3.6.0:=[${MULTILIB_USEDEP}] + || ( + sys-devel/llvm:4 + >=sys-devel/llvm-3.6.0:0[${MULTILIB_USEDEP}] + ) +