diff options
author | David Seifert <soap@gentoo.org> | 2021-04-05 15:30:39 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-04-05 15:30:39 +0200 |
commit | 25a60dea75866f20058ff6fa723feb9a043ac5d5 (patch) | |
tree | 7783f0b4576cbcc2e5c9ea293c47be3a560c97aa /sci-biology | |
parent | sci-biology/glimmer: Port to EAPI 7 (diff) | |
download | gentoo-25a60dea75866f20058ff6fa723feb9a043ac5d5.tar.gz gentoo-25a60dea75866f20058ff6fa723feb9a043ac5d5.tar.bz2 gentoo-25a60dea75866f20058ff6fa723feb9a043ac5d5.zip |
sci-biology/cutg: Port to EAPI 7
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-biology')
-rw-r--r-- | sci-biology/cutg/cutg-160-r1.ebuild | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/sci-biology/cutg/cutg-160-r1.ebuild b/sci-biology/cutg/cutg-160-r1.ebuild index 9a8130969019..97abacaab1e4 100644 --- a/sci-biology/cutg/cutg-160-r1.ebuild +++ b/sci-biology/cutg/cutg-160-r1.ebuild @@ -1,49 +1,42 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 DESCRIPTION="Codon usage tables calculated from GenBank" HOMEPAGE="http://www.kazusa.or.jp/codon/" SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz" -SLOT="0" LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" # Minimal build keeps only the indexed files (if applicable) and the # documentation. The non-indexed database is not installed. IUSE="emboss minimal" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" - -DEPEND="emboss? ( sci-biology/emboss )" -RDEPEND="${DEPEND}" - RESTRICT="binchecks strip" +RDEPEND="emboss? ( sci-biology/emboss )" +BDEPEND="${RDEPEND}" + src_compile() { if use emboss; then mkdir CODONS || die ebegin "Indexing CUTG for usage with EMBOSS." - EMBOSS_DATA="." cutgextract -auto -directory "${S}" || die \ - "Indexing CUTG failed." + EMBOSS_DATA="." cutgextract -auto -directory "${S}" || die "Indexing CUTG failed" eend fi } src_install() { - local file dodoc README CODON_LABEL SPSUM_LABEL + if ! use minimal; then - dodir /usr/share/${PN} - mv *.codon *.spsum "${ED}"/usr/share/${PN} || die \ - "Installing raw CUTG database failed." + insinto /usr/share/cutg + doins *.codon *.spsum fi if use emboss; then - dodir /usr/share/EMBOSS/data/CODONS - cd CODONS || die - for file in *; do - mv ${file} "${ED}"/usr/share/EMBOSS/data/CODONS/ || die \ - "Installing the EMBOSS-indexed database failed." - done + insinto /usr/share/EMBOSS/data + doins -r CODONS fi } |