forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sga.rb
29 lines (25 loc) · 883 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/archive/v0.9.42.tar.gz'
sha1 '99b2de74edc70c8c7d945374490f06777bd9eab7'
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