2011-10-26 08:29:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Rc < Formula
|
|
|
|
homepage 'http://doc.cat-v.org/plan_9/4th_edition/papers/rc'
|
2013-01-28 05:28:49 +00:00
|
|
|
url 'ftp://rc.quanstro.net/pub/rc-1.7.2.tgz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '9e51d99677244af1768ff8dd2cbac4ac162350c1'
|
2011-10-26 08:29:07 +00:00
|
|
|
|
|
|
|
def install
|
2013-01-28 05:28:49 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--mandir=#{man}",
|
|
|
|
"--with-editline"
|
2011-10-26 08:29:07 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/rc", "-c", "echo Hello!"
|
2011-10-26 08:29:07 +00:00
|
|
|
end
|
|
|
|
end
|