diff options
author | 2023-05-22 15:36:38 -0400 | |
---|---|---|
committer | 2023-05-22 16:05:15 -0400 | |
commit | 7b1b2bdcbdb28ec852606196f6acde8731ce6387 (patch) | |
tree | 639854b2000941148301df240fdc6d84e6e6d6d2 /sci-mathematics/plfit/plfit-0.9.3.ebuild | |
parent | dev-libs/libclc: Enable USE=spirv by default (diff) | |
download | gentoo-7b1b2bdcbdb28ec852606196f6acde8731ce6387.tar.gz gentoo-7b1b2bdcbdb28ec852606196f6acde8731ce6387.tar.bz2 gentoo-7b1b2bdcbdb28ec852606196f6acde8731ce6387.zip |
sci-mathematics/plfit: new package, add 0.9.3
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'sci-mathematics/plfit/plfit-0.9.3.ebuild')
-rw-r--r-- | sci-mathematics/plfit/plfit-0.9.3.ebuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sci-mathematics/plfit/plfit-0.9.3.ebuild b/sci-mathematics/plfit/plfit-0.9.3.ebuild new file mode 100644 index 000000000000..f5c15c46b845 --- /dev/null +++ b/sci-mathematics/plfit/plfit-0.9.3.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Fit power-law distributions to empirical data" +HOMEPAGE="https://github.com/ntamas/plfit" +SRC_URI="https://github.com/ntamas/${PN}/archive/refs/tags/${PV}.tar.gz + -> ${P}.tar.gz" +# plfit is gpl-2 and its source headers say "or later." The upstream +# doc/ directory contains MIT and BSD licenses for two components. +LICENSE="BSD GPL-2+ MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cpu_flags_x86_sse cpu_flags_x86_sse2" + +DOCS=( CHANGELOG.md README.rst doc/THANKS ) + +src_configure() { + local mycmakeargs=( + -DPLFIT_COMPILE_PYTHON_MODULE=OFF + -DPLFIT_USE_SSE=OFF + -DPLFIT_USE_OPENMP=OFF + ) + if use cpu_flags_x86_sse || use cpu_flags_x86_sse2; then + # plfit chooses which to use at compile time based on the + # constants __SSE__ and __SSE2__. + mycmakeargs+=( -DPLFIT_USE_SSE=ON ) + fi + cmake_src_configure +} |