blob: a6c680eb52f9fb5c3d8c636e186574402cdf790b (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit toolchain-funcs versionator
MY_PV=$(replace_all_version_separators '_')
DESCRIPTION="Multivariate statistical analysis of codon and amino acid usage"
HOMEPAGE="http://codonw.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/CodonWSourceCode_${MY_PV}.tar.gz
http://codonw.sourceforge.net/JohnPedenThesisPressOpt_water.pdf"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="~amd64 ~x86"
S=${WORKDIR}/codonW
src_prepare() {
sed \
-e 's/$(CC) -c/& -DBSD/' \
-e 's/$(CFLAGS) $(objects)/$(CFLAGS) $(LDFLAGS) $(objects)/' \
-i Makefile || die
}
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
}
src_install() {
local i
dobin ${PN}
# woohoo watch out for collisions
for i in rscu cu aau raau tidy reader cutab cutot transl bases base3s dinuc cai fop gc3s gc cbi enc; do
dosym codonw /usr/bin/${i}-${PN}
done
dodoc *.txt "${DISTDIR}"/JohnPedenThesisPressOpt_water.pdf
}
|