| class IosDeployFlutter < Formula |
| desc "Install and debug iPhone apps from the command-line" |
| homepage "https://flutter-mirrors.googlesource.com/ios-deploy" |
| head "https://flutter-mirrors.googlesource.com/ios-deploy.git" |
| |
| depends_on :xcode => :build |
| depends_on :macos => :yosemite |
| |
| def install |
| xcodebuild "-configuration", "Release", "SYMROOT=build" |
| |
| xcodebuild "test", "-scheme", "ios-deploy-tests", "-configuration", "Release", "SYMROOT=build" |
| |
| bin.install "build/Release/ios-deploy" |
| prefix.install "LICENSE2" |
| end |
| |
| test do |
| system "#{bin}/ios-deploy", "-V" |
| end |
| end |