sci-biology/seqan: drop SSE instruction check in pkg_pretend(), which sometimes fails...
authorSergey Popov <pinkbyte@gentoo.org>
Mon, 19 Oct 2015 20:42:53 +0000 (23:42 +0300)
committerSergey Popov <pinkbyte@gentoo.org>
Mon, 19 Oct 2015 20:43:18 +0000 (23:43 +0300)
Package-Manager: portage-2.2.20

sci-biology/seqan/seqan-1.4.2.ebuild

index a7e436a2013bcd07fb34ab6ec4937b16f131a741..4b9740c2d2054d6bf082258b994e87c5ccd9b91b 100644 (file)
@@ -15,9 +15,9 @@ SRC_URI="http://packages.${PN}.de/${PN}-src/${PN}-src-${PV}.tar.gz"
 SLOT="0"
 LICENSE="BSD GPL-3"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE=""
+IUSE="cpu_flags_x86_sse4_1"
 
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+REQUIRED_USE="${PYTHON_REQUIRED_USE} cpu_flags_x86_sse4_1"
 
 RDEPEND="${PYTHON_DEPS}
        sci-biology/samtools"
@@ -28,17 +28,8 @@ PATCHES=(
        "${FILESDIR}"/${P}-include.patch
 )
 
-pkg_pretend() {
-       [[ ${MERGE_TYPE} = "binary" ]] && return 0
-       if use amd64; then
-               if ! echo "#include <smmintrin.h>" | gcc -E - 2>&1 > /dev/null; then
-                       ewarn "Need at least SSE4.1 support"
-                       die "Missing SSE4.1 support"
-               fi
-       fi
-}
-
 src_prepare() {
+       append-cppflags -msse4.1
        rm -f \
                util/cmake/FindZLIB.cmake \
                || die