2012-01-09 16:55:05 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Rsense < Formula
|
|
|
|
homepage 'http://cx4a.org/software/rsense/'
|
|
|
|
url 'http://cx4a.org/pub/rsense/rsense-0.3.tar.bz2'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '497510e7048120af01bac619e50aa72ebd825c49'
|
2012-01-09 16:55:05 +00:00
|
|
|
|
|
|
|
def install
|
2012-11-11 19:20:09 +00:00
|
|
|
prefix.install_metafiles
|
2012-01-09 16:55:05 +00:00
|
|
|
libexec.install Dir['*']
|
2012-11-11 19:20:09 +00:00
|
|
|
(libexec/'bin/rsense').chmod 0755
|
2012-08-07 18:20:52 +00:00
|
|
|
bin.write_exec_script libexec/'bin/rsense'
|
2012-01-09 16:55:05 +00:00
|
|
|
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
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/rsense", "version"
|
2012-01-09 16:55:05 +00:00
|
|
|
end
|
|
|
|
end
|