Gentoo Archives: gentoo-commits

From: Christoph Junghans <ottxor@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/bowtie/files/, sci-biology/bowtie/
Date: Sun, 08 Feb 2015 21:07:54
Message-Id: 1423254241.59c62dccda24a226ceb535dee59e081c4f1002eb.ottxor@gentoo
1 commit: 59c62dccda24a226ceb535dee59e081c4f1002eb
2 Author: Ted Tanberry <ted.tanberry <AT> gmail <DOT> com>
3 AuthorDate: Thu Feb 5 21:54:51 2015 +0000
4 Commit: Christoph Junghans <ottxor <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 6 20:24:01 2015 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=59c62dcc
7
8 Updated sci-biology/bowtie. Bowtie1 is now properly slotted in SLOT=1. Additional build system fixes.
9
10 ---
11 sci-biology/bowtie/bowtie-1.1.1.ebuild | 42 ++++++++++++++++++++++
12 .../{bowtie-2.1.0.ebuild => bowtie-2.2.4.ebuild} | 14 ++++----
13 .../bowtie/files/bowtie-1.1.1-buildsystem.patch | 37 +++++++++++++++++++
14 ...system.patch => bowtie-2.2.4-buildsystem.patch} | 21 ++++++-----
15 4 files changed, 97 insertions(+), 17 deletions(-)
16
17 diff --git a/sci-biology/bowtie/bowtie-1.1.1.ebuild b/sci-biology/bowtie/bowtie-1.1.1.ebuild
18 new file mode 100644
19 index 0000000..ad20591
20 --- /dev/null
21 +++ b/sci-biology/bowtie/bowtie-1.1.1.ebuild
22 @@ -0,0 +1,42 @@
23 +# Copyright 1999-2015 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +# $Header: $
26 +
27 +EAPI=5
28 +
29 +inherit base eutils toolchain-funcs
30 +
31 +DESCRIPTION="An ultrafast memory-efficient short read aligner"
32 +HOMEPAGE="http://bowtie-bio.sourceforge.net/"
33 +SRC_URI="mirror://sourceforge/bowtie-bio/bowtie-1.1.1-src.zip"
34 +
35 +LICENSE="Artistic"
36 +SLOT="1"
37 +IUSE=""
38 +KEYWORDS="~amd64 ~x86 ~x64-macos"
39 +
40 +DEPEND="app-arch/unzip"
41 +RDEPEND=""
42 +
43 +PATCHES=( "${FILESDIR}"/${P}-buildsystem.patch )
44 +
45 +src_compile() {
46 + unset CFLAGS
47 + emake \
48 + CXX="$(tc-getCXX)" \
49 + EXTRA_FLAGS="${LDFLAGS}" \
50 + RELEASE_FLAGS="${CXXFLAGS}"
51 +}
52 +
53 +src_install() {
54 + dobin bowtie bowtie-*
55 + exeinto /usr/share/${PN}/scripts
56 + doexe scripts/*
57 +
58 + insinto /usr/share/${PN}
59 + doins -r genomes indexes
60 +
61 + newman MANUAL bowtie.1
62 + dodoc AUTHORS NEWS TUTORIAL doc/README
63 + dohtml doc/{manual.html,style.css}
64 +}
65
66 diff --git a/sci-biology/bowtie/bowtie-2.1.0.ebuild b/sci-biology/bowtie/bowtie-2.2.4.ebuild
67 similarity index 82%
68 rename from sci-biology/bowtie/bowtie-2.1.0.ebuild
69 rename to sci-biology/bowtie/bowtie-2.2.4.ebuild
70 index aedf017..19e0bca 100644
71 --- a/sci-biology/bowtie/bowtie-2.1.0.ebuild
72 +++ b/sci-biology/bowtie/bowtie-2.2.4.ebuild
73 @@ -1,13 +1,13 @@
74 -# Copyright 1999-2014 Gentoo Foundation
75 +# Copyright 1999-2015 Gentoo Foundation
76 # Distributed under the terms of the GNU General Public License v2
77 # $Header: $
78
79 EAPI=5
80
81 -inherit eutils toolchain-funcs
82 +inherit base eutils toolchain-funcs
83
84 DESCRIPTION="An ultrafast memory-efficient short read aligner"
85 -HOMEPAGE="http://bowtie-bio.sourceforge.net/"
86 +HOMEPAGE="http://bowtie-bio.sourceforge.net/bowtie2/"
87 SRC_URI="mirror://sourceforge/project/${PN}-bio/${PN}2/${PV}/${PN}2-${PV}-source.zip"
88
89 LICENSE="GPL-3"
90 @@ -21,6 +21,8 @@ DEPEND="${RDEPEND}
91
92 S="${WORKDIR}/${PN}2-${PV}"
93
94 +PATCHES=( "${FILESDIR}"/${P}-buildsystem.patch )
95 +
96 pkg_pretend() {
97 grep "sse2" /proc/cpuinfo > /dev/null
98 if [[ $? -ne 0 ]] ; then
99 @@ -28,14 +30,10 @@ pkg_pretend() {
100 fi
101 }
102
103 -src_prepare() {
104 - epatch "${FILESDIR}/${P}-buildsystem.patch"
105 -}
106 -
107 src_compile() {
108 emake \
109 CC="$(tc-getCC)" \
110 - CPP="$(tc-getCXX)" \
111 + CXX="$(tc-getCXX)" \
112 EXTRA_FLAGS="${LDFLAGS}" \
113 RELEASE_FLAGS="${CXXFLAGS} -msse2"
114 }
115
116 diff --git a/sci-biology/bowtie/files/bowtie-1.1.1-buildsystem.patch b/sci-biology/bowtie/files/bowtie-1.1.1-buildsystem.patch
117 new file mode 100644
118 index 0000000..9563a33
119 --- /dev/null
120 +++ b/sci-biology/bowtie/files/bowtie-1.1.1-buildsystem.patch
121 @@ -0,0 +1,37 @@
122 +--- Makefile
123 ++++ Makefile
124 +@@ -5,16 +5,11 @@
125 + SEQAN_DIR = SeqAn-1.1
126 + SEQAN_INC = -I $(SEQAN_DIR)
127 + INC = $(SEQAN_INC) -I third_party
128 +-CPP = g++
129 +-CXX = $(CPP)
130 +-CC = gcc
131 + HEADERS = $(wildcard *.h)
132 + BOWTIE_MM = 1
133 + BOWTIE_SHARED_MEM = 1
134 + EXTRA_FLAGS =
135 +-EXTRA_CFLAGS =
136 + EXTRA_CXXFLAGS =
137 +-CFLAGS += $(EXTRA_CFLAGS)
138 + CXXFLAGS += $(EXTRA_CXXFLAGS)
139 +
140 + # Detect Cygwin or MinGW
141 +@@ -127,7 +122,7 @@
142 + endif
143 +
144 + DEBUG_FLAGS = -O0 -g3 -m64
145 +-RELEASE_FLAGS = -O3 -m64
146 ++RELEASE_FLAGS = $(CXXFLAGS)
147 + NOASSERT_FLAGS = -DNDEBUG
148 + FILE_FLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
149 +
150 +@@ -198,7 +193,7 @@
151 + $(MM_DEF) \
152 + $(SHMEM_DEF)
153 +
154 +-ALL_FLAGS = $(EXTRA_FLAGS) $(CFLAGS) $(CXXFLAGS)
155 ++ALL_FLAGS = $(EXTRA_FLAGS) $(CXXFLAGS)
156 + DEBUG_DEFS = -DCOMPILER_OPTIONS="\"$(DEBUG_FLAGS) $(ALL_FLAGS)\""
157 + RELEASE_DEFS = -DCOMPILER_OPTIONS="\"$(RELEASE_FLAGS) $(ALL_FLAGS)\""
158 +
159
160 diff --git a/sci-biology/bowtie/files/bowtie-2.1.0-buildsystem.patch b/sci-biology/bowtie/files/bowtie-2.2.4-buildsystem.patch
161 similarity index 55%
162 rename from sci-biology/bowtie/files/bowtie-2.1.0-buildsystem.patch
163 rename to sci-biology/bowtie/files/bowtie-2.2.4-buildsystem.patch
164 index 97300b1..8b9218b 100644
165 --- a/sci-biology/bowtie/files/bowtie-2.1.0-buildsystem.patch
166 +++ b/sci-biology/bowtie/files/bowtie-2.2.4-buildsystem.patch
167 @@ -1,19 +1,22 @@
168 ---- Makefile.old 2013-09-22 12:07:12.606844000 +0200
169 -+++ Makefile 2013-09-22 13:06:03.113888200 +0200
170 -@@ -24,8 +24,6 @@
171 +--- Makefile
172 ++++ Makefile
173 +@@ -22,11 +22,6 @@
174 + #
175 +
176 INC =
177 - GCC_PREFIX = $(shell dirname `which gcc`)
178 - GCC_SUFFIX =
179 +-GCC_PREFIX = $(shell dirname `which gcc`)
180 +-GCC_SUFFIX =
181 -CC = $(GCC_PREFIX)/gcc$(GCC_SUFFIX)
182 -CPP = $(GCC_PREFIX)/g++$(GCC_SUFFIX)
183 - CXX = $(CPP)
184 +-CXX = $(CPP)
185 HEADERS = $(wildcard *.h)
186 BOWTIE_MM = 1
187 -@@ -141,7 +139,7 @@
188 + BOWTIE_SHARED_MEM = 0
189 +@@ -152,7 +147,7 @@
190
191 - DEBUG_FLAGS = -O0 -g3 $(BITS_FLAG) $(SSE_FLAG)
192 + DEBUG_FLAGS = -O0 -g3 -m64 $(SSE_FLAG)
193 DEBUG_DEFS = -DCOMPILER_OPTIONS="\"$(DEBUG_FLAGS) $(EXTRA_FLAGS)\""
194 --RELEASE_FLAGS = -O3 $(BITS_FLAG) $(SSE_FLAG) -funroll-loops -g3
195 +-RELEASE_FLAGS = -O3 -m64 $(SSE_FLAG) -funroll-loops -g3
196 +RELEASE_FLAGS = $(CXXFLAGS)
197 RELEASE_DEFS = -DCOMPILER_OPTIONS="\"$(RELEASE_FLAGS) $(EXTRA_FLAGS)\""
198 NOASSERT_FLAGS = -DNDEBUG