homebrew-core/Formula/hornetq.rb
Reid Morrison 97ebd90e38 HornetQ 2.3.0 Final
Closes Homebrew/homebrew#21327.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-07-19 08:22:12 -07:00

31 lines
728 B
Ruby

require 'formula'
class Hornetq < Formula
homepage 'http://www.jboss.org/hornetq'
url 'http://downloads.jboss.org/hornetq/hornetq-2.3.0.Final-bin.tar.gz'
version '2.3.0'
sha1 '0afe0eb5b77732d1a7da73621d353f736a26899d'
def wrapper_script target
<<-EOS.undent
#!/bin/bash
cd #{libexec}/bin/
./#{target} "$@"
EOS
end
def install
libexec.install Dir['*']
(bin+'hornet-start').write wrapper_script('run.sh')
(bin+'hornet-stop').write wrapper_script('stop.sh')
end
def caveats; <<-EOF.undent
HornetQ has been installed to:
#{libexec}
`run.sh` and `stop.sh` have been wrapped as`hornet-start` and `hornet-stop`
to avoid naming conflicts.
EOF
end
end