aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/velvet.rb
blob: 1b52f57cf99e7556d88da32a28c6fb71bdbe98b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
require 'formula'

class Velvet < Formula
  url 'https://github.com/dzerbino/velvet/tarball/b19ee2d5a180c745a6b44fd0d27c3d36dd80a7a9'
  homepage 'http://www.ebi.ac.uk/~zerbino/velvet/'
  md5 '8772b8c2c8071dc62541bc969bcd4490'
  version '1.1.05'

  head 'https://github.com/dzerbino/velvet.git', :using  => :git

  def patches
    # Makefile recommends uncommenting a line for compiling on Mac OS X
    DATA
  end

  def install
    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