New formula: rabbitmq-c

RabbitMQ C library formula and dependencies, including the
rabbitmq-codegen library required to build.

Closes Homebrew/homebrew#13437.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Wesley Mason 2012-07-16 23:14:58 +01:00 committed by Jack Nagel
parent f6ce6263f1
commit 75260ed165
1 changed files with 31 additions and 0 deletions

31
Formula/rabbitmq-c.rb Normal file
View File

@ -0,0 +1,31 @@
require 'formula'
class RabbitmqCodegen < Formula
url 'http://github.com/rabbitmq/rabbitmq-codegen/tarball/rabbitmq_v2_8_2'
sha1 '628afefe54f6996f7c99ac8c9d5820c5ed2aeaa7'
end
class RabbitmqC < Formula
homepage 'https://github.com/alanxz/rabbitmq-c'
url 'https://github.com/alanxz/rabbitmq-c/tarball/v0.1'
sha1 '57a1f3e69c36d5766df4b3a567552743b12a91d3'
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