Skip to content
This repository
Browse code

Merge branch 'master' of https://github.com/mxcl/homebrew

  • Loading branch information...
commit 37cca4054d0493af05b20b8942e1de97a1c4bfb0 2 parents 108340d + 523a7a6
authored September 22, 2012
4  Library/Formula/armadillo.rb
@@ -2,8 +2,8 @@
2 2
 
3 3
 class Armadillo < Formula
4 4
   homepage 'http://arma.sourceforge.net/'
5  
-  url 'http://sourceforge.net/projects/arma/files/armadillo-3.4.0.tar.gz'
6  
-  sha1 'e7fdb6518172aabaa28c84412b52db7d86ef37a5'
  5
+  url 'http://sourceforge.net/projects/arma/files/armadillo-3.4.1.tar.gz'
  6
+  sha1 '16f11ee6e7a545581ab239e7f826e14d7d1c2e3a'
7 7
 
8 8
   depends_on 'cmake' => :build
9 9
   depends_on 'boost'
6  Library/Formula/leiningen.rb
@@ -7,6 +7,12 @@ class Leiningen < Formula
7 7
 
8 8
   head 'https://github.com/technomancy/leiningen.git'
9 9
 
  10
+  devel do
  11
+    url 'https://github.com/technomancy/leiningen/tarball/2.0.0-preview10'
  12
+    version '2.0.0-preview10'
  13
+    sha1 'e6bef03e50c2f0bfaa927c52953440c24a9ce235'
  14
+  end
  15
+
10 16
   def install
11 17
     bin.install "bin/lein"
12 18
     system "#{bin}/lein", "self-install"
3  Library/Formula/libgtop.rb
@@ -17,7 +17,8 @@ def patches; DATA; end
17 17
 
18 18
   def install
19 19
     system "./configure", "--disable-debug", "--disable-dependency-tracking",
20  
-                          "--prefix=#{prefix}"
  20
+                          "--prefix=#{prefix}",
  21
+                          "--without-x"
21 22
     system "make install"
22 23
   end
23 24
 end
11  Library/Formula/liblastfm.rb
@@ -2,19 +2,14 @@
2 2
 
3 3
 class Liblastfm < Formula
4 4
   homepage 'https://github.com/mxcl/liblastfm/'
5  
-  url 'https://github.com/mxcl/liblastfm/tarball/0.3.3'
6  
-  sha1 'f2e9705c9c2cbeaa14f46da9bd35ab36fe710392'
  5
+  url 'https://github.com/mxcl/liblastfm/tarball/e380c7f03f4b2417db87372df733606f4a153c53'
  6
+  version '0.3.3.1'
  7
+  sha1 'c68691b63a383f2a53a5894b99f165ffed4ea0db'
7 8
 
8 9
   depends_on 'qt'
9 10
   depends_on 'fftw'
10 11
   depends_on 'libsamplerate'
11 12
 
12  
-  # See issue #12886.  Reported in: https://github.com/mxcl/liblastfm/issues/14
13  
-  fails_with :clang do
14  
-    build 318
15  
-    cause 'error: reference to non-static member function must be called'
16  
-  end
17  
-
18 13
   def install
19 14
     system "./configure", "--release", "--prefix", prefix
20 15
     system "make"
18  Library/Formula/libmusicbrainz.rb
... ...
@@ -0,0 +1,18 @@
  1
+require 'formula'
  2
+
  3
+class Libmusicbrainz < Formula
  4
+  homepage 'http://musicbrainz.org/doc/libmusicbrainz'
  5
+  url 'https://github.com/downloads/metabrainz/libmusicbrainz/libmusicbrainz-5.0.1.tar.gz'
  6
+  sha1 'd4823beeca3faf114756370dc7dd6e3cd01d7e4f'
  7
+
  8
+  depends_on 'cmake' => :build
  9
+  depends_on 'neon'
  10
+
  11
+  def install
  12
+    neon = Formula.factory("neon")
  13
+    neon_args = %W[-DNEON_LIBRARIES:FILEPATH=#{neon.lib}/libneon.dylib
  14
+                 -DNEON_INCLUDE_DIR:PATH=#{neon.include}/neon]
  15
+    system "cmake", ".", *(std_cmake_args + neon_args)
  16
+    system "make install"
  17
+  end
  18
+end
1  Library/Formula/llvm.rb
@@ -65,6 +65,7 @@ def install
65 65
 
66 66
     # install clang tools and bindings
67 67
     cd clang_dir do
  68
+      system 'make install'
68 69
       (share/'clang/tools').install 'tools/scan-build', 'tools/scan-view'
69 70
       (share/'clang/bindings').install 'bindings/python'
70 71
     end if build.include? 'with-clang'
4  Library/Formula/memcached.rb
@@ -2,8 +2,8 @@
2 2
 
3 3
 class Memcached < Formula
4 4
   homepage 'http://memcached.org/'
5  
-  url "http://memcached.googlecode.com/files/memcached-1.4.14.tar.gz"
6  
-  sha1 'b360a6acf2454452c6fd4a5bdbbc303d85c3ec27'
  5
+  url "http://memcached.googlecode.com/files/memcached-1.4.15.tar.gz"
  6
+  sha1 '12ec84011f408846250a462ab9e8e967a2e8cbbc'
7 7
 
8 8
   depends_on 'libevent'
9 9
 
4  Library/Formula/node.rb
@@ -44,8 +44,8 @@ def fatal?
44 44
 
45 45
 class Node < Formula
46 46
   homepage 'http://nodejs.org/'
47  
-  url 'http://nodejs.org/dist/v0.8.8/node-v0.8.8.tar.gz'
48  
-  sha1 '5ddafc059d2f774e35e6375f5b61157879a46f0f'
  47
+  url 'http://nodejs.org/dist/v0.8.9/node-v0.8.9.tar.gz'
  48
+  sha1 '2d3234adceedc2dc87284af88609ede6ecd71734'
49 49
 
50 50
   head 'https://github.com/joyent/node.git'
51 51
 
4  Library/Formula/osmosis.rb
@@ -2,8 +2,8 @@
2 2
 
3 3
 class Osmosis < Formula
4 4
   homepage 'http://wiki.openstreetmap.org/wiki/Osmosis'
5  
-  url 'http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-0.40.1.zip'
6  
-  sha1 '2a51c35b6270af51f6fffaa9d7ed5fa5e1c30a7b'
  5
+  url 'http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-0.41.zip'
  6
+  sha1 'b4119871ed74af4c320685a45defb255acf4499f'
7 7
 
8 8
   def patches
9 9
     # need to adjust home dir for a clean install
36  Library/Formula/qt.rb
@@ -2,14 +2,13 @@
2 2
 
3 3
 class Qt < Formula
4 4
   homepage 'http://qt.nokia.com/'
5  
-  url 'http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.2.tar.gz'
6  
-  sha1 'e1e2edef1d63ed677d6534d32800c2e1f7ad0e73'
  5
+  url 'http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.3.tar.gz'
  6
+  sha1 'bc352a283610e0cd2fe0dbedbc45613844090fcb'
7 7
 
8 8
   bottle do
9  
-    version 1
10  
-    sha1 'dfa0daa951e889a2548b1cff66759b449b5a6b98' => :mountainlion
11  
-    sha1 '0905eb8b2c5a9bae0d1f9a8234173daba680c48c' => :lion
12  
-    sha1 'c37ac19d54c4684d8996a0ee96cdf971bd2c1f7b' => :snowleopard
  9
+    sha1 'ff488747325cd6771fbf0b79156fd3833ff3af63' => :mountainlion
  10
+    sha1 '048517758b2beb2dddabb97f711410ccbcb29c01' => :lion
  11
+    sha1 'bb0b7e58d743e7b9147ae0d03cebc83134b8f68c' => :snowleopard
13 12
   end
14 13
 
15 14
   head 'git://gitorious.org/qt/qt.git', :branch => 'master'
@@ -21,45 +20,34 @@ class Qt < Formula
21 20
   option 'with-qt3support', 'Enable deprecated Qt3Support module'
22 21
   option 'with-demos-examples', 'Enable Qt demos and examples'
23 22
   option 'with-debug-and-release', 'Compile Qt in debug and release mode'
  23
+  option 'with-mysql', 'Enable MySQL plugin'
24 24
   option 'developer', 'Compile and link Qt with developer options'
25 25
 
26 26
   depends_on "d-bus" if build.include? 'with-qtdbus'
  27
+  depends_on "mysql" if build.include? 'with-mysql'
27 28
   depends_on 'sqlite' if MacOS.version == :leopard
28 29
 
29  
-  fails_with :clang do
30  
-    build 421
31  
-  end
32  
-
33 30
   def patches
34  
-    # fixes conflict on osx 10.5. See qt bug:
  31
+    # Fixes compilation failure on Leopard.
35 32
     # https://bugreports.qt-project.org/browse/QTBUG-23258
36 33
     if MacOS.version == :leopard
37 34
       "http://bugreports.qt-project.org/secure/attachment/26712/Patch-Qt-4.8-for-10.5"
38  
-    # add support for Mountain Lion
39  
-    # should be unneeded for 4.8.3
40  
-    elsif MacOS.version >= :mountain_lion
41  
-      [ "https://qt.gitorious.org/qt/qt/commit/422f1b?format=patch",
42  
-        "https://qt.gitorious.org/qt/qt/commit/665355?format=patch",
43  
-        "https://raw.github.com/gist/3187034/893252db0ae3bb9bb5fa3ff7c530c7978399b101/0001-Fix-WebKit-on-OS-X-Mountain-Lion.patch" ]
44 35
     end
45  
-
46 36
   end
47 37
 
48 38
   def install
49  
-    # Apply binary git patch; normal patch ignores this.
50  
-    # TODO: Autodetect binary patches and apply them correctly.
51  
-    system "git apply --exclude=*/QtWebKit.pro 002-homebrew.diff" if MacOS.version >= :mountain_lion
52  
-
53 39
     ENV.append "CXXFLAGS", "-fvisibility=hidden"
54 40
     args = ["-prefix", prefix,
55 41
             "-system-zlib",
56 42
             "-confirm-license", "-opensource",
57 43
             "-cocoa", "-fast" ]
58 44
 
  45
+    args << "-platform" << "unsupported/macx-clang" if ENV.compiler == :clang
  46
+
59 47
     # See: https://github.com/mxcl/homebrew/issues/issue/744
60 48
     args << "-system-sqlite" if MacOS.version == :leopard
61 49
 
62  
-    args << "-plugin-sql-mysql" if (HOMEBREW_CELLAR+"mysql").directory?
  50
+    args << "-plugin-sql-mysql" if build.include? 'with-mysql'
63 51
 
64 52
     if build.include? 'with-qtdbus'
65 53
       args << "-I#{Formula.factory('d-bus').lib}/dbus-1.0/include"
@@ -95,7 +83,7 @@ def install
95 83
 
96 84
     args << '-developer-build' if build.include? 'developer'
97 85
 
98  
-    # Needed for Qt 4.8.1 due to attempting to link moc with gcc.
  86
+    # Needed for Qt 4.8.3 due to attempting to link moc with gcc.
99 87
     ENV['LD'] = ENV.cxx
100 88
 
101 89
     system "./configure", *args
4  Library/Formula/tor.rb
@@ -2,8 +2,8 @@
2 2
 
3 3
 class Tor < Formula
4 4
   homepage 'https://www.torproject.org/'
5  
-  url 'https://www.torproject.org/dist/tor-0.2.2.38.tar.gz'
6  
-  sha1 'abac1902d301c6bd5d522e4cc81aead3299cf968'
  5
+  url 'https://www.torproject.org/dist/tor-0.2.2.39.tar.gz'
  6
+  sha1 'cc5021a7656c0cd22de42da9f0ce7335026852bf'
7 7
 
8 8
   depends_on 'libevent'
9 9
 
2  Library/Homebrew/cmd/--env.rb
@@ -26,7 +26,7 @@ def build_env_keys env
26 26
       HOMEBREW_USE_GCC HOMEBREW_USE_LLVM HOMEBREW_SVN HOMEBREW_GIT
27 27
       HOMEBREW_SDKROOT
28 28
       MAKE GIT CPP
29  
-      ACLOCAL_PATH OBJC PATH ].select{ |key| env[key] }
  29
+      ACLOCAL_PATH OBJC PATH ].select{ |key| env.fetch(key) if env.key? key }
30 30
   end
31 31
 
32 32
   def dump_build_env env
16  Library/Homebrew/cmd/cleanup.rb
@@ -35,8 +35,12 @@ def cleanup_formula f
35 35
       f.rack.children.each do |keg|
36 36
         if f.installed_prefix != keg
37 37
           if f.can_cleanup?
38  
-            puts "Removing #{keg}..."
39  
-            rm_rf keg unless ARGV.dry_run?
  38
+            if ARGV.dry_run?
  39
+              puts "Would remove: #{keg}"
  40
+            else
  41
+              puts "Removing: #{keg}..."
  42
+              rm_rf keg
  43
+            end
40 44
           else
41 45
             opoo "Skipping (old) keg-only: #{keg}"
42 46
           end
@@ -58,8 +62,12 @@ def clean_cache
58 62
         f = Formula.factory(name) rescue nil
59 63
         old_bottle = bottle_file_outdated? f, pn
60 64
         if not f or (f.version != version or ARGV.switch? "s" and not f.installed?) or old_bottle
61  
-          puts "Removing #{pn}..."
62  
-          rm pn unless ARGV.dry_run?
  65
+          if ARGV.dry_run?
  66
+            puts "Would remove: #{pn}"
  67
+          else
  68
+            puts "Removing: #{pn}..."
  69
+            rm pn
  70
+          end
63 71
         end
64 72
       end
65 73
     end
2  Library/Homebrew/superenv.rb
@@ -41,7 +41,7 @@ def reset
41 41
   def setup_build_environment
42 42
     reset
43 43
     check
44  
-    ENV['CC'] = ENV['LD'] = 'cc'
  44
+    ENV['CC'] = 'cc'
45 45
     ENV['CXX'] = 'c++'
46 46
     ENV['MAKEFLAGS'] ||= "-j#{determine_make_jobs}"
47 47
     ENV['PATH'] = determine_path

0 notes on commit 37cca40

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