2012-07-16 22:14:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class RabbitmqC < Formula
|
|
|
|
homepage 'https://github.com/alanxz/rabbitmq-c'
|
2013-09-16 22:05:52 +00:00
|
|
|
url 'https://github.com/alanxz/rabbitmq-c/archive/v0.4.1.tar.gz'
|
|
|
|
sha1 '97ceb4039ca5a71b73b417bc7257e263ea1e2f4d'
|
2012-07-16 22:14:58 +00:00
|
|
|
|
|
|
|
head 'https://github.com/alanxz/rabbitmq-c.git'
|
|
|
|
|
2013-06-05 20:19:27 +00:00
|
|
|
option :universal
|
|
|
|
|
2013-08-16 23:46:19 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'autoconf' => :build # Use a newer version on Snow Leoaprd too
|
|
|
|
depends_on 'automake' => :build
|
2013-02-15 09:13:05 +00:00
|
|
|
depends_on :libtool
|
2012-07-16 22:14:58 +00:00
|
|
|
depends_on 'rabbitmq'
|
2013-07-10 02:30:15 +00:00
|
|
|
depends_on 'simplejson' => :python if MacOS.version <= :leopard
|
2012-07-16 22:14:58 +00:00
|
|
|
|
2013-08-07 04:04:48 +00:00
|
|
|
resource 'codegen' do
|
|
|
|
url 'https://github.com/rabbitmq/rabbitmq-codegen/archive/rabbitmq_v3_1_5.tar.gz'
|
|
|
|
sha1 '08b0415364e517e033e83c0b033820b62713a0bf'
|
|
|
|
end
|
|
|
|
|
2012-07-16 22:14:58 +00:00
|
|
|
def install
|
|
|
|
ENV.universal_binary if build.universal?
|
2013-08-07 04:04:48 +00:00
|
|
|
(buildpath/'codegen').install resource('codegen')
|
2012-07-16 22:14:58 +00:00
|
|
|
system "autoreconf", "-i"
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|