blob: 186c157d4d1e53fcae685e86157dbed11b3cbf44 (
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
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{2_7,3_4} )
inherit distutils-r1
DESCRIPTION="C++ header-only library for reading Oxford Nanopore Fast5 files"
HOMEPAGE="https://github.com/mateidavid/fast5"
SRC_URI="https://github.com/mateidavid/fast5/archive/v0.6.2.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="" # the install step is broken (python modules integration, upstream binary code)
IUSE=""
DEPEND="
dev-python/cython[${PYTHON_USEDEP}]
sci-libs/hdf5"
# TODO: more deps
# https://github.com/mateidavid/tclap.git
# https://github.com/mateidavid/hpptools.git
RDEPEND="${DEPEND}"
src_compile(){
emake -C python develop-user
}
src_install(){
dobin src/hufftk
insinto /usr/include
doins src/*.hpp
dobin python/bin/* # bindled binaries
dolib python/fast5.so # bundled library
}
python_install_all() {
cd python || die
distutils-r1_src_install_all
}
|