aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/velvet.rb31
1 files changed, 7 insertions, 24 deletions
diff --git a/Library/Formula/velvet.rb b/Library/Formula/velvet.rb
index 1b52f57cf..c77b0b990 100644
--- a/Library/Formula/velvet.rb
+++ b/Library/Formula/velvet.rb
@@ -1,35 +1,18 @@
require 'formula'
class Velvet < Formula
- url 'https://github.com/dzerbino/velvet/tarball/b19ee2d5a180c745a6b44fd0d27c3d36dd80a7a9'
+ url 'http://www.ebi.ac.uk/~zerbino/velvet/velvet_1.2.03.tgz'
homepage 'http://www.ebi.ac.uk/~zerbino/velvet/'
- md5 '8772b8c2c8071dc62541bc969bcd4490'
- version '1.1.05'
+ md5 'ed1eaea940eff649bc8031f2cc7b78b5'
- head 'https://github.com/dzerbino/velvet.git', :using => :git
-
- def patches
- # Makefile recommends uncommenting a line for compiling on Mac OS X
- DATA
- end
+ head 'https://github.com/dzerbino/velvet.git'
def install
+ inreplace 'Makefile' do |s|
+ # recommended in Makefile for compiling on Mac OS X
+ s.change_make_var! "CFLAGS", "-Wall -m64"
+ end
system "make velveth velvetg OPENMP=1 MAXKMERLENGTH=1 LONGSEQUENCES=1"
bin.install ['velveth', 'velvetg']
end
end
-
-__END__
-diff --git a/Makefile b/Makefile
-index a8ca8c0..16fb62a 100644
---- a/Makefile
-+++ b/Makefile
-@@ -8,7 +8,7 @@ CATEGORIES=2
- DEF = -D MAXKMERLENGTH=$(MAXKMERLENGTH) -D CATEGORIES=$(CATEGORIES)
-
- # Mac OS users: uncomment the following lines
--# CFLAGS = -Wall -m64
-+CFLAGS = -Wall -m64
-
- # Sparc/Solaris users: uncomment the following line
- # CFLAGS = -Wall -m64