Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/repeatmasker/files/, sci-biology/repeatmasker/
Date: Fri, 30 Nov 2018 16:12:50
Message-Id: 1543594345.b42d6fd23f783fe21761e20fceb2291a21de61c0.mmokrejs@gentoo
1 commit: b42d6fd23f783fe21761e20fceb2291a21de61c0
2 Author: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Fri Nov 30 16:12:25 2018 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Fri Nov 30 16:12:25 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=b42d6fd2
7
8 sci-biology/repeatmasker: version bump, escape >= to avoid shell redirect
9
10 This introduces new repeatmasker-4.0.8 which can use repeatmasker-libraries
11 releasded after 20160829.
12
13 Signed-off-by: Martin Mokrejs <mmokrejs <AT> fold.natur.cuni.cz>
14 Package-Manager: Portage-2.3.51, Repoman-2.3.11
15
16 .../files/repeatmasker-4.0.8__configure.patch | 118 +++++++++++++++++++++
17 .../repeatmasker/repeatmasker-4.0.6-r3.ebuild | 2 +-
18 ....0.6-r3.ebuild => repeatmasker-4.0.8-r1.ebuild} | 8 +-
19 3 files changed, 123 insertions(+), 5 deletions(-)
20
21 diff --git a/sci-biology/repeatmasker/files/repeatmasker-4.0.8__configure.patch b/sci-biology/repeatmasker/files/repeatmasker-4.0.8__configure.patch
22 new file mode 100644
23 index 000000000..728bb75b1
24 --- /dev/null
25 +++ b/sci-biology/repeatmasker/files/repeatmasker-4.0.8__configure.patch
26 @@ -0,0 +1,118 @@
27 +--- RepeatMasker/configure.ori 2018-11-30 16:50:39.918872258 +0100
28 ++++ RepeatMasker/configure 2018-11-30 17:00:33.255400144 +0100
29 +@@ -78,11 +78,10 @@
30 + ## unqualified from another installation directory.
31 + ##
32 + if ( cwd() ne $FindBin::RealBin ) {
33 +- print "\n The RepeatMasker configure script must be run from\n"
34 ++ die "\n The RepeatMasker configure script must be run from\n"
35 + . " inside the RepeatMasker installation directory:\n\n"
36 + . " $FindBin::RealBin\n\n"
37 + . " Perhaps this is not the \"configure\" you are looking for?\n\n";
38 +- exit;
39 + }
40 +
41 + ##
42 +@@ -228,12 +227,12 @@
43 + print "\n -- Building FASTA database...";
44 + system(
45 + "$rmLocation/util/buildRMLibFromEMBL.pl $rmLocation/Libraries/RepeatMaskerLib.embl > $rmLocation/Libraries/RepeatMasker.lib 2>/dev/null"
46 +-);
47 ++) and die "$rmLocation/util/buildRMLibFromEMBL.pl $rmLocation/Libraries/RepeatMaskerLib.embl command filed with: $!";
48 +
49 + ## Uncompress taxonomy.dat
50 + if ( -s "$rmLocation/Libraries/taxonomy.dat.gz" ) {
51 + print "\n -- Uncompressing taxonomy.dat...";
52 +- system( "gunzip $rmLocation/Libraries/taxonomy.dat.gz" );
53 ++ system( "gunzip $rmLocation/Libraries/taxonomy.dat.gz" ) and die "gunzip $rmLocation/Libraries/taxonomy.dat.gz failed with: $!";
54 + }
55 +
56 + ##
57 +@@ -278,7 +277,7 @@
58 + } while ( $goodParam != 1 );
59 +
60 + # Initialize config from template.
61 +-system( "cp RepeatMaskerConfig.tmpl RepeatMaskerConfig.pm" );
62 ++system( "cp RepeatMaskerConfig.tmpl RepeatMaskerConfig.pm" ) and die "cp RepeatMaskerConfig.tmpl RepeatMaskerConfig.pm failed with: $!";
63 +
64 + # Make changes to file.
65 + my $configFile = "RepeatMaskerConfig.pm";
66 +@@ -290,7 +289,7 @@
67 + }
68 + close IN;
69 + close OUT;
70 +-system( "mv $configFile.tmp $configFile" );
71 ++system( "mv $configFile.tmp $configFile" ) and die "mv $configFile.tmp $configFile failed with: $!";
72 +
73 + ##
74 + ## Search Engine Configuration
75 +@@ -452,7 +451,7 @@
76 + }
77 + close IN;
78 + close OUT;
79 +- system( "mv $configFile.tmp $configFile" );
80 ++ system( "mv $configFile.tmp $configFile" ) and die "mv $configFile.tmp $configFile failed with: $!";
81 + }
82 +
83 + }
84 +@@ -590,9 +589,9 @@
85 + my $rmLocation = "$FindBin::Bin";
86 + print "Building RMBlast frozen libraries..\n";
87 + system( "$pgLocation/makeblastdb -dbtype nucl -in "
88 +- . "$rmLocation/Libraries/RepeatMasker.lib > /dev/null 2>&1" );
89 ++ . "$rmLocation/Libraries/RepeatMasker.lib > /dev/null 2>&1" ) and die "$pgLocation/makeblastdb -dbtype nucl -in $rmLocation/Libraries/RepeatMasker.lib failed: $!";
90 + system( "$pgLocation/makeblastdb -dbtype prot -in "
91 +- . "$rmLocation/Libraries/RepeatPeps.lib > /dev/null 2>&1" );
92 ++ . "$rmLocation/Libraries/RepeatPeps.lib > /dev/null 2>&1" ) and die "$pgLocation/makeblastdb -dbtype prot -in $rmLocation/Libraries/RepeatPeps.lib failed with: $!";
93 +
94 + my $pgDefault = &promptScreen(
95 + "",
96 +@@ -665,9 +664,9 @@
97 + my $rmLocation = "$FindBin::Bin";
98 + print "Building WUBlast/ABBlast frozen libraries..\n";
99 + system( "$wuLocation/xdformat -n -I "
100 +- . "$rmLocation/Libraries/RepeatMasker.lib > /dev/null 2>&1" );
101 ++ . "$rmLocation/Libraries/RepeatMasker.lib > /dev/null 2>&1" ) and die "$wuLocation/xdformat -n -I $rmLocation/Libraries/RepeatMasker.lib failed with: $!";
102 + system( "$wuLocation/xdformat -p -I "
103 +- . "$rmLocation/Libraries/RepeatPeps.lib > /dev/null 2>&1" );
104 ++ . "$rmLocation/Libraries/RepeatPeps.lib > /dev/null 2>&1" ) and die "$wuLocation/xdformat -p -I $rmLocation/Libraries/RepeatPeps.lib failed with: $!";
105 +
106 + my $wuDefault = &promptScreen(
107 + "",
108 +@@ -733,7 +732,7 @@
109 + }
110 + }
111 + else {
112 +- print "ERROR: Could not find nhmmer program in this directory!\n";
113 ++ print "ERROR: Could not find nhmmer program in '$location' directory!\n";
114 + }
115 + }
116 +
117 +@@ -753,7 +752,7 @@
118 + }
119 + close IN;
120 + close OUT;
121 +- system( "mv $configFile.tmp $configFile" );
122 ++ system( "mv $configFile.tmp $configFile" ) and die "mv $configFile.tmp $configFile failed with: $!";
123 +
124 + my $default = &promptScreen(
125 + "",
126 +@@ -807,7 +806,7 @@
127 + }
128 + close IN;
129 + close OUT;
130 +- system( "mv $configFile.tmp $configFile" );
131 ++ system( "mv $configFile.tmp $configFile" ) and die "mv $configFile.tmp $configFile failed with: $!";
132 +
133 + my $deDefault = &promptScreen(
134 + "",
135 +@@ -843,9 +842,6 @@
136 +
137 + my $answer = undef;
138 +
139 +- # Clear the screen
140 +- system( "clear" );
141 +-
142 + print "\n\n\n";
143 + print $screenText;
144 + my $numLines = ( $screenText =~ s/(\n)/$1/g );
145
146 diff --git a/sci-biology/repeatmasker/repeatmasker-4.0.6-r3.ebuild b/sci-biology/repeatmasker/repeatmasker-4.0.6-r3.ebuild
147 index 2ff6c8be6..d41784eb7 100644
148 --- a/sci-biology/repeatmasker/repeatmasker-4.0.6-r3.ebuild
149 +++ b/sci-biology/repeatmasker/repeatmasker-4.0.6-r3.ebuild
150 @@ -104,7 +104,7 @@ pkg_postinst(){
151 einfo "Supported search engines are:"
152 optfeature "cross_match" sci-biology/phrap
153 optfeature "rmblast" sci-biology/rmblast
154 - optfeature "nhmmer" >=sci-biology/hmmer-3.1
155 + optfeature "nhmmer" \>=sci-biology/hmmer-3.1
156 einfo "abblast/wublast from http://blast.advbiocomp.com/licensing"
157 einfo "repeatmasker-libraries-20160829 (RepBase 21.12) is the last"
158 einfo "version compatible with <repeatmasker-4.0.7"
159
160 diff --git a/sci-biology/repeatmasker/repeatmasker-4.0.6-r3.ebuild b/sci-biology/repeatmasker/repeatmasker-4.0.8-r1.ebuild
161 similarity index 94%
162 copy from sci-biology/repeatmasker/repeatmasker-4.0.6-r3.ebuild
163 copy to sci-biology/repeatmasker/repeatmasker-4.0.8-r1.ebuild
164 index 2ff6c8be6..9b4af2312 100644
165 --- a/sci-biology/repeatmasker/repeatmasker-4.0.6-r3.ebuild
166 +++ b/sci-biology/repeatmasker/repeatmasker-4.0.8-r1.ebuild
167 @@ -20,7 +20,7 @@ DEPEND=">=dev-lang/perl-5.8"
168 RDEPEND="
169 dev-perl/Text-Soundex
170 sci-biology/phrap
171 - <=sci-biology/repeatmasker-libraries-20160829
172 + >sci-biology/repeatmasker-libraries-20160829
173 sci-biology/rmblast
174 !sci-biology/trf
175 >=sci-biology/trf-bin-4.0.4
176 @@ -92,7 +92,7 @@ src_install() {
177 doins -r util Matrices Libraries *.help
178 keepdir /usr/share/${PN}/Libraries
179
180 - dodoc README INSTALL *.help
181 + dodoc README.md INSTALL *.help
182 }
183
184 pkg_postinst(){
185 @@ -104,8 +104,8 @@ pkg_postinst(){
186 einfo "Supported search engines are:"
187 optfeature "cross_match" sci-biology/phrap
188 optfeature "rmblast" sci-biology/rmblast
189 - optfeature "nhmmer" >=sci-biology/hmmer-3.1
190 + optfeature "nhmmer" \>=sci-biology/hmmer-3.1
191 einfo "abblast/wublast from http://blast.advbiocomp.com/licensing"
192 - einfo "repeatmasker-libraries-20160829 (RepBase 21.12) is the last"
193 + einfo "repeatmasker-libraries-20160829 (RepBase 21.12) was the last"
194 einfo "version compatible with <repeatmasker-4.0.7"
195 }