forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adam.rb
32 lines (27 loc) · 966 Bytes
/
adam.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
require "formula"
class Adam < Formula
homepage "https://github.com/bigdatagenomics/adam"
url "https://github.com/bigdatagenomics/adam/releases/download/adam-parent-0.13.0/adam-0.13.0-bin.tar.gz"
sha1 "5cfe704c768b7be0d493e3052257578f971fc3ec"
head do
url "https://github.com/bigdatagenomics/adam.git", :branch => "master"
depends_on "maven" => :build
end
option "without-check", "Disable build-time checking (not recommended)"
def install
if build.head?
system "mvn", "clean", "install",
"-DskipAssembly=True",
"-DskipTests=" + (build.with?("check") ? "False" : "True")
system "chmod", "+x", "adam-cli/target/appassembler/bin/adam"
prefix.install "adam-cli/target/appassembler/repo"
bin.install "adam-cli/target/appassembler/bin/adam"
else
prefix.install "repo"
bin.install "bin/adam"
end
end
test do
system "#{bin}/adam buildinfo"
end
end