commit: 917528c12e36648bd277f531f63a8cfcbd9cec7b Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> AuthorDate: Wed Oct 22 01:27:45 2025 +0000 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> CommitDate: Wed Oct 22 01:27:52 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=917528c1
sci-mathematics/plfit: add 1.0.1 Bug: https://bugs.gentoo.org/964447 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> sci-mathematics/plfit/Manifest | 1 + sci-mathematics/plfit/plfit-1.0.1.ebuild | 33 ++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/sci-mathematics/plfit/Manifest b/sci-mathematics/plfit/Manifest index ee6914fc2101..574531290c56 100644 --- a/sci-mathematics/plfit/Manifest +++ b/sci-mathematics/plfit/Manifest @@ -1 +1,2 @@ DIST plfit-0.9.5.tar.gz 181657 BLAKE2B c766ab3f309fc5c00a14e76d4ed40b1bd5722d56a16440065c52f0e63e56e70632d89ea606e83090f19d4201e53e8622ef3ad4af9487e5f1081d3c8ce6192b0e SHA512 8f20b649277e1e386815a0d9074dbc58e8ae30f3b23fb878f48ab52bb7983cab05e7adb9c4343490418054b7d902158f7387c9eda21bcb007b4903f6517af93c +DIST plfit-1.0.1.tar.gz 186015 BLAKE2B e5944015cf9c53eab1634f54cfbceb63eccff5b1225ef2818066499ba9fa8d913cfe21527606d6118df86f3a3a1a14e00649fc51424792d8346247a3a19ec744 SHA512 8d1f43bdd038310504500367d808b07b14d226af116bf205d2185fc9bdd669be5e28b773df1d100b396f40ae918e3c86ea94e5f10892167514a139b0505a6c15 diff --git a/sci-mathematics/plfit/plfit-1.0.1.ebuild b/sci-mathematics/plfit/plfit-1.0.1.ebuild new file mode 100644 index 000000000000..1e3115a4acfc --- /dev/null +++ b/sci-mathematics/plfit/plfit-1.0.1.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2025 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 ~riscv ~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 +}
