From 9ecaedacb70190cb0ec136e27defb55bc2439c10 Mon Sep 17 00:00:00 2001 From: Andrew Holland Date: Fri, 27 Feb 2015 10:45:16 +0000 Subject: sonar 5.0.1 Closes #37237. Signed-off-by: Mike McQuaid --- Library/Formula/sonar.rb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/sonar.rb b/Library/Formula/sonar.rb index b29d5522f..878501a5c 100644 --- a/Library/Formula/sonar.rb +++ b/Library/Formula/sonar.rb @@ -1,13 +1,11 @@ -require "formula" - class Sonar < Formula homepage "http://www.sonarqube.org/" - url "http://dist.sonar.codehaus.org/sonarqube-5.0.zip" - sha1 "6040d24e24195af2c87a3232393523fac0ddcc88" + url "http://dist.sonar.codehaus.org/sonarqube-5.0.1.zip" + sha1 "c8893e1223592bff34986d142062e06f501f1a13" def install # Delete native bin directories for other systems - rm_rf Dir['bin/{aix,hpux,linux,solaris,windows}-*'] + rm_rf Dir["bin/{aix,hpux,linux,solaris,windows}-*"] if MacOS.prefer_64_bit? rm_rf "bin/macosx-universal-32" @@ -16,8 +14,8 @@ class Sonar < Formula end # Delete Windows files - rm_f Dir['war/*.bat'] - libexec.install Dir['*'] + rm_f Dir["war/*.bat"] + libexec.install Dir["*"] if MacOS.prefer_64_bit? bin.install_symlink "#{libexec}/bin/macosx-universal-64/sonar.sh" => "sonar" @@ -26,7 +24,7 @@ class Sonar < Formula end end - plist_options :manual => "#{HOMEBREW_PREFIX}/opt/sonar/bin/sonar console" + plist_options :manual => "sonar console" def plist; <<-EOS.undent @@ -46,4 +44,8 @@ class Sonar < Formula EOS end + + test do + assert_match /SonarQube/, shell_output("#{bin}/sonar status", 1) + end end -- cgit v1.2.3