gnu: utf8proc: Update to 2.4.0.

* gnu/packages/textutils.scm (utf8proc): Update to 2.4.0.
[inputs]: Rename to ...
[native-inputs]: ... this.  Update Unicode test data and add PERL.
[arguments]: End phase on #t.
This commit is contained in:
Marius Bakke 2019-06-21 11:58:30 +02:00
parent 39ff1d8930
commit 9929338031
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -140,7 +140,7 @@ (define-public enca
(define-public utf8proc (define-public utf8proc
(package (package
(name "utf8proc") (name "utf8proc")
(version "2.1.1") (version "2.4.0")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -149,23 +149,26 @@ (define-public utf8proc
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1brr8nnpam7y8l9j8fppdpdqvfyfxliw20z41qfip6ygz9pvcsiq")))) (base32 "1i42hqwc8znqii9brangwkxk5cyc2lk95ip405fg88zr7z2ncr34"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(inputs ; test data that is otherwise downloaded with curl (native-inputs ;test data that is otherwise downloaded with curl
`(("NormalizationTest.txt" `(("NormalizationTest.txt"
,(origin ,(origin
(method url-fetch) (method url-fetch)
(uri (string-append "http://www.unicode.org/Public/9.0.0/ucd/" (uri (string-append "https://www.unicode.org/Public/12.1.0/ucd/"
"NormalizationTest.txt")) "NormalizationTest.txt"))
(sha256 (sha256
(base32 "1fxrz0bilsbwl685336aqi88k62i6nqhm62rvy4zhg3bcm4dhj1d")))) (base32 "0hb97k9xv1lr847hwz0719ksqy39s47xw6k01dgs1368jdibvawc"))))
("GraphemeBreakTest.txt" ("GraphemeBreakTest.txt"
,(origin ,(origin
(method url-fetch) (method url-fetch)
(uri (string-append "http://www.unicode.org/Public/9.0.0/ucd/" (uri (string-append "https://www.unicode.org/Public/12.1.0/ucd/"
"auxiliary/GraphemeBreakTest.txt")) "auxiliary/GraphemeBreakTest.txt"))
(sha256 (sha256
(base32 "0qbhyhmf0778lc2hcwlpizrvmdxwpk959v2q2wb8abv09ba7wvn7")))))) (base32 "0qc90ppmrwfn3y9cdn8jcjrn7qpdf0fhxkwh945yp4rvh37mbgcm"))))
;; For tests.
("perl" ,perl)))
(arguments (arguments
'(#:make-flags (list "CC=gcc" '(#:make-flags (list "CC=gcc"
(string-append "prefix=" (assoc-ref %outputs "out"))) (string-append "prefix=" (assoc-ref %outputs "out")))
@ -180,7 +183,8 @@ (define-public utf8proc
'("NormalizationTest.txt" "GraphemeBreakTest.txt")) '("NormalizationTest.txt" "GraphemeBreakTest.txt"))
(substitute* "data/GraphemeBreakTest.txt" (substitute* "data/GraphemeBreakTest.txt"
(("÷") "/") (("÷") "/")
(("×") "+"))))))) (("×") "+"))
#t)))))
(home-page "https://juliastrings.github.io/utf8proc/") (home-page "https://juliastrings.github.io/utf8proc/")
(synopsis "C library for processing UTF-8 Unicode data") (synopsis "C library for processing UTF-8 Unicode data")
(description "utf8proc is a small C library that provides Unicode (description "utf8proc is a small C library that provides Unicode