[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
121/141: guix: import texlive: Add UPSTREAM-NAME property when necessary
From: |
guix-commits |
Subject: |
121/141: guix: import texlive: Add UPSTREAM-NAME property when necessary. |
Date: |
Wed, 26 Jun 2024 06:34:52 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit f311b770502b37920291b660d45cfbb56ba5c28f
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat Jun 22 11:19:55 2024 +0200
guix: import texlive: Add UPSTREAM-NAME property when necessary.
* guix/import/texlive.scm (tlpdb->package): Add UPSTREAM-NAME property when
necessary.
* tests/texlive.scm ("texlive->guix-package, with upstream-name property"):
Add new test.
Change-Id: I134a065cbe0a7f0ff4d72b0929dba4e4d46cfaeb
---
guix/import/texlive.scm | 4 ++++
tests/texlive.scm | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+)
diff --git a/guix/import/texlive.scm b/guix/import/texlive.scm
index e4e0654b78..6d04cc25ee 100644
--- a/guix/import/texlive.scm
+++ b/guix/import/texlive.scm
@@ -703,6 +703,10 @@ at VERSION."
,@(if (assoc-ref data 'docfiles)
'((outputs '("out" "doc")))
'())
+ ,@(if (string= upstream-name
+ (string-drop name (string-length "texlive-")))
+ '()
+ `((properties '((upstream-name . ,upstream-name)))))
;; Build system.
;;
;; Use trivial build system only when the package contains no files,
diff --git a/tests/texlive.scm b/tests/texlive.scm
index 0e21c2e9b0..8e7e596962 100644
--- a/tests/texlive.scm
+++ b/tests/texlive.scm
@@ -191,6 +191,9 @@
(shortdesc . "x86_64-linux files of pax")
(binfiles
"bin/x86_64-linux/pdfannotextractor"))
+ ("r_und_s"
+ (name . "r_und_s")
+ (runfiles "texmf-dist/tex/latex/r_und_s/r_und_s.sty"))
("stricttex"
. ((name
. "stricttex")
@@ -952,4 +955,36 @@ completely compatible with Plain TeX.")
(format #t "~s~%" result)
(pk 'fail result #f)))))))
+(test-assert "texlive->guix-package, with upstream-name property"
+ ;; Replace network resources with sample data.
+ (mock ((guix build svn) svn-fetch
+ (lambda* (url revision directory
+ #:key (svn-command "svn")
+ (user-name #f)
+ (password #f)
+ (recursive? #t))
+ (mkdir-p directory)
+ (with-output-to-file (string-append directory "/foo")
+ (lambda ()
+ (display "source")))))
+ (let ((result (texlive->guix-package "r_und_s"
+ #:version "0"
+ #:database %fake-tlpdb)))
+ (match result
+ (('package
+ ('name "texlive-r-und-s")
+ ('version _)
+ ('source _)
+ ('properties _)
+ ('build-system 'texlive-build-system)
+ ('home-page _)
+ ('synopsis _)
+ ('description _)
+ ('license _))
+ #true)
+ (_
+ (begin
+ (format #t "~s~%" result)
+ (pk 'fail result #f)))))))
+
(test-end "texlive")
- 109/141: gnu: texlive-kfsh-nat: Specify upstream name., (continued)
- 109/141: gnu: texlive-kfsh-nat: Specify upstream name., guix-commits, 2024/06/26
- 110/141: gnu: tex: Set properties to protect inputs during updates., guix-commits, 2024/06/26
- 113/141: guix: download-multi-svn-to-store: Allow exporting from base URL., guix-commits, 2024/06/26
- 111/141: gnu: tex: Set properties to protect inputs during updates., guix-commits, 2024/06/26
- 112/141: gnu: texlive-match-parens: Specify upstream name., guix-commits, 2024/06/26
- 114/141: gnu: Turn TEXLIVE-SOURCE into a complete package., guix-commits, 2024/06/26
- 115/141: guix: import texlive: no bogus data with non-existing packages., guix-commits, 2024/06/26
- 116/141: gnu: texlive-ran-toks: Specify upstream name., guix-commits, 2024/06/26
- 117/141: gnu: texlive-ctan-chk: Specify upstream name., guix-commits, 2024/06/26
- 120/141: gnu: texlive-ec: Remove reference to TeX Live version in license., guix-commits, 2024/06/26
- 121/141: guix: import texlive: Add UPSTREAM-NAME property when necessary.,
guix-commits <=
- 118/141: gnu: texlive-r-und-s: Specify upstream name., guix-commits, 2024/06/26
- 119/141: gnu: texlive-pstricks-calcnotes: Specify upstream name., guix-commits, 2024/06/26
- 122/141: gnu: texlive-amstex: Create missing symlink., guix-commits, 2024/06/26
- 126/141: gnu: texlive-mex: Create missing symlinks., guix-commits, 2024/06/26
- 130/141: gnu: texlive-uplatex: Create missing symlink., guix-commits, 2024/06/26
- 123/141: gnu: texlive-csplain: Create missing symlinks., guix-commits, 2024/06/26
- 125/141: gnu: texlive-lollipop: Create missing symlink., guix-commits, 2024/06/26
- 129/141: gnu: texlive-platex: Create missing symlink., guix-commits, 2024/06/26
- 131/141: gnu: texlive-texsis: Create missing symlink., guix-commits, 2024/06/26
- 132/141: gnu: texlive-xmltex: Remove useless binding., guix-commits, 2024/06/26