homebrew-core/Formula/activemq.rb

22 lines
631 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Activemq < Formula
2014-07-20 21:33:12 +00:00
homepage "http://activemq.apache.org/"
url "http://www.apache.org/dyn/closer.cgi?path=/activemq/5.11.1/apache-activemq-5.11.1-bin.tar.gz"
sha1 "db4310f037af4a430abfdddf18c2df4082a34340"
depends_on :java => "1.6+"
2010-07-09 22:34:49 +00:00
def install
2014-07-20 21:33:12 +00:00
rm_rf Dir["bin/linux-x86-*"]
2010-07-09 22:34:49 +00:00
2012-11-11 19:20:09 +00:00
prefix.install_metafiles
2014-07-20 21:33:12 +00:00
libexec.install Dir["*"]
(bin/"activemq").write_env_script libexec/"bin/activemq", :JAVA_HOME => ENV["JAVA_HOME"]
(bin/"activemq-admin").write_env_script libexec/"bin/activemq-admin", :JAVA_HOME => ENV["JAVA_HOME"]
end
test do
system "#{bin}/activemq-admin", "browse", "-h"
end
end