RabbitMQ formula

RabbitMQ is a complete and highly reliable Enterprise Messaging system based
on the emerging AMQP standard.

Signed-off-by: Max Howell <max@methylblue.com>

I left this one for ages as I wasn't sure about the erlang_libdir bit. I changed it in the end. But maybe it doesn't work. Someone will have to verify.

If erlang needs to look in a certain dir for plugins, we need to make sure it looks in the HOMEBREW_PREFIX dir and not further up, ie. its prefix in the Cellar. Same for any plugin system.
This commit is contained in:
Ask Solem 2009-09-01 17:01:20 +02:00 committed by Max Howell
parent d9fab7fb21
commit 266172afdd

21
Formula/rabbitmq.rb Normal file
View file

@ -0,0 +1,21 @@
require 'brewkit'
class Rabbitmq <Formula
@homepage='http://rabbitmq.com'
@url='http://www.rabbitmq.com/releases/rabbitmq-server/v1.6.0/rabbitmq-server-1.6.0.tar.gz'
@md5='af3b0d868d58e5aefb4f0837b82ca010'
depends_on 'erlang'
def erlang_libdir
prefix + "lib" + "erlang" + "lib"
end
def install
system "make"
system "TARGET_DIR=#{erlang_libdir}/rabbitmq-#{version} \
MAN_DIR=#{man} \
SBIN_DIR=#{sbin} \
make install"
end
end