summaryrefslogtreecommitdiff
blob: 3892e03e23b2dcea050b0edb80d7e8ef60c244bf (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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

PYTHON_COMPAT=( python2_7 )

inherit autotools flag-o-matic python-single-r1 toolchain-funcs

DESCRIPTION="Transcript assembly and differential expression/regulation for RNA-Seq"
HOMEPAGE="http://cufflinks.cbcb.umd.edu/"
SRC_URI="http://cufflinks.cbcb.umd.edu/downloads/${P}.tar.gz"

LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

RDEPEND="
	sci-biology/samtools:0.1-legacy
	>=dev-libs/boost-1.62.0:=
	${PYTHON_DEPS}"
DEPEND="
	${RDEPEND}
	dev-cpp/eigen:3
	virtual/pkgconfig"

PATCHES=(
	"${FILESDIR}"/${P}-samtools-legacy.patch
	"${FILESDIR}"/${P}-flags.patch
	"${FILESDIR}"/${P}-gcc6.patch
	"${FILESDIR}"/${P}-boost-1.65-tr1-removal.patch
	"${FILESDIR}"/${P}-gcc7.patch
	"${FILESDIR}"/${P}-format-security.patch
	"${FILESDIR}"/${P}-gcc5-make_shared.patch
)

src_prepare() {
	default
	python_fix_shebang src/cuffmerge

	eautoreconf
}

src_configure() {
	# keep in sync with Boost
	append-cxxflags -std=c++14
	append-cppflags $($(tc-getPKG_CONFIG) --cflags eigen3)

	econf \
		--disable-optim \
		--with-boost-libdir="${EPREFIX}/usr/$(get_libdir)/" \
		--with-bam="${EPREFIX}/usr/" \
		$(use_enable debug) \
		PYTHON="${PYTHON}"
}