aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/activemq.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/Library/Formula/activemq.rb b/Library/Formula/activemq.rb
index fd4e21399..c212752e4 100644
--- a/Library/Formula/activemq.rb
+++ b/Library/Formula/activemq.rb
@@ -1,9 +1,9 @@
-require "formula"
-
class Activemq < Formula
homepage "http://activemq.apache.org/"
- url "http://www.apache.org/dyn/closer.cgi?path=/activemq/5.10.2/apache-activemq-5.10.2-bin.tar.gz"
- sha1 "7b5d797abf6d6767d2f5a17935d8cac829d230cd"
+ 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+"
def install
rm_rf Dir["bin/linux-x86-*"]
@@ -14,4 +14,9 @@ class Activemq < Formula
bin.write_exec_script libexec/"bin/activemq"
bin.write_exec_script libexec/"bin/activemq-admin"
end
+
+ test do
+ ENV["JAVA_HOME"] = `/usr/libexec/java_home`.chomp
+ system "#{bin}/activemq-admin", "browse", "-h"
+ end
end