From patchwork Mon Sep 5 11:41:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhu Zihao X-Patchwork-Id: 42224 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 5379327BBEA; Mon, 5 Sep 2022 13:09:52 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,SPF_HELO_PASS, URIBL_BLOCKED,URIBL_CSS_A autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 9A89027BBE9 for ; Mon, 5 Sep 2022 13:09:51 +0100 (BST) Received: from localhost ([::1]:50174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVAvG-0001gL-NN for patchwork@mira.cbaines.net; Mon, 05 Sep 2022 08:09:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVAVK-00079R-G9 for guix-patches@gnu.org; Mon, 05 Sep 2022 07:43:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57921) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVAVK-0003KR-42 for guix-patches@gnu.org; Mon, 05 Sep 2022 07:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVAVJ-0006D9-W9 for guix-patches@gnu.org; Mon, 05 Sep 2022 07:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55423] [PATCH]: gnu: Add mogan. Resent-From: Zhu Zihao Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 05 Sep 2022 11:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55423 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 55423@debbugs.gnu.org Received: via spool by 55423-submit@debbugs.gnu.org id=B55423.166237817623863 (code B ref 55423); Mon, 05 Sep 2022 11:43:01 +0000 Received: (at 55423) by debbugs.gnu.org; 5 Sep 2022 11:42:56 +0000 Received: from localhost ([127.0.0.1]:46620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVAVD-0006Cp-Jc for submit@debbugs.gnu.org; Mon, 05 Sep 2022 07:42:56 -0400 Received: from mail-m975.mail.163.com ([123.126.97.5]:34244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVAV8-0006CV-Tj for 55423@debbugs.gnu.org; Mon, 05 Sep 2022 07:42:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=Etxq1 GPNcVuepKNFXPYm6LauC7xQb8fxbBV7nLyN+xk=; b=QtBuPPQawQ6+JBTwhE8WH JGwC66CQlvn859rQLIIGacdet4g8fA8Oc6l43Xe391EQha2se1zNyeCUW69J2Xyy dZjG6xk5vGVUnFosXRAX8eCTeOpHDAc6B7rCfUY9dLGZegLfWp5LY0MCCIVxqe5t PPVs96WhUEeI9wgugc6g/Q= Received: from asus-laptop (unknown [27.38.249.43]) by smtp5 (Coremail) with SMTP id HdxpCgBHjQWu4BVjTLgCaA--.9708S2; Mon, 05 Sep 2022 19:42:39 +0800 (CST) References: <86wnen5vl3.fsf@163.com> <616e9ef4c4c7820ba7c1ceaff559b1a7b785a05f.camel@telenet.be> User-agent: mu4e 1.8.9; emacs 29.0.50 From: Zhu Zihao Date: Mon, 05 Sep 2022 19:41:52 +0800 In-reply-to: <616e9ef4c4c7820ba7c1ceaff559b1a7b785a05f.camel@telenet.be> Message-ID: <86o7vut5ck.fsf@163.com> MIME-Version: 1.0 X-CM-TRANSID: HdxpCgBHjQWu4BVjTLgCaA--.9708S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvj4RyHq4UUUUU X-Originating-IP: [27.38.249.43] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBaw9zr1et6Y+FXQAAs8 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 Long time no see. I updated Mogan to 1.1.0 and switch the source to github. From bf3c22e5f835725fd700176f0d1b1ec0ac28fe51 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Sat, 14 May 2022 22:19:06 +0800 Subject: [PATCH 2/2] gnu: Add mogan. * gnu/packages/text-editors.scm (mogan): New variable. --- gnu/packages/text-editors.scm | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm index 8a52e0ef41..24600b4148 100644 --- a/gnu/packages/text-editors.scm +++ b/gnu/packages/text-editors.scm @@ -56,6 +56,7 @@ (define-module (gnu packages text-editors) #:use-module (gnu packages code) #:use-module (gnu packages cpp) #:use-module (gnu packages crates-io) + #:use-module (gnu packages curl) #:use-module (gnu packages datastructures) #:use-module (gnu packages documentation) #:use-module (gnu packages fontutils) @@ -895,6 +896,42 @@ (define-public texmacs (license license:gpl3+) (home-page "https://www.texmacs.org/tmweb/home/welcome.en.html"))) +(define-public mogan + (package + (inherit texmacs) + (name "mogan") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/XmacsLabs/mogan") + (commit (string-append "v" version)))) + (sha256 + (base32 "0l7irs5w6f1dmzxz2p4c4vxc2w999yxy1qvhbcv5yh3kfbyzrf7z")))) + (inputs + (modify-inputs (package-inputs texmacs) + ;; Replaced by S7 scheme + ;; TODO: Maybe unbundle S7 + (delete "guile") + (prepend curl))) + (arguments + (substitute-keyword-arguments (package-arguments texmacs) + ((#:phases orig) + #~(modify-phases #$orig + (replace 'gzip-flags + (lambda _ + (substitute* "misc/CMakeLists.txt" + (("COMMAND gzip" all) + (string-append all " -n"))))))))) + (synopsis "Structural editor delivered by Xmacs Labs") + (description + "Mogan is a fork of GNU TeXmacs created by Xmacs Labs. Its goal is +make everyone to enjoy it fluently and develop new feature for everyone to learn +and create science and technology.") + (license license:gpl3+) + (home-page "https://gitee.com/XmacsLabs/mogan"))) + (define-public scintilla (package (name "scintilla") -- 2.37.2