From unknown Sun Jun 22 08:07:46 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#62670] [PATCH] gnu: Add deal. Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 Apr 2023 21:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62670 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62670@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16806450195027 (code B ref -1); Tue, 04 Apr 2023 21:51:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Apr 2023 21:50:19 +0000 Received: from localhost ([127.0.0.1]:50415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjoXi-0001J1-UP for submit@debbugs.gnu.org; Tue, 04 Apr 2023 17:50:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:54094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjoXh-0001It-3B for submit@debbugs.gnu.org; Tue, 04 Apr 2023 17:50:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjoXg-000343-Q3 for guix-patches@gnu.org; Tue, 04 Apr 2023 17:50:16 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjoXe-0005Fx-R8 for guix-patches@gnu.org; Tue, 04 Apr 2023 17:50:16 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 89DE61C0003 for ; Tue, 4 Apr 2023 21:50:10 +0000 (UTC) From: Nicolas Goaziou Date: Tue, 4 Apr 2023 23:50:04 +0200 Message-Id: <20230404215004.740745-1-mail@nicolasgoaziou.fr> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:4b98:dc4:8::225; envelope-from=mail@nicolasgoaziou.fr; helo=relay5-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) * gnu/packages/games.scm (deal): New variable. --- gnu/packages/games.scm | 80 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index debd9b5d30..249ee469f4 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -1152,6 +1152,84 @@ (define-public cowsay tired of cows, a variety of other ASCII-art messengers are available.") (license license:gpl3+))) +(define-public deal + (package + (name "deal") + (version "3.1.11") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gtwilliams/deal") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1wcrx3yq5ycnkdnygcq80ljpgc9iwyrr8zayprzvbibvj77hdm0c")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #t + #:test-target "test" + #:make-flags + #~(let* ((tcl #$(this-package-input "tcl")) + (tcl-version #$(version-major+minor (package-version tcl)))) + (list "CPPFLAGS += -O3" + (string-append "CC=" #$(cc-for-target)) + (string-append "TCL_INCL=" tcl "/include") + (string-append "LDFLAGS=-L" tcl "/lib" + " -ltcl" tcl-version + " -lm") + (string-append "DATA_DIR=" #$output "/share/deal/"))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'locate-pod2man + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Makefile" + (("/usr/bin/pod2man") + (search-input-file inputs "/bin/pod2man"))))) + (delete 'configure) ;no configure script + ;; Prevent the error: "Makefile:248: Make.dep: No such file + ;; or directory". + (add-before 'build 'create-Make.dep + (lambda _ + (call-with-output-file "Make.dep" (const #t)))) + ;; There is no install target. Do everything manually. + (replace 'install + (lambda _ + (let ((bin (string-append #$output "/bin")) + (man (string-append #$output "/share/man/man6")) + (data (string-append #$output "/share/deal"))) + (install-file "deal" bin) + (install-file "deal.6" man) + (install-file "deal.tcl" data) + (for-each (lambda (d) + (let ((target (string-append data "/" d))) + (mkdir-p target) + (copy-recursively d target))) + '("ex" "format" "input" "lib"))))) + ;; Tests need to happen once the data is properly installed + ;; because the "deal.tcl" script file location is hard-coded + ;; in the "deal" binary. + (delete 'check) + (add-after 'install 'check + (assoc-ref %standard-phases 'check))))) + (native-inputs + (list perl)) + (inputs + (list tcl)) + (home-page "https://bridge.thomasoandrews.com/deal/") + (synopsis "Bridge hand generator") + (description + "This program generates bridge hands. It can be told to generate only +hands satisfying conditions like being balanced, having a range of +High Cards Points (HCP), controls, or other user-definable properties. +Hands can be output in various formats, like PBN for feeding to other +bridge programs, Deal itself, or split up into a file per player for +practise.") + (license (list license:gpl2+ + license:gpl1+ ;ansidecl.h + license:bsd-3)))) ;random.c + (define-public falltergeist (package (name "falltergeist") @@ -1167,7 +1245,7 @@ (define-public falltergeist "05cg58i2g32wbmrvmdsicic8xs83gld3qr1p7r4lnlckcl1l7dy4")))) (build-system cmake-build-system) (arguments - `(#:tests? #f)) ; no tests provided + `(#:tests? #f)) ; no tests provided (native-inputs (list pkg-config)) (inputs `(("sdl" ,(sdl-union (list sdl2 sdl2-image base-commit: 6311493d7a6271bfbc51f4693857f9a12fe9965d -- 2.39.2 From unknown Sun Jun 22 08:07:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nicolas Goaziou Subject: bug#62670: closed (Re: [bug#62670] [PATCH] gnu: Add deal.) Message-ID: References: <87cz3srhjq.fsf@nicolasgoaziou.fr> <20230404215004.740745-1-mail@nicolasgoaziou.fr> X-Gnu-PR-Message: they-closed 62670 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 62670@debbugs.gnu.org Date: Mon, 24 Apr 2023 23:24:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1682378643-19949-1" This is a multi-part message in MIME format... ------------=_1682378643-19949-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #62670: [PATCH] gnu: Add deal. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 62670@debbugs.gnu.org. --=20 62670: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D62670 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1682378643-19949-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 62670-done) by debbugs.gnu.org; 24 Apr 2023 23:23:30 +0000 Received: from localhost ([127.0.0.1]:50643 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pr5Ws-0005AO-Ax for submit@debbugs.gnu.org; Mon, 24 Apr 2023 19:23:30 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:33569) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pr5Wq-0005A8-B2 for 62670-done@debbugs.gnu.org; Mon, 24 Apr 2023 19:23:28 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 2B40B240003 for <62670-done@debbugs.gnu.org>; Mon, 24 Apr 2023 23:23:21 +0000 (UTC) From: Nicolas Goaziou To: 62670-done@debbugs.gnu.org Subject: Re: [bug#62670] [PATCH] gnu: Add deal. References: <20230404215004.740745-1-mail@nicolasgoaziou.fr> Date: Tue, 25 Apr 2023 01:23:21 +0200 In-Reply-To: <20230404215004.740745-1-mail@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 4 Apr 2023 23:50:04 +0200") Message-ID: <87cz3srhjq.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 62670-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Nicolas Goaziou writes: > * gnu/packages/games.scm (deal): New variable. Applied. Closing. Regards, -- Nicolas Goaziou ------------=_1682378643-19949-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Apr 2023 21:50:19 +0000 Received: from localhost ([127.0.0.1]:50415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjoXi-0001J1-UP for submit@debbugs.gnu.org; Tue, 04 Apr 2023 17:50:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:54094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjoXh-0001It-3B for submit@debbugs.gnu.org; Tue, 04 Apr 2023 17:50:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjoXg-000343-Q3 for guix-patches@gnu.org; Tue, 04 Apr 2023 17:50:16 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:dc4:8::225]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjoXe-0005Fx-R8 for guix-patches@gnu.org; Tue, 04 Apr 2023 17:50:16 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 89DE61C0003 for ; Tue, 4 Apr 2023 21:50:10 +0000 (UTC) From: Nicolas Goaziou To: guix-patches@gnu.org Subject: [PATCH] gnu: Add deal. Date: Tue, 4 Apr 2023 23:50:04 +0200 Message-Id: <20230404215004.740745-1-mail@nicolasgoaziou.fr> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:4b98:dc4:8::225; envelope-from=mail@nicolasgoaziou.fr; helo=relay5-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) * gnu/packages/games.scm (deal): New variable. --- gnu/packages/games.scm | 80 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index debd9b5d30..249ee469f4 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -1152,6 +1152,84 @@ (define-public cowsay tired of cows, a variety of other ASCII-art messengers are available.") (license license:gpl3+))) +(define-public deal + (package + (name "deal") + (version "3.1.11") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gtwilliams/deal") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1wcrx3yq5ycnkdnygcq80ljpgc9iwyrr8zayprzvbibvj77hdm0c")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #t + #:test-target "test" + #:make-flags + #~(let* ((tcl #$(this-package-input "tcl")) + (tcl-version #$(version-major+minor (package-version tcl)))) + (list "CPPFLAGS += -O3" + (string-append "CC=" #$(cc-for-target)) + (string-append "TCL_INCL=" tcl "/include") + (string-append "LDFLAGS=-L" tcl "/lib" + " -ltcl" tcl-version + " -lm") + (string-append "DATA_DIR=" #$output "/share/deal/"))) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'locate-pod2man + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Makefile" + (("/usr/bin/pod2man") + (search-input-file inputs "/bin/pod2man"))))) + (delete 'configure) ;no configure script + ;; Prevent the error: "Makefile:248: Make.dep: No such file + ;; or directory". + (add-before 'build 'create-Make.dep + (lambda _ + (call-with-output-file "Make.dep" (const #t)))) + ;; There is no install target. Do everything manually. + (replace 'install + (lambda _ + (let ((bin (string-append #$output "/bin")) + (man (string-append #$output "/share/man/man6")) + (data (string-append #$output "/share/deal"))) + (install-file "deal" bin) + (install-file "deal.6" man) + (install-file "deal.tcl" data) + (for-each (lambda (d) + (let ((target (string-append data "/" d))) + (mkdir-p target) + (copy-recursively d target))) + '("ex" "format" "input" "lib"))))) + ;; Tests need to happen once the data is properly installed + ;; because the "deal.tcl" script file location is hard-coded + ;; in the "deal" binary. + (delete 'check) + (add-after 'install 'check + (assoc-ref %standard-phases 'check))))) + (native-inputs + (list perl)) + (inputs + (list tcl)) + (home-page "https://bridge.thomasoandrews.com/deal/") + (synopsis "Bridge hand generator") + (description + "This program generates bridge hands. It can be told to generate only +hands satisfying conditions like being balanced, having a range of +High Cards Points (HCP), controls, or other user-definable properties. +Hands can be output in various formats, like PBN for feeding to other +bridge programs, Deal itself, or split up into a file per player for +practise.") + (license (list license:gpl2+ + license:gpl1+ ;ansidecl.h + license:bsd-3)))) ;random.c + (define-public falltergeist (package (name "falltergeist") @@ -1167,7 +1245,7 @@ (define-public falltergeist "05cg58i2g32wbmrvmdsicic8xs83gld3qr1p7r4lnlckcl1l7dy4")))) (build-system cmake-build-system) (arguments - `(#:tests? #f)) ; no tests provided + `(#:tests? #f)) ; no tests provided (native-inputs (list pkg-config)) (inputs `(("sdl" ,(sdl-union (list sdl2 sdl2-image base-commit: 6311493d7a6271bfbc51f4693857f9a12fe9965d -- 2.39.2 ------------=_1682378643-19949-1--