diff options
author | Tobias Geerinckx-Rice <me@tobias.gr> | 2017-08-29 21:36:13 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2017-08-29 23:40:09 +0200 |
commit | 77217b43935e5686a48d8a4676345efc3081fbdf (patch) | |
tree | dd48538ce35f430436b1b83c6d10744ee7f5012f /gnu/packages | |
parent | d6a7268bae70e2d79000145752813c9199318bbf (diff) | |
download | patches-77217b43935e5686a48d8a4676345efc3081fbdf.tar patches-77217b43935e5686a48d8a4676345efc3081fbdf.tar.gz |
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.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/javascript.scm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index a723b9e815..2d1f6acfb9 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm @@ -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 @@ (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 @@ (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") |