[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
418/458: gnu: texlive: Improve package style.
From: |
guix-commits |
Subject: |
418/458: gnu: texlive: Improve package style. |
Date: |
Wed, 14 Jun 2023 05:23:25 -0400 (EDT) |
ngz pushed a commit to branch tex-team-next
in repository guix.
commit 925f964cfa13f6cadaac51793b2b110690d918f5
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun May 28 16:54:32 2023 +0200
gnu: texlive: Improve package style.
* gnu/packages/tex.scm (texlive)[version]: Inherit from TEXLIVE-BIN.
[inputs]: Remove labels.
[arguments]: Use G-expressions. Remove trailing #T from phases.
---
gnu/packages/tex.scm | 111 +++++++++++++++++++++++++--------------------------
1 file changed, 55 insertions(+), 56 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 74278366c1..298bfbf624 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -8739,66 +8739,65 @@ This package contains the complete tree of texmf-dist
data.")
(define-public texlive
(package
- (name "texlive")
- (version "20210325")
- (source #f)
- (build-system trivial-build-system)
- (inputs `(("bash" ,bash-minimal) ;for wrap-program
- ("texlive-bin" ,texlive-bin)
- ("texlive-texmf" ,texlive-texmf)))
- (native-search-paths
- (list (search-path-specification
- (variable "TEXMFLOCAL")
- (files '("share/texmf-local")))))
- (arguments
- `(#:modules ((guix build utils))
+ (name "texlive")
+ (version (package-version texlive-bin))
+ (source #f)
+ (build-system trivial-build-system)
+ (inputs
+ (list bash-minimal ;for wrap-program
+ texlive-bin
+ texlive-texmf))
+ (native-search-paths
+ (list (search-path-specification
+ (variable "TEXMFLOCAL")
+ (files '("share/texmf-local")))))
+ (arguments
+ (list
+ #:modules '((guix build utils))
#:builder
- ;; Build the union of texlive-bin and texlive-texmf, but take the
- ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
- (begin
+ ;; Build the union of texlive-bin and texlive-texmf, but take the
+ ;; conflicting subdirectory share/texmf-dist from texlive-texmf.
+ #~(begin
(use-modules (guix build utils))
- (let ((out (assoc-ref %outputs "out"))
- (bin (assoc-ref %build-inputs "texlive-bin"))
- (texmf (assoc-ref %build-inputs "texlive-texmf"))
- (bash (assoc-ref %build-inputs "bash")))
- (mkdir out)
- (with-directory-excursion out
- (for-each
- (lambda (name)
- (symlink (string-append bin "/" name) name))
- '("include" "lib"))
- (mkdir "bin")
- (with-directory-excursion "bin"
- (setenv "PATH" (string-append bash "/bin"))
- (for-each
- (lambda (name)
- (symlink name (basename name))
- (wrap-program
- (basename name)
- `("TEXMFCNF" =
- (,(string-append texmf
"/share/texmf-dist/web2c")))))
- (find-files (string-append bin "/bin/") "")))
- (mkdir "share")
- (with-directory-excursion "share"
- (for-each
- (lambda (name)
- (symlink (string-append bin "/share/" name) name))
- '("info" "man" "tlpkg"))
- (for-each
- (lambda (name)
- (symlink (string-append texmf "/share/" name) name))
- '("texmf-dist" "texmf-var"))))
- #t))))
- (synopsis "TeX Live, a package of the TeX typesetting system")
- (description
- "TeX Live provides a comprehensive TeX document production system.
-It includes all the major TeX-related programs, macro packages, and fonts
-that are free software, including support for many languages around the
-world.
+ (let ((bin #$(this-package-input "texlive-bin"))
+ (texmf #$(this-package-input "texlive-texmf"))
+ (bash #$(this-package-input "bash-minimal")))
+ (mkdir #$output)
+ (with-directory-excursion #$output
+ (for-each
+ (lambda (name)
+ (symlink (string-append bin "/" name) name))
+ '("include" "lib"))
+ (mkdir "bin")
+ (with-directory-excursion "bin"
+ (setenv "PATH" (string-append bash "/bin"))
+ (for-each
+ (lambda (name)
+ (symlink name (basename name))
+ (wrap-program
+ (basename name)
+ `("TEXMFCNF" =
+ (,(string-append texmf "/share/texmf-dist/web2c")))))
+ (find-files (string-append bin "/bin/") "")))
+ (mkdir "share")
+ (with-directory-excursion "share"
+ (for-each
+ (lambda (name)
+ (symlink (string-append bin "/share/" name) name))
+ '("info" "man" "tlpkg"))
+ (for-each
+ (lambda (name)
+ (symlink (string-append texmf "/share/" name) name))
+ '("texmf-dist" "texmf-var"))))))))
+ (synopsis "TeX Live, a package of the TeX typesetting system")
+ (description
+ "TeX Live provides a comprehensive TeX document production system.
+It includes all the major TeX-related programs, macro packages, and fonts that
+are free software, including support for many languages around the world.
This package contains the complete TeX Live distribution.")
- (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
- (home-page "https://www.tug.org/texlive/")))
+ (license (license:fsf-free "https://www.tug.org/texlive/copying.html"))
+ (home-page "https://www.tug.org/texlive/")))
(define-public perl-text-bibtex
(package
- 355/458: gnu: Add texlive-luatex., (continued)
- 355/458: gnu: Add texlive-luatex., guix-commits, 2023/06/14
- 386/458: gnu: texlive-totcount: Remove SIMPLE-TEXLIVE-PACKAGE call., guix-commits, 2023/06/14
- 397/458: gnu: texlive-amsfonts: Fix build., guix-commits, 2023/06/14
- 393/458: gnu: texlive-knuth-lib: Fix build., guix-commits, 2023/06/14
- 356/458: gnu: texlive-siunitx: Refresh package definition., guix-commits, 2023/06/14
- 410/458: gnu: texlive-xindy: Use TEXLIVE-BUILD-SYSTEM and related tools., guix-commits, 2023/06/14
- 406/458: gnu: texlive-xypic: Fix build., guix-commits, 2023/06/14
- 394/458: gnu: texlive-mflogo-font: Fix build., guix-commits, 2023/06/14
- 404/458: gnu: texlive-cs: Fix build., guix-commits, 2023/06/14
- 415/458: gnu: Add texlive-mfware., guix-commits, 2023/06/14
- 418/458: gnu: texlive: Improve package style.,
guix-commits <=
- 423/458: gnu: Add texlive-latex., guix-commits, 2023/06/14
- 428/458: gnu: texlive-xmltex: Rely on build system to create formats., guix-commits, 2023/06/14
- 430/458: gnu: texlive-csplain: Create formats., guix-commits, 2023/06/14
- 431/458: gnu: texlive-jadetex: Rely on build system to create formats., guix-commits, 2023/06/14
- 457/458: gnu: Replace texlive-latex-base with texlive-latex-bin., guix-commits, 2023/06/14
- 458/458: guix: texlive importer: Set #:texlive-latex-bin? when appropriate., guix-commits, 2023/06/14
- 446/458: gnu: Add texlive-ltxmisc., guix-commits, 2023/06/14
- 350/458: gnu: texlive-dvips: Refresh package definition., guix-commits, 2023/06/14
- 389/458: guix: texlive-build-system: Generate font metrics., guix-commits, 2023/06/14
- 349/458: gnu: texlive-underscore: Refresh package definition., guix-commits, 2023/06/14