homebrew-core/Formula/chisel.rb
Dave Lee 1e57ae9d9b chisel 1.5.0 (#4336)
This updates the formula for [chisel](https://github.com/facebook/chisel) to 1.5.0. Release info can be found here: https://github.com/facebook/chisel/releases/tag/1.5.0.
2016-08-30 01:56:34 +01:00

27 lines
873 B
Ruby

class Chisel < Formula
desc "Collection of LLDB commands to assist debugging iOS apps"
homepage "https://github.com/facebook/chisel"
url "https://github.com/facebook/chisel/archive/1.5.0.tar.gz"
sha256 "370c20a18bfa92c7c635cd04a9a199b078a829a60832e4e87ba5c4034b471856"
head "https://github.com/facebook/chisel.git"
bottle :unneeded
def install
libexec.install Dir["*.py", "commands"]
prefix.install "PATENTS"
end
def caveats; <<-EOS.undent
Add the following line to ~/.lldbinit to load chisel when Xcode launches:
command script import #{opt_libexec}/fblldb.py
EOS
end
test do
xcode_path = `xcode-select --print-path`.strip
lldb_rel_path = "Contents/SharedFrameworks/LLDB.framework/Resources/Python"
ENV["PYTHONPATH"] = "#{xcode_path}/../../#{lldb_rel_path}"
system "python", "#{libexec}/fblldb.py"
end
end