From 1421404023e0fb576668f0c2bb5eab5671f22dcc Mon Sep 17 00:00:00 2001 From: Mart Raudsepp Date: Sat, 6 Jan 2018 16:23:32 +0200 Subject: 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(-) (limited to 'app-editors/wxhexeditor') 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() { -- cgit v1.2.3-65-gdbad