Skip to content
This repository
Browse code

Sonar 2.13.1

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
commit 929532bbd218854dba6d2a7ae7f0921c12ffc966 1 parent 96a3764
Maxime Nowak authored May 19, 2011 adamv committed February 19, 2012

Showing 1 changed file with 28 additions and 0 deletions. Show diff stats Hide diff stats

  1. 28  Library/Formula/sonar.rb
28  Library/Formula/sonar.rb
... ...
@@ -0,0 +1,28 @@
  1
+require 'formula'
  2
+
  3
+class Sonar < Formula
  4
+  homepage 'http://www.sonarsource.org'
  5
+  url 'http://dist.sonar.codehaus.org/sonar-2.13.1.zip'
  6
+  md5 '37e0502e07e197b8e3a382c64fac8e1d'
  7
+
  8
+  def install
  9
+    # Delete native bin directories for other systems
  10
+    rm_rf Dir['bin/{aix,hpux,linux,solaris,windows}-*']
  11
+
  12
+    if MacOS.prefer_64_bit?
  13
+      rm_rf Dir['bin/macosx-universal-32']
  14
+    else 
  15
+      rm_rf Dir['bin/macosx-universal-64']
  16
+    end
  17
+
  18
+    # Delete Windows files
  19
+    rm_f Dir['war/*.bat']
  20
+    libexec.install Dir['*']
  21
+
  22
+    if MacOS.prefer_64_bit?
  23
+      bin.install_symlink "#{libexec}/bin/macosx-universal-64/sonar.sh" => "sonar"
  24
+    else 
  25
+      bin.install_symlink "#{libexec}/bin/macosx-universal-32/sonar.sh" => "sonar"
  26
+    end
  27
+  end
  28
+end

0 notes on commit 929532b

Please sign in to comment.
Something went wrong with that request. Please try again.