homebrew-core/Formula/rabbitmq.rb
Ask Solem 266172afdd 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.
2009-09-30 01:24:49 +01:00

21 lines
504 B
Ruby

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