commit: 4872f542d3a6c11f6ce61cddcfb2fccdf850c799
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat May 14 21:30:17 2022 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat May 14 21:30:17 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4872f542
media-libs/libopenshot: [QA] tc-has-openmp → tc-check-openmp
Signed-off-by: David Seifert <soap <AT> gentoo.org>
media-libs/libopenshot/libopenshot-0.2.5-r1.ebuild | 15 +++------------
media-libs/libopenshot/libopenshot-0.2.6.ebuild | 15 +++------------
media-libs/libopenshot/libopenshot-0.2.7.ebuild | 15 +++------------
3 files changed, 9 insertions(+), 36 deletions(-)
diff --git a/media-libs/libopenshot/libopenshot-0.2.5-r1.ebuild
b/media-libs/libopenshot/libopenshot-0.2.5-r1.ebuild
index 0ce3d1ebb499..d641166cc5e0 100644
--- a/media-libs/libopenshot/libopenshot-0.2.5-r1.ebuild
+++ b/media-libs/libopenshot/libopenshot-0.2.5-r1.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
@@ -43,21 +43,12 @@ PATCHES=(
"${FILESDIR}/${P}-no-hwaccel-testfix.patch"
)
-check_compiler() {
- if [[ ${MERGE_TYPE} != binary ]] && ! tc-has-openmp; then
- eerror "${P} requires a compiler with OpenMP support. Your
current"
- eerror "compiler does not support it. If you use gcc, you can"
- eerror "re-emerge it with the 'openmp' use flag enabled."
- die "The current compiler does not support OpenMP"
- fi
-}
-
pkg_pretend() {
- check_compiler
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
}
pkg_setup() {
- check_compiler
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
use python && python-single-r1_pkg_setup
}
diff --git a/media-libs/libopenshot/libopenshot-0.2.6.ebuild
b/media-libs/libopenshot/libopenshot-0.2.6.ebuild
index af6f8eedbf89..a77d75b47edb 100644
--- a/media-libs/libopenshot/libopenshot-0.2.6.ebuild
+++ b/media-libs/libopenshot/libopenshot-0.2.6.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
@@ -38,21 +38,12 @@ BDEPEND="doc? ( app-doc/doxygen )
dev-libs/unittest++
)"
-check_compiler() {
- if [[ ${MERGE_TYPE} != binary ]] && ! tc-has-openmp; then
- eerror "${P} requires a compiler with OpenMP support. Your
current"
- eerror "compiler does not support it. If you use gcc, you can"
- eerror "re-emerge it with the 'openmp' use flag enabled."
- die "The current compiler does not support OpenMP"
- fi
-}
-
pkg_pretend() {
- check_compiler
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
}
pkg_setup() {
- check_compiler
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
use python && python-single-r1_pkg_setup
}
diff --git a/media-libs/libopenshot/libopenshot-0.2.7.ebuild
b/media-libs/libopenshot/libopenshot-0.2.7.ebuild
index 45cad1c947ad..d016f2abc25d 100644
--- a/media-libs/libopenshot/libopenshot-0.2.7.ebuild
+++ b/media-libs/libopenshot/libopenshot-0.2.7.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=8
@@ -38,21 +38,12 @@ BDEPEND="doc? ( app-doc/doxygen )
dev-libs/unittest++
)"
-check_compiler() {
- if [[ ${MERGE_TYPE} != binary ]] && ! tc-has-openmp; then
- eerror "${P} requires a compiler with OpenMP support. Your
current"
- eerror "compiler does not support it. If you use gcc, you can"
- eerror "re-emerge it with the 'openmp' use flag enabled."
- die "The current compiler does not support OpenMP"
- fi
-}
-
pkg_pretend() {
- check_compiler
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
}
pkg_setup() {
- check_compiler
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
use python && python-single-r1_pkg_setup
}