diff options
| author | Maxime Nowak | 2011-05-19 01:54:12 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-19 16:43:49 -0800 |
| commit | 929532bbd218854dba6d2a7ae7f0921c12ffc966 (patch) | |
| tree | 503fa3f44b72f97952db3147e7a2264e9a90b6fa /Library/Formula | |
| parent | 96a376431489929f60515b2bcfd700bcf958a188 (diff) | |
| download | homebrew-929532bbd218854dba6d2a7ae7f0921c12ffc966.tar.bz2 | |
Sonar 2.13.1
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sonar.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/sonar.rb b/Library/Formula/sonar.rb new file mode 100644 index 000000000..4dce14a94 --- /dev/null +++ b/Library/Formula/sonar.rb @@ -0,0 +1,28 @@ +require 'formula' + +class Sonar < Formula + homepage 'http://www.sonarsource.org' + url 'http://dist.sonar.codehaus.org/sonar-2.13.1.zip' + md5 '37e0502e07e197b8e3a382c64fac8e1d' + + def install + # Delete native bin directories for other systems + rm_rf Dir['bin/{aix,hpux,linux,solaris,windows}-*'] + + if MacOS.prefer_64_bit? + rm_rf Dir['bin/macosx-universal-32'] + else + rm_rf Dir['bin/macosx-universal-64'] + end + + # Delete Windows files + rm_f Dir['war/*.bat'] + libexec.install Dir['*'] + + if MacOS.prefer_64_bit? + bin.install_symlink "#{libexec}/bin/macosx-universal-64/sonar.sh" => "sonar" + else + bin.install_symlink "#{libexec}/bin/macosx-universal-32/sonar.sh" => "sonar" + end + end +end |
