From 4d0c2275781bc941f8a85798c54db5c8d3a4d816 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Sat, 8 Nov 2025 21:29:20 -0300 Subject: [PATCH] gnu: primecount: Reformat. * gnu/packages/maths.scm(primecount): Reformat. [source, arguments]: Indent. [description]: Fill column limit. [home-page]: Put right before license. Change-Id: I7630dc994166664bf96a7da262062c2b292f0073 Signed-off-by: Andreas Enge --- gnu/packages/maths.scm | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index a255e1aa93ad179678fe59d8f604ad3c0cfaaf1e..6b1b6bdf66ab466549b78eec948b8764b2a7f724 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -4270,31 +4270,35 @@ functions.") (package (name "primecount") (version "7.19") - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/kimwalisch/primecount") - (commit (string-append "v" version)))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1yjqk0q04d8kqkal5vahyfgwas1sz8h3scmk27sr128jcc1cvcx6")))) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kimwalisch/primecount") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yjqk0q04d8kqkal5vahyfgwas1sz8h3scmk27sr128jcc1cvcx6")))) (build-system cmake-build-system) (arguments - (list #:configure-flags #~(list "-DBUILD_LIBPRIMESIEVE=OFF" - "-DBUILD_MANPAGE=ON" - "-DBUILD_SHARED_LIBS=ON" - "-DBUILD_STATIC_LIBS=OFF" - "-DBUILD_TESTS=ON"))) + (list + #:configure-flags + #~(list "-DBUILD_LIBPRIMESIEVE=OFF" + "-DBUILD_MANPAGE=ON" + "-DBUILD_SHARED_LIBS=ON" + "-DBUILD_STATIC_LIBS=OFF" + "-DBUILD_TESTS=ON"))) (native-inputs (list asciidoc)) (inputs (list primesieve)) - (home-page "https://github.com/kimwalisch/primecount") (synopsis "Fast prime counting function implementations") - (description "@code{primecount} is a command-line program and C/C++ -library that counts the number of primes ≤ x (maximum 1031) using highly + (description + "@code{primecount} is a command-line program and C/C++ library that +counts the number of primes no greater than x (maximum 1031) using highly optimized implementations of the combinatorial prime counting algorithms.") + (home-page "https://github.com/kimwalisch/primecount") (license license:bsd-2))) (define-public primesieve