unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: zamfofex <zamfofex@twdb.moe>
To: 68987@debbugs.gnu.org
Cc: zamfofex <zamfofex@twdb.moe>,
	"Liliana Marie Prikler" <liliana.prikler@gmail.com>,
	宋文武 <iyzsong@envs.net>
Subject: [bug#68987] [PATCH v3 1/2] gnu: moonfish: Update to 0-2.fb2cb4f.
Date: Tue, 26 Mar 2024 17:01:04 -0300	[thread overview]
Message-ID: <2cf88f5f3d316ab3d48be949c3d4a073239e3ec1.1711483265.git.zamfofex@twdb.moe> (raw)
In-Reply-To: <cover.1707351995.git.zamfofex@twdb.moe>

* gnu/packages/games.scm (moonfish): Update to 0-2.fb2cb4f.
[arguments]: Use upstream's makefile for building and installing.
Install tools into the "out" output instead of the "tools" output.
[outputs]: Remove "tools".

Change-Id: I0f098b02633d397fe1fef67863c3cd5b1db19214
---
 gnu/packages/games.scm | 33 ++++++++-------------------------
 1 file changed, 8 insertions(+), 25 deletions(-)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 06ba868f35..50ddf53ef5 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -10557,8 +10557,8 @@ (define-public stockfish
       (license license:gpl3+))))
 
 (define-public moonfish
-  (let ((commit "4f8829009e8c26e6a878261e0bc4c7e7617ef6b6")
-        (revision "1"))
+  (let ((commit "fb2cb4f53876b1b0c6060464e0dd5a05ab00e502")
+        (revision "2"))
     (package
       (name "moonfish")
       (version (git-version "0" revision commit))
@@ -10569,34 +10569,17 @@ (define-public moonfish
                       (commit commit)))
                 (sha256
                  (base32
-                  "1ksg42x9cyn3pbfryy9raqb355k47cqcisascpy157c3cgdr2z60"))
+                  "1rbhdahp0s2qm1zi7lpr0bb6zq02y76fc9d9nc2k5n03zh2as97i"))
                 (file-name (git-file-name name version))))
       (build-system gnu-build-system)
       (arguments
        (list
-        #:make-flags
-        #~(list (string-append "CC=" #$(cc-for-target)))
-        #:tests? #f                     ;no check target
-        #:phases
-        #~(modify-phases %standard-phases
-            (delete 'configure)         ;no configure script
-            (replace 'install           ;no 'install' target
-              (lambda _
-                (let* ((out-bin (string-append #$output "/bin"))
-                       (tools-bin (string-append #$output:tools "/bin"))
-                       (tool (string-append tools-bin "/moonfish-")))
-                  (mkdir-p out-bin)
-                  (mkdir-p tools-bin)
-                  (copy-file "moonfish"
-                             (string-append out-bin "/moonfish"))
-                  (copy-file "play"
-                             (string-append tool "play"))
-                  (copy-file "lichess"
-                             (string-append tool "lichess"))
-                  (copy-file "analyse"
-                             (string-append tool "analyse"))))))))
+        #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+                             (string-append "PREFIX=" %output))
+        #:tests? #f ;no check target
+        #:phases #~(modify-phases %standard-phases
+                     (delete 'configure)))) ;no configure script
       (inputs (list bearssl cjson))
-      (outputs '("out" "tools"))
       (home-page "https://git.sr.ht/~zamfofex/moonfish")
       (synopsis "Simple chess engine written in C")
       (description

base-commit: cce7a6d2d2b18f51d1fcab67b02a38c11d6f4f2d
-- 
2.41.0





  parent reply	other threads:[~2024-03-26 20:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-08  0:31 [bug#68987] [PATCH 0/2] update moonfish zamfofex
2024-02-08  0:34 ` [bug#68987] [PATCH 1/2] gnu: moonfish: Update to 0-2.2118580 zamfofex
2024-02-08 17:50   ` Liliana Marie Prikler
2024-02-08 23:34     ` zamfofex
2024-02-08  0:34 ` [bug#68987] [PATCH 2/2] gnu: moonfish: Improve description zamfofex
2024-02-28 10:30 ` [bug#68987] Ping Andreas Enge
2024-03-25 13:55 ` [bug#68987] [PATCH v2 1/2] gnu: moonfish: Update to 0-2.fd3471d zamfofex
2024-03-25 13:55   ` [bug#68987] [PATCH v2 2/2] gnu: moonfish: Improve description zamfofex
2024-03-26 20:01 ` zamfofex [this message]
2024-03-26 20:01   ` [bug#68987] [PATCH v3 " zamfofex
2024-03-27 12:57     ` bug#68987: " Christopher Baines

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=2cf88f5f3d316ab3d48be949c3d4a073239e3ec1.1711483265.git.zamfofex@twdb.moe \
    --to=zamfofex@twdb.moe \
    --cc=68987@debbugs.gnu.org \
    --cc=iyzsong@envs.net \
    --cc=liliana.prikler@gmail.com \
    /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).