summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2022-05-16 10:12:16 +0200
committerDavid Seifert <soap@gentoo.org>2022-05-16 10:12:16 +0200
commit4b2a139c41da1704a7b11ae4e8e2e03327f4567f (patch)
treeb534dab8c3cad439337d54601d25771ace456c5b /sci-electronics
parentsci-chemistry/openbabel: [QA] use tc-check-openmp correctly (diff)
downloadgentoo-4b2a139c41da1704a7b11ae4e8e2e03327f4567f.tar.gz
gentoo-4b2a139c41da1704a7b11ae4e8e2e03327f4567f.tar.bz2
gentoo-4b2a139c41da1704a7b11ae4e8e2e03327f4567f.zip
sci-electronics/kicad: [QA] use tc-check-openmp correctly
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-electronics')
-rw-r--r--sci-electronics/kicad/kicad-5.1.12-r3.ebuild7
-rw-r--r--sci-electronics/kicad/kicad-6.0.4.ebuild6
-rw-r--r--sci-electronics/kicad/kicad-9999.ebuild6
3 files changed, 16 insertions, 3 deletions
diff --git a/sci-electronics/kicad/kicad-5.1.12-r3.ebuild b/sci-electronics/kicad/kicad-5.1.12-r3.ebuild
index 34fef8a30277..2f202db0313a 100644
--- a/sci-electronics/kicad/kicad-5.1.12-r3.ebuild
+++ b/sci-electronics/kicad/kicad-5.1.12-r3.ebuild
@@ -59,9 +59,14 @@ PATCHES=(
"${FILESDIR}/${PN}-5.1.5-ldflags.patch"
)
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+
use python && python-single-r1_pkg_setup
- use openmp && tc-check-openmp
setup-wxwidgets
check-reqs_pkg_setup
}
diff --git a/sci-electronics/kicad/kicad-6.0.4.ebuild b/sci-electronics/kicad/kicad-6.0.4.ebuild
index 37b4352cf709..19186c4e7333 100644
--- a/sci-electronics/kicad/kicad-6.0.4.ebuild
+++ b/sci-electronics/kicad/kicad-6.0.4.ebuild
@@ -78,8 +78,12 @@ PATCHES=(
"${FILESDIR}/${PN}-scripts-install-fix.patch"
)
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
pkg_setup() {
- use openmp && tc-check-openmp
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
python-single-r1_pkg_setup
setup-wxwidgets
diff --git a/sci-electronics/kicad/kicad-9999.ebuild b/sci-electronics/kicad/kicad-9999.ebuild
index 1e6d93af9eae..dce9bac6faa6 100644
--- a/sci-electronics/kicad/kicad-9999.ebuild
+++ b/sci-electronics/kicad/kicad-9999.ebuild
@@ -74,8 +74,12 @@ fi
CHECKREQS_DISK_BUILD="900M"
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
pkg_setup() {
- use openmp && tc-check-openmp
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
python-single-r1_pkg_setup
setup-wxwidgets