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:
parent
d9fab7fb21
commit
266172afdd
1 changed files with 21 additions and 0 deletions
21
Formula/rabbitmq.rb
Normal file
21
Formula/rabbitmq.rb
Normal 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
|
Loading…
Reference in a new issue