guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 68edd2f548ef1666619d96d4f83b10086893b966
Author: Maxim Cournoyer <[email protected]>
AuthorDate: Wed Sep 16 23:46:11 2026 +0900

    gnu: utfcpp: Update to 4.2.0.
    
    * gnu/packages/textutils.scm (utfcpp): Update to 4.2.0.
    [source]: Update snippet.
    [arguments]: New field.
---
 gnu/packages/textutils.scm | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 0d9653841ed..0bf247ad3a6 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -20,7 +20,7 @@
 ;;; Copyright © 2019 Mădălin Ionel Patrașcu 
<[email protected]>
 ;;; Copyright © 2019 Wiktor Żelazny <[email protected]>
 ;;; Copyright © 2020 Joseph LaFreniere <[email protected]>
-;;; Copyright © 2020 Maxim Cournoyer <[email protected]>
+;;; Copyright © 2020, 2026 Maxim Cournoyer <[email protected]>
 ;;; Copyright © 2021 Jean-Baptiste Volatier <[email protected]>
 ;;; Copyright © 2021 Simon Tournier <[email protected]>
 ;;; Copyright © 2021 Felix Gruber <[email protected]>
@@ -850,25 +850,25 @@ spreadsheets and outputs it in comma-separated-value 
format, and
 (define-public utfcpp
   (package
     (name "utfcpp")
-    (version "3.2.5")
+    (version "4.2.0")
     (source (origin
               (method git-fetch)
               (uri (git-reference
                      (url "https://github.com/nemtrif/utfcpp";)
                      (commit (string-append "v" version))))
               (file-name (git-file-name name version))
-              (modules '((guix build utils)))
-              ;; Unbundle ftest
-              (snippet
-               '(begin
-                  (delete-file-recursively "extern")
-                  (substitute* (find-files "tests" "\\.cpp")
-                    (("\"../extern/ftest/ftest.h\"")
-                     "<ftest/ftest.h>"))))
+              ;; Unbundle ftest.
+              (snippet '(delete-file "tests/ftest.h"))
               (sha256
                (base32
-                "195n47dblx765xas54vkgyin3xsvfnvcdc614njzqmcxybfpvix2"))))
+                "0d82ayrnrcj8b6x422pnn9gjliwyjwmkc56lz6m1xzjrallygkmx"))))
     (build-system cmake-build-system)
+    (arguments
+     (list #:configure-flags
+           #~(list #$(string-append "-DUTF8CPP_ENABLE_TESTS="
+                                    (if (%current-target-system)
+                                        "OFF"
+                                        "ON")))))
     (native-inputs (list ftest))
     (home-page "https://github.com/nemtrif/utfcpp";)
     (synopsis "Portable C++ library for handling UTF-8")

Reply via email to