unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / Atom feed
* [bug#48207] [PATCH] gnu: chess: Fix paths in installed shell scripts.
@ 2021-05-03 21:56 Michael Rohleder
  2021-05-03 23:02 ` bug#48207: " Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Rohleder @ 2021-05-03 21:56 UTC (permalink / raw)
  To: 48207; +Cc: Michael Rohleder

* gnu/packages/games.scm (chess)[arguments]: Add a 'fix-shell-scripts phase.
---
 gnu/packages/games.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 073e41eec6..9d7c8ef341 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -3163,6 +3163,16 @@ asynchronously and at a user-defined speed.")
         (base32
          "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
     (build-system gnu-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'fix-shell-scripts
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin")))
+               (chdir bin)
+               (substitute* '("gnuchessx" "gnuchessu")
+                 (("^gnuchess") (string-append bin "/gnuchess")))))))))
     (home-page "https://www.gnu.org/software/chess/")
     (synopsis "Full chess implementation")
     (description "GNU Chess is a chess engine.  It allows you to compete
-- 
2.31.1





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#48207: [PATCH] gnu: chess: Fix paths in installed shell scripts.
  2021-05-03 21:56 [bug#48207] [PATCH] gnu: chess: Fix paths in installed shell scripts Michael Rohleder
@ 2021-05-03 23:02 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2021-05-03 23:02 UTC (permalink / raw)
  To: Michael Rohleder; +Cc: 48207-done

Hello,

Michael Rohleder <mike@rohleder.de> writes:

> * gnu/packages/games.scm (chess)[arguments]: Add a 'fix-shell-scripts
> phase.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-03 23:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-03 21:56 [bug#48207] [PATCH] gnu: chess: Fix paths in installed shell scripts Michael Rohleder
2021-05-03 23:02 ` bug#48207: " Nicolas Goaziou

unofficial mirror of guix-patches@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-patches/1 guix-patches/git/1.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-patches guix-patches/ https://yhetil.org/guix-patches \
		guix-patches@gnu.org
	public-inbox-index guix-patches

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.patches


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git