[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
361/452: gnu: simple-texlive-package: Turn it into a stub.
From: |
guix-commits |
Subject: |
361/452: gnu: simple-texlive-package: Turn it into a stub. |
Date: |
Fri, 9 Jun 2023 13:44:01 -0400 (EDT) |
ngz pushed a commit to branch tex-team-next
in repository guix.
commit c3dedcde5db8aa0c004f9b28513990a6fd9848b4
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 3333019262..882c8489fe 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)
- 249/452: gnu: texlive-eso-pic: Refresh package definition., (continued)
- 249/452: gnu: texlive-eso-pic: Refresh package definition., guix-commits, 2023/06/09
- 277/452: gnu: texlive-auxhook: Refresh package definition., guix-commits, 2023/06/09
- 275/452: gnu: texlive-halloweenmath: Refresh package definition., guix-commits, 2023/06/09
- 270/452: gnu: texlive-pdfx: Refresh package definition., guix-commits, 2023/06/09
- 254/452: gnu: texlive-ms: Refresh package definition., guix-commits, 2023/06/09
- 294/452: gnu: texlive-zhspacing: Refresh package definition., guix-commits, 2023/06/09
- 305/452: gnu: texlive-calrsfs: Refresh package definition., guix-commits, 2023/06/09
- 306/452: gnu: texlive-seminar: Refresh package definition., guix-commits, 2023/06/09
- 315/452: gnu: texlive-l3build: Refresh package definition., guix-commits, 2023/06/09
- 354/452: gnu: Add texlive-mptopdf., guix-commits, 2023/06/09
- 361/452: gnu: simple-texlive-package: Turn it into a stub.,
guix-commits <=
- 359/452: gnu: texlive-hyphen-package: Remove SIMPLE-TEXLIVE-PACKAGE call., guix-commits, 2023/06/09
- 19/452: gnu: Add texlive-xfor., guix-commits, 2023/06/09
- 53/452: gnu: texlive-latex-g-brief -> texlive-g-brief., guix-commits, 2023/06/09
- 59/452: gnu: texlive-latex-geometry -> texlive-geometry., guix-commits, 2023/06/09
- 62/452: gnu: texlive-latex-supertabular -> texlive-supertabular., guix-commits, 2023/06/09
- 71/452: gnu: texlive-zref: Fix build., guix-commits, 2023/06/09
- 89/452: gnu: texlive-latex-threeparttable -> texlive-threeparttable., guix-commits, 2023/06/09
- 104/452: gnu: texlive-latex-ocgx2 -> texlive-ocgx2., guix-commits, 2023/06/09
- 107/452: gnu: texlive-latex-readarray -> texlive-readarray., guix-commits, 2023/06/09
- 119/452: gnu: texlive-generic-babel-norsk -> texlive-babel-norsk., guix-commits, 2023/06/09