homebrew-core/Formula/hiredis.rb
2011-03-18 10:30:47 -07:00

17 lines
520 B
Ruby

require 'formula'
class Hiredis < Formula
url 'https://github.com/antirez/hiredis/tarball/v0.9.2'
head 'git://github.com/antirez/hiredis.git'
homepage 'https://github.com/antirez/hiredis'
version '0.9.2'
sha1 '2a258b2bc56958144307df13a5ecf6692c637ee3'
def install
# Architecture isn't detected correctly on 32bit Snow Leopard without help
ENV["OBJARCH"] = MacOS.prefer_64_bit? ? "-arch x86_64" : "-arch i386"
system "make PREFIX=#{prefix}"
system "make install PREFIX=#{prefix}"
end
end