Findbugs 2.0.0

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Srinivasan Raguraman 2011-12-25 12:40:10 -06:00 committed by Adam Vandenberg
parent 0dc674f470
commit e439130817
1 changed files with 35 additions and 0 deletions

35
Formula/findbugs.rb Normal file
View File

@ -0,0 +1,35 @@
require 'formula'
class Findbugs < Formula
homepage 'http://findbugs.sourceforge.net/index.html'
url 'http://downloads.sourceforge.net/project/findbugs/findbugs/2.0.0/findbugs-2.0.0.tar.gz'
md5 '646b4b65f4d542e69102b99c649b5f81'
def startup_script name
<<-EOS.undent
#!/bin/bash
exec "#{libexec}/bin/#{name}" "$@"
EOS
end
def install
# Remove windows files
rm_f Dir["bin/*.bat"]
prefix.install 'README.txt'
libexec.install Dir['*']
(bin+'fb').write startup_script('fb')
(bin+'findbugs').write startup_script('findbugs')
end
def caveats; <<-EOS.undent
Some tools might refer findbugs by env variable.
After installation, set $FINDBUGS_HOME in your profile:
export FINDBUGS_HOME=#{libexec}
EOS
end
def test
system "#{bin}/fb"
end
end