aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mokrejš <mmokrejs@fold.natur.cuni.cz>2016-12-09 17:26:07 +0100
committerMartin Mokrejš <mmokrejs@fold.natur.cuni.cz>2016-12-09 17:26:07 +0100
commitd8e71f09ea2222b8f04e79adb3f1772e680a0a24 (patch)
tree489c25a60933dc44888f59169879a67ef1eb9698
parentsci-biology/kat: (diff)
downloadsci-d8e71f09ea2222b8f04e79adb3f1772e680a0a24.tar.gz
sci-d8e71f09ea2222b8f04e79adb3f1772e680a0a24.tar.bz2
sci-d8e71f09ea2222b8f04e79adb3f1772e680a0a24.zip
sci-biology/kat: respect sse CPU USE flags
Package-Manager: portage-2.3.3
-rw-r--r--sci-biology/kat/kat-2.2.0.ebuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/sci-biology/kat/kat-2.2.0.ebuild b/sci-biology/kat/kat-2.2.0.ebuild
index 38ddae2be..fbd383439 100644
--- a/sci-biology/kat/kat-2.2.0.ebuild
+++ b/sci-biology/kat/kat-2.2.0.ebuild
@@ -6,7 +6,7 @@ EAPI=6
PYTHON_COMPAT=( python{2_7,3_4,3_5} ) # https://github.com/Ensembl/Bio-DB-HTS/issues/30
-inherit python-r1
+inherit python-r1 eutils flag-o-matic
DESCRIPTION="K-mer Analysis Toolkit (histogram, filter, compare sets, plot)"
HOMEPAGE="https://github.com/TGAC/KAT"
@@ -15,7 +15,7 @@ SRC_URI="https://github.com/TGAC/KAT/releases/download/Release-${PV}/${P}.tar.gz
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS=""
-IUSE=""
+IUSE="cpu_flags_x86_sse"
DEPEND="dev-libs/boost:0
dev-python/matplotlib
@@ -24,5 +24,9 @@ RDEPEND="${DEPEND}"
# contains bundled modified version of jellyfish-2.2 which should install under different filenames
src_configure(){
- econf PYTHON_VERSION="${PYTHON_SINGLE_TARGET}"
+ local myconf=()
+ myconf+=( --disable-gnuplot ) # python3 does better image rendering, no need for gnuplot
+ use cpu_flags_x86_sse && myconf+=( $(use_with cpu_flags_x86_sse sse) ) # pass down to jellyfish-2.20/configure
+ PYTHON_VERSION=3 econf ${myconf[@]}
+ eapply_user
}