Skip to content

Commit

Permalink
media-libs/mesa: Update deps for slotted LLVM
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
mgorny committed Feb 15, 2017
1 parent 4e3c559 commit 5e17597
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
8 changes: 4 additions & 4 deletions media-libs/mesa/mesa-13.0.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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? (
Expand Down Expand Up @@ -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
Expand Down
26 changes: 20 additions & 6 deletions media-libs/mesa/mesa-17.0.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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}]
)
<sys-devel/llvm-5:=
)
opencl? (
app-eselect/eselect-opencl
Expand Down Expand Up @@ -143,9 +150,15 @@ DEPEND="${RDEPEND}
) )
)
opencl? (
>=sys-devel/llvm-3.4.2:=[${MULTILIB_USEDEP}]
>=sys-devel/clang-3.4.2:=[${MULTILIB_USEDEP}]
>=sys-devel/gcc-4.6
|| (
sys-devel/llvm:4
>=sys-devel/llvm-3.6.0:0[${MULTILIB_USEDEP}]
)
|| (
sys-devel/clang:4
>=sys-devel/clang-3.6.0:0[${MULTILIB_USEDEP}]
)
>=sys-devel/gcc-4.6
)
sys-devel/gettext
virtual/pkgconfig
Expand Down Expand Up @@ -188,6 +201,7 @@ pkg_setup() {
ewarn "detected! This can cause problems. For details, see bug 459306."
fi

LLVM_MAX_SLOT=4 llvm_pkg_setup
python-any-r1_pkg_setup
}

Expand Down
7 changes: 4 additions & 3 deletions media-libs/mesa/mesa-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -143,8 +143,8 @@ DEPEND="${RDEPEND}
) )
)
opencl? (
>=sys-devel/llvm-3.4.2:=[${MULTILIB_USEDEP}]
>=sys-devel/clang-3.4.2:=[${MULTILIB_USEDEP}]
>=sys-devel/llvm-3.6.0:=[${MULTILIB_USEDEP}]
>=sys-devel/clang-3.6.0:=[${MULTILIB_USEDEP}]
>=sys-devel/gcc-4.6
)
sys-devel/gettext
Expand Down Expand Up @@ -188,6 +188,7 @@ pkg_setup() {
ewarn "detected! This can cause problems. For details, see bug 459306."
fi

llvm_pkg_setup
python-any-r1_pkg_setup
}

Expand Down

0 comments on commit 5e17597

Please sign in to comment.