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

EAPI=5

inherit eutils toolchain-funcs

DESCRIPTION="Calculate nonsynonymous (Ka) and synonymous (Ks) substitution rates"
HOMEPAGE="https://code.google.com/p/kaks-calculator"
SRC_URI="https://kaks-calculator.googlecode.com/files/KaKs_Calculator"${PV}".tar.gz
	https://kaks-calculator.googlecode.com/files/parseFastaIntoAXT.pl"

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

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

S="${WORKDIR}"/KaKs_Calculator"${PV}"

src_prepare(){
	sed -e "s/^CC = g++/CC="$(tc-getCXX)"/; s/^CFLAGS/#CFLAGS/" -i src/makefile
}

src_compile(){
	cd src || die
	emake
}

src_install(){
	dobin "${DISTDIR}"/parseFastaIntoAXT.pl
	dobin src/{KaKs_Calculator,AXTConvertor,ConPairs}
}