From 201f50880f76847449a1f6bd252e5bc4ed92024a Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Thu, 1 Mar 2018 23:06:48 -0800 Subject: [PATCH] boost@1.55: rename python and python@2 optional dependencies --- Formula/boost@1.55.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Formula/boost@1.55.rb b/Formula/boost@1.55.rb index f23ed0a9f21..c9742520d80 100644 --- a/Formula/boost@1.55.rb +++ b/Formula/boost@1.55.rb @@ -45,11 +45,13 @@ class BoostAT155 < Formula option "without-static", "Disable building static library variant" option :cxx11 - depends_on "python" => :optional - depends_on "python3" => :optional + deprecated_option "with-python3" => "with-python" - if build.with?("python3") && build.with?("python") - odie "boost@1.55: --with-python3 cannot be specified when using --with-python" + depends_on "python" => :optional + depends_on "python@2" => :optional + + if build.with?("python") && build.with?("python@2") + odie "boost@1.55: --with-python cannot be specified when using --with-python@2" end if build.with? "icu" @@ -103,7 +105,7 @@ class BoostAT155 < Formula # on such systems. without_libraries << "log" if ENV.compiler == :gcc without_libraries << "python" if build.without?("python") \ - && build.without?("python3") + && build.without?("python@2") bargs << "--without-libraries=#{without_libraries.join(",")}"