quantlib: add option for intra-day times (#7065)

This commit is contained in:
James J Balamuta 2016-11-21 02:16:24 -06:00 committed by Mike McQuaid
parent 9190604c20
commit 21cb42c2f6

View file

@ -20,6 +20,7 @@ class Quantlib < Formula
end
option :cxx11
option "with-intraday", "Enable intraday components to dates"
if build.cxx11?
depends_on "boost" => "c++11"
@ -32,9 +33,13 @@ class Quantlib < Formula
(buildpath/"QuantLib").install buildpath.children if build.stable?
cd "QuantLib" do
system "./autogen.sh" if build.head?
args = []
args << "--enable-intraday" if build.with? "intraday"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-lispdir=#{elisp}"
"--with-lispdir=#{elisp}",
*args
system "make", "install"
prefix.install_metafiles
end