2016-04-21 11:49:30 +00:00
|
|
|
class Cocoapods < Formula
|
|
|
|
desc "The Cocoa Dependency Manager."
|
|
|
|
homepage "https://cocoapods.org/"
|
2017-04-12 04:40:59 +00:00
|
|
|
url "https://github.com/CocoaPods/CocoaPods/archive/1.2.1.tar.gz"
|
|
|
|
sha256 "e5a31921f624649ff780d2c146c77fe194be8740de2c18991bb274d56a35ea69"
|
2016-04-21 11:49:30 +00:00
|
|
|
|
2016-04-21 12:35:52 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2017-04-12 04:49:49 +00:00
|
|
|
sha256 "928c4313f4af25d4da3a801aeda63ec621483f4678ee32a7e07923ec0fac8e07" => :sierra
|
|
|
|
sha256 "b9d99baf30717a70e6334d164fa74f6119d8e5c0ec9073b1c07dca70595e0633" => :el_capitan
|
|
|
|
sha256 "d80d01c190d45c16cb18a4c79aef04ab7f2e686bb4bdd8163e2b8aa9270c791c" => :yosemite
|
2016-04-21 12:35:52 +00:00
|
|
|
end
|
|
|
|
|
2016-04-21 11:49:30 +00:00
|
|
|
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"
|
2016-09-24 15:45:48 +00:00
|
|
|
bin.env_script_all_files(libexec/"bin", :GEM_HOME => ENV["GEM_HOME"])
|
2016-04-21 11:49:30 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/pod", "list"
|
|
|
|
end
|
|
|
|
end
|