From: Zhu Zihao <all_but_last@163.com>
To: Maxime Devos <maximedevos@telenet.be>
Cc: 55423@debbugs.gnu.org
Subject: [bug#55423] [PATCH]: gnu: Add mogan.
Date: Mon, 05 Sep 2022 19:41:52 +0800 [thread overview]
Message-ID: <86o7vut5ck.fsf@163.com> (raw)
In-Reply-To: <616e9ef4c4c7820ba7c1ceaff559b1a7b785a05f.camel@telenet.be>
[-- Attachment #1.1: Type: text/plain, Size: 79 bytes --]
Long time no see.
I updated Mogan to 1.1.0 and switch the source to github.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 300 bytes --]
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-texmacs-Use-G-expression.patch --]
[-- Type: text/x-patch, Size: 1949 bytes --]
From f754c24c0945dd2fc17881f37598262b612eee67 Mon Sep 17 00:00:00 2001
From: Zhu Zihao <all_but_last@163.com>
Date: Sat, 14 May 2022 22:16:38 +0800
Subject: [PATCH 1/2] gnu: texmacs: Use G-expression.
* gnu/packages/text-editors.scm (texmacs): Use G-expressions.
---
gnu/packages/text-editors.scm | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 0c30a705b9..8a52e0ef41 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -872,19 +872,19 @@ (define-public texmacs
qtsvg-5
sqlite))
(arguments
- `(#:tests? #f ; no check target
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'fix-icon-directory
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (substitute* "packages/linux/icons.sh"
- (("/usr/share")
- (string-append out "/share"))))))
- (add-before 'configure 'gzip-flags
- (lambda _
- (substitute* "Makefile.in"
- (("^GZIP = gzip -f") "GZIP = gzip -f -n")))))))
+ (list
+ #:tests? #f ; no check target
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-icon-directory
+ (lambda _
+ (substitute* "packages/linux/icons.sh"
+ (("/usr/share")
+ (string-append #$output "/share")))))
+ (add-before 'configure 'gzip-flags
+ (lambda _
+ (substitute* "Makefile.in"
+ (("^GZIP = gzip -f") "GZIP = gzip -f -n")))))))
(synopsis "Editing platform with special features for scientists")
(description
"GNU TeXmacs is a text editing platform which is specialized for
--
2.37.2
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0002-gnu-Add-mogan.patch --]
[-- Type: text/x-patch, Size: 2359 bytes --]
From bf3c22e5f835725fd700176f0d1b1ec0ac28fe51 Mon Sep 17 00:00:00 2001
From: Zhu Zihao <all_but_last@163.com>
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
[-- Attachment #4: Type: text/plain, Size: 100 bytes --]
--
Retrieve my PGP public key:
gpg --recv-keys 481F5EEEBA425ADC13247C76A6E672D981B8E744
Zihao
next prev parent reply other threads:[~2022-09-05 12:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-15 3:21 [bug#55423] [PATCH]: gnu: Add mogan Zhu Zihao
2022-05-15 11:57 ` Maxime Devos
2022-05-15 13:56 ` Zhu Zihao
2022-05-15 11:58 ` Maxime Devos
2022-05-15 14:05 ` Zhu Zihao
2022-05-15 14:24 ` Maxime Devos
2022-05-15 11:59 ` Maxime Devos
2022-05-15 14:12 ` [bug#55423] What's the motivation of creating Mogan. (was Re: [bug#55423] [PATCH]: gnu: Add mogan.) Zhu Zihao
2022-05-16 10:39 ` Darcy Shen via Guix-patches via
2022-09-05 11:41 ` Zhu Zihao [this message]
2022-09-22 5:40 ` [bug#55423] [PATCH]: gnu: Add mogan Zhu Zihao
2022-11-07 11:06 ` bug#55423: " Zhu Zihao
2022-05-15 12:01 ` [bug#55423] " Maxime Devos
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=86o7vut5ck.fsf@163.com \
--to=all_but_last@163.com \
--cc=55423@debbugs.gnu.org \
--cc=maximedevos@telenet.be \
/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.