aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/quantlib.rb
diff options
context:
space:
mode:
authorKevin Locke2014-03-19 11:48:10 -0600
committerMike McQuaid2014-03-27 12:40:05 +0000
commit0ac64bd6a5e3cd4f10f2541810971abbb1fe87e8 (patch)
treeaf7828f9cedc31bd0e6a1353b7dce1609af39a34 /Library/Formula/quantlib.rb
parent746800f13504073525ad8da0acab4c457daee003 (diff)
downloadhomebrew-0ac64bd6a5e3cd4f10f2541810971abbb1fe87e8.tar.bz2
quantlib: add C++11 support.
Although QuantLib does not have any special features/support for C++11, it is still useful for developers/administrators who need to link against libc++ and to combine QuantLib with other C++11 applications and libraries. Also be sure to depend on boost with c++11 to ensure that QuantLib and boost share the same standard library. Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Diffstat (limited to 'Library/Formula/quantlib.rb')
-rw-r--r--Library/Formula/quantlib.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/quantlib.rb b/Library/Formula/quantlib.rb
index ee723c1a5..a6e54874b 100644
--- a/Library/Formula/quantlib.rb
+++ b/Library/Formula/quantlib.rb
@@ -5,9 +5,16 @@ class Quantlib < Formula
url 'https://downloads.sourceforge.net/project/quantlib/QuantLib/1.4/QuantLib-1.4.tar.gz'
sha1 'f31f4651011a8e38e8b2cc6c457760fe61863391'
- depends_on 'boost'
+ option :cxx11
+
+ if build.cxx11?
+ depends_on 'boost' => 'c++11'
+ else
+ depends_on 'boost'
+ end
def install
+ ENV.cxx11 if build.cxx11?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"