From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2HMSH23aOF8JEwAA0tVLHw (envelope-from ) for ; Sun, 16 Aug 2020 07:04:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wMjeGm3aOF/KQgAAbx9fmQ (envelope-from ) for ; Sun, 16 Aug 2020 07:04:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C7D0E9400CF for ; Sun, 16 Aug 2020 07:04:12 +0000 (UTC) Received: from localhost ([::1]:53800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k7CiB-0004Rt-HS for larch@yhetil.org; Sun, 16 Aug 2020 03:04:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7Ci3-0004RU-Ns for guix-patches@gnu.org; Sun, 16 Aug 2020 03:04:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45198) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k7Ci3-0002Zk-Eg for guix-patches@gnu.org; Sun, 16 Aug 2020 03:04:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k7Ci3-0002zY-Ao for guix-patches@gnu.org; Sun, 16 Aug 2020 03:04:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42885] [PATCH 2/4] gnu: Add mathjax-bin (MathJax 3). Resent-From: Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 16 Aug 2020 07:04:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42885 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42885@debbugs.gnu.org Received: via spool by 42885-submit@debbugs.gnu.org id=B42885.159756143611468 (code B ref 42885); Sun, 16 Aug 2020 07:04:03 +0000 Received: (at 42885) by debbugs.gnu.org; 16 Aug 2020 07:03:56 +0000 Received: from localhost ([127.0.0.1]:56740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7Chv-0002yo-QN for submit@debbugs.gnu.org; Sun, 16 Aug 2020 03:03:56 -0400 Received: from mout-p-103.mailbox.org ([80.241.56.161]:23428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7Chn-0002xy-Gq for 42885@debbugs.gnu.org; Sun, 16 Aug 2020 03:03:49 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4BTp713jFzzKmTq for <42885@debbugs.gnu.org>; Sun, 16 Aug 2020 09:03:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1597561419; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B8lvaknBboFC5vR8SPPfokYeRWbIwWC74dORN3C4+Xo=; b=lxh5IbDiPgW2p1XaBPIvvoHwLe3AFFSlBhdGm0nlbxZgaCykavYGsuZzt6FAWZeCrj+xGM A4yv9TQ8IGNfXi03GAMA7ogjlABHNRRAwE3ku0UTjroOFvYjjr6mVWHer5eRpZQy2o1VXu fNq3uMdoj2RHi5qzNiQHd3J7h6/m/phRgDTWtlYQyIHd8uVpMiHEZnajj7/CVjM+I4LcDS K56eDQvn+KVxQIiAWuQpoDwgMqlZo/4rU+rmaVEI0lozoI/f3p2zd/dsW4fvVbyaZXpSwc EUB9xBR7Cx8UlJccaN2UTQFlLhTl3uPNdJeFCMD1g1atpUlTsZUDOCrVFkGuTw== Received: from smtp2.mailbox.org ([80.241.60.241]) by gerste.heinlein-support.de (gerste.heinlein-support.de [91.198.250.173]) (amavisd-new, port 10030) with ESMTP id xrkMkThMCsHS for <42885@debbugs.gnu.org>; Sun, 16 Aug 2020 09:03:37 +0200 (CEST) From: Brendan Tildesley Date: Sun, 16 Aug 2020 17:03:16 +1000 Message-Id: <20200816070318.18642-2-mail@brendan.scot> In-Reply-To: <20200816070318.18642-1-mail@brendan.scot> References: <20200816070318.18642-1-mail@brendan.scot> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-SPAM-Probability: X-Rspamd-Score: -6.19 / 15.00 / 15.00 X-Rspamd-Queue-Id: 22761175A X-Rspamd-UID: 7490e4 X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=brendan.scot header.s=MBO0001 header.b=lxh5IbDi; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 2.49 X-TUID: Z6F48zu/AbgV * gnu/packages/javascript.scm: (mathjax-bin): New variable --- gnu/packages/javascript.scm | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index d5ff5bffee..d6a66a1482 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice ;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner ;;; Copyright © 2018 Nicolas Goaziou +;;; Copyright © 2020 Brendan Tildesley ;;; ;;; This file is part of GNU Guix. ;;; @@ -128,6 +129,45 @@ 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."))) +(define-public mathjax-bin + (package + (name "mathjax") + (version "3.0.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mathjax/MathJax") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1zd0chn0cjahi28qv3nzshwljz2hgmj6lizyvvd8qs89gsx0z3h9")))) + (build-system trivial-build-system) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils) + (ice-9 match)) + (let ((install-directory (string-append %output "/lib/node_modules/mathjax"))) + (mkdir-p install-directory) + (copy-recursively (string-append (assoc-ref %build-inputs "source")) + install-directory))))) + (home-page "https://www.mathjax.org/") + (synopsis "JavaScript display engine for LaTeX, MathML, and AsciiMath (prebuilt)") + (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. + +The package is derived from not the true source but the built version of +MathJax 3 for distribution by upstream. This package should eventually be +replaced my a package built directly from the source at +https://github.com/mathjax/MathJax-src.") + (license license:asl2.0))) + (define-public js-respond (package (name "js-respond") -- 2.28.0