all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andy Tai <atai@atai.org>
To: 61421@debbugs.gnu.org
Cc: Andy Tai <atai@atai.org>
Subject: [bug#61421] [PATCH v3] gnu: Add emacs-with-motif
Date: Sun, 12 Feb 2023 15:55:31 -0800	[thread overview]
Message-ID: <20230212235531.10684-1-atai@atai.org> (raw)
In-Reply-To: <20230211100601.4239-1-atai@atai.org>

* gnu/packages/text-editors.scm (emacs-with-motif): New variable
---
 gnu/packages/emacs.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 4ce41deb88..08e2361987 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -66,6 +66,7 @@ (define-module (gnu packages emacs)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages guile)
   #:use-module (gnu packages image)
+  #:use-module (gnu packages lesstif)   ; motif
   #:use-module (gnu packages linux)     ; alsa-lib, gpm
   #:use-module (gnu packages mail)      ; for mailutils
   #:use-module (gnu packages multiprecision)
@@ -475,6 +476,29 @@ (define-public emacs-xwidgets
      (modify-inputs (package-inputs emacs)
        (prepend webkitgtk-with-libsoup2 libxcomposite)))))
 
+(define-public emacs-with-motif
+  (package/inherit emacs
+                   (name "emacs-with-motif")
+                   (synopsis
+                    "The extensible, customizable, self-documenting text
+editor (with Motif toolkit)")
+                   (build-system gnu-build-system)
+                   (inputs (modify-inputs (package-inputs emacs)
+                             (delete "gtk+")
+                             (prepend inotify-tools motif)))
+                   (arguments (substitute-keyword-arguments (package-arguments
+                                                             emacs)
+                                ((#:configure-flags flags
+                                  #~'())
+                                 #~(cons "--with-x-toolkit=motif"
+                                         #$flags))
+                                ((#:modules _)
+                                 (%emacs-modules build-system))
+                                ((#:phases phases)
+                                 #~(modify-phases #$phases
+                                     (delete 'restore-emacs-pdmp)
+                                     (delete 'strip-double-wrap)))))))
+
 (define-public emacs-no-x
   (package/inherit emacs
     (name "emacs-no-x")
-- 
2.39.1





  parent reply	other threads:[~2023-02-12 23:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-11 10:06 [bug#61421] [PATCH] gnu: Add emacs-with-motif Andy Tai
2023-02-12 23:54 ` Andy Tai
2023-02-12 23:55 ` Andy Tai [this message]
2023-03-01 15:56   ` bug#61421: [PATCH v3] " Christopher Baines

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=20230212235531.10684-1-atai@atai.org \
    --to=atai@atai.org \
    --cc=61421@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.