forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beetl.rb
43 lines (36 loc) · 1.01 KB
/
beetl.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
38
39
40
41
42
43
require 'formula'
class Beetl < Formula
homepage 'https://github.com/BEETL/BEETL'
url 'https://github.com/BEETL/BEETL/archive/BEETL-0.9.0.tar.gz'
sha1 '545e23e8132af297a6c39c10410a0d0ca392b38c'
depends_on 'boost' => :optional
depends_on 'seqan' => :optional
fails_with :clang do
build 503
cause 'Requires OpenMP'
end
fails_with :gcc do
build 5666
cause 'Requires C++11'
end
patch do
# Include necessary headers
url "https://github.com/sjackman/BEETL/commit/c91ad73.diff"
sha1 "6aca0f9a045e8831b15b050691a3ce1d5cd3609d"
end
def install
boost = Formula["boost"].opt_prefix
seqan = Formula["seqan"].opt_prefix/'include'
args = [
'--disable-dependency-tracking',
'--disable-silent-rules',
"--prefix=#{prefix}"]
args << "--with-boost=#{boost}" if build.with? 'boost'
args << "--with-seqan=#{seqan}" if build.with? 'seqan'
system './configure', *args
system 'make', 'install'
end
test do
system 'beetl --version'
end
end