mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: font-mathjax, js-mathjax: Remove hard-coded version.
* gnu/package-s/javascript.scm (font-mathjax, js-mathjax)[arguments]: Re-use font-mathjax's ‘version’ field instead of duplicating the version number.
This commit is contained in:
parent
d6a7268bae
commit
77217b4393
1 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
|
||||
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -59,7 +60,8 @@ (define-public font-mathjax
|
|||
(mkdir-p install-directory)
|
||||
(zero? (system* "tar" "-C" install-directory "-xvf"
|
||||
(assoc-ref %build-inputs "source")
|
||||
"MathJax-2.7.2/fonts" "--strip" "2"))))))
|
||||
,(string-append "MathJax-" version "/fonts")
|
||||
"--strip" "2"))))))
|
||||
(native-inputs
|
||||
`(("gzip" ,gzip)
|
||||
("tar" ,tar)))
|
||||
|
@ -91,7 +93,9 @@ (define-public js-mathjax
|
|||
(setenv "LANG" "en_US.UTF-8")
|
||||
(let ((install-directory (string-append %output "/share/javascript/mathjax")))
|
||||
(system* "tar" "xvf" (assoc-ref %build-inputs "source")
|
||||
"MathJax-2.7.1/unpacked" "--strip" "2")
|
||||
,(string-append "MathJax-" (package-version font-mathjax)
|
||||
"/unpacked")
|
||||
"--strip" "2")
|
||||
(mkdir-p install-directory)
|
||||
(symlink (string-append (assoc-ref %build-inputs "font-mathjax")
|
||||
"/share/fonts/mathjax")
|
||||
|
|
Loading…
Reference in a new issue