From bb637405d0d7123b800964aca93fe10f58ec508d Mon Sep 17 00:00:00 2001 From: FX Coudert Date: Wed, 24 Oct 2018 12:36:46 +0200 Subject: [PATCH] boost 1.68.0 --- Aliases/{boost@1.67 => boost@1.68} | 0 Formula/boost.rb | 25 ++++++------------------- 2 files changed, 6 insertions(+), 19 deletions(-) rename Aliases/{boost@1.67 => boost@1.68} (100%) diff --git a/Aliases/boost@1.67 b/Aliases/boost@1.68 similarity index 100% rename from Aliases/boost@1.67 rename to Aliases/boost@1.68 diff --git a/Formula/boost.rb b/Formula/boost.rb index 35805c682a..c34c4905d2 100644 --- a/Formula/boost.rb +++ b/Formula/boost.rb @@ -1,23 +1,10 @@ class Boost < Formula desc "Collection of portable C++ source libraries" homepage "https://www.boost.org/" - revision 1 + url "https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.bz2" + sha256 "7f6130bc3cf65f56a618888ce9d5ea704fa10b462be126ad053e80e553d6d8b7" head "https://github.com/boostorg/boost.git" - stable do - url "https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2" - sha256 "2684c972994ee57fc5632e03bf044746f6eb45d4920c343937a465fd67a5adba" - - # Remove for > 1.67.0 - # Fix "error: no member named 'next' in namespace 'boost'" - # Upstream commit from 1 Dec 2017 "Add #include ; no - # longer in utility.hpp" - patch :p2 do - url "https://github.com/boostorg/lockfree/commit/12726cd.patch?full_index=1" - sha256 "f165823d961a588b622b20520668b08819eb5fdc08be7894c06edce78026ce0a" - end - end - bottle do cellar :any sha256 "1c6d078f1f746d1a855d3aeff466a1cd27c483d311e679151f4c5841764c793a" => :mojave @@ -34,7 +21,7 @@ class Boost < Formula depends_on "icu4c" => :optional - needs :cxx11 + needs :cxx14 def install # Force boost to compile with the desired compiler @@ -83,9 +70,9 @@ class Boost < Formula args << "link=shared" end - # Trunk starts using "clang++ -x c" to select C compiler which breaks C++11 - # handling using ENV.cxx11. Using "cxxflags" and "linkflags" still works. - args << "cxxflags=-std=c++11" + # Boost is using "clang++ -x c" to select C compiler which breaks C++14 + # handling using ENV.cxx14. Using "cxxflags" and "linkflags" still works. + args << "cxxflags=-std=c++14" if ENV.compiler == :clang args << "cxxflags=-stdlib=libc++" << "linkflags=-stdlib=libc++" end