1 |
commit: c7b331a41b2c947b3facd8c17e4cfd1b6f52d72e |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 8 18:46:38 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 8 18:47:24 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7b331a4 |
7 |
|
8 |
sci-biology/prints: Modernise to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
|
12 |
.../{prints-39.0.ebuild => prints-39.0-r1.ebuild} | 26 ++++++++++++---------- |
13 |
1 file changed, 14 insertions(+), 12 deletions(-) |
14 |
|
15 |
diff --git a/sci-biology/prints/prints-39.0.ebuild b/sci-biology/prints/prints-39.0-r1.ebuild |
16 |
similarity index 73% |
17 |
rename from sci-biology/prints/prints-39.0.ebuild |
18 |
rename to sci-biology/prints/prints-39.0-r1.ebuild |
19 |
index cf047d048f6..f9833579e71 100644 |
20 |
--- a/sci-biology/prints/prints-39.0.ebuild |
21 |
+++ b/sci-biology/prints/prints-39.0-r1.ebuild |
22 |
@@ -1,18 +1,20 @@ |
23 |
# Copyright 1999-2017 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
+EAPI=6 |
27 |
+ |
28 |
MY_PV="${PV/./_}" |
29 |
|
30 |
DESCRIPTION="A protein motif fingerprint database" |
31 |
HOMEPAGE="http://www.bioinf.man.ac.uk/dbbrowser/PRINTS/" |
32 |
SRC_URI="mirror://gentoo/${P}.tar.bz2" |
33 |
|
34 |
-SLOT="0" |
35 |
LICENSE="public-domain" |
36 |
-IUSE="emboss minimal" |
37 |
+SLOT="0" |
38 |
# Minimal build keeps only the indexed files (if applicable) and the |
39 |
# documentation. The non-indexed database is not installed. |
40 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
41 |
+IUSE="emboss minimal" |
42 |
|
43 |
DEPEND="emboss? ( sci-biology/emboss )" |
44 |
RDEPEND="${DEPEND}" |
45 |
@@ -20,23 +22,23 @@ RDEPEND="${DEPEND}" |
46 |
src_compile() { |
47 |
if use emboss; then |
48 |
mkdir PRINTS || die |
49 |
- echo |
50 |
- einfo "Indexing PRINTS for usage with EMBOSS." |
51 |
- EMBOSS_DATA="." printsextract -auto -infile prints${MY_PV}.dat || die \ |
52 |
- "Indexing PRINTS failed." |
53 |
- echo |
54 |
+ einfo |
55 |
+ einfo "Indexing PRINTS for usage with EMBOSS" |
56 |
+ EMBOSS_DATA="." printsextract -auto -infile prints${MY_PV}.dat || die "Indexing PRINTS failed" |
57 |
+ einfo |
58 |
fi |
59 |
} |
60 |
|
61 |
src_install() { |
62 |
+ dodoc README |
63 |
+ |
64 |
if ! use minimal; then |
65 |
insinto /usr/share/${PN} |
66 |
- doins newpr.lis ${PN}${MY_PV}.{all.fasta,dat,kdat,lis,nam,vsn} || die \ |
67 |
- "Installing raw database failed." |
68 |
+ doins newpr.lis ${PN}${MY_PV}.{all.fasta,dat,kdat,lis,nam,vsn} |
69 |
fi |
70 |
+ |
71 |
if use emboss; then |
72 |
- insinto /usr/share/EMBOSS/data/PRINTS |
73 |
- doins PRINTS/* || die "Installing EMBOSS data files failed." |
74 |
+ insinto /usr/share/EMBOSS/data/${PN^^} |
75 |
+ doins -r ${PN^^}/. |
76 |
fi |
77 |
- dodoc README || die "Documentation installation failed." |
78 |
} |