commit:     3dfcad70a326820117c45f2f40fe353abff46b3a
Author:     Dima Pasechnik <dima <AT> pasechnik <DOT> info>
AuthorDate: Wed Dec 24 18:29:23 2025 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Fri Dec 26 13:08:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dfcad70

sci-mathematics/primecount: add 8.0

Closes: https://github.com/gentoo/gentoo/pull/45152
Signed-off-by: Dima Pasechnik <dima <AT> pasechnik.info>
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 sci-mathematics/primecount/Manifest              |  1 +
 sci-mathematics/primecount/primecount-8.0.ebuild | 53 ++++++++++++++++++++++++
 2 files changed, 54 insertions(+)

diff --git a/sci-mathematics/primecount/Manifest 
b/sci-mathematics/primecount/Manifest
index 02ab4dbd0adc..5c3ca21201a2 100644
--- a/sci-mathematics/primecount/Manifest
+++ b/sci-mathematics/primecount/Manifest
@@ -1 +1,2 @@
 DIST primecount-7.13.tar.gz 431676 BLAKE2B 
a02ba71af2b545f2a89e83018c3e9f2ab6ad5e567e5e72e3a0e85ccc132f1bc54b7dcc8b51ccdb1e727f6edcf050a856cee15e4180cc46a54fa8c5fe834d8cd8
 SHA512 
836c181e586a691708049d3ba04672e1dd4922160e17b3b03737ea55512186d3a529e003af08ff2e78f7bf7349cce0819c98144cfb89bd8208e4bad8124ae17b
+DIST primecount-8.0.tar.gz 1207003 BLAKE2B 
a83f26f5c7f4d7feef31f358ab623f9e2840e7cded607b267a035354ccc57c4dd8f0b6dd4168f600164bc56a5353196e0f42a44e8c6de805d99ef2916884944e
 SHA512 
37927100d8dade899561e4a83876aa900b965e6d0e114a27fbd0d594fe1874559152537edba7d799839642b2b5484486114b557e6e5adee64bb7f53116b4cea4

diff --git a/sci-mathematics/primecount/primecount-8.0.ebuild 
b/sci-mathematics/primecount/primecount-8.0.ebuild
new file mode 100644
index 000000000000..207e4f9e4bd4
--- /dev/null
+++ b/sci-mathematics/primecount/primecount-8.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake toolchain-funcs
+
+DESCRIPTION="Highly optimized CLI and library to count primes"
+HOMEPAGE="https://github.com/kimwalisch/primecount";
+SRC_URI="https://github.com/kimwalisch/${PN}/archive/refs/tags/v${PV}.tar.gz 
-> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0/8"  # subslot is first component of libprimecount.so version
+KEYWORDS="~amd64 ~riscv"
+IUSE="+executable openmp test"
+RESTRICT="!test? ( test )"
+
+DEPEND=">=sci-mathematics/primesieve-12.0:="
+RDEPEND="${DEPEND}"
+
+DOCS=(
+       ChangeLog
+       README.md
+       doc/Credits.md
+       doc/Easy-Special-Leaves.pdf
+       doc/Hard-Special-Leaves.pdf
+       doc/Records.md
+       doc/References.md
+       doc/alpha-factor-dr.pdf
+       doc/alpha-factor-gourdon.pdf
+       doc/alpha-factor-lmo.pdf
+       doc/libprimecount.md
+)
+
+pkg_pretend() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_LIBPRIMESIEVE="OFF"
+               -DBUILD_PRIMECOUNT="$(usex executable)"
+               -DBUILD_STATIC_LIBS="OFF"
+               -DBUILD_TESTS="$(usex test)"
+               -DWITH_OPENMP="$(usex openmp)"
+       )
+
+       cmake_src_configure
+}

Reply via email to