blob: 2eb01e2424638d1542d10b6e7777cf53a6949867 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
require 'formula'
class RabbitmqC < Formula
homepage 'https://github.com/alanxz/rabbitmq-c'
url 'https://github.com/alanxz/rabbitmq-c/archive/v0.4.1.tar.gz'
sha1 '97ceb4039ca5a71b73b417bc7257e263ea1e2f4d'
head 'https://github.com/alanxz/rabbitmq-c.git'
option :universal
depends_on 'pkg-config' => :build
depends_on 'autoconf' => :build # Use a newer version on Snow Leopard too
depends_on 'automake' => :build
depends_on :libtool
depends_on 'rabbitmq'
depends_on 'simplejson' => :python if MacOS.version <= :leopard
resource 'codegen' do
url 'https://github.com/rabbitmq/rabbitmq-codegen/archive/rabbitmq_v3_2_1.tar.gz'
sha1 '9fb2453018f499b2188076f5bd6d4cf9a902e90b'
end
def install
ENV.universal_binary if build.universal?
(buildpath/'codegen').install resource('codegen')
system "autoreconf", "-i"
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
system "make install"
end
end
|