xctool 0.1.0
Closes Homebrew/homebrew#19590. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
6598f82eb0
commit
615a2d4f71
1 changed files with 23 additions and 0 deletions
23
Formula/xctool.rb
Normal file
23
Formula/xctool.rb
Normal file
|
@ -0,0 +1,23 @@
|
|||
require 'formula'
|
||||
|
||||
class Xctool < Formula
|
||||
homepage 'https://github.com/facebook/xctool'
|
||||
url 'https://github.com/facebook/xctool/archive/v0.1.0.tar.gz'
|
||||
sha1 'f5cf21d14f26127cea6b6b069fcc2c7387c41af6'
|
||||
|
||||
depends_on :xcode
|
||||
|
||||
def install
|
||||
system './build.sh'
|
||||
# Install all files together in libexec so the binary can find the dylibs.
|
||||
libexec.install 'build/Products/Release/xctool'
|
||||
libexec.install Dir['build/Products/Release/*.dylib']
|
||||
libexec.install 'build/Products/Release/mobile-installation-helper.app'
|
||||
# Link the binary into bin
|
||||
bin.install_symlink libexec/'xctool'
|
||||
end
|
||||
|
||||
test do
|
||||
system "(#{bin}/xctool -help; true)"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue