diff options
Diffstat (limited to 'dev-libs/quantlib')
-rw-r--r-- | dev-libs/quantlib/Manifest | 6 | ||||
-rw-r--r-- | dev-libs/quantlib/files/50quantlib-gentoo.el | 6 | ||||
-rw-r--r-- | dev-libs/quantlib/metadata.xml | 15 | ||||
-rw-r--r-- | dev-libs/quantlib/quantlib-1.6.ebuild | 97 | ||||
-rw-r--r-- | dev-libs/quantlib/quantlib-1.7.1.ebuild | 92 |
5 files changed, 216 insertions, 0 deletions
diff --git a/dev-libs/quantlib/Manifest b/dev-libs/quantlib/Manifest new file mode 100644 index 000000000000..e34977e41bda --- /dev/null +++ b/dev-libs/quantlib/Manifest @@ -0,0 +1,6 @@ +AUX 50quantlib-gentoo.el 163 BLAKE2B 1bdbe9c975eae1442ea582b436d620dad2d9240bd97330f9c887ed6d87cef38ac63cf098f3c645a41c1584dee35a6db215a9912cb1d67748215b94496e4bac02 SHA512 8c6738225465bf938900f0fadebc22a52a9a02fe28926d87b9b3d84539332f5ce51f706a8d4182b46e8a38e3c4ddd053b621c96af13a956b5233123947e3d00c +DIST QuantLib-1.6.tar.gz 8714267 BLAKE2B f59b1250ea653d6b999945a3f19632fb071656eb6f7f90c6483db2f0f2104169ab0c8155c1205b16c002a78da73ff7a7b25f948a0adeca679e9e5cf127e09212 SHA512 c38cc894873a36942c022c1d70eb7b0c5f2e9208ee9e949a656aef02fb9fe95436955b560b61188ea5a374f4b7674b46629178779e066135396f291788d772c4 +DIST QuantLib-1.7.1.tar.gz 8715844 BLAKE2B 0193f1b6d73d66b148840671b7321e926a81a3eec2d1ded3a3398e9531c71cdb12454e059960b7707c9383bedddd136ab92e2550bdda265c54b0cf26d904b972 SHA512 8ba4fdb219b2886b448dbc6370ce6acec9f919a6baf7e8275a76ba13e0bf2d08cbb88cd5a3e450bcf379c17bd0492a9259483089de65e24b95d708f259bc30a7 +EBUILD quantlib-1.6.ebuild 2063 BLAKE2B ff069c4bd27654770c31368a856b3f05b261911929d870debf730eb4259c3d1b480c261407feb4aea2b8437892b89bcc49a8a90f3c74a6a58feefdb04d13a12b SHA512 b3e0d282d9a26c0cb1a312558e9a4030ed172e8d8c4aa64906bb399987d968667c33fad8e061d1b93b3df93e2bcced73b218928629d1804fb4582ec981c53bee +EBUILD quantlib-1.7.1.ebuild 1998 BLAKE2B 74368a55eb7977880f53f4cc7155f0af470594ea7991d5c1c65b74f7a552a13c4ab0b818a2a88d920bec46249a6d60257ef70b64b074ed3dfd88c2eb1e2d23f8 SHA512 a662ff237a2a8a51a15bd32590f005f6bbd69efb994cf2476ef1523366441255f45ebc614c3dd510419014deabbb6f7329caff59ce09f92914ed6db62588a76b +MISC metadata.xml 466 BLAKE2B af934000deb4acbfa8f92abda155c961c191b48037c8464a52fb112cdc756540bf0878620b74c961c40a43ecabe47094b6e2df41d05b10ef5f9c5b9fead7c335 SHA512 39ebfd2000ff1d374311a274aae5b36831558cc20522687efb86d4d91737f9a5323d2d7b7d2d64501a38b5da97def4e42d0dc3beb7c5f2f30593b6363d414b27 diff --git a/dev-libs/quantlib/files/50quantlib-gentoo.el b/dev-libs/quantlib/files/50quantlib-gentoo.el new file mode 100644 index 000000000000..68f6ce003295 --- /dev/null +++ b/dev-libs/quantlib/files/50quantlib-gentoo.el @@ -0,0 +1,6 @@ + +;;; quantlib site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'ql-new-header "quantlib" nil t) +(autoload 'ql-new-source "quantlib" nil t) diff --git a/dev-libs/quantlib/metadata.xml b/dev-libs/quantlib/metadata.xml new file mode 100644 index 000000000000..d50e3d02723b --- /dev/null +++ b/dev-libs/quantlib/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cpp@gentoo.org</email> + <name>Gentoo C++ Project</name> + </maintainer> + <longdescription> +QuantLib (http://quantlib.org/) is a C++ library for financial +quantitative analysts and developers. +</longdescription> + <upstream> + <remote-id type="sourceforge">quantlib</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-libs/quantlib/quantlib-1.6.ebuild b/dev-libs/quantlib/quantlib-1.6.ebuild new file mode 100644 index 000000000000..193731dc5a99 --- /dev/null +++ b/dev-libs/quantlib/quantlib-1.6.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit elisp-common eutils toolchain-funcs + +MY_P="QuantLib-${PV}" + +DESCRIPTION="A comprehensive software framework for quantitative finance" +HOMEPAGE="https://quantlib.org/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc emacs examples openmp static-libs" + +RDEPEND="dev-libs/boost:=" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen[dot] ) + emacs? ( virtual/emacs )" + +DOCS="*.txt" + +S="${WORKDIR}/${MY_P}" + +SITEFILE="50${PN}-gentoo.el" + +pkg_setup() { + if use openmp ; then + tc-has-openmp || die "Please switch to an openmp compatible compiler" + fi +} + +src_prepare() { + epatch_user +} + +src_configure() { + # NOTE: Too fragile for single .pdf or .ps document + local prog + for prog in DVIPS LATEX MAKEINDEX PDFLATEX; do + export ac_cv_path_${prog}=no + done + + use doc || export ac_cv_path_DOXYGEN=no + use emacs || export ac_cv_prog_EMACS=no + + # NOTE: --enable-examples will only change noinst_PROGRAMS to bin_PROGRAMS + econf \ + $(use_enable debug error-functions) \ + $(use_enable debug error-lines) \ + $(use_enable debug tracing) \ + $(use_enable openmp) \ + $(use_enable static-libs static) \ + --enable-examples \ + --with-lispdir="${SITELISP}/${PN}" +} + +src_compile() { + default + + if use doc; then + pushd Docs >/dev/null + emake docs-html + popd >/dev/null + fi +} + +src_install(){ + default + prune_libtool_files + + if use doc; then + find Docs \( -name '.time-stamp*' -o -name '*.doxy' -o -name 'Makefile*' \) -delete || die + insinto "/usr/share/doc/${PF}" + doins -r Docs + fi + + if use examples; then + find Examples -name '.libs' -exec rm -rf {} + || die + find Examples \( -name '*vc*proj*' -o -name '*.dev' -o -name 'Makefile*' -o -name '*.o' \) -delete || die + insinto "/usr/share/doc/${PF}" + doins -r Examples + fi + + use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}" +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/dev-libs/quantlib/quantlib-1.7.1.ebuild b/dev-libs/quantlib/quantlib-1.7.1.ebuild new file mode 100644 index 000000000000..763269d2f604 --- /dev/null +++ b/dev-libs/quantlib/quantlib-1.7.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit elisp-common eutils toolchain-funcs + +MY_P="QuantLib-${PV}" + +DESCRIPTION="A comprehensive software framework for quantitative finance" +HOMEPAGE="https://quantlib.org/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug doc emacs examples openmp static-libs" + +RDEPEND="dev-libs/boost:=" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen[dot] ) + emacs? ( virtual/emacs )" + +DOCS="*.txt" + +S="${WORKDIR}/${MY_P}" + +SITEFILE="50${PN}-gentoo.el" + +pkg_setup() { + if use openmp ; then + tc-has-openmp || die "Please switch to an openmp compatible compiler" + fi +} + +src_configure() { + # NOTE: Too fragile for single .pdf or .ps document + local prog + for prog in DVIPS LATEX MAKEINDEX PDFLATEX; do + export ac_cv_path_${prog}=no + done + + use doc || export ac_cv_path_DOXYGEN=no + use emacs || export ac_cv_prog_EMACS=no + + # NOTE: --enable-examples will only change noinst_PROGRAMS to bin_PROGRAMS + econf \ + $(use_enable debug error-functions) \ + $(use_enable debug error-lines) \ + $(use_enable debug tracing) \ + $(use_enable openmp) \ + $(use_enable static-libs static) \ + --enable-examples \ + --with-lispdir="${SITELISP}/${PN}" +} + +src_compile() { + default + + if use doc; then + pushd Docs >/dev/null + emake docs-html + popd >/dev/null + fi +} + +src_install(){ + default + prune_libtool_files + + if use doc; then + find Docs \( -name '.time-stamp*' -o -name '*.doxy' -o -name 'Makefile*' \) -delete || die + dodoc -r Docs + fi + + if use examples; then + find Examples -name '.libs' -exec rm -rf {} + || die + find Examples \( -name '*vc*proj*' -o -name '*.dev' -o -name 'Makefile*' -o -name '*.o' \) -delete || die + insinto "/usr/share/doc/${PF}" + doins -r Examples + fi + + use emacs && elisp-site-file-install "${FILESDIR}/${SITEFILE}" +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |