From ecd5d85f986d0d4b347967232a2a499ce1b92ac3 Mon Sep 17 00:00:00 2001 From: http://jayferd.us/ Date: Mon, 3 Mar 2014 16:55:50 -0800 Subject: ry 0.5.2 (new formula) --- Library/Formula/ry.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Library/Formula/ry.rb (limited to 'Library') 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 -- cgit v1.2.3