1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="Codon usage tables calculated from GenBank"
7 HOMEPAGE="http://www.kazusa.or.jp/codon/"
8 SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
11 LICENSE="public-domain"
12 # Minimal build keeps only the indexed files (if applicable) and the
13 # documentation. The non-indexed database is not installed.
15 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17 DEPEND="emboss? ( sci-biology/emboss )"
20 RESTRICT="binchecks strip"
25 ebegin "Indexing CUTG for usage with EMBOSS."
26 EMBOSS_DATA="." cutgextract -auto -directory "${S}" || die \
27 "Indexing CUTG failed."
34 dodoc README CODON_LABEL SPSUM_LABEL
35 if ! use minimal; then
36 dodir /usr/share/${PN}
37 mv *.codon *.spsum "${ED}"/usr/share/${PN} || die \
38 "Installing raw CUTG database failed."
42 dodir /usr/share/EMBOSS/data/CODONS
45 mv ${file} "${ED}"/usr/share/EMBOSS/data/CODONS/ || die \
46 "Installing the EMBOSS-indexed database failed."