From 6196d87a0892070d327563faae430e144d0ade35 Mon Sep 17 00:00:00 2001 From: Chilledheart Date: Mon, 3 Nov 2014 23:00:10 +0800 Subject: boost 1.57 --- Library/Formula/boost.rb | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/boost.rb b/Library/Formula/boost.rb index a50fde236..4d3960f1b 100644 --- a/Library/Formula/boost.rb +++ b/Library/Formula/boost.rb @@ -1,11 +1,9 @@ -require 'formula' - class Boost < Formula - homepage 'http://www.boost.org' - url 'https://downloads.sourceforge.net/project/boost/boost/1.56.0/boost_1_56_0.tar.bz2' - sha1 'f94bb008900ed5ba1994a1072140590784b9b5df' + homepage "http://www.boost.org" + url "https://downloads.sourceforge.net/project/boost/boost/1.57.0/boost_1_57_0.tar.bz2" + sha1 "e151557ae47afd1b43dc3fac46f8b04a8fe51c12" - head 'https://github.com/boostorg/boost.git' + head "https://github.com/boostorg/boost.git" bottle do cellar :any @@ -18,10 +16,10 @@ class Boost < Formula env :userpaths option :universal - option 'with-icu4c', 'Build regexp engine with icu support' - option 'without-single', 'Disable building single-threading variant' - option 'without-static', 'Disable building static library variant' - option 'with-mpi', 'Build with MPI support' + option "with-icu4c", "Build regexp engine with icu support" + option "without-single", "Disable building single-threading variant" + option "without-static", "Disable building static library variant" + option "with-mpi", "Build with MPI support" option :cxx11 deprecated_option "with-icu" => "with-icu4c" @@ -41,11 +39,11 @@ class Boost < Formula def install # https://svn.boost.org/trac/boost/ticket/8841 - if build.with? 'mpi' and build.with? 'single' + if build.with? "mpi" and build.with? "single" raise <<-EOS.undent Building MPI support for both single and multi-threaded flavors - is not supported. Please use '--with-mpi' together with - '--without-single'. + is not supported. Please use "--with-mpi" together with + "--without-single". EOS end @@ -54,17 +52,17 @@ class Boost < Formula # Force boost to compile with the desired compiler open("user-config.jam", "a") do |file| file.write "using darwin : : #{ENV.cxx} ;\n" - file.write "using mpi ;\n" if build.with? 'mpi' + file.write "using mpi ;\n" if build.with? "mpi" end # libdir should be set by --prefix but isn't bootstrap_args = ["--prefix=#{prefix}", "--libdir=#{lib}"] - if build.with? 'icu' - icu4c_prefix = Formula['icu4c'].opt_prefix + if build.with? "icu" + icu4c_prefix = Formula["icu4c"].opt_prefix bootstrap_args << "--with-icu=#{icu4c_prefix}" else - bootstrap_args << '--without-icu' + bootstrap_args << "--without-icu" end # Handle libraries that will not be built. @@ -82,9 +80,9 @@ class Boost < Formula # Boost.Log cannot be built using Apple GCC at the moment. Disabled # on such systems. without_libraries << "log" if ENV.compiler == :gcc || ENV.compiler == :llvm - without_libraries << "mpi" if build.without? 'mpi' + without_libraries << "mpi" if build.without? "mpi" - bootstrap_args << "--without-libraries=#{without_libraries.join(',')}" + bootstrap_args << "--without-libraries=#{without_libraries.join(",")}" # layout should be synchronized with boost-python args = ["--prefix=#{prefix}", @@ -123,7 +121,7 @@ class Boost < Formula end def caveats - s = '' + s = "" # ENV.compiler doesn't exist in caveats. Check library availability # instead. if Dir["#{lib}/libboost_log*"].empty? -- cgit v1.2.3