From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: 54508@debbugs.gnu.org
Cc: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Subject: [bug#54508] [PATCH 2/2] gnu: emacs-gnugo: Patch 'gnugo-program' variable.
Date: Mon, 21 Mar 2022 13:43:15 -0400 [thread overview]
Message-ID: <20220321174315.15097-2-maxim.cournoyer@gmail.com> (raw)
In-Reply-To: <20220321174315.15097-1-maxim.cournoyer@gmail.com>
* gnu/packages/emacs-xyz.scm (emacs-gnugo)
[phases]{configure-default-gnugo-xpms-variable}: Rename to...
{configure}: ... this. Patch the 'gnugo-program' variable.
[inputs]: Add gnugo.
[description]: Describe basic usage entry points.
---
gnu/packages/emacs-xyz.scm | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 42fc13f4c2..167d706c05 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -31,7 +31,7 @@
;;; Copyright © 2017 Peter Mikkelsen <petermikkelsen10@gmail.com>
;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017 Mike Gerwitz <mtg@gnu.org>
-;;; Copyright © 2017, 2018, 2019, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2017, 2018, 2019, 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2018 Sohom Bhattacharjee <soham.bhattacharjee15@gmail.com>
;;; Copyright © 2018, 2019 Mathieu Lirzin <mthl@gnu.org>
;;; Copyright © 2018, 2019, 2020, 2021 Pierre Neidhardt <mail@ambrevar.xyz>
@@ -157,6 +157,7 @@ (define-module (gnu packages emacs-xyz)
#:use-module (gnu packages emacs)
#:use-module (gnu packages fonts)
#:use-module (gnu packages freedesktop)
+ #:use-module (gnu packages games)
#:use-module (gnu packages golang)
#:use-module (gnu packages guile)
#:use-module (gnu packages gtk)
@@ -14752,20 +14753,23 @@ (define-public emacs-gnugo
"138gzdyi8scqimvs49da66j8f5a43bhgpasn1bxzdj2zffwlwp6g"))))
(build-system emacs-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (add-after 'unpack 'configure-default-gnugo-xpms-variable
- (lambda _
- (substitute* "gnugo.el"
- (("defvar gnugo-xpms nil")
- "defvar gnugo-xpms #'gnugo-imgen-create-xpms"))
- #t)))))
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'configure
+ (lambda* (#:key inputs #:allow-other-keys)
+ (emacs-substitute-variables "gnugo.el"
+ ("gnugo-xpms" "#'gnugo-imgen-create-xpms" (as-display))
+ ("gnugo-program" (search-input-file inputs "/bin/gnugo"))))))))
+ (inputs (list gnugo))
(propagated-inputs
(list emacs-ascii-art-to-unicode emacs-xpm))
(home-page "https://elpa.gnu.org/packages/gnugo.html")
(synopsis "Emacs major mode for playing GNU Go")
- (description "This package provides an Emacs based interface for GNU Go.
-It has a graphical mode where the board and stones are drawn using XPM images
-and supports the use of a mouse.")
+ (description "This package provides an Emacs based interface for GNU Go,
+which can be started via @samp{M-x gnugo}. It has a graphical mode where the
+board and stones are drawn using XPM images and supports the use of a mouse.
+You can switch to the graphical mode by running @samp{M-x
+gnugo-image-display-mode}.")
(license license:gpl3+)))
(define-public emacs-gnuplot
--
2.34.0
next prev parent reply other threads:[~2022-03-21 17:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-21 17:41 [bug#54508] [PATCH 0/2] Extend emacs-substitute-variables and patch emacs-gnugo Maxim Cournoyer
2022-03-21 17:43 ` [bug#54508] [PATCH 1/2] build: emacs-utils: Add a (as-display) subform to `emacs-substitute-variables' Maxim Cournoyer
2022-03-21 17:43 ` Maxim Cournoyer [this message]
2022-04-04 3:57 ` bug#54508: [PATCH 0/2] Extend emacs-substitute-variables and patch emacs-gnugo Maxim Cournoyer
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220321174315.15097-2-maxim.cournoyer@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=54508@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 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).