2011-07-22 15:41:42 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Velvet < Formula
|
2012-02-04 07:10:09 +00:00
|
|
|
url 'http://www.ebi.ac.uk/~zerbino/velvet/velvet_1.2.03.tgz'
|
2011-07-22 15:41:42 +00:00
|
|
|
homepage 'http://www.ebi.ac.uk/~zerbino/velvet/'
|
2012-02-04 07:10:09 +00:00
|
|
|
md5 'ed1eaea940eff649bc8031f2cc7b78b5'
|
2011-07-22 15:41:42 +00:00
|
|
|
|
2012-02-04 07:10:09 +00:00
|
|
|
head 'https://github.com/dzerbino/velvet.git'
|
2011-07-22 15:41:42 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-04 07:10:09 +00:00
|
|
|
inreplace 'Makefile' do |s|
|
|
|
|
# recommended in Makefile for compiling on Mac OS X
|
|
|
|
s.change_make_var! "CFLAGS", "-Wall -m64"
|
|
|
|
end
|
2011-07-22 15:41:42 +00:00
|
|
|
system "make velveth velvetg OPENMP=1 MAXKMERLENGTH=1 LONGSEQUENCES=1"
|
2012-02-10 04:43:09 +00:00
|
|
|
bin.install 'velveth', 'velvetg'
|
2011-07-22 15:41:42 +00:00
|
|
|
end
|
|
|
|
end
|