sci-biology/bowtie: remove REQUIRED_USE
authorTed Tanberry <ted.tanberry@gmail.com>
Sat, 10 Oct 2015 20:18:12 +0000 (22:18 +0200)
committerJustin Lecher <jlec@gentoo.org>
Wed, 14 Oct 2015 12:47:58 +0000 (14:47 +0200)
When SSE2 support is not explicitly enabled, the user is
informed by erroring out instead of portage recommending
enabling cpu flags.

sci-biology/bowtie/bowtie-2.2.6.ebuild

index 50aca7e60d06570827a07f3a07dddd37ee466b85..c15de562f28d64e269ab7e46981cf1ccd9e8f9f2 100644 (file)
@@ -15,7 +15,6 @@ SLOT="2"
 KEYWORDS="~amd64 ~x86"
 
 IUSE="examples cpu_flags_x86_sse2 tbb"
-REQUIRED_USE="cpu_flags_x86_sse2"
 
 RDEPEND="dev-lang/perl"
 DEPEND="${RDEPEND}
@@ -27,6 +26,13 @@ S="${WORKDIR}/${PN}2-${PV}"
 DOCS=( AUTHORS NEWS TUTORIAL )
 HTML_DOCS=( doc/{manual.html,style.css} )
 
+pkg_pretend() {
+       if ! use cpu_flags_x86_sse2 ; then
+               eerror "This package requires a CPU supporting the SSE2 instruction set."
+               die "SSE2 support missing"
+       fi
+}
+
 src_compile() {
        emake \
                CC="$(tc-getCC)" \