39 lines
1.5 KiB
Ruby
39 lines
1.5 KiB
Ruby
class Carthage < Formula
|
|
desc "Decentralized dependency manager for Cocoa"
|
|
homepage "https://github.com/Carthage/Carthage"
|
|
url "https://github.com/Carthage/Carthage.git",
|
|
tag: "0.35.0",
|
|
revision: "c7550f832f23d2c00bf0c014351719839593c641",
|
|
shallow: false
|
|
license "MIT"
|
|
head "https://github.com/Carthage/Carthage.git", shallow: false
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "fdaacafff1566fa7b1e42e68e108da69aa7578dc82f4736272dca10283c9cba2" => :catalina
|
|
sha256 "1da29ca0b1d8e79bec5e548f5ab2433890ebc3fc9007f5fdb70d9e3be281dbb7" => :mojave
|
|
sha256 "130fcb9bc06ef8e7f1c5ac9af0d155bd347db039b2cf80fa0fef764b3627ffbf" => :high_sierra
|
|
end
|
|
|
|
depends_on xcode: ["10.0", :build]
|
|
|
|
patch do
|
|
# Fix erroneously re-throwing reduce (on Swift 5.3 pre-release)
|
|
# https://github.com/Carthage/Carthage/commit/a33d3483b31e28e0488ea51e3efb6b44025f1b5f
|
|
url "https://github.com/Carthage/Carthage/commit/a33d3483b31e28e0488ea51e3efb6b44025f1b5f.diff?full_index=1"
|
|
sha256 "75610a77cafbf447ea040d8dea1a4beb626944c577351ea5435ab5e8dda71b1c"
|
|
end
|
|
|
|
def install
|
|
system "make", "prefix_install", "PREFIX=#{prefix}"
|
|
bash_completion.install "Source/Scripts/carthage-bash-completion" => "carthage"
|
|
zsh_completion.install "Source/Scripts/carthage-zsh-completion" => "_carthage"
|
|
fish_completion.install "Source/Scripts/carthage-fish-completion" => "carthage.fish"
|
|
end
|
|
|
|
test do
|
|
(testpath/"Cartfile").write 'github "jspahrsummers/xcconfigs"'
|
|
system bin/"carthage", "update"
|
|
end
|
|
end
|