aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rsense.rb
blob: 14a3b9cdd31c57bd83f334cbeeef0a1c9b180826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
class Rsense < Formula
  homepage "http://cx4a.org/software/rsense/"
  url "http://cx4a.org/pub/rsense/rsense-0.3.tar.bz2"
  sha256 "508795d2f11784e708cbbc39c3e4149a3e87baab7161db3df60b68a321bb534b"

  def install
    libexec.install Dir["*"]
    (libexec/"bin/rsense").chmod 0755
    bin.write_exec_script libexec/"bin/rsense"
  end

  def caveats
    <<-EOS.undent
    If this is your first install, create default config file:
        ruby #{libexec}/etc/config.rb > ~/.rsense

    You will also need to setup Emacs and/or Vim to use Rsense. Please
    refer to the User Manual: http://cx4a.org/software/rsense/manual.html
    EOS
  end

  test do
    system "#{bin}/rsense", "version"
  end
end