39bce86725
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
31 lines
836 B
Ruby
31 lines
836 B
Ruby
require 'formula'
|
|
|
|
class RabbitmqCodegen < Formula
|
|
url 'http://github.com/rabbitmq/rabbitmq-codegen/tarball/rabbitmq_v3_0_1'
|
|
sha1 '463ec8983f9078df4c7eef504a2d8daef59f3503'
|
|
end
|
|
|
|
class RabbitmqC < Formula
|
|
homepage 'https://github.com/alanxz/rabbitmq-c'
|
|
url 'https://github.com/alanxz/rabbitmq-c/archive/0.2.zip'
|
|
sha1 'fe9f00b52970505223acf01008a12fa911549425'
|
|
|
|
head 'https://github.com/alanxz/rabbitmq-c.git'
|
|
|
|
depends_on :autoconf
|
|
depends_on 'rabbitmq'
|
|
depends_on 'simplejson' => :python if MacOS.version == :leopard
|
|
|
|
option :universal
|
|
|
|
def install
|
|
ENV.universal_binary if build.universal?
|
|
|
|
RabbitmqCodegen.new.brew { (buildpath/"codegen").install Dir["*"] }
|
|
|
|
system "autoreconf", "-i"
|
|
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
|
|
system "make install"
|
|
end
|
|
|
|
end
|