From b4bbee15c18def47f1a91c8235fc7f23cf8d7a45 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 5 Jun 2014 11:42:27 -0500 Subject: ledger: depend on boost with c++11 support Closes #29908. Signed-off-by: Jack Nagel --- Library/Formula/ledger.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/ledger.rb b/Library/Formula/ledger.rb index d55604422..a751af608 100644 --- a/Library/Formula/ledger.rb +++ b/Library/Formula/ledger.rb @@ -25,11 +25,10 @@ class Ledger < Formula depends_on "gmp" depends_on :python => :optional - if build.with? "python" - depends_on "boost" => "with-python" - else - depends_on "boost" - end + boost_opts = [] + boost_opts << "with-python" if build.with? "python" + boost_opts << "c++11" if MacOS.version < "10.9" + depends_on "boost" => boost_opts needs :cxx11 -- cgit v1.2.3