Subject: [PATCH v2 5/5] gnu: Add emacs-quilt.

From: Morgan Smith <[email-masked]>
Date: Sun, 13 Apr 2025 10:57:06 -0400

* gnu/packages/patchutils.scm (emacs-quilt): New variable.

Change-Id: I0571cce902ff327dbe18f132b8ce0811dc8c3b19
---
 gnu/packages/patchutils.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/patchutils.scm b/gnu/packages/patchutils.scm
index 319b0e1284..2067e589ff 100644
--- a/gnu/packages/patchutils.scm
+++ b/gnu/packages/patchutils.scm
@@ -31,6 +31,7 @@ (define-module (gnu packages patchutils)
   #:use-module (guix licenses)
   #:use-module (guix download)
   #:use-module (guix git-download)
+  #:use-module (guix build-system emacs)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system meson)
@@ -252,6 +253,21 @@ (define-public quilt
 refreshed, and more.")
     (license gpl2)))
 
+(define-public emacs-quilt
+  (package
+    (inherit quilt)
+    (name "emacs-quilt")
+    (build-system emacs-build-system)
+    (arguments
+     (list
+      #:tests? #f                      ; no tests
+      #:lisp-directory "lib"
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'install-license-files 'leave-subdirectory
+            (lambda _ (chdir ".."))))))
+    (synopsis "Emacs interface to the quilt patch management software")))
+
 (define-public colordiff
   (package
     (name "colordiff")
-- 
2.49.0