homebrew-core/Formula/hiredis.rb
2012-03-11 14:39:02 -07:00

16 lines
505 B
Ruby

require 'formula'
class Hiredis < Formula
homepage 'https://github.com/antirez/hiredis'
url 'https://github.com/antirez/hiredis/tarball/v0.10.0'
sha1 'a54dd2b31cb39bc05bf88538c688bf50f8c6c9c7'
head 'https://github.com/antirez/hiredis.git'
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