From patchwork Tue Aug 25 01:59:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brendan Tildesley X-Patchwork-Id: 23766 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3733327BBE7; Tue, 25 Aug 2020 03:01:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id EFCE227BBE6 for ; Tue, 25 Aug 2020 03:01:08 +0100 (BST) Received: from localhost ([::1]:47846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kAOGq-0001Yj-Dc for patchwork@mira.cbaines.net; Mon, 24 Aug 2020 22:01:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kAOGk-0001YJ-HW for guix-patches@gnu.org; Mon, 24 Aug 2020 22:01:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48135) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kAOGk-0001GS-83 for guix-patches@gnu.org; Mon, 24 Aug 2020 22:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kAOGk-0005FZ-5p for guix-patches@gnu.org; Mon, 24 Aug 2020 22:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42885] [PATCH 2/4] gnu: Add mathjax-3. Resent-From: Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 25 Aug 2020 02:01:02 +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 Cc: arunisaac@systemreboot.net, leo@famulari.name Received: via spool by 42885-submit@debbugs.gnu.org id=B42885.159832080720048 (code B ref 42885); Tue, 25 Aug 2020 02:01:02 +0000 Received: (at 42885) by debbugs.gnu.org; 25 Aug 2020 02:00:07 +0000 Received: from localhost ([127.0.0.1]:59681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAOFn-0005DB-C6 for submit@debbugs.gnu.org; Mon, 24 Aug 2020 22:00:07 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:53890) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAOFk-0005CA-Nu for 42885@debbugs.gnu.org; Mon, 24 Aug 2020 22:00:02 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4BbByL3DLQzQlL3; Tue, 25 Aug 2020 03:59:54 +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=1598320790; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9Fn6z9dTr2/AlX5+PPuYmuGUOYhO+1KOWUOhwib3WuM=; b=KGtsBHSte+x4H65/THA6LFCjcEDKWMgkUJuG+Y4FD4VXPqOk8l/wm4D4L+n9gk5xfzJ9Qj 8fzzBB4pt+G3VUmdqVj23x39VuL894DAhMylsU1sUhI6BIISZ2J4/Eo+cIu3RsqcGMnDer 01S9v7HWobiwUCsyuinw5hLMErJAnlcORqhYZ96wmF6wLPVzfCRBSwMdKhMxfm5J7ir5IR VRoLgduis+tRVlvF8L0iygAgsJp6Vp0UAPyMebjkU8nTgqot6OCgkdb6Pt8DncXktS6/KN MDD5XMgqAhofGPq2pcizyBUyyRC4P3olrT4q1CpZb4OaDmSIRd/QJDYyidKuzQ== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id TpOOTCMJRI7U; Tue, 25 Aug 2020 03:59:48 +0200 (CEST) References: <8b1e2bed-e543-44a2-574b-f3c2c5a14d3f@brendan.scot> From: Brendan Tildesley Message-ID: Date: Tue, 25 Aug 2020 11:59:42 +1000 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-MBO-SPAM-Probability: X-Rspamd-Score: -6.97 / 15.00 / 15.00 X-Rspamd-Queue-Id: 3C617178E X-Rspamd-UID: 6e5db3 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches This replaces the second patch, renaming mathjax-bin to mathjax-3 since its not actually binary. From 77e2312306c6684cdfc72f90e6be1a008e5e676f Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Sun, 16 Aug 2020 16:14:02 +1000 Subject: [PATCH 2/4] gnu: Add mathjax-3. * gnu/packages/javascript.scm: (mathjax-3): 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..57e8302094 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-3 + (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