2011-02-20 08:57:28 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Hiredis < Formula
|
2011-02-20 08:57:28 +00:00
|
|
|
homepage 'https://github.com/antirez/hiredis'
|
2012-03-11 21:39:02 +00:00
|
|
|
url 'https://github.com/antirez/hiredis/tarball/v0.10.0'
|
2011-05-16 00:49:22 +00:00
|
|
|
sha1 'a54dd2b31cb39bc05bf88538c688bf50f8c6c9c7'
|
2012-03-11 21:39:02 +00:00
|
|
|
head 'https://github.com/antirez/hiredis.git'
|
2011-02-20 08:57:28 +00:00
|
|
|
|
|
|
|
def install
|
2011-03-07 00:27:21 +00:00
|
|
|
# Architecture isn't detected correctly on 32bit Snow Leopard without help
|
2011-03-18 17:30:47 +00:00
|
|
|
ENV["OBJARCH"] = MacOS.prefer_64_bit? ? "-arch x86_64" : "-arch i386"
|
2011-03-07 00:27:21 +00:00
|
|
|
|
2011-02-20 08:57:28 +00:00
|
|
|
system "make PREFIX=#{prefix}"
|
|
|
|
system "make install PREFIX=#{prefix}"
|
|
|
|
end
|
|
|
|
end
|