-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (42 loc) · 3.51 KB
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
class HazelcastManagementCenterAT540 < Formula
desc "Tool to run Hazelcast Management Center"
homepage "https://github.com/hazelcast/hazelcast-command-line"
version "5.4.0"
url "https://repository.hazelcast.com/download/management-center/hazelcast-management-center-5.4.0.tar.gz"
sha256 "daebce44a375a18e3afa66ff0acd6d0b4fc705d0ba8025087257355befe2a9d9"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "[email protected]", because: "you can install only a single hazelcast-management-center package"
conflicts_with "hazelcast-management-center-5.3", because: "you can install only a single hazelcast-management-center package"
conflicts_with "hazelcast-management-center-5.2", because: "you can install only a single hazelcast-management-center package"
conflicts_with "hazelcast-management-center-5.1", because: "you can install only a single hazelcast-management-center package"
conflicts_with "hazelcast-management-center-5.0", because: "you can install only a single hazelcast-management-center package"
conflicts_with "hazelcast-management-center-snapshot", because: "you can install only a single hazelcast-management-center package"
conflicts_with "hazelcast-management-center", because: "you can install only a single hazelcast-management-center package"
depends_on "openjdk@21" => :recommended
def install
libexec.install Dir["*"]
Dir["#{libexec}/bin/*mc*"].each do |path|
executable_name = File.basename(path)
if executable_name.end_with? ".bat"
next
end
(bin/executable_name).write_env_script libexec/"bin/#{executable_name}", Language::Java.overridable_java_home_env
end
prefix.install_metafiles
end
def post_install
exec "echo Hazelcast Management Center has been installed."
end
end