package/mg: new package
PATCH v2 1/1 package/mg: new package
Mg is a small Emacs-like editor with no external dependencies except a standard C library. It weighs in at 130 kiB and is one of a select few completely free (public domain) text editors suitable for small and embedded systems.
This version is based on the OpenBSD Mg, but with more features, one of which being the no-ncurses/termcap support, which heavily reduces the impact on a resource constrained system.
Upstream: https://github.com/troglobit/mg/
---
Changes v1 -> v2:
- mg2a -> mg in mg.mk comment (suggested by Thomas Pettazoni)
- Fix copy-paste in mg.hash comment (suggested by Gilles Talis)
- Add mg to my DEVELOPERS entry (suggested by Gilles)
- Update my last name in DEVELOPERS
- Drop install+gzip of tutorial (Gilles and Thomas)
- Simplify mg.mk, standard install target is sufficient
- Add --with-curses to MG_CONF_OPTS (Gilles and Thomas)
- Run test-pkg, 5/6 OK (cortex m4 SKIPPED) (Gilles)
--- DEVELOPERS | 3 ++- package/Config.in | 1 + package/mg/Config.in | 18 ++++++++++++++++++ package/mg/mg.hash | 5 +++++ package/mg/mg.mk | 19 +++++++++++++++++++ 5 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 package/mg/Config.in create mode 100644 package/mg/mg.hash create mode 100644 package/mg/mg.mk
DEVELOPERS +2 -1
@@ -1280,9 +1280,10 @@ F: package/libuhttpd/ F: package/libuwsc/ F: package/rtty/ -N: Joachim Nilsson <[email protected]> +N: Joachim Wiberg <[email protected]> F: configs/globalscale_espressobin_defconfig F: board/globalscale/espressobin/ +F: package/mg/ N: Joao Pinto <[email protected]> F: board/synopsys/vdk/
package/Config.in +1 -0
@@ -2431,6 +2431,7 @@ menu "Text editors and viewers" source "package/joe/Config.in" source "package/less/Config.in" source "package/mc/Config.in" + source "package/mg/Config.in" source "package/most/Config.in" source "package/nano/Config.in" source "package/uemacs/Config.in"
package/mg/Config.in new file +18 -0
@@ -0,0 +1,18 @@ +config BR2_PACKAGE_MG + bool "mg" + depends on BR2_USE_MMU # fork() + help + Emacs-like text editor (130 kiB) + + Mg is a MicroEMACS clone with the goal of being compatible + with GNU Emacs, because there should never be any reason to + learn more than one Emacs flavor. + + Unlike many other editors it does not require ncurses, only a + standard C library, making it suitable for really small and + embedded systems. + + This version is based on mg2a from OpenBSD, with more features + and, in particular, no requirement on ncurses or termcap. + + https://github.com/troglobit/mg/
package/mg/mg.hash new file +5 -0
@@ -0,0 +1,5 @@ +# From https://github.com/troglobit/mg/releases/tag/v3.4 +md5 6b79855d54770bcb23e5457ebde8296c mg-3.4.tar.gz +# Locally computed: +sha256 1a620cf5b2dd4b00006d6c929ac8e2a70eeab5f807a0d6e5334b878aa182b713 mg-3.4.tar.gz +sha256 7e12e5df4bae12cb21581ba157ced20e1986a0508dd10d0e8a4ab9a4cf94e85c UNLICENSE
package/mg/mg.mk new file +19 -0
@@ -0,0 +1,19 @@ +################################################################################ +# +# mg +# +################################################################################ + +MG_VERSION = 3.4 +MG_SITE = https://github.com/troglobit/mg/releases/download/v$(MG_VERSION) +MG_LICENSE = Public Domain +MG_LICENSE_FILES = UNLICENSE + +ifeq ($(BR2_PACKAGE_NCURSES),y) +MG_DEPENDENCIES += ncurses +MG_CONF_OPTS += --with-curses +else +MG_CONF_OPTS += --without-curses +endif + +$(eval $(autotools-package))
Signature · 1 line
2.25.1
Thomas Petazzoni
AppliedPATCH v2 1/1 package/mg: new package
Quoted 13 lines · On Tue, 1 Sep 2020 07:38:59 +0200 Joachim Wiberg <[email protected]> wrote:
Mg is a small Emacs-like editor with no external dependencies except a standard C library. It weighs in at 130 kiB and is one of a select few completely free (public domain) text editors suitable for small and embedded systems.
This version is based on the OpenBSD Mg, but with more features, one of which being the no-ncurses/termcap support, which heavily reduces the impact on a resource constrained system.
Upstream: https://github.com/troglobit/mg/
Signed-off-by Joachim Wiberg <[email protected]>
Quoted 10 lines
---
Changes v1 -> v2:
- mg2a -> mg in mg.mk comment (suggested by Thomas Pettazoni)
- Fix copy-paste in mg.hash comment (suggested by Gilles Talis)
- Add mg to my DEVELOPERS entry (suggested by Gilles)
- Update my last name in DEVELOPERS
- Drop install+gzip of tutorial (Gilles and Thomas)
- Simplify mg.mk, standard install target is sufficient
- Add--with-cursestoMG_CONF_OPTS(Gilles and Thomas)
- Run test-pkg, 5/6 OK (cortex m4 SKIPPED) (Gilles)
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com