homebrew-core/Formula/ios-deploy.rb
2016-09-29 13:07:32 -04:00

31 lines
1.1 KiB
Ruby

class IosDeploy < Formula
desc "Install and debug iPhone apps from the command-line"
homepage "https://github.com/phonegap/ios-deploy"
url "https://github.com/phonegap/ios-deploy/archive/1.9.0.tar.gz"
sha256 "750dd02bc32414832ed7c1de39919651ee3166d467f546573dea045c76d64a91"
head "https://github.com/phonegap/ios-deploy.git"
bottle do
cellar :any_skip_relocation
sha256 "7a60027ba461d995d795c86b010c68928912717ace6043ff404a01be9e3b8fc9" => :sierra
sha256 "8fcc8af17c7452a429837db7839e3d09e27704beb195962b8eb695c4d132d133" => :el_capitan
sha256 "6349ec96d53235201ac3fffff6a89f211289ad1ea03e4bc3899d189fa84e63fc" => :yosemite
end
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"
include.install "build/Release/libios_deploy.h"
lib.install "build/Release/libios-deploy.a"
end
test do
system "#{bin}/ios-deploy", "-V"
end
end