From a49942cd937f049f5ea8479a135ba50894fdeef5 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Volatier Date: Tue, 11 May 2021 10:49:56 +0200 Subject: [PATCH 1/5] gnu: utf8proc: update to 2.6.1 --- gnu/packages/textutils.scm | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm index ab34373705..d82675bf79 100644 --- a/gnu/packages/textutils.scm +++ b/gnu/packages/textutils.scm @@ -63,6 +63,7 @@ #:use-module (gnu packages python-build) #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) + #:use-module (gnu packages ruby) #:use-module (gnu packages slang) #:use-module (gnu packages web)) @@ -146,7 +147,7 @@ libenca and several charset conversion libraries and tools.") (define-public utf8proc (package (name "utf8proc") - (version "2.5.0") + (version "2.6.1") (source (origin (method git-fetch) @@ -155,7 +156,7 @@ libenca and several charset conversion libraries and tools.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1xlkazhdnja4lksn5c9nf4bln5gjqa35a8gwlam5r0728w0h83qq")))) + (base32 "1zqc6airkzkssbjxanx5v8blfk90180gc9id0dx8ncs54f1ib8w7")))) (build-system gnu-build-system) (native-inputs (let ((UNICODE_VERSION "13.0.0")) ; defined in data/Makefile @@ -167,6 +168,13 @@ libenca and several charset conversion libraries and tools.") UNICODE_VERSION "/ucd/NormalizationTest.txt")) (sha256 (base32 "07g0ya4f6zfzvpp24ccxkb2yq568kh83gls85rjl950nv5fya3nn")))) + ("DerivedCoreProperties.txt" + ,(origin + (method url-fetch) + (uri (string-append "https://www.unicode.org/Public/" + UNICODE_VERSION "/ucd/DerivedCoreProperties.txt")) + (sha256 + (base32 "0j12x112cd8fpgazkc8izxnhhpia44p1m36ff8yapslxndcmzm55")))) ("GraphemeBreakTest.txt" ,(origin (method url-fetch) @@ -177,10 +185,12 @@ libenca and several charset conversion libraries and tools.") (base32 "07f8rrvcsq4pibdz6zxggxy8w7zjjqyw2ggclqlhalyv45yv7prj")))) ;; For tests. - ("perl" ,perl)))) + ("perl" ,perl) + ("ruby" ,ruby)))) (arguments '(#:make-flags (list "CC=gcc" (string-append "prefix=" (assoc-ref %outputs "out"))) + #:tests? #t #:phases (modify-phases %standard-phases (delete 'configure) @@ -189,10 +199,7 @@ libenca and several charset conversion libraries and tools.") (for-each (lambda (i) (copy-file (assoc-ref inputs i) (string-append "data/" i))) - '("NormalizationTest.txt" "GraphemeBreakTest.txt")) - (substitute* "data/GraphemeBreakTest.txt" - (("÷") "/") - (("×") "+")) + '("NormalizationTest.txt" "DerivedCoreProperties.txt" "GraphemeBreakTest.txt")) #t))))) (home-page "https://juliastrings.github.io/utf8proc/") (synopsis "C library for processing UTF-8 Unicode data") -- 2.31.1