aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/hiredis.rb
blob: 78593ba41df73025083a7e6571d4b27702e6026f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'formula'

class Hiredis < Formula
  url 'https://github.com/antirez/hiredis/tarball/v0.9.2'
  head 'git://github.com/antirez/hiredis.git'
  homepage 'https://github.com/antirez/hiredis'
  version '0.9.2'
  sha1 '2a258b2bc56958144307df13a5ecf6692c637ee3'

  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