aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-18 10:30:47 -0700
committerAdam Vandenberg2011-03-18 10:30:47 -0700
commit46c553ad431193c1cac98484b9610b6fe1a0136b (patch)
treea93bba9fd5f3073f4fc3f0d61c8bccc264134d9f
parentedeace562e45802525e5699ea73465380cb9e8c3 (diff)
downloadhomebrew-46c553ad431193c1cac98484b9610b6fe1a0136b.tar.bz2
Replace snow_leopard_64? in brews.
-rw-r--r--Library/Formula/asterisk.rb2
-rw-r--r--Library/Formula/bigloo.rb2
-rw-r--r--Library/Formula/cantera.rb2
-rw-r--r--Library/Formula/chicken.rb2
-rw-r--r--Library/Formula/clisp.rb2
-rw-r--r--Library/Formula/cppdom.rb2
-rw-r--r--Library/Formula/dcmtk.rb2
-rw-r--r--Library/Formula/erlang.rb2
-rw-r--r--Library/Formula/ffmpeg.rb2
-rw-r--r--Library/Formula/gdal.rb2
-rw-r--r--Library/Formula/gnu-smalltalk.rb2
-rw-r--r--Library/Formula/hiredis.rb2
-rw-r--r--Library/Formula/ical-buddy.rb2
-rw-r--r--Library/Formula/icu4c.rb2
-rw-r--r--Library/Formula/mad.rb2
-rw-r--r--Library/Formula/mpg123.rb2
-rw-r--r--Library/Formula/mz-scheme.rb2
-rw-r--r--Library/Formula/nspr.rb2
-rw-r--r--Library/Formula/plt-racket.rb2
-rw-r--r--Library/Formula/postgresql.rb4
-rw-r--r--Library/Formula/pypy.rb2
-rw-r--r--Library/Formula/qt.rb4
-rw-r--r--Library/Formula/redis.rb2
-rw-r--r--Library/Formula/rrdtool.rb2
-rw-r--r--Library/Formula/ruby-odbc.rb2
-rw-r--r--Library/Formula/tbb.rb2
-rw-r--r--Library/Formula/valgrind.rb2
-rw-r--r--Library/Formula/virtuoso.rb2
-rw-r--r--Library/Formula/x264.rb2
29 files changed, 31 insertions, 31 deletions
diff --git a/Library/Formula/asterisk.rb b/Library/Formula/asterisk.rb
index 44a6bf225..641772828 100644
--- a/Library/Formula/asterisk.rb
+++ b/Library/Formula/asterisk.rb
@@ -12,7 +12,7 @@ class Asterisk < Formula
def install
configure_flags = [ "--prefix=#{prefix}", "--localstatedir=#{var}", "--sysconfdir=#{etc}" ]
# Avoid "src/add.c:1: error: CPU you selected does not support x86-64 instruction set"
- configure_flags << "--host=x86_64-darwin" if snow_leopard_64?
+ configure_flags << "--host=x86_64-darwin" if MacOS.prefer_64_bit?
system "./configure", *configure_flags
system "make"
system "make install"
diff --git a/Library/Formula/bigloo.rb b/Library/Formula/bigloo.rb
index c5ced2e20..2e1d44d0d 100644
--- a/Library/Formula/bigloo.rb
+++ b/Library/Formula/bigloo.rb
@@ -18,7 +18,7 @@ class Bigloo < Formula
"--os-macosx" ]
# SRFI 27 is 32-bit only
- args << "--disable-srfi27" if snow_leopard_64?
+ args << "--disable-srfi27" if MacOS.prefer_64_bit?
system "./configure", *args
system "make"
diff --git a/Library/Formula/cantera.rb b/Library/Formula/cantera.rb
index 5c1293568..24bbc2e94 100644
--- a/Library/Formula/cantera.rb
+++ b/Library/Formula/cantera.rb
@@ -16,7 +16,7 @@ class Cantera < Formula
def install
- if snow_leopard_64?
+ if MacOS.prefer_64_bit?
# There is probably a better way to do this, but this seems to work for my purposes:
ENV['CFLAGS'] += " -arch x86_64"
ENV['CXX_OPT'] = "-arch x86_64"
diff --git a/Library/Formula/chicken.rb b/Library/Formula/chicken.rb
index fbe415e36..dbaa6a73c 100644
--- a/Library/Formula/chicken.rb
+++ b/Library/Formula/chicken.rb
@@ -9,7 +9,7 @@ class Chicken < Formula
def install
ENV.deparallelize
args = ["PREFIX=#{prefix}", "PLATFORM=macosx"]
- args << "ARCH=x86-64" if snow_leopard_64?
+ args << "ARCH=x86-64" if MacOS.prefer_64_bit?
system "make", *args
system "make", "install", *args
end
diff --git a/Library/Formula/clisp.rb b/Library/Formula/clisp.rb
index d90d1aa4c..7e4b870f3 100644
--- a/Library/Formula/clisp.rb
+++ b/Library/Formula/clisp.rb
@@ -17,7 +17,7 @@ class Clisp < Formula
# Clisp requires to select word size explicitly this way,
# set it in CFLAGS won't work.
- ENV['CC'] = "#{ENV.cc} -m#{snow_leopard_64? ? 64 : 32}"
+ ENV['CC'] = "#{ENV.cc} -m#{MacOS.prefer_64_bit? ? 64 : 32}"
system "./configure", "--prefix=#{prefix}",
"--with-readline=yes"
diff --git a/Library/Formula/cppdom.rb b/Library/Formula/cppdom.rb
index 06932ff4a..ef0035537 100644
--- a/Library/Formula/cppdom.rb
+++ b/Library/Formula/cppdom.rb
@@ -15,7 +15,7 @@ class Cppdom < Formula
args = ["prefix=#{prefix}", "build_test=no", "var_type=optimized",
"BoostBaseDir=#{HOMEBREW_PREFIX}/"]
- if snow_leopard_64?
+ if MacOS.prefer_64_bit?
args << 'var_arch=x64'
else
args << 'var_arch=ia32'
diff --git a/Library/Formula/dcmtk.rb b/Library/Formula/dcmtk.rb
index 54ab499e6..f63258ff5 100644
--- a/Library/Formula/dcmtk.rb
+++ b/Library/Formula/dcmtk.rb
@@ -14,7 +14,7 @@ class Dcmtk < Formula
def install
ENV.deparallelize
- ENV.m64 if snow_leopard_64?
+ ENV.m64 if MacOS.prefer_64_bit?
ENV.x11
system "./configure", "--disable-dependency-tracking", "--disable-debug",
"--prefix=#{prefix}",
diff --git a/Library/Formula/erlang.rb b/Library/Formula/erlang.rb
index a72c38c49..6e9201bc2 100644
--- a/Library/Formula/erlang.rb
+++ b/Library/Formula/erlang.rb
@@ -53,7 +53,7 @@ class Erlang < Formula
args << '--enable-hipe'
end
- args << "--enable-darwin-64bit" if snow_leopard_64?
+ args << "--enable-darwin-64bit" if MacOS.prefer_64_bit?
system "./configure", *args
system "touch lib/wx/SKIP" if MACOS_VERSION >= 10.6
diff --git a/Library/Formula/ffmpeg.rb b/Library/Formula/ffmpeg.rb
index e44c52665..166883f7b 100644
--- a/Library/Formula/ffmpeg.rb
+++ b/Library/Formula/ffmpeg.rb
@@ -46,7 +46,7 @@ class Ffmpeg < Formula
system "./configure", *args
- if snow_leopard_64?
+ if MacOS.prefer_64_bit?
inreplace 'config.mak' do |s|
shflags = s.get_make_var 'SHFLAGS'
s.change_make_var! 'SHFLAGS', shflags.gsub!(' -Wl,-read_only_relocs,suppress', '')
diff --git a/Library/Formula/gdal.rb b/Library/Formula/gdal.rb
index 0508b89c7..778076284 100644
--- a/Library/Formula/gdal.rb
+++ b/Library/Formula/gdal.rb
@@ -173,7 +173,7 @@ class Gdal < Formula
# `python-config` may try to talk us into building bindings for more
# architectures than we really should.
- if snow_leopard_64?
+ if MacOS.prefer_64_bit?
ENV.append_to_cflags '-arch x86_64'
else
ENV.append_to_cflags '-arch i386'
diff --git a/Library/Formula/gnu-smalltalk.rb b/Library/Formula/gnu-smalltalk.rb
index 5a23da382..a13735b84 100644
--- a/Library/Formula/gnu-smalltalk.rb
+++ b/Library/Formula/gnu-smalltalk.rb
@@ -25,7 +25,7 @@ class GnuSmalltalk < Formula
# 64-bit version doesn't build, so force 32 bits.
ENV.m32
- if snow_leopard_64? and Formula.factory('gdbm').installed?
+ if MacOS.prefer_64_bit? and Formula.factory('gdbm').installed?
onoe "A 64-bit gdbm will cause linker errors"
puts <<-EOS.undent
GNU Smalltak doesn't compile 64-bit clean on OS X, so having a
diff --git a/Library/Formula/hiredis.rb b/Library/Formula/hiredis.rb
index 5e84161a0..78593ba41 100644
--- a/Library/Formula/hiredis.rb
+++ b/Library/Formula/hiredis.rb
@@ -9,7 +9,7 @@ class Hiredis < Formula
def install
# Architecture isn't detected correctly on 32bit Snow Leopard without help
- ENV["OBJARCH"] = snow_leopard_64? ? "-arch x86_64" : "-arch i386"
+ ENV["OBJARCH"] = MacOS.prefer_64_bit? ? "-arch x86_64" : "-arch i386"
system "make PREFIX=#{prefix}"
system "make install PREFIX=#{prefix}"
diff --git a/Library/Formula/ical-buddy.rb b/Library/Formula/ical-buddy.rb
index 602769a0f..6220f090b 100644
--- a/Library/Formula/ical-buddy.rb
+++ b/Library/Formula/ical-buddy.rb
@@ -5,7 +5,7 @@ class IcalBuddy < Formula
head "http://hasseg.org/git-public/icalBuddy.git", :using => :git
def install
- arch = snow_leopard_64? ? "x86_64" : "i386"
+ arch = MacOS.prefer_64_bit? ? "x86_64" : "i386"
inreplace "Makefile", "-arch i386 -arch x86_64 -arch ppc", "-arch #{arch}"
system "make icalBuddy icalBuddy.1 icalBuddyLocalization.1 icalBuddyConfig.1"
diff --git a/Library/Formula/icu4c.rb b/Library/Formula/icu4c.rb
index a0ffa5754..f04cb29f7 100644
--- a/Library/Formula/icu4c.rb
+++ b/Library/Formula/icu4c.rb
@@ -15,7 +15,7 @@ class Icu4c < Formula
def install
ENV.append "LDFLAGS", "-headerpad_max_install_names"
config_flags = ["--prefix=#{prefix}", "--disable-samples", "--enable-static"]
- config_flags << "--with-library-bits=64" if snow_leopard_64?
+ config_flags << "--with-library-bits=64" if MacOS.prefer_64_bit?
Dir.chdir "source" do
system "./configure", *config_flags
system "make"
diff --git a/Library/Formula/mad.rb b/Library/Formula/mad.rb
index 6fad494f3..4ece44750 100644
--- a/Library/Formula/mad.rb
+++ b/Library/Formula/mad.rb
@@ -23,7 +23,7 @@ Cflags: -I${includedir}
end
def install
- fpm = snow_leopard_64? ? '64bit': 'intel'
+ fpm = MacOS.prefer_64_bit? ? '64bit': 'intel'
system "./configure", "--disable-debugging", "--enable-fpm=#{fpm}", "--prefix=#{prefix}"
# See: https://github.com/mxcl/homebrew/issues/issue/1263
diff --git a/Library/Formula/mpg123.rb b/Library/Formula/mpg123.rb
index 52058938b..ed30333db 100644
--- a/Library/Formula/mpg123.rb
+++ b/Library/Formula/mpg123.rb
@@ -17,7 +17,7 @@ class Mpg123 < Formula
"--with-audio=coreaudio",
"--with-default-audio=coreaudio"]
- if snow_leopard_64?
+ if MacOS.prefer_64_bit?
args << "--with-cpu=x86-64"
else
args << "--with-cpu=sse_alone"
diff --git a/Library/Formula/mz-scheme.rb b/Library/Formula/mz-scheme.rb
index 13d2b37a2..203a95895 100644
--- a/Library/Formula/mz-scheme.rb
+++ b/Library/Formula/mz-scheme.rb
@@ -12,7 +12,7 @@ class MzScheme < Formula
args = ["--disable-debug", "--disable-dependency-tracking",
"--disable-pthread", "--disable-mred", "--enable-xonx",
"--prefix=#{prefix}"]
- args << "--enable-mac64" if snow_leopard_64?
+ args << "--enable-mac64" if MacOS.prefer_64_bit?
system "./configure", *args
system "make"
diff --git a/Library/Formula/nspr.rb b/Library/Formula/nspr.rb
index e278867a9..9ab75df65 100644
--- a/Library/Formula/nspr.rb
+++ b/Library/Formula/nspr.rb
@@ -14,7 +14,7 @@ class Nspr < Formula
inreplace "pr/src/Makefile.in", "-framework CoreServices -framework CoreFoundation", target_frameworks
args = ["--prefix=#{prefix}", "--disable-debug", "--enable-strip", "--enable-optimize"]
- args << "--enable-64bit" if snow_leopard_64?
+ args << "--enable-64bit" if MacOS.prefer_64_bit?
system "./configure", *args
# Remove the broken (for anyone but Firefox) install_name
diff --git a/Library/Formula/plt-racket.rb b/Library/Formula/plt-racket.rb
index ecb900308..cb74556bc 100644
--- a/Library/Formula/plt-racket.rb
+++ b/Library/Formula/plt-racket.rb
@@ -16,7 +16,7 @@ class PltRacket < Formula
"--enable-shared",
"--prefix=#{prefix}" ]
- if snow_leopard_64?
+ if MacOS.prefer_64_bit?
args += ["--enable-mac64", "--enable-sgc", "--disable-gracket"]
end
diff --git a/Library/Formula/postgresql.rb b/Library/Formula/postgresql.rb
index ef86c1997..590d88dd5 100644
--- a/Library/Formula/postgresql.rb
+++ b/Library/Formula/postgresql.rb
@@ -39,7 +39,7 @@ class Postgresql < Formula
ENV.append 'LDFLAGS', `uuid-config --ldflags`.strip
ENV.append 'LIBS', `uuid-config --libs`.strip
- if snow_leopard_64? and not ARGV.include? '--no-python'
+ if MacOS.prefer_64_bit? and not ARGV.include? '--no-python'
args << "ARCHFLAGS='-arch x86_64'"
check_python_arch
end
@@ -116,7 +116,7 @@ And stop with:
pg_ctl -D #{var}/postgres stop -s -m fast
EOS
- if snow_leopard_64? then
+ if MacOS.prefer_64_bit? then
s << <<-EOS
If you want to install the postgres gem, including ARCHFLAGS is recommended:
diff --git a/Library/Formula/pypy.rb b/Library/Formula/pypy.rb
index 0e400c0b7..ace63b2c9 100644
--- a/Library/Formula/pypy.rb
+++ b/Library/Formula/pypy.rb
@@ -2,7 +2,7 @@ require 'formula'
require 'hardware'
class Pypy < Formula
- if snow_leopard_64?
+ if MacOS.prefer_64_bit?
url 'http://pypy.org/download/pypy-1.4.1-osx64.tar.bz2'
md5 '769b3fb134944ee8c22ad0834970de3b'
else
diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb
index a4e50b798..6f74b8fd8 100644
--- a/Library/Formula/qt.rb
+++ b/Library/Formula/qt.rb
@@ -64,11 +64,11 @@ class Qt < Formula
args << "-I#{Formula.factory('libpng').include}"
end
- if snow_leopard_64? or ARGV.include? '--universal'
+ if MacOS.prefer_64_bit? or ARGV.include? '--universal'
args << '-arch' << 'x86_64'
end
- if !snow_leopard_64? or ARGV.include? '--universal'
+ if !MacOS.prefer_64_bit? or ARGV.include? '--universal'
args << '-arch' << 'x86'
end
diff --git a/Library/Formula/redis.rb b/Library/Formula/redis.rb
index eaae8950a..602c52be7 100644
--- a/Library/Formula/redis.rb
+++ b/Library/Formula/redis.rb
@@ -10,7 +10,7 @@ class Redis < Formula
fails_with_llvm "Fails with \"reference out of range from _linenoise\""
# Architecture isn't detected correctly on 32bit Snow Leopard without help
- ENV["OBJARCH"] = snow_leopard_64? ? "-arch x86_64" : "-arch i386"
+ ENV["OBJARCH"] = MacOS.prefer_64_bit? ? "-arch x86_64" : "-arch i386"
# Head and stable have different code layouts
src = File.exists?('src/Makefile') ? 'src' : '.'
diff --git a/Library/Formula/rrdtool.rb b/Library/Formula/rrdtool.rb
index 1e0bfbc10..380b26606 100644
--- a/Library/Formula/rrdtool.rb
+++ b/Library/Formula/rrdtool.rb
@@ -39,7 +39,7 @@ class Rrdtool < Formula
system "./configure", *args
# Needed to build proper Ruby bundle
- ENV["ARCHFLAGS"] = snow_leopard_64? ? "-arch x86_64" : "-arch i386"
+ ENV["ARCHFLAGS"] = MacOS.prefer_64_bit? ? "-arch x86_64" : "-arch i386"
system "make install"
prefix.install "bindings/ruby/test.rb"
diff --git a/Library/Formula/ruby-odbc.rb b/Library/Formula/ruby-odbc.rb
index e20217c18..088edb3cd 100644
--- a/Library/Formula/ruby-odbc.rb
+++ b/Library/Formula/ruby-odbc.rb
@@ -19,7 +19,7 @@ class RubyOdbc < Formula
s.change_make_var! "prefix", prefix
s.change_make_var! "sitearchdir", lib
- if snow_leopard_64?
+ if MacOS.prefer_64_bit?
# ruby-odbc still chooses iODBC over unixODBC (even with --with-odbc-dir)
# apparently because unixODBC is compiled for only x86_64 and ruby-odbc
# and iODBC are both i386 and x86_64. The solution (which works for me on Snow Leopard)
diff --git a/Library/Formula/tbb.rb b/Library/Formula/tbb.rb
index 2d0882986..a3f4c171d 100644
--- a/Library/Formula/tbb.rb
+++ b/Library/Formula/tbb.rb
@@ -10,7 +10,7 @@ class Tbb < Formula
# Override build prefix so we can copy the dylibs out of the same place
# no matter what system we're on
args = ['tbb_build_prefix=BUILDPREFIX']
- args << (snow_leopard_64? ? "arch=intel64" : "arch=ia32")
+ args << (MacOS.prefer_64_bit? ? "arch=intel64" : "arch=ia32")
system "make", *args
lib.install Dir['build/BUILDPREFIX_release/*.dylib']
diff --git a/Library/Formula/valgrind.rb b/Library/Formula/valgrind.rb
index 193bf30ae..c56711f90 100644
--- a/Library/Formula/valgrind.rb
+++ b/Library/Formula/valgrind.rb
@@ -16,7 +16,7 @@ class Valgrind < Formula
system "./autogen.sh" if File.exists? "autogen.sh"
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
- if snow_leopard_64?
+ if MacOS.prefer_64_bit?
args << "--enable-only64bit" << "--build=amd64-darwin"
end
diff --git a/Library/Formula/virtuoso.rb b/Library/Formula/virtuoso.rb
index d361b01d9..a3df8e61d 100644
--- a/Library/Formula/virtuoso.rb
+++ b/Library/Formula/virtuoso.rb
@@ -11,7 +11,7 @@ class Virtuoso < Formula
skip_clean :all
def install
- ENV.m64 if snow_leopard_64?
+ ENV.m64 if MacOS.prefer_64_bit?
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
diff --git a/Library/Formula/x264.rb b/Library/Formula/x264.rb
index b91914942..e0d61aaa9 100644
--- a/Library/Formula/x264.rb
+++ b/Library/Formula/x264.rb
@@ -21,7 +21,7 @@ class X264 < Formula
ldflags = s.get_make_var 'LDFLAGS'
s.change_make_var! 'LDFLAGS', ldflags.gsub!(' -s', '')
- if snow_leopard_64?
+ if MacOS.prefer_64_bit?
soflags = s.get_make_var 'SOFLAGS'
s.change_make_var! 'SOFLAGS', soflags.gsub!(' -Wl,-read_only_relocs,suppress', '')
end