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

EAPI=5

inherit eutils

DESCRIPTION="Find ORFs by comparing two genomic/EST sequences using tblastx and geneid ab initio predictions"
HOMEPAGE="http://genome.crg.es/software/sgp2/"
SRC_URI="ftp://genome.crg.es/pub/software/sgp2/sgp2_v1.1.May_8_2012.tar.gz"

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

DEPEND="dev-lang/perl"
RDEPEND="${DEPEND}
	sci-biology/geneid"

S="${WORKDIR}"/"${PN}"

src_prepare() {
	# disable bundled geneid sources
	epatch "${FILESDIR}"/Makefile.patch
	# do not look for renamed geneid-sgp binary
	sed -i -e 's#geneid-sgp#geneid#g' src/sgp2.pl
}

src_install() {
	dobin bin/sgp2 bin/parseblast
	insinto /usr/share/"${PN}"
	doins -r param samples
}