aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorhttp://jayferd.us/2014-03-03 16:55:50 -0800
committerMike McQuaid2014-04-01 14:11:01 -0500
commitecd5d85f986d0d4b347967232a2a499ce1b92ac3 (patch)
tree9ef72b780f46334d3978a0ab275b68571c85bf9a /Library
parent378a53e45cf4d270f2cde9585e0f279cbc30f437 (diff)
downloadhomebrew-ecd5d85f986d0d4b347967232a2a499ce1b92ac3.tar.bz2
ry 0.5.2 (new formula)
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ry.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/Library/Formula/ry.rb b/Library/Formula/ry.rb
new file mode 100644
index 000000000..3b8c153d8
--- /dev/null
+++ b/Library/Formula/ry.rb
@@ -0,0 +1,29 @@
+require "formula"
+
+class Ry < Formula
+ homepage "https://github.com/jayferd/ry"
+ url "https://github.com/jayferd/ry/archive/v0.5.2.tar.gz"
+ sha1 "1c44fa222911b5b3fdb806fa97752b16404aae0f"
+
+ head "https://github.com/jayferd/ry.git"
+
+ depends_on "ruby-build" => :recommended
+ depends_on "bash-completion" => :recommended
+
+ def install
+ ENV["PREFIX"] = prefix
+ ENV["BASH_COMPLETIONS_DIR"] = etc/"bash_completion.d"
+ ENV["ZSH_COMPLETIONS_DIR"] = share/"zsh/site-functions"
+ system "make", "install"
+ end
+
+ def caveats; <<-EOS.undent
+ Please add to your profile:
+ which ry &>/dev/null && eval "$(ry setup)"
+ EOS
+ end
+
+ test do
+ system bin/"ry", "ls"
+ end
+end