Skip to content

Commit

Permalink
sci-libs/kissfft: [QA] use tc-check-openmp correctly
Browse files Browse the repository at this point in the history
Signed-off-by: David Seifert <[email protected]>
  • Loading branch information
SoapGentoo committed May 16, 2022
1 parent dd55182 commit 4fd9cba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion sci-libs/kissfft/kissfft-131.1.0.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -36,6 +36,10 @@ python_check_deps() {
has_version -d "dev-python/numpy[${PYTHON_USEDEP}]"
}

pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}

pkg_setup() {
use test && python-any-r1_pkg_setup
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
Expand Down
6 changes: 5 additions & 1 deletion sci-libs/kissfft/kissfft-9999.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -36,6 +36,10 @@ python_check_deps() {
has_version -d "dev-python/numpy[${PYTHON_USEDEP}]"
}

pkg_pretend() {
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
}

pkg_setup() {
use test && python-any-r1_pkg_setup
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
Expand Down

0 comments on commit 4fd9cba

Please sign in to comment.