gnu: Add unicode-cldr-common.
* gnu/packages/unicode.scm (unicode-cldr-commmon): New variable. Signed-off-by: Ricardo Wurmus <rekado@elephly.net> Co-authored-by: Ricardo Wurmus <rekado@elephly.net>master
parent
b7f0a55a9a
commit
1a9f666b1d
|
@ -20,6 +20,7 @@
|
||||||
#:use-module (guix licenses)
|
#:use-module (guix licenses)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix utils)
|
||||||
#:use-module (guix build-system trivial))
|
#:use-module (guix build-system trivial))
|
||||||
|
|
||||||
(define (unicode-emoji-file name version hash)
|
(define (unicode-emoji-file name version hash)
|
||||||
|
@ -79,3 +80,41 @@
|
||||||
Unicode emoji supporting fonts or keyboards should support according to the
|
Unicode emoji supporting fonts or keyboards should support according to the
|
||||||
Unicode Technological Standard #51.")
|
Unicode Technological Standard #51.")
|
||||||
(license unicode)))
|
(license unicode)))
|
||||||
|
|
||||||
|
(define-public unicode-cldr-common
|
||||||
|
(package
|
||||||
|
(name "unicode-cldr-common")
|
||||||
|
(version "36.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch/zipbomb)
|
||||||
|
(uri (string-append "https://unicode.org/Public/cldr/"
|
||||||
|
(version-major version)
|
||||||
|
"/cldr-common-" version ".zip"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"0hxsc3j5zb32hmiaj0r3ajchmklx6zng6zlh1ca6s9plq5b9w9q7"))))
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:modules ((guix build utils))
|
||||||
|
#:builder
|
||||||
|
(let ((out (string-append %output "/share/unicode/cldr/common")))
|
||||||
|
(use-modules (guix build utils))
|
||||||
|
(mkdir-p out)
|
||||||
|
(copy-recursively (string-append (assoc-ref %build-inputs "source")
|
||||||
|
"/common")
|
||||||
|
out)
|
||||||
|
#t)))
|
||||||
|
(home-page "https://www.unicode.org")
|
||||||
|
(synopsis "Locale data repository")
|
||||||
|
(description
|
||||||
|
"The Unicode Common Locale Data Repository (CLDR) is a large repository
|
||||||
|
of locale data, including among others
|
||||||
|
|
||||||
|
@itemize
|
||||||
|
@item patterns for formatting and parsing,
|
||||||
|
@item name translations,
|
||||||
|
@item and various informations on languages, scripts and country-specific
|
||||||
|
conventions.
|
||||||
|
@end itemize\n")
|
||||||
|
(license unicode)))
|
||||||
|
|
Reference in New Issue