From f65bc1461def49e1a2242517937017492bf54676 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sat, 8 Nov 2025 21:55:24 -0300 Subject: [PATCH] gnu: primesieve: Reformat. * gnu/packages/maths.scm (primesieve): Reformat. [source, arguments]: Indent. [description]: Fill column limit. [home-page]: Put right before license. Change-Id: I9a94d6dc043ff934d29800d05c48ea7a5e137f54 Signed-off-by: Andreas Enge --- gnu/packages/maths.scm | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 6b1b6bdf66ab466549b78eec948b8764b2a7f724..bcb4520747fd36be3d3d1d58bdf3c9cd9fad08b7 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4305,27 +4305,31 @@ optimized implementations of the combinatorial prime counting algorithms.") (package (name "primesieve") (version "12.9") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/kimwalisch/primesieve") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "0y81k9ql0mcd43vsli2a5z0d76p9mkz0dlddksvvrid41qqsjhf4")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kimwalisch/primesieve") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0y81k9ql0mcd43vsli2a5z0d76p9mkz0dlddksvvrid41qqsjhf4")))) (build-system cmake-build-system) (arguments - (list #:configure-flags #~(list "-DBUILD_STATIC_LIBS=off" - "-DBUILD_TESTS=ON"))) - (home-page "https://github.com/kimwalisch/primesieve") + (list + #:configure-flags + #~(list "-DBUILD_STATIC_LIBS=OFF" + "-DBUILD_TESTS=ON"))) (synopsis "Prime number generator") - (description "@code{primesieve} is a command-line program and C/C++ - library for quickly generating prime numbers. It is very cache efficient, - it detects your CPU's L1 & L2 cache sizes and allocates its main data - structures accordingly. It is also multi-threaded by default, it uses all - available CPU cores whenever possible i.e. if sequential ordering is not - required. primesieve can generate primes and prime k-tuplets up to 264.") + (description + "@code{primesieve} is a command-line program and C/C++ library for +quickly generating prime numbers. It is very cache efficient, it detects your +CPU's L1 & L2 cache sizes and allocates its main data structures accordingly. +It is also multi-threaded by default, it uses all available CPU cores whenever +possible i.e. if sequential ordering is not required. primesieve can generate +primes and prime k-tuplets up to 264.") + (home-page "https://github.com/kimwalisch/primesieve") (license license:bsd-2))) (define-public python-accupy