summaryrefslogtreecommitdiff
path: root/sci-mathematics
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-12-26 19:15:02 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-12-26 19:15:02 +0000
commiteb06e48bb677314c2f4d02cac7392a7eb04d6371 (patch)
tree0fb5fcdc717efe133dfd183e2ad5480d90210b9a /sci-mathematics
parentdee3146a71944bb6285270ca2b9a38437d955272 (diff)
downloadbaldeagleos-repo-eb06e48bb677314c2f4d02cac7392a7eb04d6371.tar.gz
baldeagleos-repo-eb06e48bb677314c2f4d02cac7392a7eb04d6371.tar.xz
baldeagleos-repo-eb06e48bb677314c2f4d02cac7392a7eb04d6371.zip
Adding metadata
Diffstat (limited to 'sci-mathematics')
-rw-r--r--sci-mathematics/primecount/Manifest1
-rw-r--r--sci-mathematics/primecount/primecount-8.0.ebuild53
2 files changed, 54 insertions, 0 deletions
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
+}