build-system/texlive: Allow specifying SVN references with a single component.
This is the case for macros (formats), for which the TeX Directory Structure specifies to be located at the root of the source tree directly. * guix/build-system/texlive.scm (texlive-ref): Make the ID parameter optional. Update doc.master
parent
d41acb452d
commit
8c3abb47f0
|
@ -59,13 +59,17 @@ name for the checkout directory."
|
||||||
(file-name (string-append name "-" version "-checkout"))
|
(file-name (string-append name "-" version "-checkout"))
|
||||||
(sha256 hash)))
|
(sha256 hash)))
|
||||||
|
|
||||||
(define (texlive-ref component id)
|
(define* (texlive-ref component #:optional id)
|
||||||
"Return a <svn-reference> object for the package ID, which is part of the
|
"Return a <svn-reference> object for the package ID, which is part of the
|
||||||
given Texlive COMPONENT."
|
given Texlive COMPONENT. If ID is not provided, COMPONENT is used as the top
|
||||||
|
level package ID."
|
||||||
(svn-reference
|
(svn-reference
|
||||||
(url (string-append "svn://www.tug.org/texlive/tags/"
|
(url (string-append "svn://www.tug.org/texlive/tags/"
|
||||||
%texlive-tag "/Master/texmf-dist/"
|
%texlive-tag "/Master/texmf-dist/"
|
||||||
"source/" component "/" id))
|
"source/" component
|
||||||
|
(if id
|
||||||
|
(string-append "/" id)
|
||||||
|
"")))
|
||||||
(revision %texlive-revision)))
|
(revision %texlive-revision)))
|
||||||
|
|
||||||
(define %texlive-build-system-modules
|
(define %texlive-build-system-modules
|
||||||
|
|
Reference in New Issue