[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
454/458: gnu: Install missing files for updmap in texlive-bin.
From: |
guix-commits |
Subject: |
454/458: gnu: Install missing files for updmap in texlive-bin. |
Date: |
Wed, 14 Jun 2023 05:23:31 -0400 (EDT) |
ngz pushed a commit to branch tex-team-next
in repository guix.
commit f58ccb14b30156304d83a4a8fb6dce32d96929cf
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon Jun 12 16:38:37 2023 +0200
gnu: Install missing files for updmap in texlive-bin.
* gnu/packages/tex.scm (texlive-scripts): New variable.
(texlive-bin)[inputs]: Use new variable.
[arguments]<#:phases>: Copy font files in addition to scripts.
(texlive-tetex): Remove variable.
(texlive-base): Remove reference to TEXLIVE-TETEX.
---
gnu/packages/tex.scm | 72 ++++++++++++++++++++--------------------------------
1 file changed, 28 insertions(+), 44 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 96d9cbc951..d32af7993a 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -108,6 +108,16 @@
(define-deprecated/public old-name name
(deprecated-package (symbol->string 'old-name) name)))
+(define texlive-scripts
+ (texlive-origin
+ "texlive-scripts" (number->string %texlive-revision)
+ (list "dvips/tetex/"
+ "fonts/enc/dvips/tetex/"
+ "fonts/map/dvips/tetex/"
+ "scripts/texlive/")
+ (base32
+ "0y571gddch111r2chjfkyjsm4zk24xxiv2rcczb5apf6d0g211b9")))
+
(define-public texlive-hyphen-complete
(package
(name "texlive-hyphen-complete")
@@ -369,20 +379,7 @@ and should be preferred to it whenever a package would
otherwise depend on
(inputs
`(("texlive-extra-src" ,texlive-extra-src)
("config" ,config)
- ("texlive-scripts"
- ,(origin
- (method svn-fetch)
- (uri (svn-reference
- (url (string-append "svn://www.tug.org/texlive/tags/"
- %texlive-tag "/Master/texmf-dist/"
- "/scripts/texlive"))
- (revision %texlive-revision)))
- (file-name (string-append "texlive-scripts-"
- (number->string %texlive-revision)
- "-checkout"))
- (sha256
- (base32
- "1jrphfjhmw17rp1yqsl70shmvka3vg0g8841q6zx2lfn48p7vqf3"))))
+ ("texlive-scripts" ,texlive-scripts)
("cairo" ,cairo)
("fontconfig" ,fontconfig)
("fontforge" ,fontforge)
@@ -505,12 +502,14 @@ and should be preferred to it whenever a package would
otherwise depend on
(with-directory-excursion "texlive-extra"
(apply (assoc-ref %standard-phases 'unpack)
(list #:source (assoc-ref inputs
"texlive-extra-src"))))))
- (add-after 'unpack-texlive-extra 'unpack-texlive-scripts
+ (add-after 'unpack-texlive-extra 'copy-texlive-scripts
(lambda* (#:key inputs #:allow-other-keys)
(mkdir "texlive-scripts")
(with-directory-excursion "texlive-scripts"
- (apply (assoc-ref %standard-phases 'unpack)
- (list #:source (assoc-ref inputs "texlive-scripts")))
+ (let ((scripts (string-append
+ (assoc-ref inputs "texlive-scripts")
+ "/scripts/texlive")))
+ (copy-recursively scripts "."))
;; Configure the version string for some scripts.
;; Normally this would be done by Subversion.
;; See <https://issues.guix.gnu.org/43442#15>.
@@ -536,7 +535,7 @@ and should be preferred to it whenever a package would
otherwise depend on
"tlmgr.pl"
"tlmgrgui.pl"
"updmap.pl")))))
- (add-after 'unpack-texlive-scripts 'patch-scripts
+ (add-after 'copy-texlive-scripts 'patch-scripts
(lambda _
(let* ((scripts (append (find-files "texk/kpathsea" "^mktex")
(find-files "texk/texlive/linked_scripts"
@@ -640,10 +639,17 @@ and should be preferred to it whenever a package would
otherwise depend on
;; Install tlpkg.
(copy-recursively tlpkg-src (string-append share "/tlpkg"))
- ;; Install texlive-scripts.
- (copy-recursively (string-append
- source "/texlive-scripts/source/")
+ ;; Install texlive-scripts and associated files.
+ (copy-recursively (string-append source "/texlive-scripts")
scripts)
+ (for-each
+ (lambda (dir)
+ (mkdir-p dir)
+ (copy-recursively (string-append
+ (assoc-ref inputs "texlive-scripts")
+ "/" dir)
+ (string-append share "/texmf-dist/" dir)))
+ '("dvips" "fonts"))
;; Patch them.
(let ((dirs (map dirname (list (which "sed") (which "awk")))))
@@ -3089,27 +3095,6 @@ of file names.")
(define-deprecated-package texlive-latex-url texlive-url)
-(define-public texlive-tetex
- (package
- (name "texlive-tetex")
- (version (number->string %texlive-revision))
- (source (texlive-origin
- name version
- (list "dvips/tetex/"
- "fonts/enc/dvips/tetex/"
- "fonts/map/dvips/tetex/")
- (base32
- "05mf8yqdj2wrc1zm3al2j4aam2wx0ky6a7slxw17pkd1c7rmvjrq")))
- (build-system texlive-build-system)
- (arguments (list #:texlive-latex-base #f))
- (home-page "https://www.ctan.org/pkg/tetex")
- (synopsis "Font maps originally from teTeX")
- (description
- "This package provides font maps that were originally part of the now
-obsolete teTeX distributions but are still used at the core of the TeX Live
-distribution.")
- (license license:public-domain)))
-
(define-public texlive-l3kernel
(package
(name "texlive-l3kernel")
@@ -4170,8 +4155,7 @@ part of the LaTeX required set of packages.")
texlive-babel-english
texlive-cyrillic
texlive-psnfss
- texlive-tools
- texlive-tetex)))
+ texlive-tools)))
(package
(name "texlive-base")
(version (number->string %texlive-revision))
- 421/458: gnu: Add texlive-tex., (continued)
- 421/458: gnu: Add texlive-tex., guix-commits, 2023/06/14
- 422/458: gnu: Add texlive-hyphen-complete, guix-commits, 2023/06/14
- 427/458: gnu: texlive-luatex: Create formats., guix-commits, 2023/06/14
- 429/458: gnu: Add texlive-luatex85., guix-commits, 2023/06/14
- 433/458: gnu: texlive-context: Create formats., guix-commits, 2023/06/14
- 438/458: gnu: Add texlive-hyphenex., guix-commits, 2023/06/14
- 441/458: gnu: Add texlive-collection-basic., guix-commits, 2023/06/14
- 447/458: gnu: Add texlive-pagesel., guix-commits, 2023/06/14
- 452/458: gnu: Add texlive-scheme-minimal., guix-commits, 2023/06/14
- 453/458: gnu: Add texlive-aeguill., guix-commits, 2023/06/14
- 454/458: gnu: Install missing files for updmap in texlive-bin.,
guix-commits <=
- 170/458: gnu: texlive-apacite: Refresh package definition., guix-commits, 2023/06/14
- 347/458: gnu: texlive-tex-ini-files: Refresh package definition., guix-commits, 2023/06/14
- 384/458: gnu: texlive-soul: Remove SIMPLE-TEXLIVE-PACKAGE call., guix-commits, 2023/06/14
- 375/458: gnu: texlive-babel-czech: Remove SIMPLE-TEXLIVE-PACKAGE call., guix-commits, 2023/06/14
- 361/458: gnu: simple-texlive-package: Turn it into a stub., guix-commits, 2023/06/14
- 374/458: gnu: texlive-fvextra: Remove SIMPLE-TEXLIVE-PACKAGE call., guix-commits, 2023/06/14
- 194/458: gnu: texlive-fp: Refresh package definition., guix-commits, 2023/06/14
- 295/458: gnu: texlive-zapfding: Refresh package definition., guix-commits, 2023/06/14
- 346/458: gnu: texlive-fontinst: Refresh package definition., guix-commits, 2023/06/14
- 402/458: gnu: texlive-wasy: Fix build., guix-commits, 2023/06/14