protobuf 3.2.0
This commit is contained in:
parent
3dafe5e4ea
commit
fb8279c173
1 changed files with 26 additions and 25 deletions
|
@ -1,8 +1,8 @@
|
|||
class Protobuf < Formula
|
||||
desc "Protocol buffers (Google's data interchange format)"
|
||||
homepage "https://github.com/google/protobuf/"
|
||||
url "https://github.com/google/protobuf/archive/v3.1.0.tar.gz"
|
||||
sha256 "0a0ae63cbffc274efb573bdde9a253e3f32e458c41261df51c5dbc5ad541e8f7"
|
||||
url "https://github.com/google/protobuf/archive/v3.2.0.tar.gz"
|
||||
sha256 "2a25c2b71c707c5552ec9afdfb22532a93a339e1ca5d38f163fe4107af08c54c"
|
||||
head "https://github.com/google/protobuf.git"
|
||||
|
||||
bottle do
|
||||
|
@ -14,8 +14,6 @@ class Protobuf < Formula
|
|||
# this will double the build time approximately if enabled
|
||||
option "with-test", "Run build-time check"
|
||||
option "without-python", "Build without python support"
|
||||
option :universal
|
||||
option :cxx11
|
||||
|
||||
deprecated_option "with-check" => "with-test"
|
||||
|
||||
|
@ -24,33 +22,33 @@ class Protobuf < Formula
|
|||
depends_on "libtool" => :build
|
||||
depends_on :python => :recommended if MacOS.version <= :snow_leopard
|
||||
|
||||
resource "setuptools" do
|
||||
url "https://pypi.python.org/packages/df/c3/4265eb901f9db8c0ea5bdfb344084d85bc96c1a9b883f70430254b5491f6/setuptools-26.1.0.tar.gz"
|
||||
sha256 "64a2f7676cd026b64e46d179ed26b365e2f92f26c7fe04228ddd86d0436b797f"
|
||||
resource "appdirs" do
|
||||
url "https://files.pythonhosted.org/packages/bd/66/0a7f48a0f3fb1d3a4072bceb5bbd78b1a6de4d801fb7135578e7c7b1f563/appdirs-1.4.0.tar.gz"
|
||||
sha256 "8fc245efb4387a4e3e0ac8ebcc704582df7d72ff6a42a53f5600bbb18fdaadc5"
|
||||
end
|
||||
|
||||
resource "packaging" do
|
||||
url "https://files.pythonhosted.org/packages/c6/70/bb32913de251017e266c5114d0a645f262fb10ebc9bf6de894966d124e35/packaging-16.8.tar.gz"
|
||||
sha256 "5d50835fdf0a7edf0b55e311b7c887786504efea1177abd7e69329a8e5ea619e"
|
||||
end
|
||||
|
||||
resource "pyparsing" do
|
||||
url "https://files.pythonhosted.org/packages/38/bb/bf325351dd8ab6eb3c3b7c07c3978f38b2103e2ab48d59726916907cd6fb/pyparsing-2.1.10.tar.gz"
|
||||
sha256 "811c3e7b0031021137fc83e051795025fcb98674d07eb8fe922ba4de53d39188"
|
||||
end
|
||||
|
||||
resource "six" do
|
||||
url "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz"
|
||||
url "https://files.pythonhosted.org/packages/b3/b2/238e2590826bfdd113244a40d9d3eb26918bd798fc187e2360a8367068db/six-1.10.0.tar.gz"
|
||||
sha256 "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a"
|
||||
end
|
||||
|
||||
resource "python-dateutil" do
|
||||
url "https://pypi.python.org/packages/3e/f5/aad82824b369332a676a90a8c0d1e608b17e740bbb6aeeebca726f17b902/python-dateutil-2.5.3.tar.gz"
|
||||
sha256 "1408fdb07c6a1fa9997567ce3fcee6a337b39a503d80699e0f213de4aa4b32ed"
|
||||
end
|
||||
|
||||
resource "pytz" do
|
||||
url "https://pypi.python.org/packages/f7/c7/08e54702c74baf9d8f92d0bc331ecabf6d66a56f6d36370f0a672fc6a535/pytz-2016.6.1.tar.bz2"
|
||||
sha256 "b5aff44126cf828537581e534cc94299b223b945a2bb3b5434d37bf8c7f3a10c"
|
||||
end
|
||||
|
||||
resource "python-gflags" do
|
||||
url "https://pypi.python.org/packages/91/97/84778286b3a1c0d52533a35a0b70a477050df2b83229f56e99c7a0f2d9d6/python-gflags-3.0.6.tar.gz"
|
||||
sha256 "e904b251cb1d70ddd3a1fd152bd4b3674a95981dcac497450efd1311ff2b9b5a"
|
||||
resource "setuptools" do
|
||||
url "https://files.pythonhosted.org/packages/e3/6b/bb793ca610f364d1888b9bd7b83dccd0c27d779e4fd91a953ce8bae74996/setuptools-34.0.2.zip"
|
||||
sha256 "a5bdc45a3c123a88c84e089a789ba70bbc61ee888c1306fd9dac04e037e81c37"
|
||||
end
|
||||
|
||||
resource "google-apputils" do
|
||||
url "https://pypi.python.org/packages/source/g/google-apputils/google-apputils-0.4.2.tar.gz"
|
||||
url "https://files.pythonhosted.org/packages/69/66/a511c428fef8591c5adfa432a257a333e0d14184b6c5d03f1450827f7fe7/google-apputils-0.4.2.tar.gz"
|
||||
sha256 "47959d0651c32102c10ad919b8a0ffe0ae85f44b8457ddcf2bdc0358fb03dc29"
|
||||
end
|
||||
|
||||
|
@ -62,13 +60,14 @@ class Protobuf < Formula
|
|||
sha256 "26fcbb5925b74ad5fc8c26b0495dfc96353f4d553492eb97e85a8a6d2f43095b"
|
||||
end
|
||||
|
||||
needs :cxx11
|
||||
|
||||
def install
|
||||
# Don't build in debug mode. See:
|
||||
# https://github.com/Homebrew/homebrew/issues/9279
|
||||
# https://github.com/google/protobuf/blob/5c24564811c08772d090305be36fae82d8f12bbe/configure.ac#L61
|
||||
ENV.prepend "CXXFLAGS", "-DNDEBUG"
|
||||
ENV.universal_binary if build.universal?
|
||||
ENV.cxx11 if build.cxx11?
|
||||
ENV.cxx11
|
||||
|
||||
(buildpath/"gmock").install resource("gmock")
|
||||
system "./autogen.sh"
|
||||
|
@ -85,7 +84,9 @@ class Protobuf < Formula
|
|||
if build.with? "python"
|
||||
# google-apputils is a build-time dependency
|
||||
ENV.prepend_create_path "PYTHONPATH", buildpath/"homebrew/lib/python2.7/site-packages"
|
||||
%w[setuptools six python-dateutil pytz python-gflags google-apputils].each do |package|
|
||||
|
||||
res = resources.map(&:name).to_set - ["gmock"]
|
||||
res.each do |package|
|
||||
resource(package).stage do
|
||||
system "python", *Language::Python.setup_install_args(buildpath/"homebrew")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue