diff options
author | 2022-05-11 15:23:51 +0200 | |
---|---|---|
committer | 2022-05-11 15:23:51 +0200 | |
commit | 7b9375683efeff60e57f69f25d0aed49462269d1 (patch) | |
tree | a758c4c484f0a70293a3fa94b27ba5b0424386d1 /media-gfx | |
parent | net-analyzer/gvmd: remove unused file (diff) | |
download | gentoo-7b9375683efeff60e57f69f25d0aed49462269d1.tar.gz gentoo-7b9375683efeff60e57f69f25d0aed49462269d1.tar.bz2 gentoo-7b9375683efeff60e57f69f25d0aed49462269d1.zip |
media-gfx/nvidia-texture-tools: [QA] fix BDEPEND and OpenMP checks
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.1.2.ebuild | 15 |
1 files 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() { |