aboutsummaryrefslogtreecommitdiff
blob: 5f245db179d3e57bbad7930e58186635cd38789f (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils git-r3

DESCRIPTION="String Graph OLC Assembler for short reads (overlap-layout-consensus)"
HOMEPAGE="https://github.com/jts/sga"
EGIT_REPO_URI="git://github.com/jts/sga"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="jemalloc python"

DEPEND="dev-cpp/sparsehash
	sci-biology/bamtools
	sys-libs/zlib
	jemalloc? ( dev-libs/jemalloc )
	python? ( sci-biology/pysam
			sci-biology/ruffus )"
RDEPEND="${DEPEND}"

src_configure(){
	cd src || die
	./autogen.sh || die
	econf --with-bamtools=/usr
}

src_compile(){
	cd src || die
	default
}

src_install(){
	cd src || die
	dodoc README
	emake install DESTDIR="${D}"
	insinto /usr/share/sga/examples
	doins examples/*
	cd .. ||
	dodoc README.md
}