25 lines
844 B
Ruby
25 lines
844 B
Ruby
cask "p4" do
|
|
version "2022.2,2369846"
|
|
sha256 "920a64afa88e781bc7cc1494ad42a46f136a5e1e6804469c626fb3554faa9829"
|
|
|
|
url "https://cdist2.perforce.com/perforce/r#{version.major[-2..]}.#{version.minor}/bin.macosx1015x86_64/p4"
|
|
name "Perforce Helix Command-Line Client (P4)"
|
|
desc "Use it to gain instant access to operations and complete control over the system"
|
|
homepage "https://www.perforce.com/products/helix-core-apps/command-line-client"
|
|
|
|
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
|
|
|
|
conflicts_with cask: "perforce"
|
|
depends_on macos: ">= :high_sierra"
|
|
container type: :naked
|
|
|
|
binary "bin.macosx1015x86_64", target: "p4"
|
|
end
|