aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rc.rb
blob: aab8a4e5be1a5e42998f323427ead14da8cc437a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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