diff options
| author | Bulat Shakirzyanov | 2013-11-08 17:13:19 -0800 |
|---|---|---|
| committer | Mike McQuaid | 2014-06-27 17:02:04 +0100 |
| commit | bd5faea3f097e29a1d3dba942b4414fd0f4e15fb (patch) | |
| tree | f1edfc768d38881ac626ed668c83e04987d984b7 /Library/Formula/mesos.rb | |
| parent | 190d97ea9abd7e4c205a73bd44a6a9f814f1a6bf (diff) | |
| download | homebrew-bd5faea3f097e29a1d3dba942b4414fd0f4e15fb.tar.bz2 | |
mesos 0.19.0 (new formula)
Diffstat (limited to 'Library/Formula/mesos.rb')
| -rw-r--r-- | Library/Formula/mesos.rb | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Library/Formula/mesos.rb b/Library/Formula/mesos.rb new file mode 100644 index 000000000..97a729031 --- /dev/null +++ b/Library/Formula/mesos.rb @@ -0,0 +1,42 @@ +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 "maven" => :build + + def install + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}" + + system "make" + system "make", "install" + end + + test do + system "#{sbin}/mesos-master", "--version" + end +end |
