homebrew-core/Formula/chisel.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

24 lines
802 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.2.0.tar.gz"
sha256 "af22dde2c5b4f0832f25ac0d3831c43a227f148f97ca7e6bab71e10b2b3225b5"
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