From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A03BA159C96 for ; Sat, 27 Jul 2024 23:14:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C5DE92BC029; Sat, 27 Jul 2024 23:14:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1F4462BC029 for ; Sat, 27 Jul 2024 23:14:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 19C37335DCC for ; Sat, 27 Jul 2024 23:14:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 30B041E67 for ; Sat, 27 Jul 2024 23:14:45 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1722121937.30f0165c7d521196df0daeecb165d25ee46b130c.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/primecount/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/primecount/Manifest sci-mathematics/primecount/primecount-7.13.ebuild X-VCS-Directories: sci-mathematics/primecount/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: 30f0165c7d521196df0daeecb165d25ee46b130c X-VCS-Branch: master Date: Sat, 27 Jul 2024 23:14:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6d240a32-b17a-48a2-aa28-dfc1909a206b X-Archives-Hash: 13faeeeb8e0daad86e59c5e9d2bf792a commit: 30f0165c7d521196df0daeecb165d25ee46b130c Author: Michael Orlitzky gentoo org> AuthorDate: Sat Jul 27 22:40:28 2024 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Sat Jul 27 23:12:17 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30f0165c sci-mathematics/primecount: add 7.13 Closes: https://bugs.gentoo.org/936503 Signed-off-by: Michael Orlitzky gentoo.org> sci-mathematics/primecount/Manifest | 1 + sci-mathematics/primecount/primecount-7.13.ebuild | 53 +++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/sci-mathematics/primecount/Manifest b/sci-mathematics/primecount/Manifest index 1e26ee5dd234..cfec9e09faf2 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-7.6.tar.gz 382074 BLAKE2B f665db8724b32b2f057db96fdd6421d7a996ed4bda7f43cd405e6c05b59abab8672407c41b6fafdd9c68dae3f51b65305112c0724c95ce3fdb33b9dbfaadfbff SHA512 643372d9a011dba8a49f21eabc00068b77a5ef5dc6d12e6b55230b97f14dc9d1d855bb7ad662beda548e4ff1396f1b06d473e2fe4b81e7dbe9926aaadc4da360 diff --git a/sci-mathematics/primecount/primecount-7.13.ebuild b/sci-mathematics/primecount/primecount-7.13.ebuild new file mode 100644 index 000000000000..c6490b03ae75 --- /dev/null +++ b/sci-mathematics/primecount/primecount-7.13.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 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="+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.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)" + ) + + cmake_src_configure +}