aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ledger.rb
diff options
context:
space:
mode:
authorJack Nagel2014-06-05 11:42:27 -0500
committerJack Nagel2014-06-09 11:09:42 -0500
commitb4bbee15c18def47f1a91c8235fc7f23cf8d7a45 (patch)
treeb8b14f19df07ddb84c280b1f084808e6ab5c23d4 /Library/Formula/ledger.rb
parenta5906e7e246cf78b480024a2056f2168ad8d75d5 (diff)
downloadhomebrew-b4bbee15c18def47f1a91c8235fc7f23cf8d7a45.tar.bz2
ledger: depend on boost with c++11 support
Closes #29908. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/ledger.rb')
-rw-r--r--Library/Formula/ledger.rb9
1 files changed, 4 insertions, 5 deletions
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