aboutsummaryrefslogtreecommitdiff
blob: df5f0ea4a894b0382d5cd13ee0f03ffdccb02e08 (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
# Copyright 2018-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Cobbler and RAILS scaffolding tools acting on SAM streams"
HOMEPAGE="https://github.com/bcgsc/RAILS"
SRC_URI="https://github.com/bcgsc/RAILS/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}
	dev-lang/perl
	sci-biology/samtools
	sci-biology/bwa
"
# bin/runRAILSminimap.sh calls minimap2 but one can stream the SAM data directly
BDEPEND=""

src_prepare(){
	# remove hardcoded PATHs
	# https://github.com/bcgsc/RAILS/issues/8
	sed -e 's@^\.\./@@g' -e 's@^export PATH=/gsc/btl/linuxbrew@#&1@' -i bin/*.sh || die
	default
}

src_install(){
	dobin bin/*
	dodoc readme.md paper/paper.pdf
}