2011-02-20 08:57:28 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Hiredis < Formula
|
2012-10-19 10:05:56 +00:00
|
|
|
homepage 'https://github.com/redis/hiredis'
|
|
|
|
url 'https://github.com/redis/hiredis/tarball/v0.11.0'
|
|
|
|
sha1 '26eb4459943530b4be66fd253c5c8f4dd86c2fa3'
|
2012-04-03 18:10:36 +00:00
|
|
|
|
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
|
|
|
|
2012-04-03 18:11:13 +00:00
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
2011-02-20 08:57:28 +00:00
|
|
|
end
|
|
|
|
end
|