blob: 062dad195112a97086543f0a03ac6828a24f2990 [file] [log] [blame]
class CocoapodsFlutter < 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"
url "https://flutter-mirrors.googlesource.com/cocoapods.git"
version "1.7.2"
head do
url "https://flutter-mirrors.googlesource.com/cocoapods.git"
version "1.7.2"
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