aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2014-07-21 02:17:12 -0700
committerMike McQuaid2014-07-21 19:14:15 +0100
commit79662e0d34da1812493fe7b35cbb8b92c7affd83 (patch)
tree7ec94d80f07ce88e894ce4fdad689927ef9f2170
parenta09e10ae99eeb964c1ada35e132204e3577069f1 (diff)
downloadhomebrew-79662e0d34da1812493fe7b35cbb8b92c7affd83.tar.bz2
mesos: use JavaDependency.
-rw-r--r--Library/Formula/mesos.rb19
1 files changed, 1 insertions, 18 deletions
diff --git a/Library/Formula/mesos.rb b/Library/Formula/mesos.rb
index 1be6169d3..fa8802599 100644
--- a/Library/Formula/mesos.rb
+++ b/Library/Formula/mesos.rb
@@ -1,29 +1,12 @@
require "formula"
-class Java7Requirement < Requirement
- fatal true
-
- satisfy :build_env => false do
- system "/usr/libexec/java_home", "-v", "1.7"
- end
-
- def message; <<-EOS.undent
- Couldn't locate JDK7, here is how to fix it:
-
- 1. Download and install JDK7 from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
- 2. Verify that it has been installed by running `/usr/libexec/java_home -v 1.7`
- 3. Re-run `brew install mesos`
- EOS
- end
-end
-
class Mesos < Formula
homepage "http://mesos.apache.org"
version "0.19.0"
url "http://mirror.cogentco.com/pub/apache/mesos/0.19.0/mesos-0.19.0.tar.gz"
sha1 "68d898e089a6b806fc88e0b1840f2dc4068cb5fe"
- depends_on Java7Requirement
+ depends_on :java => "1.7"
depends_on "maven" => :build
def install