Gentoo Archives: gentoo-commits

From: Nicolas Bock <nicolasbock@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/bowtie/files/, sci-biology/bowtie/
Date: Fri, 27 Sep 2013 15:05:07
Message-Id: 1380146116.a504fdf4dfc52876baaa84103a3f6727a3419ec6.nicolasbock@gentoo
1 commit: a504fdf4dfc52876baaa84103a3f6727a3419ec6
2 Author: cel <cel.gentoo <AT> gmail <DOT> com>
3 AuthorDate: Wed Sep 25 21:55:16 2013 +0000
4 Commit: Nicolas Bock <nicolasbock <AT> gmail <DOT> com>
5 CommitDate: Wed Sep 25 21:55:16 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=a504fdf4
7
8 sci-biology/bowtie: Added ebuild for bowtie-2.1.0.
9
10 ---
11 sci-biology/bowtie/bowtie-2.1.0.ebuild | 61 ++++++++++++++++++++++
12 .../bowtie/files/bowtie-2.1.0-buildsystem.patch | 20 +++++++
13 sci-biology/bowtie/metadata.xml | 5 ++
14 3 files changed, 86 insertions(+)
15
16 diff --git a/sci-biology/bowtie/bowtie-2.1.0.ebuild b/sci-biology/bowtie/bowtie-2.1.0.ebuild
17 new file mode 100644
18 index 0000000..c2c5024
19 --- /dev/null
20 +++ b/sci-biology/bowtie/bowtie-2.1.0.ebuild
21 @@ -0,0 +1,61 @@
22 +# Copyright 1999-2013 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Header: $
25 +
26 +EAPI=5
27 +
28 +inherit eutils flag-o-matic toolchain-funcs
29 +
30 +DESCRIPTION="An ultrafast memory-efficient short read aligner"
31 +HOMEPAGE="http://bowtie-bio.sourceforge.net/"
32 +SRC_URI="mirror://sourceforge/bowtie-bio/${P}-source.zip"
33 +
34 +LICENSE="GPL-3"
35 +SLOT="2"
36 +IUSE="sse2 examples"
37 +KEYWORDS="~amd64 ~x86"
38 +
39 +CDEPEND="dev-lang/perl"
40 +DEPEND="${CDEPEND} \
41 + app-arch/unzip"
42 +RDEPEND="${CDEPEND}"
43 +
44 +S="${WORKDIR}/${PN}2-${PV}"
45 +
46 +pkg_pretend() {
47 + if ! use sse2 ; then
48 + ebegin
49 + eerror "bowtie2 requires sse2 support. Please make sure your system supports"
50 + eerror "sse2 and enable the sse2 use flag."
51 + eend
52 + die
53 + fi
54 +}
55 +
56 +src_prepare() {
57 + epatch "${FILESDIR}/${P}-buildsystem.patch"
58 +}
59 +
60 +src_compile() {
61 + use sse2 && append-cxxflags -msse2
62 + emake \
63 + CC="$(tc-getCC)" \
64 + CPP="$(tc-getCXX)" \
65 + EXTRA_FLAGS="${LDFLAGS}" \
66 + RELEASE_FLAGS="${CXXFLAGS}"
67 +}
68 +
69 +src_install() {
70 + dobin bowtie2 bowtie2-*
71 + exeinto /usr/share/${PN}2/scripts
72 + doexe scripts/*
73 +
74 + newman MANUAL bowtie2.1
75 + dodoc AUTHORS NEWS TUTORIAL
76 + dohtml doc/manual.html doc/style.css
77 +
78 + if use examples; then
79 + insinto /usr/share/${PN}2
80 + doins -r example
81 + fi
82 +}
83
84 diff --git a/sci-biology/bowtie/files/bowtie-2.1.0-buildsystem.patch b/sci-biology/bowtie/files/bowtie-2.1.0-buildsystem.patch
85 new file mode 100644
86 index 0000000..97300b1
87 --- /dev/null
88 +++ b/sci-biology/bowtie/files/bowtie-2.1.0-buildsystem.patch
89 @@ -0,0 +1,20 @@
90 +--- Makefile.old 2013-09-22 12:07:12.606844000 +0200
91 ++++ Makefile 2013-09-22 13:06:03.113888200 +0200
92 +@@ -24,8 +24,6 @@
93 + INC =
94 + GCC_PREFIX = $(shell dirname `which gcc`)
95 + GCC_SUFFIX =
96 +-CC = $(GCC_PREFIX)/gcc$(GCC_SUFFIX)
97 +-CPP = $(GCC_PREFIX)/g++$(GCC_SUFFIX)
98 + CXX = $(CPP)
99 + HEADERS = $(wildcard *.h)
100 + BOWTIE_MM = 1
101 +@@ -141,7 +139,7 @@
102 +
103 + DEBUG_FLAGS = -O0 -g3 $(BITS_FLAG) $(SSE_FLAG)
104 + DEBUG_DEFS = -DCOMPILER_OPTIONS="\"$(DEBUG_FLAGS) $(EXTRA_FLAGS)\""
105 +-RELEASE_FLAGS = -O3 $(BITS_FLAG) $(SSE_FLAG) -funroll-loops -g3
106 ++RELEASE_FLAGS = $(CXXFLAGS)
107 + RELEASE_DEFS = -DCOMPILER_OPTIONS="\"$(RELEASE_FLAGS) $(EXTRA_FLAGS)\""
108 + NOASSERT_FLAGS = -DNDEBUG
109 + FILE_FLAGS = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
110
111 diff --git a/sci-biology/bowtie/metadata.xml b/sci-biology/bowtie/metadata.xml
112 new file mode 100644
113 index 0000000..f17a827
114 --- /dev/null
115 +++ b/sci-biology/bowtie/metadata.xml
116 @@ -0,0 +1,5 @@
117 +<?xml version="1.0" encoding="UTF-8"?>
118 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
119 +<pkgmetadata>
120 + <herd>sci-biology</herd>
121 +</pkgmetadata>