[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
361/418: gnu: simple-texlive-package: Turn it into a stub.
From: |
guix-commits |
Subject: |
361/418: gnu: simple-texlive-package: Turn it into a stub. |
Date: |
Fri, 2 Jun 2023 17:25:55 -0400 (EDT) |
ngz pushed a commit to branch tex-team-next
in repository guix.
commit 0259a9d5050009649442d6d4afdd03777d9de77a
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Thu May 18 11:30:19 2023 +0200
gnu: simple-texlive-package: Turn it into a stub.
No texlive package makes use of #:TRIVIAL? keyword anymore. This function
now
always use TEXLIVE-BUILD-SYSTEM until is can be completely removed.
* gnu/packages/tex.scm (simple-texlive-package): Always use
TEXLIVE-BUILD-SYSTEM.
---
gnu/packages/tex.scm | 46 +++-------------------------------------------
1 file changed, 3 insertions(+), 43 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index ec478ca44e..6397b513cd 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -107,8 +107,7 @@
#:key trivial?)
"Return a template for a simple TeX Live package with the given NAME,
downloading from a list of LOCATIONS in the TeX Live repository, and expecting
-the provided output HASH. If TRIVIAL? is provided, all files will simply be
-copied to their outputs; otherwise the TEXLIVE-BUILD-SYSTEM is used."
+the provided output HASH. The TRIVIAL? keyword is not used."
(set! locations
;; Some locations may be manually inserted, so be tolerant with
;; leading slashes. Ignore them consistently.
@@ -124,47 +123,8 @@ copied to their outputs; otherwise the
TEXLIVE-BUILD-SYSTEM is used."
(name name)
(version (number->string %texlive-revision))
(source (texlive-origin name version locations hash))
- (outputs (if with-documentation?
- '("out" "doc")
- '("out")))
- (build-system (if trivial?
- gnu-build-system
- texlive-build-system))
- (arguments
- (let ((copy-files
- `(lambda* (#:key outputs inputs tex-directory #:allow-other-keys)
- (let (,@(if with-documentation?
- `((doc (string-append (assoc-ref outputs "doc")
- "/share/texmf-dist")))
- '())
- (source (assoc-ref inputs "source"))
- (out (string-append (assoc-ref outputs "out")
- "/share/texmf-dist")))
- ,@(if with-documentation?
- '((mkdir-p doc)
- (copy-recursively
- (string-append source "/doc")
- (string-append doc "/doc")))
- '())
- (mkdir-p out)
- (copy-recursively "." out)
- ;; In any case, if documentation exists, it is already in the
- ;; "doc" output, so remove it from regular one.
- (let ((doc (string-append out "/doc")))
- (when (file-exists? doc)
- (delete-file-recursively doc)))
- ;; Also remove all source files.
- (let ((srcfiles (string-append out "/source")))
- (when (file-exists? srcfiles)
- (delete-file-recursively srcfiles)))))))
- (if trivial?
- `(#:tests? #f
- #:phases
- (modify-phases %standard-phases
- (delete 'configure)
- (replace 'build (const #t))
- (replace 'install ,copy-files)))
- `())))
+ (outputs (if with-documentation? '("out" "doc") '("out")))
+ (build-system texlive-build-system)
(home-page #f)
(synopsis #f)
(description #f)
- 293/418: gnu: texlive-endnotes: Refresh package definition., (continued)
- 293/418: gnu: texlive-endnotes: Refresh package definition., guix-commits, 2023/06/02
- 292/418: gnu: texlive-enumitem: Refresh package definition., guix-commits, 2023/06/02
- 289/418: gnu: texlive-jadetex: Refresh package definition., guix-commits, 2023/06/02
- 303/418: gnu: texlive-ddphonism: Refresh package definition., guix-commits, 2023/06/02
- 323/418: gnu: texlive-latexconfig: Refresh package definition., guix-commits, 2023/06/02
- 325/418: gnu: texlive-kpathsea: Refresh package definition., guix-commits, 2023/06/02
- 342/418: gnu: texlive-cm: Refresh package definition., guix-commits, 2023/06/02
- 341/418: gnu: texlive-cm-lgc: Refresh package definition., guix-commits, 2023/06/02
- 353/418: gnu: Add texlive-manfnt-font., guix-commits, 2023/06/02
- 358/418: gnu: texlive-latex-base: Refresh package definition., guix-commits, 2023/06/02
- 361/418: gnu: simple-texlive-package: Turn it into a stub.,
guix-commits <=
- 394/418: gnu: texlive-mflogo-font: Fix build., guix-commits, 2023/06/02
- 397/418: gnu: texlive-amsfonts: Fix build., guix-commits, 2023/06/02
- 401/418: gnu: texlive-stmaryrd: Fix build., guix-commits, 2023/06/02
- 410/418: gnu: texlive-xindy: Use TEXLIVE-BUILD-SYSTEM and related tools., guix-commits, 2023/06/02
- 415/418: gnu: Add texlive-mfware., guix-commits, 2023/06/02
- 417/418: gnu: texlive-texmf: Improve package style., guix-commits, 2023/06/02
- 156/418: gnu: texlive-datetime2: Refresh package definition., guix-commits, 2023/06/02
- 231/418: gnu: texlive-babel-french: Refresh package definition., guix-commits, 2023/06/02
- 240/418: gnu: texlive-makecmds: Refresh package definition., guix-commits, 2023/06/02
- 225/418: gnu: Add texlive-xmltexconfig., guix-commits, 2023/06/02