forked from ahmadia/homebrew-science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
adam.rb
41 lines (34 loc) · 1.48 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
40
41
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.22.0/adam-distribution-spark2_2.11-0.22.0-bin.tar.gz"
sha256 "31624954eb473f2ec24354af7e6303a47887cf2ca4076bb71f54618aef59e15b"
# tag "bioinformatics"
bottle do
cellar :any_skip_relocation
sha256 "beb29a0f019c560cd50fc88181a718af15a0ada2d4edcb6ee9cd7ee445cf5351" => :sierra
sha256 "b2eff2fa6902d8b88f897916211bb430b38357547eff380b7c6052602674f458" => :el_capitan
sha256 "b2eff2fa6902d8b88f897916211bb430b38357547eff380b7c6052602674f458" => :yosemite
sha256 "05fa62cf881fbd25653a38d7c73aa497101f86f0317ddb75151bfe512a2fc662" => :x86_64_linux
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