From patchwork Sun Aug 30 09:00:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Wiberg X-Patchwork-Id: 1353916 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=OAygGQ56; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BfS4h1D9sz9sSJ for ; Sun, 30 Aug 2020 19:01:38 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8D3418561D; Sun, 30 Aug 2020 09:01:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6VNdanQRWDer; Sun, 30 Aug 2020 09:01:33 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id C3CF2855EF; Sun, 30 Aug 2020 09:01:33 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id CE30C1BF2F4 for ; Sun, 30 Aug 2020 09:01:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8CFFA2013C for ; Sun, 30 Aug 2020 09:01:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WUhXzRZlkA+j for ; Sun, 30 Aug 2020 09:01:31 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) by silver.osuosl.org (Postfix) with ESMTPS id AB25A2010B for ; Sun, 30 Aug 2020 09:01:30 +0000 (UTC) Received: by mail-lj1-f194.google.com with SMTP id t23so3397399ljc.3 for ; Sun, 30 Aug 2020 02:01:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XL7qzBkCLXXZhUuf0087f4HIWUJkfDY61SSUT6sjQZE=; b=OAygGQ56N1WQiQZ7zCQjCed+eW1PgKgP/GyxV1RvEpiai6dGN755Ar3mnCHVc29qzl 5zuqq6H+YUTYafvO9Oao7doDFyHtB1dqt0A1XJcu2/m2kjuvlvndgSSemYHNa3LDmdy5 BG5UFJWpqGwfr6HzsR3ldJdH4d5q7Fcv6kjzYTVcQWstD0238hh/BaboY4PfVVdOk0OR e0ROxGbBc08SRfpHH7PJ6NYBOgwwIidbDtc7WjhwVO8yaFzYyIvPbbLoiu5ipux0xRZT eYh+BfI9WUGudU//XN2w4YiCV38HxcNTytfKOll3IR2myAT2CeHt92vKHjynO9fTNBk5 cHfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XL7qzBkCLXXZhUuf0087f4HIWUJkfDY61SSUT6sjQZE=; b=l8p4JUL+1DHJnpkq2clj8F9JyMPSHl98VL8AP+z8lKQKPowdXhgTXkAcef9hXLhe8b IFsVv7G0REdxyxHqd4NXCU/AOEU+tETj5z2HhRN5BsjTg3InyCTcdBLzGlNmkKBhJM95 DqVz153qSzccsCDObF1pL7HK6tW7b4rMFA09rVjR3sdaiij18PrWfwwAWrmgVrJ++qbh Kr8InYD3M5FuCQ4uMhRchWYuWuLwQSUfrhwrzfAdcNF6ldohvOLg3OyvYRa8Pm9qtYlx 9gq3PDDj9zW5lHQ+alo5KVqqIM2HJExptKTZ1Z66SN7x4GSx1LuMK6YHOhNMo/C9d/F4 dtIA== X-Gm-Message-State: AOAM533UwcfLPMfErj8su2Dk0/ZPvlBBTdfLwKs+agDPTEPvpl3E1ar1 O9cfylVhKDt4+pSMmt6/rDzAmIQ698A= X-Google-Smtp-Source: ABdhPJxD9Np/MmofSUgpqZSTLoX8Dj/Ci4A+sUSFT/CRWupHp6f+FEiqxQ4/DkQWPv27dESW08qjCw== X-Received: by 2002:a2e:8844:: with SMTP id z4mr2810587ljj.124.1598778087819; Sun, 30 Aug 2020 02:01:27 -0700 (PDT) Received: from localhost.localdomain ([98.128.186.114]) by smtp.gmail.com with ESMTPSA id i11sm1144257lfl.31.2020.08.30.02.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Aug 2020 02:01:27 -0700 (PDT) From: Joachim Wiberg To: buildroot@buildroot.org Date: Sun, 30 Aug 2020 11:00:51 +0200 Message-Id: <20200830090050.889647-1-troglobit@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/mg: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Joachim Wiberg Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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 --- package/Config.in | 1 + package/mg/Config.in | 18 ++++++++++++++++++ package/mg/mg.hash | 5 +++++ package/mg/mg.mk | 24 ++++++++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 package/mg/Config.in create mode 100644 package/mg/mg.hash create mode 100644 package/mg/mg.mk diff --git a/package/Config.in b/package/Config.in index d7e79f4795..db2563f789 100644 --- a/package/Config.in +++ b/package/Config.in @@ -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" diff --git a/package/mg/Config.in b/package/mg/Config.in new file mode 100644 index 0000000000..11e5bdb273 --- /dev/null +++ b/package/mg/Config.in @@ -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/ diff --git a/package/mg/mg.hash b/package/mg/mg.hash new file mode 100644 index 0000000000..6b3c400faa --- /dev/null +++ b/package/mg/mg.hash @@ -0,0 +1,5 @@ +# From https://sourceforge.net/projects/joe-editor/files/JOE%20sources/joe-4.6/ +md5 6b79855d54770bcb23e5457ebde8296c mg-3.4.tar.gz +# Locally computed: +sha256 1a620cf5b2dd4b00006d6c929ac8e2a70eeab5f807a0d6e5334b878aa182b713 mg-3.4.tar.gz +sha256 7e12e5df4bae12cb21581ba157ced20e1986a0508dd10d0e8a4ab9a4cf94e85c UNLICENSE diff --git a/package/mg/mg.mk b/package/mg/mg.mk new file mode 100644 index 0000000000..c8df6eddc6 --- /dev/null +++ b/package/mg/mg.mk @@ -0,0 +1,24 @@ +################################################################################ +# +# mg2a +# +################################################################################ + +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 +else +MG_CONF_OPTS += --without-curses +endif + +define MG_INSTALL_TARGET_CMDS + $(INSTALL) -m 0755 -D $(@D)/tutorial $(TARGET_DIR)/usr/share/doc/tutorial + gzip -9 $(TARGET_DIR)/usr/share/doc/tutorial + $(INSTALL) -m 0755 -D $(@D)/src/mg $(TARGET_DIR)/usr/bin/mg +endef + +$(eval $(autotools-package))