1 |
commit: ece13202e880ee4219486309af8c82ff738b915d |
2 |
Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
3 |
AuthorDate: Mon Apr 27 11:09:07 2015 +0000 |
4 |
Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz> |
5 |
CommitDate: Mon Apr 27 11:09:07 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=ece13202 |
7 |
|
8 |
sci-biology/tophat: version bumps; we can use the bundled SeqAn-1.3 and also the samtools-0.1.18, it is just for compilation AFAIK; note also the specific version of bowtie (I infer <= versions are supported only) |
9 |
|
10 |
Package-Manager: portage-2.2.18 |
11 |
|
12 |
sci-biology/tophat/ChangeLog | 69 ++++++++++++++ |
13 |
sci-biology/tophat/files/tophat-2.0.9-flags.patch | 109 ++++++++++++++++++++++ |
14 |
sci-biology/tophat/metadata.xml | 8 ++ |
15 |
sci-biology/tophat/tophat-2.0.12.ebuild | 49 ++++++++++ |
16 |
sci-biology/tophat/tophat-2.0.13.ebuild | 54 +++++++++++ |
17 |
sci-biology/tophat/tophat-2.0.14.ebuild | 54 +++++++++++ |
18 |
6 files changed, 343 insertions(+) |
19 |
|
20 |
diff --git a/sci-biology/tophat/ChangeLog b/sci-biology/tophat/ChangeLog |
21 |
new file mode 100644 |
22 |
index 0000000..a262a0b |
23 |
--- /dev/null |
24 |
+++ b/sci-biology/tophat/ChangeLog |
25 |
@@ -0,0 +1,69 @@ |
26 |
+# ChangeLog for sci-biology/tophat |
27 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/tophat/ChangeLog,v 1.14 2015/04/07 14:35:24 jlec Exp $ |
29 |
+ |
30 |
+ 17 Oct 2014; Sergey Popov <pinkbyte@g.o> tophat-1.0.12.ebuild: |
31 |
+ Non-maintainer commit: fix building, approved by Justin Lecher |
32 |
+ |
33 |
+*tophat-2.0.9 (06 Mar 2014) |
34 |
+ |
35 |
+ 06 Mar 2014; Justin Lecher <jlec@g.o> +tophat-2.0.9.ebuild, |
36 |
+ +files/tophat-2.0.9-flags.patch: |
37 |
+ Version Bump, #502532; thanks José María Fernández González for the new |
38 |
+ ebuild |
39 |
+ |
40 |
+*tophat-2.0.8 (13 Mar 2013) |
41 |
+ |
42 |
+ 13 Mar 2013; Justin Lecher <jlec@g.o> +tophat-2.0.8.ebuild, |
43 |
+ +files/tophat-2.0.8-flags.patch: |
44 |
+ Version Bump; unbundle sci-biology/seqan |
45 |
+ |
46 |
+ 12 Mar 2013; Justin Lecher <jlec@g.o> metadata.xml: |
47 |
+ Drop Andrey as maintainer so that bugs get assigned to sci-biology directly |
48 |
+ |
49 |
+*tophat-2.0.2 (19 Jul 2012) |
50 |
+ |
51 |
+ 19 Jul 2012; Justin Lecher <jlec@g.o> tophat-2.0.0.ebuild, |
52 |
+ +tophat-2.0.2.ebuild, +files/tophat-2.0.2-flags.patch, metadata.xml: |
53 |
+ Version Bump; do parallel builds; handle debug build |
54 |
+ |
55 |
+ 25 Apr 2012; Justin Lecher <jlec@g.o> tophat-1.0.12.ebuild, |
56 |
+ tophat-1.4.1.ebuild, tophat-2.0.0.ebuild: |
57 |
+ Drop unnessecary die |
58 |
+ |
59 |
+*tophat-2.0.0 (15 Apr 2012) |
60 |
+ |
61 |
+ 15 Apr 2012; Andrey Kislyuk <weaver@g.o> -tophat-1.3.3.ebuild, |
62 |
+ +tophat-2.0.0.ebuild: |
63 |
+ version bump |
64 |
+ |
65 |
+*tophat-1.4.1 (04 Feb 2012) |
66 |
+*tophat-1.3.3 (04 Feb 2012) |
67 |
+ |
68 |
+ 04 Feb 2012; Andrey Kislyuk <weaver@g.o> -tophat-1.3.2.ebuild, |
69 |
+ +tophat-1.3.3.ebuild, +tophat-1.4.1.ebuild: |
70 |
+ version bump |
71 |
+ |
72 |
+ 04 Feb 2012; Andrey Kislyuk <weaver@g.o> tophat-1.3.2.ebuild: |
73 |
+ filter as-needed |
74 |
+ |
75 |
+*tophat-1.3.2 (26 Sep 2011) |
76 |
+ |
77 |
+ 26 Sep 2011; Andrey Kislyuk <weaver@g.o> +tophat-1.3.2.ebuild: |
78 |
+ Version bump |
79 |
+ |
80 |
+ 05 Apr 2010; Pawel Hajdan jr <phajdan.jr@g.o> tophat-1.0.12.ebuild: |
81 |
+ x86 stable wrt bug #311829 |
82 |
+ |
83 |
+ 29 Mar 2010; Pacho Ramos <pacho@g.o> tophat-1.0.12.ebuild: |
84 |
+ amd64 stable, bug 311829 |
85 |
+ |
86 |
+ 07 Dec 2009; Andrey Kislyuk <weaver@g.o> tophat-1.0.12.ebuild: |
87 |
+ Fix x86 compile issue. Thanks to Fabian Groffen. |
88 |
+ |
89 |
+*tophat-1.0.12 (07 Dec 2009) |
90 |
+ |
91 |
+ 07 Dec 2009; Andrey Kislyuk <weaver@g.o> +metadata.xml, |
92 |
+ +tophat-1.0.12.ebuild: |
93 |
+ Import from Science overlay and version bump. Thanks to Philippe Veber. |
94 |
+ |
95 |
|
96 |
diff --git a/sci-biology/tophat/files/tophat-2.0.9-flags.patch b/sci-biology/tophat/files/tophat-2.0.9-flags.patch |
97 |
new file mode 100644 |
98 |
index 0000000..af89e72 |
99 |
--- /dev/null |
100 |
+++ b/sci-biology/tophat/files/tophat-2.0.9-flags.patch |
101 |
@@ -0,0 +1,109 @@ |
102 |
+ configure.ac | 3 ++- |
103 |
+ src/Makefile.am | 50 +++++++++++++++++++++++++------------------------- |
104 |
+ 2 files changed, 27 insertions(+), 26 deletions(-) |
105 |
+ |
106 |
+diff --git a/configure.ac b/configure.ac |
107 |
+index 75e9218..98b05d2 100644 |
108 |
+--- a/configure.ac |
109 |
++++ b/configure.ac |
110 |
+@@ -68,7 +68,8 @@ AC_CANONICAL_HOST |
111 |
+ # set CFLAGS and CXXFLAGS |
112 |
+ #user_CFLAGS="${CXXFLAGS}" |
113 |
+ user_CFLAGS=${CFLAGS} |
114 |
+-generic_CFLAGS="-Wall -Wno-strict-aliasing -g -gdwarf-2 -Wuninitialized" |
115 |
++#generic_CFLAGS="-Wall -Wno-strict-aliasing -g -gdwarf-2 -Wuninitialized" |
116 |
++generic_CFLAGS="" |
117 |
+ ext_CFLAGS="" |
118 |
+ debug_CFLAGS="" |
119 |
+ user_LDFLAGS="$LDFLAGS" |
120 |
+diff --git a/src/Makefile.am b/src/Makefile.am |
121 |
+index dde692e..ebb9fcd 100644 |
122 |
+--- a/src/Makefile.am |
123 |
++++ b/src/Makefile.am |
124 |
+@@ -545,10 +545,10 @@ CLEANFILES = \ |
125 |
+ tophat2 |
126 |
+ |
127 |
+ tophat2: tophat2.in |
128 |
+- sed -e 's|__PREFIX__|$(prefix)|' tophat2.in > tophat2 |
129 |
++ sed -e 's|__PREFIX__|$(prefix)|' $(top_srcdir)/src/tophat2.in > tophat2 |
130 |
+ |
131 |
+ tophat: tophat.py |
132 |
+- sed -e 's|__VERSION__|$(VERSION)|' tophat.py > tophat |
133 |
++ sed -e 's|__VERSION__|$(VERSION)|' $(top_srcdir)/src/tophat.py > tophat |
134 |
+ |
135 |
+ #SUFFIXES = .py |
136 |
+ #.py: |
137 |
+@@ -617,49 +617,49 @@ libgc_a_SOURCES = \ |
138 |
+ #-- program sources |
139 |
+ |
140 |
+ prep_reads_SOURCES = prep_reads.cpp |
141 |
+-prep_reads_LDADD = $(top_builddir)/src/libtophat.a $(BAM_LIB) |
142 |
+-prep_reads_LDFLAGS = $(LDFLAGS) $(BAM_LDFLAGS) |
143 |
++prep_reads_LDADD = libtophat.a $(BAM_LIB) |
144 |
++prep_reads_LDFLAGS = $(BAM_LDFLAGS) |
145 |
+ |
146 |
+ segment_juncs_SOURCES = segment_juncs.cpp |
147 |
+-segment_juncs_LDADD = $(top_builddir)/src/libtophat.a $(BOOST_THREAD_LIB) $(BOOST_SYSTEM_LIB) $(BAM_LIB) |
148 |
+-segment_juncs_LDFLAGS = $(LDFLAGS) $(BOOST_LDFLAGS) $(BAM_LDFLAGS) |
149 |
++segment_juncs_LDADD = libtophat.a $(BOOST_THREAD_LIB) $(BOOST_SYSTEM_LIB) $(BAM_LIB) |
150 |
++segment_juncs_LDFLAGS = $(BOOST_LDFLAGS) $(BAM_LDFLAGS) |
151 |
+ |
152 |
+ long_spanning_reads_SOURCES = long_spanning_reads.cpp |
153 |
+-long_spanning_reads_LDADD = $(top_builddir)/src/libtophat.a $(BOOST_THREAD_LIB) $(BOOST_SYSTEM_LIB) $(BAM_LIB) |
154 |
+-long_spanning_reads_LDFLAGS = $(LDFLAGS) $(BOOST_LDFLAGS) $(BAM_LDFLAGS) |
155 |
++long_spanning_reads_LDADD = libtophat.a $(BOOST_THREAD_LIB) $(BOOST_SYSTEM_LIB) $(BAM_LIB) |
156 |
++long_spanning_reads_LDFLAGS = $(BOOST_LDFLAGS) $(BAM_LDFLAGS) |
157 |
+ |
158 |
+ gtf_juncs_SOURCES = gtf_juncs.cpp |
159 |
+-gtf_juncs_LDADD = $(top_builddir)/src/libtophat.a libgc.a $(BAM_LIB) |
160 |
+-gtf_juncs_LDFLAGS = $(LDFLAGS) $(BAM_LDFLAGS) |
161 |
++gtf_juncs_LDADD = libtophat.a libgc.a $(BAM_LIB) |
162 |
++gtf_juncs_LDFLAGS = $(BAM_LDFLAGS) |
163 |
+ |
164 |
+ juncs_db_SOURCES = juncs_db.cpp |
165 |
+-juncs_db_LDADD = $(top_builddir)/src/libtophat.a $(BAM_LIB) |
166 |
+-juncs_db_LDFLAGS = $(LDFLAGS) $(BAM_LDFLAGS) |
167 |
++juncs_db_LDADD = libtophat.a $(BAM_LIB) |
168 |
++juncs_db_LDFLAGS = $(BAM_LDFLAGS) |
169 |
+ |
170 |
+ tophat_reports_SOURCES = tophat_reports.cpp |
171 |
+-tophat_reports_LDADD = $(top_builddir)/src/libtophat.a $(BOOST_THREAD_LIB) $(BOOST_SYSTEM_LIB) $(BAM_LIB) |
172 |
+-tophat_reports_LDFLAGS = $(LDFLAGS) $(BOOST_LDFLAGS) $(BAM_LDFLAGS) |
173 |
++tophat_reports_LDADD = libtophat.a $(BOOST_THREAD_LIB) $(BOOST_SYSTEM_LIB) $(BAM_LIB) |
174 |
++tophat_reports_LDFLAGS = $(BOOST_LDFLAGS) $(BAM_LDFLAGS) |
175 |
+ |
176 |
+ fix_map_ordering_SOURCES = fix_map_ordering.cpp |
177 |
+-fix_map_ordering_LDADD = $(top_builddir)/src/libtophat.a $(BAM_LIB) |
178 |
+-fix_map_ordering_LDFLAGS = $(LDFLAGS) $(BAM_LDFLAGS) |
179 |
++fix_map_ordering_LDADD = libtophat.a $(BAM_LIB) |
180 |
++fix_map_ordering_LDFLAGS = $(BAM_LDFLAGS) |
181 |
+ |
182 |
+ bam2fastx_SOURCES = bam2fastx.cpp |
183 |
+-bam2fastx_LDADD = $(top_builddir)/src/libgc.a $(BAM_LIB) |
184 |
+-bam2fastx_LDFLAGS = $(LDFLAGS) $(BAM_LDFLAGS) |
185 |
++bam2fastx_LDADD = libgc.a $(BAM_LIB) |
186 |
++bam2fastx_LDFLAGS = $(BAM_LDFLAGS) |
187 |
+ |
188 |
+ bam_merge_SOURCES = bam_merge.cpp |
189 |
+-bam_merge_LDADD = $(top_builddir)/src/libtophat.a $(top_builddir)/src/libgc.a $(BAM_LIB) |
190 |
+-bam_merge_LDFLAGS = $(LDFLAGS) $(BAM_LDFLAGS) |
191 |
++bam_merge_LDADD = libtophat.a libgc.a $(BAM_LIB) |
192 |
++bam_merge_LDFLAGS = $(BAM_LDFLAGS) |
193 |
+ |
194 |
+ sam_juncs_SOURCES = sam_juncs.cpp |
195 |
+-sam_juncs_LDADD = $(top_builddir)/src/libtophat.a $(BAM_LIB) |
196 |
+-sam_juncs_LDFLAGS = $(LDFLAGS) $(BAM_LDFLAGS) |
197 |
++sam_juncs_LDADD = libtophat.a $(BAM_LIB) |
198 |
++sam_juncs_LDFLAGS = $(BAM_LDFLAGS) |
199 |
+ |
200 |
+ map2gtf_SOURCES = map2gtf.cpp |
201 |
+-map2gtf_LDADD = $(top_builddir)/src/libtophat.a libgc.a $(BAM_LIB) |
202 |
+-map2gtf_LDFLAGS = $(LDFLAGS) $(BAM_LDFLAGS) |
203 |
++map2gtf_LDADD = libtophat.a libgc.a $(BAM_LIB) |
204 |
++map2gtf_LDFLAGS = $(BAM_LDFLAGS) |
205 |
+ |
206 |
+ gtf_to_fasta_SOURCES = GTFToFasta.cpp FastaTools.cpp |
207 |
+-gtf_to_fasta_LDADD = $(top_builddir)/src/libtophat.a libgc.a $(BAM_LIB) |
208 |
+-gtf_to_fasta_LDFLAGS = $(LDFLAGS) $(BAM_LDFLAGS) |
209 |
++gtf_to_fasta_LDADD = libtophat.a libgc.a $(BAM_LIB) |
210 |
++gtf_to_fasta_LDFLAGS = $(BAM_LDFLAGS) |
211 |
|
212 |
diff --git a/sci-biology/tophat/metadata.xml b/sci-biology/tophat/metadata.xml |
213 |
new file mode 100644 |
214 |
index 0000000..36cf4a1 |
215 |
--- /dev/null |
216 |
+++ b/sci-biology/tophat/metadata.xml |
217 |
@@ -0,0 +1,8 @@ |
218 |
+<?xml version="1.0" encoding="UTF-8"?> |
219 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
220 |
+<pkgmetadata> |
221 |
+ <herd>sci-biology</herd> |
222 |
+ <use> |
223 |
+ <flag name="bam">Compile support for the BAM format</flag> |
224 |
+ </use> |
225 |
+</pkgmetadata> |
226 |
|
227 |
diff --git a/sci-biology/tophat/tophat-2.0.12.ebuild b/sci-biology/tophat/tophat-2.0.12.ebuild |
228 |
new file mode 100644 |
229 |
index 0000000..f5f059d |
230 |
--- /dev/null |
231 |
+++ b/sci-biology/tophat/tophat-2.0.12.ebuild |
232 |
@@ -0,0 +1,49 @@ |
233 |
+# Copyright 1999-2015 Gentoo Foundation |
234 |
+# Distributed under the terms of the GNU General Public License v2 |
235 |
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/tophat/tophat-2.0.9.ebuild,v 1.1 2014/03/06 09:46:50 jlec Exp $ |
236 |
+ |
237 |
+EAPI=5 |
238 |
+ |
239 |
+AUTOTOOLS_AUTORECONF=yes |
240 |
+PYTHON_COMPAT=( python2_7 ) |
241 |
+ |
242 |
+inherit autotools-utils python-single-r1 |
243 |
+ |
244 |
+DESCRIPTION="A fast splice junction mapper for RNA-Seq reads" |
245 |
+HOMEPAGE="http://ccb.jhu.edu/software/tophat" |
246 |
+# https://github.com/infphilo/tophat |
247 |
+# http://ccb.jhu.edu/software/tophat/downloads/tophat-2.0.14.tar.gz |
248 |
+SRC_URI="http://ccb.jhu.edu/software/tophat/downloads/${P}.tar.gz" |
249 |
+ |
250 |
+LICENSE="Artistic" |
251 |
+SLOT="0" |
252 |
+KEYWORDS="~amd64 ~x86" |
253 |
+IUSE="debug" |
254 |
+ |
255 |
+DEPEND="dev-libs/boost" |
256 |
+# sci-biology/seqan provides binaries and headers but there are no *.so files so no need for a runtime dependency |
257 |
+RDEPEND="${DEPEND} |
258 |
+ <=sci-biology/bowtie-2.2.3" |
259 |
+ |
260 |
+# PATCHES=( "${FILESDIR}"/${P}-flags.patch ) |
261 |
+ |
262 |
+src_prepare() { |
263 |
+ sed -e "s#./samtools-0.1.18#"${S}"/src/samtools-0.1.18#g" -i configure* Makefile* src/Makefile* || die |
264 |
+ sed -e "s#./SeqAn-1.3#"${S}"/src/SeqAn-1.3#g" -i configure* || die |
265 |
+ #rm -rf src/SeqAn* || die |
266 |
+ autotools-utils_src_prepare |
267 |
+} |
268 |
+ |
269 |
+src_configure() { |
270 |
+ local myeconfargs=( |
271 |
+ --disable-optim |
272 |
+ $(use_enable debug) |
273 |
+ ) |
274 |
+ autotools-utils_src_configure |
275 |
+ sed -e "s#./samtools-0.1.18#"${S}"/src/samtools-0.1.18#g" -i Makefile* src/Makefile* || die |
276 |
+} |
277 |
+ |
278 |
+src_install() { |
279 |
+ autotools-utils_src_install |
280 |
+ python_fix_shebang "${ED}"/usr/bin/tophat |
281 |
+} |
282 |
|
283 |
diff --git a/sci-biology/tophat/tophat-2.0.13.ebuild b/sci-biology/tophat/tophat-2.0.13.ebuild |
284 |
new file mode 100644 |
285 |
index 0000000..5e56cc4 |
286 |
--- /dev/null |
287 |
+++ b/sci-biology/tophat/tophat-2.0.13.ebuild |
288 |
@@ -0,0 +1,54 @@ |
289 |
+# Copyright 1999-2015 Gentoo Foundation |
290 |
+# Distributed under the terms of the GNU General Public License v2 |
291 |
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/tophat/tophat-2.0.9.ebuild,v 1.1 2014/03/06 09:46:50 jlec Exp $ |
292 |
+ |
293 |
+EAPI=5 |
294 |
+ |
295 |
+AUTOTOOLS_AUTORECONF=yes |
296 |
+PYTHON_COMPAT=( python2_7 ) |
297 |
+ |
298 |
+inherit autotools-utils python-single-r1 |
299 |
+ |
300 |
+DESCRIPTION="A fast splice junction mapper for RNA-Seq reads" |
301 |
+HOMEPAGE="http://ccb.jhu.edu/software/tophat" |
302 |
+# https://github.com/infphilo/tophat |
303 |
+# http://ccb.jhu.edu/software/tophat/downloads/tophat-2.0.14.tar.gz |
304 |
+SRC_URI="http://ccb.jhu.edu/software/tophat/downloads/${P}.tar.gz" |
305 |
+ |
306 |
+LICENSE="Artistic" |
307 |
+SLOT="0" |
308 |
+KEYWORDS="~amd64 ~x86" |
309 |
+IUSE="debug" |
310 |
+ |
311 |
+DEPEND="dev-libs/boost" |
312 |
+# >=sci-biology/tophat-2.0.13 contain bundled samtools-0.1.18 and SeqAn-1.3 |
313 |
+# sci-biology/seqan provides binaries and headers but there are no *.so files so no need for a runtime dependency |
314 |
+RDEPEND="${DEPEND} |
315 |
+ <=sci-biology/bowtie-2.2.3" |
316 |
+ |
317 |
+# PATCHES=( "${FILESDIR}"/${P}-flags.patch ) |
318 |
+ |
319 |
+src_prepare() { |
320 |
+ sed -e "s#./samtools-0.1.18#"${S}"/src/samtools-0.1.18#g" -i configure* Makefile* || die |
321 |
+ sed -e "s#./SeqAn-1.3#"${S}"/src/SeqAn-1.3#g" -i configure* || die |
322 |
+ # rm -rf src/SeqAn* || die |
323 |
+ eautoreconf |
324 |
+ autotools-utils_src_prepare |
325 |
+} |
326 |
+ |
327 |
+src_configure() { |
328 |
+ local myeconfargs=( |
329 |
+ --disable-optim |
330 |
+ $(use_enable debug) |
331 |
+ ) |
332 |
+ autotools-utils_src_configure |
333 |
+ cd ../"${P}"_build/src || die |
334 |
+ ln -s ../"${P}"/src/SeqAn-1.3 . || die |
335 |
+ ln -s ../../"${P}"/src/samtools-0.1.18 . || die |
336 |
+ sed -e "s#./samtools-0.1.18#"${S}"/src/samtools-0.1.18#g" -i Makefile* || die |
337 |
+} |
338 |
+ |
339 |
+src_install() { |
340 |
+ autotools-utils_src_install |
341 |
+ python_fix_shebang "${ED}"/usr/bin/tophat |
342 |
+} |
343 |
|
344 |
diff --git a/sci-biology/tophat/tophat-2.0.14.ebuild b/sci-biology/tophat/tophat-2.0.14.ebuild |
345 |
new file mode 100644 |
346 |
index 0000000..09b7ce8 |
347 |
--- /dev/null |
348 |
+++ b/sci-biology/tophat/tophat-2.0.14.ebuild |
349 |
@@ -0,0 +1,54 @@ |
350 |
+# Copyright 1999-2015 Gentoo Foundation |
351 |
+# Distributed under the terms of the GNU General Public License v2 |
352 |
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/tophat/tophat-2.0.9.ebuild,v 1.1 2014/03/06 09:46:50 jlec Exp $ |
353 |
+ |
354 |
+EAPI=5 |
355 |
+ |
356 |
+AUTOTOOLS_AUTORECONF=yes |
357 |
+PYTHON_COMPAT=( python2_7 ) |
358 |
+ |
359 |
+inherit autotools-utils python-single-r1 |
360 |
+ |
361 |
+DESCRIPTION="A fast splice junction mapper for RNA-Seq reads" |
362 |
+HOMEPAGE="http://ccb.jhu.edu/software/tophat" |
363 |
+# https://github.com/infphilo/tophat |
364 |
+# http://ccb.jhu.edu/software/tophat/downloads/tophat-2.0.14.tar.gz |
365 |
+SRC_URI="http://ccb.jhu.edu/software/tophat/downloads/${P}.tar.gz" |
366 |
+ |
367 |
+LICENSE="Artistic" |
368 |
+SLOT="0" |
369 |
+KEYWORDS="~amd64 ~x86" |
370 |
+IUSE="debug" |
371 |
+ |
372 |
+DEPEND="dev-libs/boost" |
373 |
+# >=sci-biology/tophat-2.0.13 contains bundled samtools-0.1.18 and SeqAn-1.3 |
374 |
+# sci-biology/seqan provides binaries and headers but there are no *.so files so no need for a runtime dependency |
375 |
+RDEPEND="${DEPEND} |
376 |
+ <=sci-biology/bowtie-2.2.3" |
377 |
+# see https://aur.archlinux.org/packages/tophat/ about linking issues |
378 |
+ |
379 |
+# PATCHES=( "${FILESDIR}"/${P}-flags.patch ) |
380 |
+ |
381 |
+src_prepare() { |
382 |
+ sed -e "s#./samtools-0.1.18#"${S}"/src/samtools-0.1.18#g" -i configure* Makefile* || die |
383 |
+ sed -e "s#./SeqAn-1.3#"${S}"/src/SeqAn-1.3#g" -i configure* || die |
384 |
+ eautoreconf |
385 |
+ autotools-utils_src_prepare |
386 |
+} |
387 |
+ |
388 |
+src_configure() { |
389 |
+ local myeconfargs=( |
390 |
+ --disable-optim |
391 |
+ $(use_enable debug) |
392 |
+ ) |
393 |
+ autotools-utils_src_configure |
394 |
+ cd ../"${P}"_build/src || die |
395 |
+ ln -s ../../"${P}"/src/SeqAn-1.3 . || die |
396 |
+ ln -s ../../"${P}"/src/samtools-0.1.18 . || die |
397 |
+ sed -e "s#./samtools-0.1.18#"${S}"/src/samtools-0.1.18#g" -i Makefile* || die |
398 |
+} |
399 |
+ |
400 |
+src_install() { |
401 |
+ autotools-utils_src_install |
402 |
+ python_fix_shebang "${ED}"/usr/bin/tophat |
403 |
+} |