-
Notifications
You must be signed in to change notification settings - Fork 7
/
bloop.rb
54 lines (43 loc) · 1.71 KB
/
bloop.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
42
43
44
45
46
47
48
49
50
51
52
53
54
class Bloop < Formula
desc "Installs the Bloop CLI for Bloop, a build server to compile, test and run Scala fast"
homepage "https://github.com/scalacenter/bloop"
version "2.0.5"
url "https://github.com/scalacenter/bloop/releases/download/v2.0.5/bloop-coursier.json"
sha256 "782d48d08aeaed9cabd88bd94d9a8a2878d9c18916e9e82dfe3b800dbf2c65b2"
depends_on "bash-completion@2"
depends_on "coursier/formulas/coursier"
depends_on "openjdk"
resource "bash_completions" do
url "https://github.com/scalacenter/bloop/releases/download/v2.0.5/bash-completions"
sha256 "da6b7ecd4109bd0ff98b1c452d9dd9d26eee0d28ff604f6c83fb8d3236a6bdd1"
end
resource "zsh_completions" do
url "https://github.com/scalacenter/bloop/releases/download/v2.0.5/zsh-completions"
sha256 "58d32c3f005f7791237916d1b5cd3a942115236155a0b7eba8bf36391d06eff7"
end
resource "fish_completions" do
url "https://github.com/scalacenter/bloop/releases/download/v2.0.5/fish-completions"
sha256 "5bcf306e7092f78a9aac9cae07f3eac51ada665343e2c97f6f0a6731ca4c3220"
end
def install
mkdir "bin"
mkdir "channel"
mv "bloop-coursier.json", "channel/bloop.json"
system "coursier", "install", "--install-dir", "bin", "--default-channels=false", "--channel", "channel", "bloop"
resource("bash_completions").stage {
mv "bash-completions", "bloop"
bash_completion.install "bloop"
}
resource("zsh_completions").stage {
mv "zsh-completions", "_bloop"
zsh_completion.install "_bloop"
}
resource("fish_completions").stage {
mv "fish-completions", "bloop.fish"
fish_completion.install "bloop.fish"
}
prefix.install "bin"
end
test do
end
end