1 |
commit: 7b9375683efeff60e57f69f25d0aed49462269d1 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 11 13:23:51 2022 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 11 13:23:51 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b937568 |
7 |
|
8 |
media-gfx/nvidia-texture-tools: [QA] fix BDEPEND and OpenMP checks |
9 |
|
10 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
11 |
|
12 |
.../nvidia-texture-tools-2.1.2.ebuild | 15 ++++++++------- |
13 |
1 file changed, 8 insertions(+), 7 deletions(-) |
14 |
|
15 |
diff --git a/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild b/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild |
16 |
index 803456bf123a..0653f47f3995 100644 |
17 |
--- a/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild |
18 |
+++ b/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild |
19 |
@@ -1,4 +1,4 @@ |
20 |
-# Copyright 1999-2021 Gentoo Authors |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=7 |
25 |
@@ -22,9 +22,8 @@ RDEPEND=" |
26 |
virtual/jpeg:0 |
27 |
x11-libs/libX11 |
28 |
" |
29 |
-DEPEND="${RDEPEND} |
30 |
- virtual/pkgconfig |
31 |
-" |
32 |
+DEPEND="${RDEPEND}" |
33 |
+BDEPEND="virtual/pkgconfig" |
34 |
|
35 |
PATCHES=( |
36 |
"${FILESDIR}"/${P}-cmake.patch |
37 |
@@ -33,9 +32,11 @@ PATCHES=( |
38 |
DOCS=( ChangeLog README.md ) |
39 |
|
40 |
pkg_pretend() { |
41 |
- if [[ ${MERGE_TYPE} != binary ]] && use openmp; then |
42 |
- tc-has-openmp || die "Please switch to an openmp compatible compiler" |
43 |
- fi |
44 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
45 |
+} |
46 |
+ |
47 |
+pkg_setup() { |
48 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
49 |
} |
50 |
|
51 |
src_configure() { |