commit:     1421404023e0fb576668f0c2bb5eab5671f22dcc
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  6 14:23:32 2018 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Sat Jan  6 14:33:14 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14214040

app-editors/wxhexeditor: Improve OpenMP checks

Use tc-check-opemp instead of tc-has-openmp for consistent error output.
Check it in pkg_setup too.
Don't do the check for binary packages.

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-editors/wxhexeditor/wxhexeditor-0.24.ebuild | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/app-editors/wxhexeditor/wxhexeditor-0.24.ebuild 
b/app-editors/wxhexeditor/wxhexeditor-0.24.ebuild
index a9a2abcec25..dbdf1906fe8 100644
--- a/app-editors/wxhexeditor/wxhexeditor-0.24.ebuild
+++ b/app-editors/wxhexeditor/wxhexeditor-0.24.ebuild
@@ -30,8 +30,11 @@ PATCHES=(
 )
 
 pkg_pretend() {
-       tc-has-openmp \
-               || die "${PN} uses OpenMP libraries. Please use an 
OpenMP-capable compiler."
+        [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+}
+
+pkg_setup() {
+        [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
 }
 
 src_prepare() {

Reply via email to