diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-libs/quantlib |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-libs/quantlib')
-rw-r--r-- | dev-libs/quantlib/Manifest | 8 | ||||
-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, 218 insertions, 0 deletions
diff --git a/dev-libs/quantlib/Manifest b/dev-libs/quantlib/Manifest new file mode 100644 index 000000000000..893e1dca4ebe --- /dev/null +++ b/dev-libs/quantlib/Manifest @@ -0,0 +1,8 @@ +AUX 50quantlib-gentoo.el 163 SHA256 4be07988495fc7d2b063f097465ba7075df63ad8cdc6632bb00cd837d82ce1d9 SHA512 8c6738225465bf938900f0fadebc22a52a9a02fe28926d87b9b3d84539332f5ce51f706a8d4182b46e8a38e3c4ddd053b621c96af13a956b5233123947e3d00c WHIRLPOOL 221b1cedfa9380166260fb25549ad3d7b4a172872d18a90b19135820dc0a5eea576c73969520b5b0907ac88a9d35e175ccfc9f05d737ab75915418ddbb54495e +DIST QuantLib-1.6.tar.gz 8714267 SHA256 a135d424a59cbb00a75d7f7ac3a181d49e804abae1776b555ec0183e309f81ce SHA512 c38cc894873a36942c022c1d70eb7b0c5f2e9208ee9e949a656aef02fb9fe95436955b560b61188ea5a374f4b7674b46629178779e066135396f291788d772c4 WHIRLPOOL 5d94afd8f608ef81c207921f5b7b8237ea2eaca71844fe27206d4b0e7ed77e99d4c9e5c2e6c74649e82a95ca5d3fb8528e6c8ee929a849a7254cbee41ab9607e +DIST QuantLib-1.7.1.tar.gz 8715844 SHA256 b5dc38ae51ad7396ccf7358147753902838ce2870dd6e6a4d829c806db3e0a81 SHA512 8ba4fdb219b2886b448dbc6370ce6acec9f919a6baf7e8275a76ba13e0bf2d08cbb88cd5a3e450bcf379c17bd0492a9259483089de65e24b95d708f259bc30a7 WHIRLPOOL 3a32d47d81716f3a8fd1214f3be6554c00da2c828412feb46382b809a1f7a8046be9c790eaf8435451e0f503ef9771a5ce0e14effbe8d48c4f599dbc64bb1409 +EBUILD quantlib-1.6.ebuild 2062 SHA256 54351126c95421c3d3a0a718fe7c3fbb21ca16a73071dd060664a21c5a774366 SHA512 b9e30b8dbb7fa37e92c6ab053796ee8084fc40a7ebf2462523643cf0e65299a7b4fed1194be1b13bab55d369207d0e351c5fbe9432174f4df04bf72be0f72f9d WHIRLPOOL 0a67646d4a894291b61f4416b75db143399fdd90e01c1b718cb4c0f40cafbac1654c9a11d0df496f6c8844c6080c912959eae2fedfef0e4f1d1e6818de32ef4f +EBUILD quantlib-1.7.1.ebuild 1997 SHA256 8421dfef23ed523f39bafec851a61c5f6aa841f4840ef4af5f397cca206f2dcd SHA512 e17af7f05dc56f7e9134b0b70e8c0f7578056d85910dde45792a31db30c2b5e2f51d796f34f47c28637731b68776bb0d30838b1b5d065d08e84a5db4f8d3e836 WHIRLPOOL a3c143896552e37435a07e61a51ed911ea794aa2e4be34ede86fd130c86e89d84e90d24ec2a6c1830b09f8bac92ea934f7938e58a0146c66be7eb1dafc9f6d4a +MISC ChangeLog 2650 SHA256 6f43424e91530b64394b05247db0c0a9800d7f39a124d977c587bc2851601830 SHA512 2fc56b6d31b064f2a55eec5dc19850628134bc2e214bef2e57d688a66264c986f3d4cc810b65fe6583845b774f1ff476cf4438ac6aaf9b59b430bb5b163a8504 WHIRLPOOL b6d09d6e44fcded3c552a0ec2e1324f9781346be7e9d6514e9508097da987febfe556503e2a0aa7604fd3ba00a9f11565a83377239f31d5528bfb08bfb0e850c +MISC ChangeLog-2015 6208 SHA256 53d2aadeb1f126a30c9e5ea85ab7f64885fdc2e37946fa74078bfa48d4532d2f SHA512 dea78aabe0a4cd26ccec0bb351e4ffe00c67e64d145a06bf88bb97cfda092b97a4a52383667ce6b4888fc23613f410ff3da2765c668e2afa57d8aedc02a1bf1f WHIRLPOOL 0f91dad714f5bea5351fd73db3cb9306b652b662125b85b5aced4841c7000be7be642be2a3c8d5299bdfb75aedea201f654238b236c5bb3a9772376772fcf9a6 +MISC metadata.xml 466 SHA256 4d9e3cf09b5bdccf66e8d25fcb2e8439ebafb5fa7395ce0c8dbb58a262ad4c44 SHA512 39ebfd2000ff1d374311a274aae5b36831558cc20522687efb86d4d91737f9a5323d2d7b7d2d64501a38b5da97def4e42d0dc3beb7c5f2f30593b6363d414b27 WHIRLPOOL 0dd24f1c6d14b5cde9859ec8f2cbd8e64020fe674167ddab360e726d122c8a4a921a14c690e0c4d667358947c575bafb8c09ce254b197b9d0f9474b053034dfe 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..39d1b0acfe27 --- /dev/null +++ b/dev-libs/quantlib/quantlib-1.6.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2015 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="http://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..d1725e7d5caf --- /dev/null +++ b/dev-libs/quantlib/quantlib-1.7.1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2016 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="http://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 +} |