GNU bug report logs -
#78095
[PATCH emacs-team 00/28] More emacs-team updates.
Previous Next
Reported by: Nicolas Graves <ngraves <at> ngraves.fr>
Date: Sun, 27 Apr 2025 14:51:02 UTC
Severity: normal
Tags: patch
Done: Nicolas Graves <ngraves <at> ngraves.fr>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
* gnu/packages/emacs-xyz.scm (emacs-noman): Fix tests.
[source]<snippet>: Remove unwanted files.
[arguments]<test-command>: Set it.
<phases>: Patch tests to find bash.
[native-inputs]: Add bash, emacs-ert-runner, emacs-f, makem-minimal.
---
gnu/packages/emacs-xyz.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 5f6de3fbb2..f735020afa 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -6485,8 +6485,24 @@ (define-public emacs-noman
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "0rh1p9nlhkmhfqmp507rz8hwfgwrdvxx0zba41lxsd2admai90wv"))))
+ (base32 "0rh1p9nlhkmhfqmp507rz8hwfgwrdvxx0zba41lxsd2admai90wv"))
+ (snippet #~(begin
+ (for-each delete-file
+ '("makem.sh" "Makefile" "screencast.gif"))))))
(build-system emacs-build-system)
+ (arguments
+ (list #:test-command
+ #~(list #$(file-append (this-package-native-input "makem")
+ "/bin/makem.sh") "test")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-test
+ (lambda _
+ (substitute* "tests/noman-tests.el"
+ (("#!/bin/bash")
+ (string-append "#!" (which "bash")))))))))
+ (native-inputs
+ (list bash emacs-ert-runner emacs-f makem-minimal))
(synopsis "Emacs package for browsing CLI command docs without man pages")
(description
"Noman is an Emacs package that parses command line help from flags like
--
2.49.0
This bug report was last modified 14 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.