Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/TransDecoder/files/, sci-biology/TransDecoder/
Date: Thu, 07 Sep 2017 20:49:46
Message-Id: 1504817350.539fae1fd1daad0dc762aaa66fcb6fcec4d46bdc.soap@gentoo
1 commit: 539fae1fd1daad0dc762aaa66fcb6fcec4d46bdc
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 7 20:49:10 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 7 20:49:10 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=539fae1f
7
8 sci-biology/TransDecoder: Remove old
9
10 Package-Manager: Portage-2.3.8, Repoman-2.3.3
11
12 sci-biology/TransDecoder/TransDecoder-2.0.1.ebuild | 82 ----------------------
13 .../files/TransDecoder-2.0.1__fix_paths.patch | 22 ------
14 2 files changed, 104 deletions(-)
15
16 diff --git a/sci-biology/TransDecoder/TransDecoder-2.0.1.ebuild b/sci-biology/TransDecoder/TransDecoder-2.0.1.ebuild
17 deleted file mode 100644
18 index 1e5f1ad23..000000000
19 --- a/sci-biology/TransDecoder/TransDecoder-2.0.1.ebuild
20 +++ /dev/null
21 @@ -1,82 +0,0 @@
22 -# Copyright 1999-2015 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=5
26 -
27 -[ "$PV" == "9999" ] && inherit git-r3
28 -
29 -PERL_EXPORT_PHASE_FUNCTIONS=no
30 -inherit perl-module eutils toolchain-funcs
31 -
32 -DESCRIPTION="Extract ORF/CDS regions from FASTA sequences"
33 -HOMEPAGE="http://transdecoder.github.io"
34 -if [ "$PV" == "9999" ]; then
35 - EGIT_REPO_URI="https://github.com/TransDecoder/TransDecoder.git"
36 - KEYWORDS=""
37 -else
38 - SRC_URI="https://github.com/TransDecoder/TransDecoder/archive/"${PV}".tar.gz -> ${P}.tar.gz"
39 - KEYWORDS="~amd64"
40 - S="${WORKDIR}"/TransDecoder-"${PV}"
41 -fi
42 -
43 -LICENSE="BSD-BroadInstitute"
44 -SLOT="0"
45 -IUSE=""
46 -
47 -DEPEND=""
48 -RDEPEND="${DEPEND}
49 - sci-biology/cd-hit
50 - sci-biology/parafly
51 - sci-biology/ffindex"
52 -
53 -src_prepare(){
54 - rm -rf transdecoder_plugins/cd-hit
55 - for f in PerlLib/*.pm; do
56 - p=`basename $f .pm`;
57 - sed -e "s#use $p;#use TransDecoder::$p;#" -i PerlLib/*.pm util/*.pl TransDecoder.LongOrfs TransDecoder.Predict || die;
58 - done
59 - epatch "${FILESDIR}"/"${P}"__fix_paths.patch
60 - epatch "${FILESDIR}"/pfam_runner.pl.patch
61 -}
62 -
63 -src_compile(){
64 - einfo "Skipping compilation of bundled cd-hit code, nothing else to do"
65 -}
66 -
67 -# avoid fetching 1.5TB "${S}"/pfam/Pfam-AB.hmm.bin, see
68 -# "Re: [Transdecoder-users] Announcement: Transdecoder release r20140704"
69 -# thread in archives. You can get it from
70 -# http://downloads.sourceforge.net/project/transdecoder/Pfam-AB.hmm.bin
71 -
72 -src_install(){
73 - dobin TransDecoder.Predict TransDecoder.LongOrfs
74 - insinto /usr/share/${PN}/util
75 - doins util/*.pl
76 - chmod -R a+rx "${D}"/"${EPREFIX}"/usr/share/${PN}/util || die
77 - # zap the bundled cdhit binaries copied from transdecoder_plugins/cdhit/ to util/bin
78 - rm -rf util/bin
79 - #
80 - # * sci-biology/trinityrnaseq-20140413:0::science
81 - # * /usr/bin/Fasta_reader.pm
82 - # * /usr/bin/GFF3_utils.pm
83 - # * /usr/bin/Gene_obj.pm
84 - # * /usr/bin/Gene_obj_indexer.pm
85 - # * /usr/bin/Longest_orf.pm
86 - # * /usr/bin/Nuc_translator.pm
87 - # * /usr/bin/TiedHash.pm
88 - #
89 - perl_set_version
90 - insinto ${VENDOR_LIB}/${PN}
91 - doins PerlLib/*.pm
92 - dodoc Release.Notes
93 - einfo "Fetch on your own Pfam-A.hmm (Pfam-AB.hmm is discontinued since 05/2015):"
94 - einfo "wget --mirror -nH -nd ftp://ftp.ebi.ac.uk/pub/databases/Pfam/current_release/Pfam-A.hmm.gz"
95 - einfo "hmmpress Pfam-A.hmm.bin"
96 -}
97 -
98 -pkg_postinst(){
99 - einfo "It is recommended to use TransDecoder with sci-biology/hmmer-3 or"
100 - einfo "at least with NCBI blast from either:"
101 - einfo " sci-biology/ncbi-blast+ (released more often) or from"
102 - einfo " sci-biology/ncbi-toolkit++ (a huge bundle with releases and less frequent bugfixes)"
103 -}
104
105 diff --git a/sci-biology/TransDecoder/files/TransDecoder-2.0.1__fix_paths.patch b/sci-biology/TransDecoder/files/TransDecoder-2.0.1__fix_paths.patch
106 deleted file mode 100644
107 index 0a6fca050..000000000
108 --- a/sci-biology/TransDecoder/files/TransDecoder-2.0.1__fix_paths.patch
109 +++ /dev/null
110 @@ -1,22 +0,0 @@
111 ---- TransDecoder-2.0.1/TransDecoder.LongOrfs.ori 2015-11-19 21:05:53.340219051 +0100
112 -+++ TransDecoder-2.0.1/TransDecoder.LongOrfs 2015-11-19 21:20:44.870221380 +0100
113 -@@ -64,7 +64,7 @@
114 - use TransDecoder::Fasta_reader;
115 - use TransDecoder::Longest_orf;
116 -
117 --my $UTIL_DIR = "$FindBin::RealBin/util";
118 -+my $UTIL_DIR = "/usr/share/TransDecoder/util/";
119 - $ENV{PATH} = "$UTIL_DIR/bin:$ENV{PATH}";
120 -
121 -
122 ---- TransDecoder-2.0.1/TransDecoder.Predict.ori 2015-11-19 21:06:04.280219080 +0100
123 -+++ TransDecoder-2.0.1/TransDecoder.Predict 2015-11-19 21:21:22.560221479 +0100
124 -@@ -52,7 +52,7 @@
125 - use TransDecoder::Fasta_reader;
126 - use TransDecoder::Longest_orf;
127 -
128 --my $UTIL_DIR = "$FindBin::RealBin/util";
129 -+my $UTIL_DIR = "/usr/share/TransDecoder/util/";
130 - $ENV{PATH} = "$UTIL_DIR/bin:$ENV{PATH}";
131 -
132 -