commit: 7b9375683efeff60e57f69f25d0aed49462269d1
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Wed May 11 13:23:51 2022 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed May 11 13:23:51 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b937568
media-gfx/nvidia-texture-tools: [QA] fix BDEPEND and OpenMP checks
Signed-off-by: David Seifert <soap <AT> gentoo.org>
.../nvidia-texture-tools-2.1.2.ebuild | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
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
index 803456bf123a..0653f47f3995 100644
--- 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
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -22,9 +22,8 @@ RDEPEND="
virtual/jpeg:0
x11-libs/libX11
"
-DEPEND="${RDEPEND}
- virtual/pkgconfig
-"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${P}-cmake.patch
@@ -33,9 +32,11 @@ PATCHES=(
DOCS=( ChangeLog README.md )
pkg_pretend() {
- if [[ ${MERGE_TYPE} != binary ]] && use openmp; then
- tc-has-openmp || die "Please switch to an openmp compatible
compiler"
- fi
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}
src_configure() {