From 6a9905e269a1104c93dceb41e2627a8568642946 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 22 Aug 2022 20:43:37 +0100 Subject: gentoo auto-resync : 22:08:2022 - 20:43:37 --- sci-mathematics/primecount/Manifest | 2 + sci-mathematics/primecount/primecount-7.4.ebuild | 54 ++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 sci-mathematics/primecount/primecount-7.4.ebuild (limited to 'sci-mathematics/primecount') diff --git a/sci-mathematics/primecount/Manifest b/sci-mathematics/primecount/Manifest index c58624330817..2a0d9e10a641 100644 --- a/sci-mathematics/primecount/Manifest +++ b/sci-mathematics/primecount/Manifest @@ -1,3 +1,5 @@ DIST primecount-7.3.tar.gz 360921 BLAKE2B 0d9ad7c791dba12b05e4c88703dc4bfc1f557a1443c8430f3921f1a6e99b740b437cb53f39e832d69c4148b597960b028e0f38e4f4d96e50434b1d020f4ea620 SHA512 56dcae60460c88368214e01f8e3618e6b61b13f2730bfd1f281721ef71d6136308ba6832e4bd25a1885e2c6142009c5772d6102f82c65e8522e990cb62c55e71 +DIST primecount-7.4.tar.gz 372374 BLAKE2B ca16004e1a1fe209452d1c4aa9d4dfe7816ff581ffbb9717ae9a8224815df0b672871ec3d749000099a91c8ee50bcc3c43cea3dcb9ff999436544bed2c2f5fde SHA512 20b33a1c0d2338f422a0da8723bafd35689f9c93918c7dcf64068aee1cd5e03f41d0ef49e39a7e920828b478e8faeda4fea477dacca1145c852f24d1f5e6ab5b EBUILD primecount-7.3.ebuild 1277 BLAKE2B 92be849a95a336efd085be960af5ba8b6eceb1176db1e981f0c3f629767553a050e8e77bb966ab70930fc26b2df1ffa92537d1a2fcaebaa02221f68d7de6a656 SHA512 a7b515467366778defc734ae31fdea8cf32e2218ab85aa80f6bbbd082e9ff24056b3e9b01d232dbf76f4565c139f3f85f65ac6842dc8d9cae8cc08c9aa2bfcfc +EBUILD primecount-7.4.ebuild 1284 BLAKE2B d1792f783e770f34c63568a55f46e950f38d3bbde8fb8f9ebb6b62e1e26623dd37297911b1c37adb1ee2fa80664e2e4d19523608dcc0b023d57ba1256bc1fc65 SHA512 92b2cf016c16534315e844855f5b00ca94c59816a0215a8b7d333e0a4a7509ffbcd9c00e5804538a0c0d9ca5baef92a401798757d2c2a8385613318913dd434d MISC metadata.xml 674 BLAKE2B 2d8321166afee1e9d0a20723ae6849f17a7ef0d5d474dc3ec0b1650519b197ad5b1360641faa6985a60121501741a137812b8bcf03cd708766278a1b014615f7 SHA512 7a4fa0c1cae4880bdc230065c98ec46dfb5f1b1adae6ffa5eac275f6f04f38ce0c24042e62f5aac6117f9f816890244daec8fb1c920ec4b6a0a124385e5d7e33 diff --git a/sci-mathematics/primecount/primecount-7.4.ebuild b/sci-mathematics/primecount/primecount-7.4.ebuild new file mode 100644 index 000000000000..b96647e98b8f --- /dev/null +++ b/sci-mathematics/primecount/primecount-7.4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2022 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/7" # subslot is first component of libprimecount.so version +KEYWORDS="~amd64" +IUSE="cpu_flags_x86_popcnt +executable openmp test" +RESTRICT="!test? ( test )" + +DEPEND=">=sci-mathematics/primesieve-8.0:=" +RDEPEND="${DEPEND}" + +DOCS=( + ChangeLog + README.md + doc/Credits.md + doc/Easy-Special-Leaves.md + doc/Hard-Special-Leaves.md + 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)" + -DWITH_POPCNT="$(usex cpu_flags_x86_popcnt)" + ) + + cmake_src_configure +} -- cgit v1.2.3