homebrew-core/Formula/rc.rb
Ted Pennings 4cd0935be7 Convert all 'def test' formulae to 'test do'
Closes Homebrew/homebrew#26942.
Closes Homebrew/homebrew#26946.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-02-24 19:54:02 -08:00

19 lines
465 B
Ruby

require 'formula'
class Rc < Formula
homepage 'http://doc.cat-v.org/plan_9/4th_edition/papers/rc'
url 'ftp://rc.quanstro.net/pub/rc-1.7.2.tgz'
sha1 '9e51d99677244af1768ff8dd2cbac4ac162350c1'
def install
system "./configure", "--prefix=#{prefix}",
"--mandir=#{man}",
"--with-editline"
system "make"
system "make install"
end
test do
system "#{bin}/rc", "-c", "echo Hello!"
end
end