28 lines
1,011 B
Ruby
28 lines
1,011 B
Ruby
class Cocoapods < Formula
|
|
desc "Dependency manager for Cocoa projects"
|
|
homepage "https://cocoapods.org/"
|
|
url "https://github.com/CocoaPods/CocoaPods/archive/1.7.2.tar.gz"
|
|
sha256 "7b702282b972438e8a7bdad13fdb6cbcbc0e806b0f24398a50fe7c9f4b563f9a"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "c5b675f7f61d73c70d2b447706d15baf0a341f4202af399b364bf82e80259866" => :mojave
|
|
sha256 "47eab9213950fb01582ec99ad864ab348757b470f2e37e7f26e5431dda5b489c" => :high_sierra
|
|
sha256 "61a6d42c9881f49835dd22a595307d93598e55f36fd5b9b67239c653f153d198" => :sierra
|
|
end
|
|
|
|
depends_on "ruby" if MacOS.version <= :sierra
|
|
|
|
def install
|
|
ENV["GEM_HOME"] = libexec
|
|
system "gem", "build", "cocoapods.gemspec"
|
|
system "gem", "install", "cocoapods-#{version}.gem"
|
|
# Other executables don't work currently.
|
|
bin.install libexec/"bin/pod", libexec/"bin/xcodeproj"
|
|
bin.env_script_all_files(libexec/"bin", :GEM_HOME => ENV["GEM_HOME"])
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/pod", "list"
|
|
end
|
|
end
|