mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
build-system/texlive: Add texlive-origin.
* guix/build-system/texlive.scm (texlive-origin): New procedure.
This commit is contained in:
parent
f97c9e4cfb
commit
2541379ee4
1 changed files with 15 additions and 0 deletions
|
@ -30,6 +30,7 @@ (define-module (guix build-system texlive)
|
|||
texlive-build
|
||||
texlive-build-system
|
||||
texlive-ref
|
||||
texlive-origin
|
||||
%texlive-tag
|
||||
%texlive-revision))
|
||||
|
||||
|
@ -44,6 +45,20 @@ (define-module (guix build-system texlive)
|
|||
(define %texlive-tag "texlive-2018.2")
|
||||
(define %texlive-revision 49435)
|
||||
|
||||
(define (texlive-origin name version locations hash)
|
||||
"Return an <origin> object for a TeX Live package consisting of multiple
|
||||
LOCATIONS with a provided HASH. Use NAME and VERSION to compute a prettier
|
||||
name for the checkout directory."
|
||||
(origin
|
||||
(method svn-multi-fetch)
|
||||
(uri (svn-multi-reference
|
||||
(url (string-append "svn://www.tug.org/texlive/tags/"
|
||||
%texlive-tag "/Master/texmf-dist/"))
|
||||
(locations locations)
|
||||
(revision %texlive-revision)))
|
||||
(file-name (string-append name "-" version "-checkout"))
|
||||
(sha256 hash)))
|
||||
|
||||
(define (texlive-ref component id)
|
||||
"Return a <svn-reference> object for the package ID, which is part of the
|
||||
given Texlive COMPONENT."
|
||||
|
|
Loading…
Reference in a new issue