mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
sci-mathematics/primecount: add 8.0
Closes: https://github.com/gentoo/gentoo/pull/45152 Signed-off-by: Dima Pasechnik <dima@pasechnik.info> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
This commit is contained in:
committed by
Michael Orlitzky
parent
55fa1c5817
commit
3dfcad70a3
@@ -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
|
||||
|
||||
53
sci-mathematics/primecount/primecount-8.0.ebuild
Normal file
53
sci-mathematics/primecount/primecount-8.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user