GNU bug report logs - #56174
[PATCH] gnu: Add mle.

Previous Next

Package: guix-patches;

Reported by: Nikolay Korotkiy <sikmir <at> disroot.org>

Date: Thu, 23 Jun 2022 19:31:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56174 in the body.
You can then email your comments to 56174 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#56174; Package guix-patches. (Thu, 23 Jun 2022 19:31:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nikolay Korotkiy <sikmir <at> disroot.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 23 Jun 2022 19:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nikolay Korotkiy <sikmir <at> disroot.org>
To: guix-patches <at> gnu.org
Cc: Nikolay Korotkiy <sikmir <at> disroot.org>
Subject: [PATCH] gnu: Add mle.
Date: Thu, 23 Jun 2022 22:30:11 +0300
* gnu/packages/text-editors.scm (mle): New variable.
---
 gnu/packages/text-editors.scm | 52 +++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 1c936be6a8..03df69667a 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 datastructures)
   #:use-module (gnu packages documentation)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages freedesktop)
@@ -1215,3 +1216,54 @@ (define-public tree-sitter
 This package includes the @code{libtree-sitter} runtime library.
 ")
     (license license:expat)))
+
+(define-public mle
+  (package
+    (name "mle")
+    (version "1.5.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/adsr/mle")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1nhd00lsx9v12zdmps92magz76c2d8zzln3lxvzl4ng73gbvq3n0"))))
+    (build-system gnu-build-system)
+    (inputs (list lua pcre uthash))
+    (arguments
+     `(#:test-target "test"
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-lua
+           (lambda* (#:key inputs #:allow-other-keys)
+             (substitute* "mle.h"
+               (("<lua5.4/") "<"))
+             (substitute* "Makefile"
+               (("-llua5.4") "-llua")
+               (("/bin/sh") (which "sh")))))
+         (add-after 'unpack 'patch-test-shebangs
+           (lambda _
+             (substitute* (find-files "tests/func" "\\.sh$")
+               (("/usr/bin/env bash") (which "bash")))))
+         (delete 'configure) ;no configure script
+         (add-after 'install 'install-man-pages
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out")) (man (string-append out
+                                                          "/share/man/man1")))
+               (install-file "mle.1"
+                             (string-append man))))))
+       #:make-flags
+       (list (string-append "CC="
+                            ,(cc-for-target))
+             (string-append "prefix=" %output))))
+    (home-page "https://github.com/adsr/mle")
+    (synopsis "Small, flexible, terminal-based text editor")
+    (description
+     "mle is a small, flexible, terminal-based text editor written in C.
+Notable features include: full Unicode support, syntax highlighting,
+scriptable rc file, macros, search and replace (PCRE), window
+splitting, multiple cursors, and integration with various shell
+commands.")
+    (license license:asl2.0)))
-- 
2.36.1





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sat, 25 Jun 2022 21:46:02 GMT) Full text and rfc822 format available.

Notification sent to Nikolay Korotkiy <sikmir <at> disroot.org>:
bug acknowledged by developer. (Sat, 25 Jun 2022 21:46:02 GMT) Full text and rfc822 format available.

Message #10 received at 56174-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Nikolay Korotkiy <sikmir <at> disroot.org>
Cc: 56174-done <at> debbugs.gnu.org
Subject: Re: bug#56174: [PATCH] gnu: Add mle.
Date: Sat, 25 Jun 2022 23:45:23 +0200
Hi,

Nikolay Korotkiy <sikmir <at> disroot.org> skribis:

> * gnu/packages/text-editors.scm (mle): New variable.

I ran ‘guix style’ (which now has slightly different rules) and applied
it, thanks!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 24 Jul 2022 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 275 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.