mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-28 14:01:29 -05:00
gnu: Add texlive-revtex4-1.
* gnu/packages/tex.scm (texlive-revtex4-1): New variable.
This commit is contained in:
parent
24f45cec44
commit
20b2219c81
1 changed files with 46 additions and 0 deletions
|
@ -26260,6 +26260,52 @@ (define-public texlive-revtex4
|
||||||
users having difficulty with the incompatibility of that latest version.")
|
users having difficulty with the incompatibility of that latest version.")
|
||||||
(license license:lppl)))
|
(license license:lppl)))
|
||||||
|
|
||||||
|
(define-public texlive-revtex4-1
|
||||||
|
(package
|
||||||
|
(name "texlive-revtex4-1")
|
||||||
|
(version (number->string %texlive-revision))
|
||||||
|
(source (texlive-origin
|
||||||
|
name version
|
||||||
|
(list "bibtex/bst/revtex4-1/"
|
||||||
|
"doc/latex/revtex4-1/"
|
||||||
|
"source/latex/revtex4-1/"
|
||||||
|
"tex/latex/revtex4-1/")
|
||||||
|
(base32
|
||||||
|
"023pzbf8hgyk6038zz9g4g95pwqrsqy1ahzy6byxh28b2p8qyk9a")))
|
||||||
|
(outputs '("out" "doc"))
|
||||||
|
(build-system texlive-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:modules '((ice-9 match)
|
||||||
|
(ice-9 regex)
|
||||||
|
(srfi srfi-1)
|
||||||
|
(guix build texlive-build-system)
|
||||||
|
(guix build utils))
|
||||||
|
#:build-targets #~(list "revtex4-1.dtx")
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
;; In order to build revtex4-1, we need files from revtex source.
|
||||||
|
;; Add them to TEXINPUTS.
|
||||||
|
(add-before 'build 'extend-texinputs
|
||||||
|
(lambda* (#:key inputs native-inputs #:allow-other-keys)
|
||||||
|
(let ((revtex-source
|
||||||
|
(any (match-lambda
|
||||||
|
((_ . dir)
|
||||||
|
(and (string-match "texlive-revtex-[0-9]+-checkout"
|
||||||
|
dir)
|
||||||
|
dir)))
|
||||||
|
(or native-inputs inputs))))
|
||||||
|
(setenv "TEXINPUTS"
|
||||||
|
(string-append revtex-source
|
||||||
|
"/source/latex/revtex/:"))))))))
|
||||||
|
(native-inputs (list (package-source texlive-revtex)))
|
||||||
|
(home-page "https://ctan.org/pkg/revtex4-1")
|
||||||
|
(synopsis "Styles for various physics journals")
|
||||||
|
(description
|
||||||
|
"This is an old version of @code{revtex}, and is kept as a courtesy to
|
||||||
|
users having difficulty with the incompatibility of that latest version.")
|
||||||
|
(license license:lppl1.3+)))
|
||||||
|
|
||||||
(define-public texlive-ribbonproofs
|
(define-public texlive-ribbonproofs
|
||||||
(package
|
(package
|
||||||
(name "texlive-ribbonproofs")
|
(name "texlive-ribbonproofs")
|
||||||
|
|
Loading…
Reference in a new issue