mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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.
This commit is contained in:
parent
732c96f182
commit
c0e9d470e1
1 changed files with 6 additions and 2 deletions
|
@ -140,7 +140,9 @@ (define (sxml-value path)
|
|||
(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 @@ (define (sxml-value path)
|
|||
(sxml->string (or (sxml-value '(entry description))
|
||||
'())))
|
||||
#\newline)))))
|
||||
(license ,license)))))
|
||||
(license ,(match license
|
||||
((lst ...) `(list ,@lst))
|
||||
(license license)))))))
|
||||
|
||||
(define texlive->guix-package
|
||||
(memoize
|
||||
|
|
Loading…
Reference in a new issue