From: Arun Isaac <arunisaac@systemreboot.net>
To: 27049@debbugs.gnu.org
Subject: bug#27049: [PATCH] gnu: Add mathjax.
Date: Wed, 24 May 2017 03:13:26 +0530 [thread overview]
Message-ID: <15cc163d.ADsAAWz_hBsAAAAAAAAAAAOtUOAAAAACwQwAAAAAAAW9WABZJK0O@mailjet.com> (raw)
* gnu/packages/web.scm (mathjax): New variable.
---
gnu/packages/web.scm | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index bcc20bfdd..84fa3c12f 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4584,3 +4584,43 @@ allocations, it does not buffer data, it can be interrupted at anytime.
Depending on your architecture, it only requires about 40 bytes of data per
message stream (in a web server that is per connection).")
(license l:expat)))
+
+(define-public mathjax
+ (package
+ (name "mathjax")
+ (version "2.7.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/mathjax/MathJax/archive/"
+ version ".tar.gz"))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0sbib5lk0jrvbq6s72ag6ss3wjlz5wnk07ddxij1kp96yg3c1d1b"))))
+ (build-system trivial-build-system)
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder
+ (begin
+ (use-modules (guix build utils))
+
+ (let ((install-dir (string-append %output "/share/webapps/mathjax"))
+ (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
+ (path (string-append (assoc-ref %build-inputs "gzip") "/bin")))
+ (mkdir-p install-dir)
+ (chdir install-dir)
+ (setenv "PATH" path)
+ (system* tar "xvf" (assoc-ref %build-inputs "source") "--strip" "1")))))
+ (native-inputs
+ `(("gzip" ,gzip)
+ ("tar" ,tar)))
+ (home-page "https://www.mathjax.org/")
+ (synopsis "JavaScript display engine for LaTeX, MathML, and AsciiMath")
+ (description "MathJax is a JavaScript display engine for LaTeX, MathML,
+and AsciiMath notation that works in all modern browsers. It requires no
+plugins or software to be installed on the browser. So the page author can
+write web documents that include mathematics and be confident that readers will
+be able to view it naturally and easily.")
+ (license l:asl2.0)))
--
2.12.2
next reply other threads:[~2017-05-23 21:44 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-23 21:43 Arun Isaac [this message]
[not found] ` <handler.27049.B.149557583819622.ack@debbugs.gnu.org>
2017-05-24 10:09 ` bug#27049: Acknowledgement ([PATCH] gnu: Add mathjax.) Arun Isaac
2017-05-24 13:16 ` Brendan Tildesley
2017-05-28 19:41 ` Ludovic Courtès
2017-05-29 18:47 ` Arun Isaac
2017-05-24 14:47 ` bug#27049: [PATCH] gnu: Add mathjax Brendan Tildesley
2017-05-28 17:41 ` Ludovic Courtès
2017-05-28 18:44 ` Arun Isaac
2017-05-29 7:47 ` Brendan Tildesley
[not found] ` <ba2e770a.AEUAKlldotwAAAAAAAAAAAOzWv8AAAACwQwAAAAAAAW9WABZKxqe@mailjet.com>
2017-05-29 9:34 ` Ludovic Courtès
2017-05-29 11:13 ` Jelle Licht
2017-05-29 12:05 ` Ludovic Courtès
2017-05-29 12:26 ` Jelle Licht
2017-05-29 16:04 ` Ludovic Courtès
2017-05-29 19:19 ` Arun Isaac
2017-05-30 0:55 ` Mike Gerwitz
2017-06-02 20:33 ` bug#27049: [PATCH 1/2] gnu: Add font-mathjax Arun Isaac
2017-06-03 13:51 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15cc163d.ADsAAWz_hBsAAAAAAAAAAAOtUOAAAAACwQwAAAAAAAW9WABZJK0O@mailjet.com \
--to=arunisaac@systemreboot.net \
--cc=27049@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.