From 2cece695ba0ac3ad689550a5891c20397354fdd5 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 6 Jul 2019 23:08:21 +0200 Subject: [PATCH] gnu: Add texlive-unicode-data. * gnu/packages/tex.scm (texlive-unicode-data): New variable. (texlive-generic-unicode-data): Deprecate package. --- gnu/packages/tex.scm | 65 ++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 39 deletions(-) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index bc897095de..490d219677 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -411,6 +411,32 @@ This package contains the binaries.") (license (license:fsf-free "https://www.tug.org/texlive/copying.html")) (home-page "https://www.tug.org/texlive/"))) + +(define-public texlive-unicode-data + (package + (inherit (simple-texlive-package + "texlive-unicode-data" + (list "/tex/generic/unicode-data/" + "/doc/generic/unicode-data/") + (base32 + "1j63kz29arfiydb8r1a53q1r4zyk1yjbcq0w9i93zddczgqzgbfb") + #:trivial? #t)) + (home-page "https://www.ctan.org/pkg/unicode-data") + (synopsis "Unicode data and loaders for TeX") + (description "This bundle provides generic access to Unicode Consortium +data for TeX use. It contains a set of text files provided by the Unicode +Consortium which are currently all from Unicode 8.0.0, with the exception of +@code{MathClass.txt} which is not currently part of the Unicode Character +Database. Accompanying these source data are generic TeX loader files +allowing this data to be used as part of TeX runs, in particular in building +format files. Currently there are two loader files: one for general character +set up and one for initializing XeTeX character classes as has been carried +out to date by @code{unicode-letters.tex}. ") + (license license:lppl1.3c+))) + +(define-public texlive-generic-unicode-data + (deprecated-package "texlive-generic-unicode-data" texlive-unicode-data)) + (define-public texlive-dvips (package (name "texlive-dvips") @@ -478,45 +504,6 @@ to PostScript.") license:expat license:lgpl3+)))) -(define-public texlive-generic-unicode-data - (package - (name "texlive-generic-unicode-data") - (version (number->string %texlive-revision)) - (source (origin - (method svn-fetch) - (uri (svn-reference - (url (string-append "svn://www.tug.org/texlive/tags/" - %texlive-tag "/Master/texmf-dist/" - "/tex/generic/unicode-data")) - (revision %texlive-revision))) - (file-name (string-append name "-" version "-checkout")) - (sha256 - (base32 - "0r1v16jyfpz6dwqsgm6b9jcj4kf2pkzc9hg07s6fx9g8ba8qglih")))) - (build-system trivial-build-system) - (arguments - `(#:modules ((guix build utils)) - #:builder - (begin - (use-modules (guix build utils)) - (let ((target (string-append (assoc-ref %outputs "out") - "/share/texmf-dist/tex/generic/unicode-data"))) - (mkdir-p target) - (copy-recursively (assoc-ref %build-inputs "source") target) - #t)))) - (home-page "https://www.ctan.org/pkg/unicode-data") - (synopsis "Unicode data and loaders for TeX") - (description "This bundle provides generic access to Unicode Consortium -data for TeX use. It contains a set of text files provided by the Unicode -Consortium which are currently all from Unicode 8.0.0, with the exception of -@code{MathClass.txt} which is not currently part of the Unicode Character -Database. Accompanying these source data are generic TeX loader files -allowing this data to be used as part of TeX runs, in particular in building -format files. Currently there are two loader files: one for general character -set up and one for initializing XeTeX character classes as has been carried -out to date by @code{unicode-letters.tex}. ") - (license license:lppl1.3c+))) - (define-public texlive-generic-dehyph-exptl (package (name "texlive-generic-dehyph-exptl")