forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adam.rb
39 lines (32 loc) · 1.36 KB
/
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
33
34
35
36
37
38
39
class Adam < Formula
desc "Genomics analysis platform built on Apache Avro, Apache Spark and Parquet"
homepage "https://github.com/bigdatagenomics/adam"
url "https://search.maven.org/remotecontent?filepath=org/bdgenomics/adam/adam-distribution-spark2_2.11/0.20.0/adam-distribution-spark2_2.11-0.20.0-bin.tar.gz"
sha256 "f87beb379ee0ae1346d67cde374ba7b2416754ed690a2ada8b6b51a45e7717c0"
bottle do
cellar :any_skip_relocation
sha256 "c534354fc448cc4d85021cdafa2883820babd2902b28de2cf8c296bdd300850c" => :sierra
sha256 "c534354fc448cc4d85021cdafa2883820babd2902b28de2cf8c296bdd300850c" => :el_capitan
sha256 "c534354fc448cc4d85021cdafa2883820babd2902b28de2cf8c296bdd300850c" => :yosemite
end
head do
url "https://github.com/bigdatagenomics/adam.git", :shallow => false
depends_on "maven" => :build
end
option "without-test", "Disable build-time checking (not recommended)"
deprecated_option "without-check" => "without-test"
depends_on "apache-spark"
def install
if build.head?
system "scripts/move_to_scala_2.11.sh"
system "scripts/move_to_spark_2.sh"
system "mvn", "clean", "package",
"-DskipTests=" + (build.with?("test") ? "False" : "True")
end
libexec.install Dir["*"]
bin.write_exec_script Dir["#{libexec}/bin/*"]
end
test do
system "#{bin}/adam-submit", "--version"
end
end