From 7c8d5f0eec157362bb7b5f6b6a6efbe6a5f102f7 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 27 Jul 2024 18:36:22 -0400 Subject: [PATCH 1/2] sci-mathematics/primesieve: add 12.3 Signed-off-by: Michael Orlitzky --- sci-mathematics/primesieve/Manifest | 1 + .../primesieve/primesieve-12.3.ebuild | 48 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 sci-mathematics/primesieve/primesieve-12.3.ebuild diff --git a/sci-mathematics/primesieve/Manifest b/sci-mathematics/primesieve/Manifest index d61583c50cca1..d16a3dd0d053f 100644 --- a/sci-mathematics/primesieve/Manifest +++ b/sci-mathematics/primesieve/Manifest @@ -1 +1,2 @@ DIST primesieve-11.0.tar.gz 125086 BLAKE2B ac425b6435bc95efbfc3d7458b59719af390508db811e0a993a606397166771cfcb9c0269249341fb6f678aafa8bae4a89e7a914176f61a608e6ccdfd0cab22b SHA512 1be9ff9d07068cab1ca69315010238ab15e5ba3b674bd45e9a0e11d20418810ece05a8df3853796118193468ac2ac6e24391f82d6db9581658ce59ddabb5b7fc +DIST primesieve-12.3.tar.gz 140761 BLAKE2B d93aa8747d43850b9194172a2300942a685797c1aeb503240eb23cbbfe4b99281f3058a622d0e2359017e144ff8200dcecdd56922e16b46366d693b04eb1350a SHA512 b7bd74223ca9abe41de9f6a48102e6cfd1b1989fb291292c13f5c751a31f8df93e1faaadee318f169cfe81fa4dc4d5b0678fe7556f77043941d8ae749c6e8cc7 diff --git a/sci-mathematics/primesieve/primesieve-12.3.ebuild b/sci-mathematics/primesieve/primesieve-12.3.ebuild new file mode 100644 index 0000000000000..97d6b8bae2988 --- /dev/null +++ b/sci-mathematics/primesieve/primesieve-12.3.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="CLI and library for quickly generating prime numbers" +HOMEPAGE="https://github.com/kimwalisch/primesieve" +SRC_URI="https://github.com/kimwalisch/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD-2" +SLOT="0/12" # subslot is first component of libprimesieve.so version +KEYWORDS="~amd64" +IUSE="doc +executable test" +RESTRICT="!test? ( test )" + +BDEPEND="doc? ( app-text/doxygen app-text/texlive media-gfx/graphviz )" + +DOCS=( + ChangeLog + README.md + doc/ALGORITHMS.md + doc/CPP_API.md + doc/C_API.md +) + +src_configure() { + local mycmakeargs=( + -DBUILD_DOC="$(usex doc)" + -DBUILD_PRIMESIEVE="$(usex executable)" + -DBUILD_STATIC_LIBS="OFF" + -DBUILD_TESTS="$(usex test)" + ) + + if use doc; then + DOCS+=( + "${BUILD_DIR}/doc/html" + "${BUILD_DIR}/doc/latex/refman.pdf" + ) + fi + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + use doc && cmake_build doc +} From 30f0165c7d521196df0daeecb165d25ee46b130c Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 27 Jul 2024 18:40:28 -0400 Subject: [PATCH 2/2] sci-mathematics/primecount: add 7.13 Closes: https://bugs.gentoo.org/936503 Signed-off-by: Michael Orlitzky --- sci-mathematics/primecount/Manifest | 1 + .../primecount/primecount-7.13.ebuild | 53 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 sci-mathematics/primecount/primecount-7.13.ebuild diff --git a/sci-mathematics/primecount/Manifest b/sci-mathematics/primecount/Manifest index 1e26ee5dd234a..cfec9e09faf2b 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 0000000000000..c6490b03ae75c --- /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 +}