bowtie2: add support for version 2.3.1 (#3599)

* Add support for 2.3.1

Updated digest and added a dependency on tbb.

* Cleanup patch name and add description
This commit is contained in:
George Hartzell 2017-03-28 19:35:46 -07:00 committed by Adam J. Stewart
parent d6cbae81c7
commit 9385659aa1
3 changed files with 28 additions and 4 deletions

View File

@ -0,0 +1,16 @@
--- Makefile.orig 2017-03-24 20:43:00.304532976 -0700
+++ Makefile 2017-03-24 20:48:59.644532037 -0700
@@ -26,10 +26,10 @@
INC =
LIBS = -lreadline -ltermcap -lz
-GCC_PREFIX = $(shell dirname `which gcc`)
+GCC_PREFIX =
GCC_SUFFIX =
-CC ?= $(GCC_PREFIX)/gcc$(GCC_SUFFIX)
-CPP ?= $(GCC_PREFIX)/g++$(GCC_SUFFIX)
+CC = cc
+CPP = c++
CXX ?= $(CPP)
HEADERS = $(wildcard *.h)
BOWTIE_MM = 1

View File

@ -27,12 +27,20 @@
class Bowtie2(Package): class Bowtie2(Package):
"""Description""" """Bowtie 2 is an ultrafast and memory-efficient tool for aligning
sequencing reads to long reference sequences"""
homepage = "bowtie-bio.sourceforge.net/bowtie2/index.shtml" homepage = "bowtie-bio.sourceforge.net/bowtie2/index.shtml"
version('2.2.5', '51fa97a862d248d7ee660efc1147c75f', version('2.3.1', 'b4efa22612e98e0c23de3d2c9f2f2478')
url="http://downloads.sourceforge.net/project/bowtie-bio/bowtie2/2.2.5/bowtie2-2.2.5-source.zip") version('2.2.5', '51fa97a862d248d7ee660efc1147c75f')
patch('bowtie2-2.5.patch', when='@2.2.5', level=0) depends_on('tbb', when='@2.3.1')
patch('bowtie2-2.2.5.patch', when='@2.2.5', level=0)
patch('bowtie2-2.3.1.patch', when='@2.3.1', level=0)
def url_for_version(self, version):
url="http://downloads.sourceforge.net/project/bowtie-bio/bowtie2/{0}/bowtie2-{0}-source.zip"
return url.format(version)
def install(self, spec, prefix): def install(self, spec, prefix):
make() make()