From 3c6e426ece81f2c18488d6c84cc82f6851375c25 Mon Sep 17 00:00:00 2001 From: Todd Persen Date: Sun, 16 Nov 2014 20:01:24 -0500 Subject: [PATCH] influxdb 0.8.6 Closes Homebrew/homebrew#34245. Signed-off-by: Mike McQuaid --- Formula/influxdb.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Formula/influxdb.rb b/Formula/influxdb.rb index 4d3662aa4a..6966445bef 100644 --- a/Formula/influxdb.rb +++ b/Formula/influxdb.rb @@ -2,8 +2,8 @@ require "formula" class Influxdb < Formula homepage "http://influxdb.com" - url "https://s3.amazonaws.com/get.influxdb.org/influxdb-0.8.5.src.tar.gz" - sha1 "bbb361db2e54686c90cbf5ec253d1a89c170ca75" + url "https://s3.amazonaws.com/get.influxdb.org/influxdb-0.8.6.src.tar.gz" + sha1 "9668d1a457ffe6bac7dc78c5bc0771428e50f119" bottle do sha1 "4b6fa7d8ba82b2bcc30ca10689786785f1b0070e" => :yosemite @@ -19,6 +19,7 @@ class Influxdb < Formula depends_on "flex" => :build depends_on "go" => :build depends_on "gawk" => :build + depends_on :hg => :build def install ENV["GOPATH"] = buildpath @@ -27,7 +28,11 @@ class Influxdb < Formula flex = Formula["flex"].bin/"flex" bison = Formula["bison"].bin/"bison" - system "./configure", "--with-flex=#{flex}", "--with-bison=#{bison}" + inreplace "configure" do |s| + s.gsub! "echo -n", "$as_echo_n" + end + + system "./configure", "--with-flex=#{flex}", "--with-bison=#{bison}", "--with-rocksdb" system "make", "parser", "protobuf" system "go", "build", "-tags", "rocksdb", "-o", "influxdb", "github.com/influxdb/influxdb/daemon"