36 lines
993 B
Ruby
36 lines
993 B
Ruby
cask "perforce" do
|
|
version "2021.2,2201121"
|
|
sha256 "7dd6dc41b4b86738926af6963ea86c34a8162e9616494f9c848a0d0267db923d"
|
|
|
|
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://www.perforce.com/perforce/doc.current/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
|