forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sga.rb
29 lines (25 loc) · 876 Bytes
/
sga.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
require 'formula'
class Sga < Formula
homepage 'https://github.com/jts/sga'
url 'https://github.com/jts/sga/tarball/v0.9.42'
sha1 'dd2c778cbfc763f2877d07a6b67d35a59c71ce61'
head 'https://github.com/jts/sga.git'
depends_on :autoconf => :build
depends_on :automake => :build
# Only header files are used, so :build is appropriate
depends_on 'google-sparsehash' => :build
depends_on 'bamtools'
def install
cd 'src' do
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-bamtools=#{Formula.factory('bamtools').opt_prefix}",
"--with-sparsehash=#{Formula.factory('google-sparsehash').opt_prefix}/header"
system "make install"
end
end
test do
system "#{bin}/sga", "--version"
end
end