diff options
| author | Wesley Mason | 2012-07-16 23:14:58 +0100 |
|---|---|---|
| committer | Jack Nagel | 2012-10-01 22:33:28 -0500 |
| commit | 5cbd0ebd58790a994c40ce4178c6cda089c5319a (patch) | |
| tree | 505d64514da797d041ed90fd4a65ec289af3e300 /Library | |
| parent | 16e0b6cc9571442c1c6a54b1a25f27493d9ca3b3 (diff) | |
| download | homebrew-5cbd0ebd58790a994c40ce4178c6cda089c5319a.tar.bz2 | |
New formula: rabbitmq-c
RabbitMQ C library formula and dependencies, including the
rabbitmq-codegen library required to build.
Closes #13437.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/rabbitmq-c.rb | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/rabbitmq-c.rb b/Library/Formula/rabbitmq-c.rb new file mode 100644 index 000000000..6ba9d2025 --- /dev/null +++ b/Library/Formula/rabbitmq-c.rb @@ -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 |
