/[gentoo-x86]/sci-biology/cutg/cutg-160-r1.ebuild
Gentoo

Contents of /sci-biology/cutg/cutg-160-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Mar 28 21:39:28 2015 UTC (3 years, 2 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for ppc, wrt bug #542246

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="ppc", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-biology/cutg/cutg-160-r1.ebuild,v 1.4 2015/03/25 14:07:07 ago Exp $
4
5 EAPI=5
6
7 DESCRIPTION="Codon usage tables calculated from GenBank"
8 HOMEPAGE="http://www.kazusa.or.jp/codon/"
9 SRC_URI="http://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz"
10
11 SLOT="0"
12 LICENSE="public-domain"
13 # Minimal build keeps only the indexed files (if applicable) and the
14 # documentation. The non-indexed database is not installed.
15 IUSE="emboss minimal"
16 KEYWORDS="amd64 ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
17
18 DEPEND="emboss? ( sci-biology/emboss )"
19 RDEPEND="${DEPEND}"
20
21 RESTRICT="binchecks strip"
22
23 src_compile() {
24 if use emboss; then
25 mkdir CODONS || die
26 ebegin "Indexing CUTG for usage with EMBOSS."
27 EMBOSS_DATA="." cutgextract -auto -directory "${S}" || die \
28 "Indexing CUTG failed."
29 eend
30 fi
31 }
32
33 src_install() {
34 local file
35 dodoc README CODON_LABEL SPSUM_LABEL
36 if ! use minimal; then
37 dodir /usr/share/${PN}
38 mv *.codon *.spsum "${ED}"/usr/share/${PN} || die \
39 "Installing raw CUTG database failed."
40 fi
41
42 if use emboss; then
43 dodir /usr/share/EMBOSS/data/CODONS
44 cd CODONS || die
45 for file in *; do
46 mv ${file} "${ED}"/usr/share/EMBOSS/data/CODONS/ || die \
47 "Installing the EMBOSS-indexed database failed."
48 done
49 fi
50 }

  ViewVC Help
Powered by ViewVC 1.1.20