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

EAPI=5

AUTOTOOLS_AUTORECONF=yes
AUTOTOOLS_IN_SOURCE_BUILD=yes
PYTHON_COMPAT=( python2_7 )

inherit autotools-utils python-single-r1

DESCRIPTION="Python-based splice junction mapper for RNA-Seq reads using bowtie/bowtie2"
HOMEPAGE="http://ccb.jhu.edu/software/tophat"
SRC_URI="https://github.com/infphilo/tophat/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Artistic"
SLOT="0"
KEYWORDS=""
IUSE="debug"

DEPEND="dev-libs/boost"
# sci-biology/seqan provides binaries and headers but there are no *.so files so no need for a runtime dependency
# boost and seqan is needed for tophat_reporter

# tophat.py calls
#   samtools_0.1.18 view -h -
#   samtools_0.1.18 sort
#   samtools_0.1.18 merge -f -h -u -Q --sam-header
RDEPEND="${DEPEND}
	>=sci-biology/bowtie-0.12.9 || ( >=sci-biology/bowtie-2.0.5 <=sci-biology/bowtie-2.2.3 )"

src_configure() {
	local myeconfargs=(
		$(use_enable debug)
	)
	autotools-utils_src_configure

	echo "../src/libtophat.a: libtophat.a" >> src/Makefile
	echo "../src/libgc.a: libgc.a" >> src/Makefile
	echo "samtools_0.1.18:" >> src/Makefile
	echo -e "\tcp samtools-0.1.18/\$@ \$@" >> src/Makefile
}