Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/wxhexeditor/
Date: Sat, 06 Jan 2018 14:33:30
Message-Id: 1515249194.1421404023e0fb576668f0c2bb5eab5671f22dcc.leio@gentoo
1 commit: 1421404023e0fb576668f0c2bb5eab5671f22dcc
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 6 14:23:32 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 6 14:33:14 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14214040
7
8 app-editors/wxhexeditor: Improve OpenMP checks
9
10 Use tc-check-opemp instead of tc-has-openmp for consistent error output.
11 Check it in pkg_setup too.
12 Don't do the check for binary packages.
13
14 Package-Manager: Portage-2.3.19, Repoman-2.3.6
15
16 app-editors/wxhexeditor/wxhexeditor-0.24.ebuild | 7 +++++--
17 1 file changed, 5 insertions(+), 2 deletions(-)
18
19 diff --git a/app-editors/wxhexeditor/wxhexeditor-0.24.ebuild b/app-editors/wxhexeditor/wxhexeditor-0.24.ebuild
20 index a9a2abcec25..dbdf1906fe8 100644
21 --- a/app-editors/wxhexeditor/wxhexeditor-0.24.ebuild
22 +++ b/app-editors/wxhexeditor/wxhexeditor-0.24.ebuild
23 @@ -30,8 +30,11 @@ PATCHES=(
24 )
25
26 pkg_pretend() {
27 - tc-has-openmp \
28 - || die "${PN} uses OpenMP libraries. Please use an OpenMP-capable compiler."
29 + [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
30 +}
31 +
32 +pkg_setup() {
33 + [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
34 }
35
36 src_prepare() {