/
perforce.rb
35 lines (29 loc) 路 1 KB
/
perforce.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
cask "perforce" do
version "2022.1,2409226"
sha256 "c9da1429c95bba4cd388187559d6b825838e12998e0bb7d206572eca1aa2e317"
url "https://cdist2.perforce.com/perforce/r#{version.major[-2..]}.#{version.minor}/bin.macosx1015x86_64/helix-core-server.tgz"
name "Perforce Helix Core Server"
name "Perforce Helix Command-Line Client (P4)"
name "Perforce Helix Broker (P4Broker)"
name "Perforce Helix Versioning Engine (P4D)"
name "Perforce Helix Proxy (P4P)"
desc "Version control"
homepage "https://www.perforce.com/"
livecheck do
url "https://cdist2.perforce.com/perforce/r#{version.major[-2..]}.#{version.minor}/doc/user/relnotes.txt"
strategy :page_match do |page|
page.scan(%r{\((\d+(?:\.\d+)+)/(\d+)\)}i).map do |match|
"#{match[0]},#{match[1]}"
end
end
end
depends_on macos: ">= :sierra"
binary "p4"
binary "p4broker"
binary "p4d"
binary "p4p"
caveats <<~EOS
Instructions on using the Helix Versioning Engine are available in
#{staged_path}
EOS
end