mesos: don't use internal zookeeper on Yosemite.

Closes Homebrew/homebrew#32965.
This commit is contained in:
Dominyk Tiller 2014-10-07 05:08:27 +01:00 committed by Mike McQuaid
parent 51634ce479
commit 4f9baaa58a

View file

@ -12,15 +12,23 @@ class Mesos < Formula
depends_on :java => "1.7"
depends_on :macos => :mountain_lion
depends_on "maven" => :build
# Use our Zookeeper for Yosemite and not the one shipped with Mesos
# Remove with next release.
# See https://github.com/Homebrew/homebrew/issues/32965
depends_on "zookeeper" if MacOS.version == :yosemite
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
args = ["--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-silent-rules"
]
args << "--with-zookeeper=#{Formula["zookeeper"].opt_prefix}" if MacOS.version == :yosemite
system "./configure", *args
system "make"
system "make", "install"
end