1 |
commit: 37d6c90ece12854ac4ae220e0d95bc88ec3af1b9 |
2 |
Author: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Mon Dec 23 15:38:01 2019 +0000 |
4 |
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
5 |
CommitDate: Mon Dec 23 15:38:01 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=37d6c90e |
7 |
|
8 |
sci-biology/bowtie: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.75, Repoman-2.3.17 |
11 |
Signed-off-by: Martin Mokrejs <mmokrejs <AT> fold.natur.cuni.cz> |
12 |
|
13 |
sci-biology/bowtie/bowtie-2.3.5.1.ebuild | 60 ++++++++++++++++++++++ |
14 |
.../bowtie/files/bowtie-2.3.5-fix-fifo.patch | 15 ------ |
15 |
.../files/bowtie-2.3.5-fix-interleaved.patch | 15 ------ |
16 |
3 files changed, 60 insertions(+), 30 deletions(-) |
17 |
|
18 |
diff --git a/sci-biology/bowtie/bowtie-2.3.5.1.ebuild b/sci-biology/bowtie/bowtie-2.3.5.1.ebuild |
19 |
new file mode 100644 |
20 |
index 000000000..c2fef8667 |
21 |
--- /dev/null |
22 |
+++ b/sci-biology/bowtie/bowtie-2.3.5.1.ebuild |
23 |
@@ -0,0 +1,60 @@ |
24 |
+# Copyright 1999-2019 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+inherit toolchain-funcs |
30 |
+ |
31 |
+DESCRIPTION="Popular short read aligner for Next-generation sequencing data" |
32 |
+HOMEPAGE="http://bowtie-bio.sourceforge.net/bowtie2/" |
33 |
+SRC_URI="mirror://sourceforge/project/${PN}-bio/${PN}2/${PV}/${PN}2-${PV}-source.zip" |
34 |
+SRC_URI="https://github.com/BenLangmead/${PN}2/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-3" |
37 |
+SLOT="2" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+ |
40 |
+IUSE="examples cpu_flags_x86_sse2 +tbb" |
41 |
+ |
42 |
+RDEPEND="dev-lang/perl |
43 |
+ tbb? ( dev-cpp/tbb )" |
44 |
+DEPEND="${RDEPEND} |
45 |
+ app-arch/unzip |
46 |
+ sys-libs/readline" |
47 |
+ |
48 |
+S="${WORKDIR}/${PN}2-${PV}" |
49 |
+ |
50 |
+DOCS=( AUTHORS NEWS TUTORIAL ) |
51 |
+HTML_DOCS=( doc/{manual.html,style.css} ) |
52 |
+ |
53 |
+pkg_pretend() { |
54 |
+ if ! use cpu_flags_x86_sse2 ; then |
55 |
+ eerror "This package requires a CPU supporting the SSE2 instruction set." |
56 |
+ die "SSE2 support missing" |
57 |
+ fi |
58 |
+} |
59 |
+ |
60 |
+src_compile() { |
61 |
+ emake \ |
62 |
+ CC="$(tc-getCC)" \ |
63 |
+ CPP="$(tc-getCXX)" \ |
64 |
+ CXX="$(tc-getCXX)" \ |
65 |
+ EXTRA_FLAGS="${LDFLAGS}" \ |
66 |
+ RELEASE_FLAGS="${CXXFLAGS} -msse2" \ |
67 |
+ WITH_TBB="$(usex tbb 1 0)" |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ dobin ${PN}2 ${PN}2-* |
72 |
+ |
73 |
+ exeinto /usr/libexec/${PN}2 |
74 |
+ doexe scripts/* |
75 |
+ |
76 |
+ newman MANUAL ${PN}2.1 |
77 |
+ einstalldocs |
78 |
+ |
79 |
+ if use examples; then |
80 |
+ insinto /usr/share/${PN}2 |
81 |
+ doins -r example |
82 |
+ fi |
83 |
+} |
84 |
|
85 |
diff --git a/sci-biology/bowtie/files/bowtie-2.3.5-fix-fifo.patch b/sci-biology/bowtie/files/bowtie-2.3.5-fix-fifo.patch |
86 |
deleted file mode 100644 |
87 |
index 136bb1e69..000000000 |
88 |
--- a/sci-biology/bowtie/files/bowtie-2.3.5-fix-fifo.patch |
89 |
+++ /dev/null |
90 |
@@ -1,15 +0,0 @@ |
91 |
-https://github.com/BenLangmead/bowtie2/commit/d7eab7cf6b7e238047044cf61acc662b05c772c4 |
92 |
- |
93 |
-diff --git a/pat.cpp b/pat.cpp |
94 |
-index 453ba69..6d862f8 100644 |
95 |
---- a/pat.cpp |
96 |
-+++ b/pat.cpp |
97 |
-@@ -494,7 +494,7 @@ void CFilePatternSource::open() { |
98 |
- |
99 |
- is_fifo = S_ISFIFO(st.st_mode) != 0; |
100 |
- #endif |
101 |
-- if (pp_.format != BAM || is_fifo || is_gzipped_file(fd)) { |
102 |
-+ if (pp_.format != BAM && (is_fifo || is_gzipped_file(fd))) { |
103 |
- zfp_ = gzdopen(fd, "r"); |
104 |
- compressed_ = true; |
105 |
- } else { |
106 |
|
107 |
diff --git a/sci-biology/bowtie/files/bowtie-2.3.5-fix-interleaved.patch b/sci-biology/bowtie/files/bowtie-2.3.5-fix-interleaved.patch |
108 |
deleted file mode 100644 |
109 |
index 45d6a0f96..000000000 |
110 |
--- a/sci-biology/bowtie/files/bowtie-2.3.5-fix-interleaved.patch |
111 |
+++ /dev/null |
112 |
@@ -1,15 +0,0 @@ |
113 |
-https://github.com/BenLangmead/bowtie2/commit/753df9deca210db54e1ecc94f946b413876e456e |
114 |
- |
115 |
-diff --git bowtie-2.3.5/bt2_search.cpp b/bt2_search.cpp |
116 |
-index 1d53741..c59e39c 100644 |
117 |
---- bowtie-2.3.5/bt2_search.cpp |
118 |
-+++ bowtie-2.3.5/bt2_search.cpp |
119 |
-@@ -1673,7 +1673,7 @@ static void parseOptions(int argc, const char **argv) { |
120 |
- << "sequences must be specified with -1 and -2." << endl; |
121 |
- throw 1; |
122 |
- } |
123 |
-- if(interleaved && (format != FASTA || format != FASTQ)) { |
124 |
-+ if(interleaved && (format != FASTA && format != FASTQ)) { |
125 |
- cerr << "Error: --interleaved only works in combination with FASTA (-f) and FASTQ (-q) formats." << endl; |
126 |
- throw 1; |
127 |
- } |