homebrew-core/Formula/sonar-runner.rb
Alex Dunn d15e6108b3 sonar-runner: fix homepage, add head
Closes Homebrew/homebrew#39833.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-05-17 14:55:06 +01:00

27 lines
866 B
Ruby

class SonarRunner < Formula
homepage "http://docs.sonarqube.org/display/SONAR/Installing+and+Configuring+SonarQube+Runner"
url "http://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.4/sonar-runner-dist-2.4.zip"
sha256 "f794545e23092c8b56d64d58ff571b2599480150b3fc41173b3761d634a16d48"
head "https://github.com/SonarSource/sonar-runner.git"
def install
# Remove windows files
rm_rf Dir["bin/*.bat"]
libexec.install Dir["*"]
bin.write_exec_script libexec/"bin/sonar-runner"
end
def caveats; <<-EOS.undent
If this is your first install, you should adjust its default configuration:
#{libexec}/conf/sonar-runner.properties
after that you should also add a new enviroment variable:
SONAR_RUNNER_HOME=#{libexec}
EOS
end
test do
system "#{bin}/sonar-runner", "-h"
end
end