2014-03-06 04:23:19 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Chisel < Formula
|
|
|
|
homepage "https://github.com/facebook/chisel"
|
2014-03-10 04:19:21 +00:00
|
|
|
url "https://github.com/facebook/chisel/archive/1.0.0.tar.gz"
|
|
|
|
sha1 "b6cd385bb8ac66116de398e93cf0ab8b28955293"
|
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:
|
|
|
|
command script import #{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
|