Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Sonar 2.13.1

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
commit 929532bbd218854dba6d2a7ae7f0921c12ffc966 1 parent 96a3764
@maximenowak maximenowak authored adamv committed
Showing with 28 additions and 0 deletions.
  1. +28 −0 Library/Formula/sonar.rb
View
28 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
Please sign in to comment.
Something went wrong with that request. Please try again.