1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Remove the recently-added quantlib, so it can be properly resurrected.

Requested by: portmgr
This commit is contained in:
Mikhail Teterin 2018-07-23 16:02:09 +00:00
parent ded7a5395b
commit 443e4ffdcc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=475187
8 changed files with 0 additions and 1559 deletions

View File

@ -101,7 +101,6 @@
SUBDIR += py-vatnumber
SUBDIR += py-ystockquote
SUBDIR += qhacc
SUBDIR += quantlib
SUBDIR += quickfix
SUBDIR += rubygem-money
SUBDIR += sabernetdcs-client

View File

@ -1,67 +0,0 @@
# Created by: Mikhail Teterin
# $FreeBSD$
PORTNAME= quantlib
PORTVERSION= 1.13
CATEGORIES= finance math devel
MASTER_SITES= https://dl.bintray.com/${PORTNAME}/releases/
DISTNAME= QuantLib-${PORTVERSION}
MAINTAINER= mi@aldan.algebra.com
COMMENT= C++ library for quantitative finance
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
LIB_DEPENDS= libboost_system.so:devel/boost-libs
USES= compiler
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= EMACS=no
MAKE_ENV+= AM_MAKEFLAGS=${_MAKE_JOBS}
TEST_TARGET= check-examples check
OPTIONS_SUB= please
OPTIONS_DEFAULT=OPENMP EXAMPLES BENCHMARK UNITY_BUILD NEGATIVE_RATES
OPTIONS_DEFINE= TRACING INDEXED_COUPONS
OPTIONS_DEFINE+=EXTRA_SAFETY_CHECKS SESSIONS INTRADAY
OPTIONS_DEFINE+=THREAD_SAFE_OBSERVER_PATTERN
OPTIONS_DEFINE+=THREAD_SAFE_SINGLETON_INIT
OPTIONS_DEFINE+=${OPTIONS_DEFAULT}
.if ${CC} == "cc"
# The base cc/c++ on FreeBSD-10 is too old for OpenMP.
OPTIONS_EXCLUDE_FreeBSD_10=OPENMP
.endif
BENCHMARK_DESC= Install benchmark (it is always built)
EXTRA_SAFETY_CHECKS_DESC=Trade performance for run-time checks
INDEXED_COUPONS_DESC= Use indexed rather than par coupons
INTRADAY_DESC= Time precision of msecs, instead of days
NEGATIVE_RATES_DESC= Allow rates to be negative
TRACING_DESC= Trade performance for more detailed errors
UNITY_BUILD_DESC= Combine sources into one before compiling
SESSIONS_DESC= See help
EXAMPLES_CONFIGURE_WITH=lispdir=${EXAMPLESDIR}
CONFIGURE_ARGS+= --enable-parallel-unit-test-runner
CONFIGURE_ARGS+= --with-boost-include=${LOCALBASE}/include
CONFIGURE_ARGS+= --with-boost-lib=${LOCALBASE}/lib
.for o in ${OPTIONS_DEFINE}
$o_CONFIGURE_ENABLE= ${o:S/_/-/g:tl}
.endfor
# OPENMP_USES= compiler:openmp - XXX broken, insists on gcc,
# but boost is built with clang...
OPENMP_LIB_DEPENDS= libomp.so:devel/openmp
OPENMP_CFLAGS= -I${LOCALBASE}/include
OPENMP_LDFLAGS= -L${LOCALBASE}/lib
# devel/openmp installs its own -lomp, which is cleaner.
# unfortunately, devel/llvm${COMPILER_VERSION} may install
# one too:
OPENMP_LDFLAGS+= -L${LOCALBASE}/llvm${COMPILER_VERSION}/lib
.include <bsd.port.mk>

View File

@ -1,3 +0,0 @@
TIMESTAMP = 1531235784
SHA256 (QuantLib-1.13.tar.gz) = bb52df179781f9c19ef8e976780c4798b0cdc4d21fa72a7a386016e24d1a86e6
SIZE (QuantLib-1.13.tar.gz) = 9132949

View File

@ -1,14 +0,0 @@
Allow check-exapmles to work with our make, upstream's syntax is
gmake-only...
--- Examples/Makefile.in 2018-05-23 14:35:06
+++ Examples/Makefile.in 2018-07-10 23:06:07
@@ -657,6 +657,6 @@
-%.check:
- $(MAKE) -C $* check-examples
+${SUBDIR_CHECKS}:
+ $(MAKE) -C ${@:.check=} check-examples
.PHONY: examples check-examples $(SUBDIRS)

View File

@ -1,36 +0,0 @@
See:
https://github.com/lballabio/QuantLib/pull/507/
--- ql/termstructures/volatility/equityfx/fixedlocalvolsurface.cpp
+++ ql/termstructures/volatility/equityfx/fixedlocalvolsurface.cpp
@@ -132,7 +132,8 @@ namespace QuantLib {
for (Size i=0; i < strikes_.size(); ++i)
for (Size j=1; j<strikes_[i]->size(); j++) {
- QL_REQUIRE(strikes_[i]->at(j)>=strikes_[i]->at(j-1),
+ QL_REQUIRE(strikes_[i]->at(j)>=strikes_[i]->at(j-1)
+ || close_enough(strikes_[i]->at(j),strikes_[i]->at(j-1)),
"strikes must be sorted");
}
}
--- test-suite/hestonslvmodel.cpp
+++ test-suite/hestonslvmodel.cpp
@@ -2446,7 +2446,7 @@ void HestonSLVModelTest::testMoustacheGraph() {
-0.0293,-0.0297,-0.0251,-0.0192,-0.0134,-0.0084,-0.0045,
-0.0015, 0.0005, 0.0017, 0.0020
};
- const Real tol = 8e-3;
+ const Real tol = 1e-2;
for (Size i=0; i < 18; ++i) {
const Real dist = 10.0+5.0*i;
--- test-suite/fdheston.cpp 2018-05-21 08:58:38.000000000 -0400
+++ test-suite/fdheston.cpp 2018-07-20 18:51:34.213199000 -0400
@@ -469,5 +469,5 @@
new FdHestonVanillaEngine(boost::shared_ptr<HestonModel>(
new HestonModel(hestonProcess)),
- 500, 400, 3, 0,
+ 4000, 400, 3, 0,
FdmSchemeDesc::ExplicitEuler())));

View File

@ -1,16 +0,0 @@
The QuantLib project is aimed at providing a comprehensive software
framework for quantitative finance. QuantLib is a free/open-source
library for modeling, trading, and risk management in real-life.
QuantLib is written in C++ with a clean object model, and is then
exported to different languages such as C#, Objective Caml, Java,
Perl, Python, GNU R, Ruby, and Scheme. An AAD-enabled version is
also available. The reposit project facilitates deployment of object
libraries to end user platforms and is used to generate QuantLibXL,
an Excel addin for QuantLib, and QuantLibAddin, QuantLib addins for
other platforms such as LibreOffice Calc. Bindings to other languages
and porting to Gnumeric, Matlab/Octave, S-PLUS/R, Mathematica,
COM/CORBA/SOAP architectures, FpML, are under consideration. See
the extensions page for details.
WWW: https://www.quantlib.org/

View File

@ -1,56 +0,0 @@
--enable-openmp If enabled, configure will try to detect and enable
OpenMP support.
--enable-tracing If enabled, tracing messages might be emitted by the
library depending on run-time settings. Enabling
this option can degrade performance.
--enable-indexed-coupons
If enabled, indexed coupons (see the documentation)
are used in floating legs. If disabled (the
default), par coupons are used.
--enable-negative-rates If enabled (the default), negative yield rates are
allowed. If disabled, some features (notably, curve
bootstrapping) will throw when negative rates are
found.
--enable-extra-safety-checks
If enabled, extra run-time checks are added to a few
functions. This can prevent their inlining and
degrade performance.
--enable-sessions If enabled, singletons will return different
instances for different sessions. You will have to
provide and link with the library a sessionId()
function in namespace QuantLib, returning a
different session id for each session.
--enable-thread-safe-observer-pattern
If enabled, thread-safe version of the observer
pattern will be used. You should enable it if you
want to use QuantLib via the SWIG layer within the
JVM or .NET eco system or any environment with an
async garbage collector.
--enable-thread-safe-singleton-init
If enabled, singleton initialization will be
thread-safe. This requires Boost 1.58 or later and
is not supported when sessions are enabled.
--enable-parallel-unit-test-runner
If enabled, a parallel unit test runner is used to
execute the C++ test suite. This will reduce the
runtime on multi core CPUs.
--enable-examples If enabled, examples are built and installed when
"make" and "make install" are invoked. If disabled
(the default) they are built but not installed.
--enable-benchmark If enabled, the benchmark is built and installed
when "make" and "make install" are invoked. If
disabled (the default) it is built but not
installed.
--enable-unity-build If enabled, the source files in each directory are
collected into one single source file and compiled
together. This can speed up the compilation of the
library. If disabled (the default) each source file
is compiled separately..
--enable-intraday If enabled, date objects will support an intraday
datetime resolution down to microseconds. Strickly
monotone daycounters (Actual360, Actual365Fixed and
ActualActual) will take the additional information
into account and allow for accurate intraday
pricing. If disabled (the default) the smallest
resolution of date objects will be a single day.
Intraday datetime resolution is experimental.

File diff suppressed because it is too large Load Diff