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'
|
2013-03-29 01:03:20 +00:00
|
|
|
url 'https://github.com/redis/hiredis/archive/v0.11.0.tar.gz'
|
|
|
|
sha1 '694b6d7a6e4ea7fb20902619e9a2423c014b37c1'
|
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
|