[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/08: import: texlive: Handle multi-license packages.
From: |
guix-commits |
Subject: |
03/08: import: texlive: Handle multi-license packages. |
Date: |
Fri, 22 Nov 2019 09:13:56 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit c0e9d470e1eb3eba0d2c2da3c6ffdd5665c4638b
Author: Ludovic Courtès <address@hidden>
Date: Fri Nov 22 14:21:13 2019 +0100
import: texlive: Handle multi-license packages.
This fixes "guix import texlive translator".
* guix/import/texlive.scm (sxml->package): Add clause for when 'license'
is a list of licences, as is the case with the "translator" package.
---
guix/import/texlive.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/guix/import/texlive.scm b/guix/import/texlive.scm
index 791b514..d528aac 100644
--- a/guix/import/texlive.scm
+++ b/guix/import/texlive.scm
@@ -140,7 +140,9 @@ expression describing it."
(synopsis (sxml-value '(entry caption *text*)))
(version (or (sxml-value '(entry version @ number *text*))
(sxml-value '(entry version @ date *text*))))
- (license (string->license (sxml-value '(entry license @ type
*text*))))
+ (license (match ((sxpath '(entry license @ type *text*)) sxml)
+ ((license) (string->license license))
+ ((lst ...) (map string->license lst))))
(home-page (string-append "http://www.ctan.org/pkg/"; id))
(ref (texlive-ref component id))
(checkout (download-svn-to-store store ref)))
@@ -169,7 +171,9 @@ expression describing it."
(sxml->string (or (sxml-value '(entry
description))
'())))
#\newline)))))
- (license ,license)))))
+ (license ,(match license
+ ((lst ...) `(list ,@lst))
+ (license license)))))))
(define texlive->guix-package
(memoize
- branch master updated (4e2e84d -> cf87919), guix-commits, 2019/11/22
- 03/08: import: texlive: Handle multi-license packages.,
guix-commits <=
- 01/08: substitute: Don't fetch /nix-cache-info., guix-commits, 2019/11/22
- 02/08: daemon: GC displays how much it has collected., guix-commits, 2019/11/22
- 07/08: pack: Allow multiple '--manifest' options., guix-commits, 2019/11/22
- 05/08: profiles: Add 'concatenate-manifests'., guix-commits, 2019/11/22
- 08/08: gnu: libseccomp: Fix build on AArch64., guix-commits, 2019/11/22
- 04/08: environment: Document that '--manifest' can be repeated., guix-commits, 2019/11/22
- 06/08: package: Allow multiple '--manifest' options., guix-commits, 2019/11/22