1 |
commit: 6f631fd58c22a7c42ece339ec8d5ead6d53f55fe |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 7 20:47:27 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 7 20:47:34 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=6f631fd5 |
7 |
|
8 |
sci-biology/TransDecoder: Fix double-prefix |
9 |
|
10 |
Closes: https://bugs.gentoo.org/show_bug.cgi?id=587702 |
11 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
12 |
|
13 |
sci-biology/TransDecoder/TransDecoder-2.1.0.ebuild | 68 +++++++++------------- |
14 |
.../TransDecoder/files/pfam_runner.pl.patch | 4 +- |
15 |
2 files changed, 31 insertions(+), 41 deletions(-) |
16 |
|
17 |
diff --git a/sci-biology/TransDecoder/TransDecoder-2.1.0.ebuild b/sci-biology/TransDecoder/TransDecoder-2.1.0.ebuild |
18 |
index bb592938e..6b462ff90 100644 |
19 |
--- a/sci-biology/TransDecoder/TransDecoder-2.1.0.ebuild |
20 |
+++ b/sci-biology/TransDecoder/TransDecoder-2.1.0.ebuild |
21 |
@@ -1,45 +1,47 @@ |
22 |
-# Copyright 1999-2016 Gentoo Foundation |
23 |
+# Copyright 1999-2017 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
-EAPI=5 |
27 |
+EAPI=6 |
28 |
|
29 |
-[ "$PV" == "9999" ] && inherit git-r3 |
30 |
- |
31 |
-PERL_EXPORT_PHASE_FUNCTIONS=no |
32 |
-inherit perl-module eutils toolchain-funcs |
33 |
+inherit perl-functions toolchain-funcs |
34 |
|
35 |
DESCRIPTION="Extract ORF/CDS regions from FASTA sequences" |
36 |
HOMEPAGE="http://transdecoder.github.io" |
37 |
-if [ "$PV" == "9999" ]; then |
38 |
+ |
39 |
+if [[ ${PV} == *9999 ]]; then |
40 |
+ inherit git-r3 |
41 |
EGIT_REPO_URI="https://github.com/TransDecoder/TransDecoder.git" |
42 |
- KEYWORDS="" |
43 |
else |
44 |
- SRC_URI="https://github.com/TransDecoder/TransDecoder/archive/v"${PV}".tar.gz -> ${P}.tar.gz" |
45 |
+ SRC_URI="https://github.com/TransDecoder/TransDecoder/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
46 |
KEYWORDS="~amd64" |
47 |
- S="${WORKDIR}"/TransDecoder-"${PV}" |
48 |
fi |
49 |
|
50 |
LICENSE="BSD-BroadInstitute" |
51 |
SLOT="0" |
52 |
IUSE="" |
53 |
|
54 |
-DEPEND="" |
55 |
+DEPEND="dev-lang/perl:=" |
56 |
RDEPEND="${DEPEND} |
57 |
sci-biology/cd-hit |
58 |
sci-biology/parafly |
59 |
sci-biology/ffindex" |
60 |
|
61 |
-src_prepare(){ |
62 |
- rm -rf transdecoder_plugins/cd-hit |
63 |
+src_prepare() { |
64 |
+ rm -rf transdecoder_plugins/cd-hit || die |
65 |
+ local f p |
66 |
for f in PerlLib/*.pm; do |
67 |
- p=`basename $f .pm`; |
68 |
- sed -e "s#use $p;#use TransDecoder::$p;#" -i PerlLib/*.pm util/*.pl TransDecoder.LongOrfs TransDecoder.Predict || die; |
69 |
+ p=$(basename $f .pm) |
70 |
+ |
71 |
+ sed -e "s#use $p;#use TransDecoder::$p;#" \ |
72 |
+ -i PerlLib/*.pm util/*.pl TransDecoder.LongOrfs TransDecoder.Predict || die |
73 |
done |
74 |
- epatch "${FILESDIR}"/"${P}"__fix_paths.patch |
75 |
- epatch "${FILESDIR}"/pfam_runner.pl.patch |
76 |
+ eapply "${FILESDIR}"/"${P}"__fix_paths.patch |
77 |
+ eapply "${FILESDIR}"/pfam_runner.pl.patch |
78 |
+ |
79 |
+ eapply_user |
80 |
} |
81 |
|
82 |
-src_compile(){ |
83 |
+src_compile() { |
84 |
einfo "Skipping compilation of bundled cd-hit code, nothing else to do" |
85 |
} |
86 |
|
87 |
@@ -48,37 +50,25 @@ src_compile(){ |
88 |
# thread in archives. You can get it from |
89 |
# http://downloads.sourceforge.net/project/transdecoder/Pfam-AB.hmm.bin |
90 |
|
91 |
-src_install(){ |
92 |
+src_install() { |
93 |
dobin TransDecoder.Predict TransDecoder.LongOrfs |
94 |
+ |
95 |
insinto /usr/share/${PN}/util |
96 |
doins util/*.pl |
97 |
- chmod -R a+rx "${D}"/"${EPREFIX}"/usr/share/${PN}/util || die |
98 |
+ |
99 |
+ chmod -R a+rx "${ED%/}"/usr/share/${PN}/util || die |
100 |
# zap the bundled cdhit binaries copied from transdecoder_plugins/cdhit/ to util/bin |
101 |
- rm -rf util/bin |
102 |
- # |
103 |
- # * sci-biology/trinityrnaseq-20140413:0::science |
104 |
- # * /usr/bin/Fasta_reader.pm |
105 |
- # * /usr/bin/GFF3_utils.pm |
106 |
- # * /usr/bin/Gene_obj.pm |
107 |
- # * /usr/bin/Gene_obj_indexer.pm |
108 |
- # * /usr/bin/Longest_orf.pm |
109 |
- # * /usr/bin/Nuc_translator.pm |
110 |
- # * /usr/bin/TiedHash.pm |
111 |
- # |
112 |
- perl_set_version |
113 |
- # this is broken and installs into |
114 |
- # /scratch/mmokrejs/gentoo/var/tmp/portage/sci-biology/TransDecoder-2.1.0/image/scratch/mmokrejs/gentoo/scratch/mmokrejs/gentoo/usr/lib/perl5/vendor_perl/ |
115 |
- # instead of |
116 |
- # /scratch/mmokrejs/gentoo/var/tmp/portage/sci-biology/TransDecoder-2.1.0/image/scratch/mmokrejs/gentoo/usr/lib/perl5/vendor_perl/ |
117 |
- insinto ${VENDOR_LIB}/${PN} |
118 |
- doins PerlLib/*.pm |
119 |
+ rm -rf util/bin || die |
120 |
+ |
121 |
+ perl_domodule -C ${PN} PerlLib/*.pm |
122 |
+ |
123 |
# dodoc Release.Notes |
124 |
einfo "Fetch your own Pfam-A.hmm (Pfam-AB.hmm is discontinued since 05/2015):" |
125 |
einfo "wget --mirror -nH -nd ftp://ftp.ebi.ac.uk/pub/databases/Pfam/current_release/Pfam-A.hmm.gz" |
126 |
einfo "hmmpress Pfam-A.hmm.bin" |
127 |
} |
128 |
|
129 |
-pkg_postinst(){ |
130 |
+pkg_postinst() { |
131 |
einfo "It is recommended to use TransDecoder with sci-biology/hmmer-3 or" |
132 |
einfo "at least with NCBI blast from either:" |
133 |
einfo " sci-biology/ncbi-blast+ (released more often) or from" |
134 |
|
135 |
diff --git a/sci-biology/TransDecoder/files/pfam_runner.pl.patch b/sci-biology/TransDecoder/files/pfam_runner.pl.patch |
136 |
index fbc6f6d92..1e8b96cc7 100644 |
137 |
--- a/sci-biology/TransDecoder/files/pfam_runner.pl.patch |
138 |
+++ b/sci-biology/TransDecoder/files/pfam_runner.pl.patch |
139 |
@@ -1,5 +1,5 @@ |
140 |
---- util/pfam_runner.pl 2015-01-09 11:22:55.000000000 +0100 |
141 |
-+++ util/pfam_runner.pl 2015-01-09 14:25:43.385838579 +0100 |
142 |
+--- a/util/pfam_runner.pl |
143 |
++++ b/util/pfam_runner.pl |
144 |
@@ -24,7 +24,7 @@ |
145 |
my $workdir; |
146 |
my $verbose; |