From: ng0 <ng0@infotropique.org>
To: 27790@debbugs.gnu.org
Subject: [bug#27790] text-editor: mg
Date: Sat, 22 Jul 2017 11:36:13 +0000 [thread overview]
Message-ID: <20170722113613.shefcwrn3m2t6suu@abyayala> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 203 bytes --]
This adds a package from one of my repositories, mg.
--
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://n0is.noblogs.org/my-keys
https://www.infotropique.org https://krosos.org
[-- Attachment #1.2: 0001-gnu-Add-mg.patch --]
[-- Type: text/plain, Size: 3501 bytes --]
From d1cae87a9b13b5624deb16666a1da3333bd05681 Mon Sep 17 00:00:00 2001
From: ng0 <ng0@infotropique.org>
Date: Sat, 22 Jul 2017 11:31:37 +0000
Subject: [PATCH] gnu: Add mg.
* gnu/packages/text-editors.scm (mg): New variable.
---
gnu/packages/text-editors.scm | 57 ++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 56 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 98df48119..9277dd1f5 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -3,7 +3,7 @@
;;; Copyright © 2016 Carlo Zancanaro <carlo@zancanaro.id.au>
;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2017 Feng Shu <tumashu@163.com>
-;;; Copyright © 2017 ng0 <ng0@no-reply.pragmatique.xyz>
+;;; Copyright © 2017 ng0 <ng0@infotropique.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -34,6 +34,7 @@
#:use-module (gnu packages gcc)
#:use-module (gnu packages glib)
#:use-module (gnu packages gtk)
+ #:use-module (gnu packages libbsd)
#:use-module (gnu packages lua)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages pkg-config)
@@ -227,3 +228,57 @@ Wordstar-, EMACS-, Pico, Nedit or vi-like key bindings. e3 can be used on
16, 32, and 64-bit CPUs.")
(supported-systems '("x86_64-linux" "i686-linux"))
(license license:gpl2+)))
+
+(define-public mg
+ (package
+ (name "mg")
+ (version "20170401")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://homepage.boetes.org/software/mg/"
+ "mg-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1arasswgdadbb265rahq3867r9s54jva6k4m3p5n0f8mgjqhhdha"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:tests? #f ; There is no testsuite
+ #:make-flags (list "CC=gcc")
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure) ; There is no configure script
+ (add-before 'build 'replace-usr
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "GNUmakefile"
+ (("/usr/bin/") "")
+ (("/usr/local")
+ (assoc-ref outputs "out")))
+ #t))
+ (add-before 'build 'correct-location-of-difftool
+ (lambda _
+ (substitute* "buffer.c"
+ (("/usr/bin/diff")
+ (which "diff")))
+ #t))
+ (add-before 'install 'install-tutorial
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; This isn't handled by install but is expect
+ ;; by the tutorial part of mg to be present.
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (string-append out "/share/doc/mg")))
+ (install-file "tutorial"
+ (string-append doc "/tutorial"))
+ #t))))))
+ (inputs
+ `(("ncurses" ,ncurses)
+ ("libbsd" ,libbsd)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (home-page "http://homepage.boetes.org/software/mg/")
+ (synopsis "OpenBSD variant of the editor mg")
+ (description
+ "Mg is a public domain text editor intended to loosely resemble
+GNU Emacs, while still retaining fast speed and a small memory footprint.
+It is based on MicroEMACS.")
+ (license license:public-domain)))
--
2.13.3
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2017-07-22 11:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-22 11:36 ng0 [this message]
2017-07-22 14:24 ` [bug#27790] text-editor: mg Tobias Geerinckx-Rice
2017-07-22 16:02 ` ng0
2017-07-26 9:08 ` Ludovic Courtès
2017-07-26 13:31 ` ng0
2017-07-26 14:11 ` ng0
2017-07-26 14:30 ` ng0
2017-07-26 20:34 ` bug#27790: " 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=20170722113613.shefcwrn3m2t6suu@abyayala \
--to=ng0@infotropique.org \
--cc=27790@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.