commit: d2e8ea401edf0f3290c3bc3600df0bfa68418430 Author: David Seifert <soap <AT> gentoo <DOT> org> AuthorDate: Mon May 16 08:12:27 2022 +0000 Commit: David Seifert <soap <AT> gentoo <DOT> org> CommitDate: Mon May 16 08:12:27 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2e8ea40
sci-mathematics/primecount: [QA] use tc-check-openmp correctly Signed-off-by: David Seifert <soap <AT> gentoo.org> sci-mathematics/primecount/primecount-7.2-r1.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sci-mathematics/primecount/primecount-7.2-r1.ebuild b/sci-mathematics/primecount/primecount-7.2-r1.ebuild index f84b7b7ea831..617ab1e08c27 100644 --- a/sci-mathematics/primecount/primecount-7.2-r1.ebuild +++ b/sci-mathematics/primecount/primecount-7.2-r1.ebuild @@ -8,6 +8,7 @@ inherit cmake toolchain-funcs DESCRIPTION="Highly optimized CLI and library to count primes" HOMEPAGE="https://github.com/kimwalisch/primecount" SRC_URI="https://github.com/kimwalisch/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + LICENSE="BSD-2" SLOT="0/7" # subslot is first component of libprimecount.so version KEYWORDS="amd64" @@ -32,7 +33,11 @@ DOCS=( ) pkg_pretend() { - use openmp && tc-check-openmp + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +pkg_setup() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp } src_configure() {