From: Mart Raudsepp Date: Sat, 6 Jan 2018 14:23:32 +0000 (+0200) Subject: app-editors/wxhexeditor: Improve OpenMP checks X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=1421404023e0fb576668f0c2bb5eab5671f22dcc;p=gentoo.git 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 --- 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() {