homebrew-core/Formula/hiredis.rb
Misty De Meo 98e050bd6c Add MacOS.preferred_arch
Replaced the plethora of ternaries we've used all over the place to
determine whether x86_64 or i386 is called for.
2013-08-15 22:46:56 -07:00

14 lines
410 B
Ruby

require 'formula'
class Hiredis < Formula
homepage 'https://github.com/redis/hiredis'
url 'https://github.com/redis/hiredis/archive/v0.11.0.tar.gz'
sha1 '694b6d7a6e4ea7fb20902619e9a2423c014b37c1'
def install
# Architecture isn't detected correctly on 32bit Snow Leopard without help
ENV["OBJARCH"] = "-arch #{MacOS.preferred_arch}"
system "make", "install", "PREFIX=#{prefix}"
end
end