Skip to content

Commit

Permalink
mesos 0.24.0
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#44137.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
haosdent authored and MikeMcQuaid committed Sep 25, 2015
1 parent 0ca9740 commit 5dc3f5b
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions Formula/mesos.rb
@@ -1,9 +1,9 @@
class Mesos < Formula
desc "Apache cluster manager"
homepage "https://mesos.apache.org"
url "https://www.apache.org/dyn/closer.cgi?path=mesos/0.23.0/mesos-0.23.0.tar.gz"
mirror "https://archive.apache.org/dist/mesos/0.23.0/mesos-0.23.0.tar.gz"
sha256 "b967355ec1f7cf9ffcef76b58939ed48dd4975ea90d1c976669b50c589bdbdec"
url "https://www.apache.org/dyn/closer.cgi?path=mesos/0.24.0/mesos-0.24.0.tar.gz"
mirror "https://archive.apache.org/dist/mesos/0.24.0/mesos-0.24.0.tar.gz"
sha256 "6b8cfd723760d336f2aae543b0cfcea230c0d0247fed44876665578c06f983c4"

bottle do
sha256 "717f73125b020b89e545384a3e5c1fbf2c36647b365fb181423954b9ceaa7b5d" => :yosemite
Expand Down Expand Up @@ -56,6 +56,9 @@ class Mesos < Formula
needs :cxx11

def install
# Set _JAVA_OPTIONS to make mesos java plugins compile success in Homebrew sandbox.
ENV["_JAVA_OPTIONS"] = "-Duser.home=#{buildpath}/.brew_home"

boto_path = libexec/"boto/lib/python2.7/site-packages"
ENV.prepend_create_path "PYTHONPATH", boto_path
resource("boto").stage do
Expand All @@ -77,6 +80,19 @@ def install
"import ext_modules",
native_patch

# skip build javadoc because Homebrew sandbox set _JAVA_OPTIONS would
# trigger maven-javadoc-plugin bug.
# https://issues.apache.org/jira/browse/MESOS-3482
maven_javadoc_patch = <<-EOS.undent
<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>
\\0
EOS
inreplace "src/java/mesos.pom.in",
"<url>http://mesos.apache.org</url>",
maven_javadoc_patch

args = ["--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
Expand All @@ -95,7 +111,7 @@ def install
system "make", "install"

system "./configure", "--enable-python", *args
["native", "interface", ""].each do |p|
["native", "interface", "cli", ""].each do |p|
cd "src/python/#{p}" do
system "python", *Language::Python.setup_install_args(prefix)
end
Expand All @@ -117,8 +133,6 @@ def install
end
pth_contents = "import site; site.addsitedir('#{protobuf_path}')\n"
(lib/"python2.7/site-packages/homebrew-mesos-protobuf.pth").write pth_contents

(share/"mesos").install "ec2"
end

test do
Expand Down

0 comments on commit 5dc3f5b

Please sign in to comment.