2014-03-06 04:23:19 +00:00
|
|
|
class Chisel < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Collection of LLDB commands to assist debugging iOS apps"
|
2014-03-06 04:23:19 +00:00
|
|
|
homepage "https://github.com/facebook/chisel"
|
2016-02-10 05:25:41 +00:00
|
|
|
url "https://github.com/facebook/chisel/archive/1.4.0.tar.gz"
|
|
|
|
sha256 "94d695cbc24343f8002c2b68a68bcc00601ab161ef24d16ee0718c93a2889493"
|
2014-03-06 04:23:19 +00:00
|
|
|
|
2015-10-22 13:11:32 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2014-03-06 04:23:19 +00:00
|
|
|
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:
|
2014-07-16 02:28:11 +00:00
|
|
|
command script import #{opt_libexec}/fblldb.py
|
2014-03-06 04:23:19 +00:00
|
|
|
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}"
|
2015-10-05 12:41:04 +00:00
|
|
|
system "python", "#{libexec}/fblldb.py"
|
2014-03-06 04:23:19 +00:00
|
|
|
end
|
|
|
|
end
|