gentoo-ebuilds/sci-mathematics/plfit/plfit-1.0.1.ebuild
Michael Orlitzky 917528c12e
sci-mathematics/plfit: add 1.0.1
Bug: https://bugs.gentoo.org/964447
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
2025-10-21 21:27:52 -04:00

33 lines
954 B
Bash

# 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
}