diff options
| author | Andrew Holland | 2015-02-27 10:45:16 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-03-02 08:01:13 +0000 |
| commit | 9ecaedacb70190cb0ec136e27defb55bc2439c10 (patch) | |
| tree | dcdb13ee533463b71b351b8f6ce22f5ec7651cd5 /Library/Formula | |
| parent | 1f5d3508ed47e587f037560a15c7adc37079a102 (diff) | |
| download | homebrew-9ecaedacb70190cb0ec136e27defb55bc2439c10.tar.bz2 | |
sonar 5.0.1
Closes #37237.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sonar.rb | 18 |
1 files changed, 10 insertions, 8 deletions
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 <?xml version="1.0" encoding="UTF-8"?> @@ -46,4 +44,8 @@ class Sonar < Formula </plist> EOS end + + test do + assert_match /SonarQube/, shell_output("#{bin}/sonar status", 1) + end end |
