forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
abyss.rb
37 lines (31 loc) · 1.03 KB
/
abyss.rb
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
36
37
require 'formula'
class Abyss < Formula
homepage 'http://www.bcgsc.ca/platform/bioinfo/software/abyss'
url 'http://www.bcgsc.ca/downloads/abyss/abyss-1.3.5.tar.gz'
sha1 '43c3caceb91f768290cb7a1b70f6b3113b8a36fc'
head 'https://github.com/sjackman/abyss.git'
option 'disable-popcnt', 'do not use the POPCNT instruction'
# Only header files are used from these packages, so :build is appropriate
if build.head?
depends_on :autoconf => :build
depends_on :automake => :build
depends_on 'multimarkdown' => :build
end
depends_on 'boost' => :build
depends_on 'google-sparsehash' => :build
depends_on MPIDependency.new(:cc)
# strip breaks the ability to read compressed files.
skip_clean 'bin'
def install
system "./autogen.sh" if build.head?
args = [
'--disable-dependency-tracking',
"--prefix=#{prefix}"]
args << '--disable-popcnt' if build.include? 'disable-popcnt'
system "./configure", *args
system "make install"
end
def test
system "#{bin}/ABYSS", "--version"
end
end