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-06-27 09:11:50 +00:00
|
|
|
url 'https://github.com/antirez/hiredis/tarball/v0.10.1'
|
|
|
|
sha1 '3a16d7ac39f5a3a96a3fb08732a9af45e275a3b8'
|
2012-04-03 18:11:13 +00:00
|
|
|
|
2012-03-11 21:39:02 +00:00
|
|
|
head 'https://github.com/antirez/hiredis.git'
|
2011-02-20 08:57:28 +00:00
|
|
|
|
2012-04-03 18:10:36 +00:00
|
|
|
fails_with :clang do
|
2012-08-02 15:47:08 +00:00
|
|
|
build 421
|
2012-04-03 18:10:36 +00:00
|
|
|
cause <<-EOS.undent
|
|
|
|
argument to 'va_arg' is of incomplete type 'void'
|
|
|
|
This is fixed in HEAD, and can be removed for the next release.
|
|
|
|
EOS
|
|
|
|
end unless ARGV.build_head?
|
|
|
|
|
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
|