unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#37070] [PATCH] Add fe
@ 2019-08-18  9:12 Nicolas Goaziou
  2019-08-28 16:09 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2019-08-18  9:12 UTC (permalink / raw)
  To: 37070

[-- Attachment #1: Type: text/plain, Size: 333 bytes --]

Hello

The following patch adds fe, a tiny folding ncurse editor.

A few caveats: it builds the development version (2.0) instead of the
stable one (1.8), because the former supports UTF-8. Also, I disabled
the undocumented "sendmail" feature, which only sends a mail after
a crash.

Feedback welcome.

Regards,

-- 
Nicolas Goaziou

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Add fe --]
[-- Type: text/x-diff, Size: 3009 bytes --]

From 37e7ceea742a858e7ef01232147f1cdb918c2cb3 Mon Sep 17 00:00:00 2001
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Date: Sun, 18 Aug 2019 11:08:29 +0200
Subject: [PATCH] gnu: Add fe.

* gnu/packages/text-editors.scm (fe): New variable.
---
 gnu/packages/text-editors.scm | 53 +++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 4412d54579..432e79e350 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -41,6 +41,7 @@
   #:use-module (gnu packages documentation)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages gcc)
+  #:use-module (gnu packages gettext)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages guile)
@@ -567,3 +568,55 @@ The basic features of Geany are:
 @item extensibility through plugins
 @end itemize")
     (license license:gpl2+)))
+
+(define-public fe
+  (package
+    (name "fe")
+    ;; Stable release is 1.8.  However, this development version
+    ;; introduces support for UTF-8.
+    (version "2.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://www.moria.de/~michael/fe/"
+                                  "fe-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1hwws7si1752z6hp61zxznvgsb6846lp8zl1hn5ddhsbafwalwb9"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:tests? #f                      ;no test
+       ;; Sendmail is only used to send a crash log.  Disable the
+       ;; feature since it is (1) undocumented (2) not very useful.
+       #:configure-flags (list "--disable-sendmail")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-doc
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (doc (string-append out "/share/doc/" ,name "-" ,version)))
+               (for-each (lambda (f) (install-file f doc))
+                         '("fe.doc" "fe.html" "fe.ps" "feref.ps" "README"))
+               #t))))))
+    (native-inputs
+     `(("gettext" ,gettext-minimal)))
+    (inputs
+     `(("ncurses" ,ncurses)))
+    (home-page "http://www.moria.de/~michael/fe/")
+    (synopsis "Small folding editor")
+    (description "Fe is a small folding editor.  It allows to fold
+arbitrary text regions; it is not bound to syntactic units.
+
+Fe has no configuration or extension language and requires no setup.
+Its user interface is emacs-like and it has menues for the very most
+important functions to help beginners.  Further there is a reference
+card.  It offers:
+
+@itemize
+@item Regions and Emacs-like kill ring
+@item Incremental search
+@item Keyboard macros
+@item Editing binary files
+@item Multiple windows and views
+@item Compose function for Latin 1 characters
+@end itemize")
+    (license license:gpl2+)))
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#37070] [PATCH] Add fe
  2019-08-18  9:12 [bug#37070] [PATCH] Add fe Nicolas Goaziou
@ 2019-08-28 16:09 ` Ludovic Courtès
  2019-08-29 17:00   ` bug#37070: " Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2019-08-28 16:09 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 37070

Hello,

Nicolas Goaziou <mail@nicolasgoaziou.fr> skribis:

>>From 37e7ceea742a858e7ef01232147f1cdb918c2cb3 Mon Sep 17 00:00:00 2001
> From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
> Date: Sun, 18 Aug 2019 11:08:29 +0200
> Subject: [PATCH] gnu: Add fe.
>
> * gnu/packages/text-editors.scm (fe): New variable.

LGTM, thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#37070: [PATCH] Add fe
  2019-08-28 16:09 ` Ludovic Courtès
@ 2019-08-29 17:00   ` Nicolas Goaziou
  0 siblings, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2019-08-29 17:00 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 37070-done

Hello,

Ludovic Courtès <ludo@gnu.org> writes:

>> Subject: [PATCH] gnu: Add fe.
>>
>> * gnu/packages/text-editors.scm (fe): New variable.
>
> LGTM, thanks!

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-08-29 17:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-18  9:12 [bug#37070] [PATCH] Add fe Nicolas Goaziou
2019-08-28 16:09 ` Ludovic Courtès
2019-08-29 17:00   ` bug#37070: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).