emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#48207: closed ([PATCH] gnu: chess: Fix paths in installed shell scri


From: GNU bug Tracking System
Subject: bug#48207: closed ([PATCH] gnu: chess: Fix paths in installed shell scripts.)
Date: Mon, 03 May 2021 23:03:02 +0000

Your message dated Tue, 04 May 2021 01:02:12 +0200
with message-id <87sg335sln.fsf@nicolasgoaziou.fr>
and subject line Re: [bug#48207] [PATCH] gnu: chess: Fix paths in installed 
shell scripts.
has caused the debbugs.gnu.org bug report #48207,
regarding [PATCH] gnu: chess: Fix paths in installed shell scripts.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
48207: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48207
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: chess: Fix paths in installed shell scripts. Date: Mon, 3 May 2021 23:56:15 +0200
* 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




--- End Message ---
--- Begin Message --- Subject: Re: [bug#48207] [PATCH] gnu: chess: Fix paths in installed shell scripts. Date: Tue, 04 May 2021 01:02:12 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
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


--- End Message ---

reply via email to

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