aboutsummaryrefslogtreecommitdiff
blob: e19d27e9b04b7d438911b01a6714ee9af42521e0 (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
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

PYTHON_COMPAT=( python2_7 )

inherit distutils-r1

DESCRIPTION="In-memory K-mer counting in DNA/RNA/protein sequences"
HOMEPAGE="https://github.com/ged-lab/khmer"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""

DEPEND=""
RDEPEND="sci-biology/screed"

python_prepare_all(){
	rm -rf lib/{bzip2,zlib} || die

	sed \
		-e 's:zlib/zlib.h:zlib.h:g' \
		-e 's:bzip2/bzlib.h:bzlib.h:g' \
		-i lib/read_parsers.hh lib/counting.cc || die

	sed \
		-e "/extra_objects/d" \
		-e "s:'nose >= 1.0', ::g" \
		-e "s:'sphinx',::g" \
		-e '/libraries/s:, ]:, "z", "bz2", ]:g' \
		-e "s:'-O3',::g" \
		-i setup.py || die

	distutils-r1_python_prepare_all
}