guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: emacs-subed: Fix build.


From: guix-commits
Subject: 02/03: gnu: emacs-subed: Fix build.
Date: Mon, 18 Mar 2024 04:48:48 -0400 (EDT)

ngz pushed a commit to branch master
in repository guix.

commit dc2d352eb1974273e13b3a8f11aee27ae7c1f802
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon Mar 18 09:17:47 2024 +0100

    gnu: emacs-subed: Fix build.
    
    * gnu/packages/emacs-xyz.scm (emacs-subed)[arguments]<#:phases>: Add
    lexical binding to test file as required by Buttercup 1.34.
    
    Change-Id: Ie4c13dd6e1a2bcacdcf1450db1dc1d900ee34971
---
 gnu/packages/emacs-xyz.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 6485ec4f0f..dbd8ebe879 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -8958,7 +8958,14 @@ user.")
     (arguments
      (list
       #:tests? #t
-      #:test-command #~(list "make" "test-only")))
+      #:test-command #~(list "make" "test-only")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'compatibility-with-recent-buttercup
+            (lambda _
+              (substitute* (find-files "tests/" "\\.el$")
+                (("\\(buttercup-minor-mode\\) -\\*-")
+                 "(buttercup-minor-mode); lexical-binding: t -*-")))))))
     (native-inputs (list emacs-buttercup))
     (build-system emacs-build-system)
     (home-page "https://elpa.nongnu.org/nongnu/subed.html";)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]