blob: 752dab83c84099be5642249bd22fa2b75dfdf418 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
DISTUTILS_USE_SETUPTOOLS=rdepend
# https://github.com/Ensembl/Bio-DB-HTS/issues/30
inherit flag-o-matic autotools distutils-r1 git-r3
DESCRIPTION="K-mer Analysis Toolkit (histogram, filter, compare sets, plot)"
HOMEPAGE="https://github.com/TGAC/KAT"
EGIT_REPO_URI="https://github.com/TGAC/KAT.git"
EGIT_CHECKOUT_DIR="${WORKDIR}"/KAT-Release-"${PV}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="cpu_flags_x86_sse static-libs test"
CDEPEND="
>=dev-libs/boost-1.52[${PYTHON_USEDEP}]
sys-libs/zlib
dev-python/tabulate[${PYTHON_USEDEP}]
dev-python/matplotlib[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/scipy[${PYTHON_USEDEP}]
"
DEPEND="${CDEPEND}
test? ( sys-process/time )"
RDEPEND="${CDEPEND}"
# contains bundled and *modified* version of jellyfish-2.2.0
# (libkat_jellyfish.{a,so} and "kat_" prefixes are added to all binaries)
# https://github.com/TGAC/KAT/issues/93#issuecomment-383377666
# contains embedded sci-biology/seqan headers
PATCHES=(
"${FILESDIR}"/kat-2.4.2-ignore-bundled-deps.patch
"${FILESDIR}"/kat-2.4.2-no_static_build.patch
)
S="${WORKDIR}"/KAT-Release-"${PV}"
distutils_enable_sphinx "${S}/doc/source" --no-autodoc
distutils_enable_tests pytest
src_prepare(){
default
rm -rf deps/boost || die "Failed to zap bundled boost"
eautoreconf
}
src_configure(){
python_setup
local myconf=()
myconf+=(
--disable-gnuplot
--disable-pykat-install
$(use_enable static-libs static)
) # python3 does better image rendering, no need for gnuplot
# pass down to jellyfish-2.2.0/configure
use cpu_flags_x86_sse && myconf+=( $(use_with cpu_flags_x86_sse sse) )
econf ${myconf[@]}
}
src_compile(){
default
pushd scripts >/dev/null || die
distutils-r1_src_compile
popd > /dev/null || die
}
src_install(){
default
pushd scripts >/dev/null || die
distutils-r1_src_install
popd > /dev/null || die
}
src_test(){
default
python_foreach_impl python_test
}
|