1 |
commit: a705e4128fd878a5a935c421fc3e587b3290d522 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 4 06:52:59 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 4 08:05:55 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a705e412 |
7 |
|
8 |
sys-libs/libomp: Add missing LLVM dep for USE=offload |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sys-libs/libomp/libomp-13.0.0.9999.ebuild | 4 +++- |
13 |
sys-libs/libomp/libomp-13.0.0.ebuild | 4 +++- |
14 |
sys-libs/libomp/libomp-14.0.0.9999.ebuild | 4 +++- |
15 |
3 files changed, 9 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/sys-libs/libomp/libomp-13.0.0.9999.ebuild b/sys-libs/libomp/libomp-13.0.0.9999.ebuild |
18 |
index bf8f376ce98..cce3a6bf584 100644 |
19 |
--- a/sys-libs/libomp/libomp-13.0.0.9999.ebuild |
20 |
+++ b/sys-libs/libomp/libomp-13.0.0.9999.ebuild |
21 |
@@ -5,7 +5,7 @@ EAPI=7 |
22 |
|
23 |
CMAKE_ECLASS=cmake |
24 |
PYTHON_COMPAT=( python3_{8..10} ) |
25 |
-inherit cmake-multilib linux-info llvm.org python-any-r1 |
26 |
+inherit cmake-multilib linux-info llvm llvm.org python-any-r1 |
27 |
|
28 |
DESCRIPTION="OpenMP runtime library for LLVM/clang compiler" |
29 |
HOMEPAGE="https://openmp.llvm.org" |
30 |
@@ -23,6 +23,7 @@ RDEPEND=" |
31 |
offload? ( |
32 |
virtual/libelf:=[${MULTILIB_USEDEP}] |
33 |
dev-libs/libffi:=[${MULTILIB_USEDEP}] |
34 |
+ ~sys-devel/llvm-${PV}[${MULTILIB_USEDEP}] |
35 |
cuda? ( dev-util/nvidia-cuda-toolkit:= ) |
36 |
)" |
37 |
# tests: |
38 |
@@ -62,6 +63,7 @@ pkg_pretend() { |
39 |
} |
40 |
|
41 |
pkg_setup() { |
42 |
+ use offload && LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
43 |
use test && python-any-r1_pkg_setup |
44 |
} |
45 |
|
46 |
|
47 |
diff --git a/sys-libs/libomp/libomp-13.0.0.ebuild b/sys-libs/libomp/libomp-13.0.0.ebuild |
48 |
index db94fb5536f..df2a62ab3d4 100644 |
49 |
--- a/sys-libs/libomp/libomp-13.0.0.ebuild |
50 |
+++ b/sys-libs/libomp/libomp-13.0.0.ebuild |
51 |
@@ -5,7 +5,7 @@ EAPI=7 |
52 |
|
53 |
CMAKE_ECLASS=cmake |
54 |
PYTHON_COMPAT=( python3_{8..10} ) |
55 |
-inherit cmake-multilib linux-info llvm.org python-any-r1 |
56 |
+inherit cmake-multilib linux-info llvm llvm.org python-any-r1 |
57 |
|
58 |
DESCRIPTION="OpenMP runtime library for LLVM/clang compiler" |
59 |
HOMEPAGE="https://openmp.llvm.org" |
60 |
@@ -23,6 +23,7 @@ RDEPEND=" |
61 |
offload? ( |
62 |
virtual/libelf:=[${MULTILIB_USEDEP}] |
63 |
dev-libs/libffi:=[${MULTILIB_USEDEP}] |
64 |
+ ~sys-devel/llvm-${PV}[${MULTILIB_USEDEP}] |
65 |
cuda? ( dev-util/nvidia-cuda-toolkit:= ) |
66 |
)" |
67 |
# tests: |
68 |
@@ -63,6 +64,7 @@ pkg_pretend() { |
69 |
} |
70 |
|
71 |
pkg_setup() { |
72 |
+ use offload && LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
73 |
use test && python-any-r1_pkg_setup |
74 |
} |
75 |
|
76 |
|
77 |
diff --git a/sys-libs/libomp/libomp-14.0.0.9999.ebuild b/sys-libs/libomp/libomp-14.0.0.9999.ebuild |
78 |
index bf8f376ce98..cce3a6bf584 100644 |
79 |
--- a/sys-libs/libomp/libomp-14.0.0.9999.ebuild |
80 |
+++ b/sys-libs/libomp/libomp-14.0.0.9999.ebuild |
81 |
@@ -5,7 +5,7 @@ EAPI=7 |
82 |
|
83 |
CMAKE_ECLASS=cmake |
84 |
PYTHON_COMPAT=( python3_{8..10} ) |
85 |
-inherit cmake-multilib linux-info llvm.org python-any-r1 |
86 |
+inherit cmake-multilib linux-info llvm llvm.org python-any-r1 |
87 |
|
88 |
DESCRIPTION="OpenMP runtime library for LLVM/clang compiler" |
89 |
HOMEPAGE="https://openmp.llvm.org" |
90 |
@@ -23,6 +23,7 @@ RDEPEND=" |
91 |
offload? ( |
92 |
virtual/libelf:=[${MULTILIB_USEDEP}] |
93 |
dev-libs/libffi:=[${MULTILIB_USEDEP}] |
94 |
+ ~sys-devel/llvm-${PV}[${MULTILIB_USEDEP}] |
95 |
cuda? ( dev-util/nvidia-cuda-toolkit:= ) |
96 |
)" |
97 |
# tests: |
98 |
@@ -62,6 +63,7 @@ pkg_pretend() { |
99 |
} |
100 |
|
101 |
pkg_setup() { |
102 |
+ use offload && LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
103 |
use test && python-any-r1_pkg_setup |
104 |
} |