aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/chisel.rb
diff options
context:
space:
mode:
authordstnbrkr2014-03-05 23:23:19 -0500
committerAdam Vandenberg2014-03-09 12:39:25 -0700
commit3176897dabcad9ad17c3d345cf7db45a446e0959 (patch)
tree470cd6cbd3e42e89cfcb8d05e79a39c5851bacd0 /Library/Formula/chisel.rb
parentc3de2a06cb1045651b91403aaceaac785cc24b17 (diff)
downloadhomebrew-3176897dabcad9ad17c3d345cf7db45a446e0959.tar.bz2
chisel 1.0.0
Closes #27271. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/chisel.rb')
-rw-r--r--Library/Formula/chisel.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/chisel.rb b/Library/Formula/chisel.rb
new file mode 100644
index 000000000..aae0b668f
--- /dev/null
+++ b/Library/Formula/chisel.rb
@@ -0,0 +1,25 @@
+require "formula"
+
+class Chisel < Formula
+ homepage "https://github.com/facebook/chisel"
+ url "https://github.com/facebook/chisel/archive/1.0.0.zip"
+ sha1 "78e1c10d6e1e625291377aac1b27487d210bb04e"
+
+ 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