diff options
author | Mart Raudsepp <leio@gentoo.org> | 2018-01-06 16:23:32 +0200 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2018-01-06 16:33:14 +0200 |
commit | 1421404023e0fb576668f0c2bb5eab5671f22dcc (patch) | |
tree | b9bf58288b2805216b0eb139bbd7cea11bfa4e47 | |
parent | profiles/package.mask: drop obsolete sci-geosciences/gmapcatcher entry (diff) | |
download | gentoo-1421404023e0fb576668f0c2bb5eab5671f22dcc.tar.gz gentoo-1421404023e0fb576668f0c2bb5eab5671f22dcc.tar.bz2 gentoo-1421404023e0fb576668f0c2bb5eab5671f22dcc.zip |
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
-rw-r--r-- | app-editors/wxhexeditor/wxhexeditor-0.24.ebuild | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app-editors/wxhexeditor/wxhexeditor-0.24.ebuild b/app-editors/wxhexeditor/wxhexeditor-0.24.ebuild index a9a2abcec259..dbdf1906fe82 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() { |