supersonic: use protobuf@3.1

Closes #37542.

Signed-off-by: Chongyu Zhu <i@lembacon.com>
This commit is contained in:
Chongyu Zhu 2019-03-04 01:17:04 +08:00
parent 4df203ec8d
commit e810142d70
No known key found for this signature in database
GPG key ID: 1A43E3C9100B38F5

View file

@ -3,7 +3,7 @@ class Supersonic < Formula
homepage "https://code.google.com/archive/p/supersonic/"
url "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/supersonic/supersonic-0.9.4.tar.gz"
sha256 "1592dfd2dc73f0b97298e0d25e51528dc9a94e9e7f4ab525569f63db0442d769"
revision 9
revision 10
bottle do
cellar :any
@ -17,7 +17,7 @@ class Supersonic < Formula
depends_on "boost"
depends_on "gflags"
depends_on "glog"
depends_on "protobuf"
depends_on "protobuf@3.1"
def install
ENV.cxx11
@ -107,7 +107,8 @@ class Supersonic < Formula
EOS
system ENV.cxx, "test.cpp", "-std=c++1y", "-stdlib=libc++", "-L#{lib}", "-lsupersonic",
"-L#{Formula["glog"].opt_lib}", "-lglog",
"-L#{Formula["protobuf"].opt_lib}", "-lprotobuf",
"-I#{Formula["protobuf@3.1"].opt_include}",
"-L#{Formula["protobuf@3.1"].opt_lib}", "-lprotobuf",
"-L#{Formula["boost"].opt_lib}", "-lboost_system", "-o", "test"
system "./test"
end