all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#67994] [PATCH 2/2] gnu: Add redeal.
@ 2023-12-31 14:08   ` Nicolas Goaziou via Guix-patches via
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou via Guix-patches via @ 2023-12-24  7:34 UTC (permalink / raw)
  To: 67994; +Cc: Nicolas Goaziou, Liliana Marie Prikler, 宋文武

* gnu/packages/games.scm (redeal): New variable.

Change-Id: I89c000c7afdd594af3555bf23b0f028f99219ec3
---
 gnu/packages/games.scm | 49 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 8313c02754..46ce8c832c 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -2367,6 +2367,55 @@ (define-public prboom-plus
     "PrBoom+ is a Doom source port developed from the original PrBoom project.")
    (license license:gpl2+)))
 
+(define-public redeal
+  (let ((commit "e2e81a477fd31ae548a340b5f0f380594d3d0ad6")
+        (revision "1"))
+    (package
+      (name "redeal")
+      (version (git-version "0.2.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/anntzer/redeal")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "1vac36bg4ah9gs4hgmp745xq6nnmd7s71vsq99d72ng3sxap0wa3"))))
+      (build-system pyproject-build-system)
+      (arguments
+       (list
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'unpack 'unbundle-dds
+              (lambda* (#:key inputs #:allow-other-keys)
+                (substitute* "setup.py"
+                  (("cmdclass=.*") ""))
+                (let ((libdds (search-input-file inputs "lib/libdds.so")))
+                  (substitute* "redeal/dds.py"
+                    ((" and os.path.exists\\(dll_path\\)") "")
+                    (("dll = DLL\\(dll_path\\)")
+                     (format #f "dll = DLL(~s)" libdds))))))
+            (add-after 'install 'install-examples
+              (lambda _
+                (let* ((doc (string-append #$output "/share/doc/"))
+                       (examples
+                        (string-append doc #$name "-" #$version "/examples")))
+                  (mkdir-p examples)
+                  (copy-recursively "examples" examples)))))))
+      (inputs (list dds `(,python "tk")))
+      (propagated-inputs (list python-colorama))
+      (home-page "https://github.com/anntzer/redeal")
+      (synopsis
+       "Deal generator for bridge card game, written in Python")
+      (description
+       "Redeal is a deal generator written in Python.  It outputs deals
+satisfying whatever conditions you specify --- deals with a double void, deals
+with a strong 2♣ opener opposite a yarborough, etc.  Using Bo Haglund's double
+dummy solver, it can even solve the hands it has generated for you.")
+      (license license:gpl3))))
+
 (define-public retux
   (let ((release "1.6.1")
         (revision 0))
-- 
2.41.0







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

* [bug#68175] [PATCH 0/2] Add redeal.
@ 2023-12-31 13:59 Nicolas Goaziou via Guix-patches via
  2023-12-31 14:08   ` [bug#68175] " Nicolas Goaziou via Guix-patches via
  2023-12-31 14:08 ` [bug#68175] [PATCH 1/2] gnu: dds: Update to 2.9.0-1.d2bc4c2 Nicolas Goaziou via Guix-patches via
  0 siblings, 2 replies; 6+ messages in thread
From: Nicolas Goaziou via Guix-patches via @ 2023-12-31 13:59 UTC (permalink / raw)
  To: 68175; +Cc: Nicolas Goaziou, Liliana Marie Prikler, 宋文武

This patch set provides Redeal.

This is a reboot of issue https://issues.guix.gnu.org/67994, which is now
cancelled, because I somehow fumbled and the QA was not able to catch the
patches properly.

Nicolas Goaziou (2):
  gnu: dds: Update to 2.9.0-1.d2bc4c2.
  gnu: Add redeal.

 gnu/packages/game-development.scm | 124 +++++++++++++++---------------
 gnu/packages/games.scm            |  49 ++++++++++++
 2 files changed, 112 insertions(+), 61 deletions(-)


base-commit: 2bf5102aacaaf59af537e6d5b5565a0ebea5c267
-- 
2.41.0







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

* [bug#67994] [PATCH 2/2] gnu: Add redeal.
  2023-12-31 14:08   ` [bug#68175] " Nicolas Goaziou via Guix-patches via
  (?)
@ 2023-12-31 14:05   ` Nicolas Goaziou via Guix-patches via
  -1 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou via Guix-patches via @ 2023-12-31 14:05 UTC (permalink / raw)
  To: 67994; +Cc: 67994-done

Nicolas Goaziou via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/games.scm (redeal): New variable.

I'm cancelling this patch set because QA is not able to process it.
Resending it in another report.






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

* [bug#68175] [PATCH 1/2] gnu: dds: Update to 2.9.0-1.d2bc4c2.
  2023-12-31 13:59 [bug#68175] [PATCH 0/2] Add redeal Nicolas Goaziou via Guix-patches via
  2023-12-31 14:08   ` [bug#68175] " Nicolas Goaziou via Guix-patches via
@ 2023-12-31 14:08 ` Nicolas Goaziou via Guix-patches via
  1 sibling, 0 replies; 6+ messages in thread
From: Nicolas Goaziou via Guix-patches via @ 2023-12-31 14:08 UTC (permalink / raw)
  To: 68175; +Cc: Nicolas Goaziou, Liliana Marie Prikler, 宋文武

* gnu/packages/game-development.scm (dds): Update to 2.9.0-1.d2bc4c2.

Change-Id: I3c6db4e81d70112f020f2d7a0f7db26069c7591f
---
 gnu/packages/game-development.scm | 124 +++++++++++++++---------------
 1 file changed, 63 insertions(+), 61 deletions(-)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index f2139b315f..00651e54e1 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -195,69 +195,71 @@ (define-public bullet
     (license license:zlib)))
 
 (define-public dds
-  (package
-    (name "dds")
-    (version "2.9.0")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/dds-bridge/dds")
-             (commit (string-append "v" version))))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32
-         "1iv09qic43nvla02lm8zgnkqpjgnc95p8zh3wyifmnmlh1rz02yj"))))
-    (build-system gnu-build-system)
-    (arguments
-     (list #:phases
-           #~(modify-phases %standard-phases
-               (add-after 'unpack 'chdir
-                 (lambda _
-                   (chdir "src")))
-               (replace 'configure
-                 ;; Configuration is done by copying the appropriate
-                 ;; make file in the working directory.  There is no
-                 ;; configure script.
-                 (lambda _
-                   (copy-file "Makefiles/Makefile_linux_shared"
-                              "Makefile")))
-               (replace 'check
-                 ;; There is no "check" traget.  We must compile
-                 ;; a "dtest" program and apply it on a data set.
-                 (lambda* (#:key tests? #:allow-other-keys)
-                   (when tests?
-                     (install-file "libdds.so" "../test")
-                     (with-directory-excursion "../test"
-                       (copy-file "Makefiles/Makefile_linux"
-                                  "Makefile")
-                       (substitute* "Makefile"
-                         (("-Werror") ""))
-                       (invoke "make")
-                       (invoke "./dtest" "-f" "../hands/list100.txt")))))
-               (replace 'install
-                 ;; "install" target merely moves ".so" file around
-                 ;; the source directory.  We install it in the store,
-                 ;; along with all shipped documentation (which cannot
-                 ;; be built from source unfortunately).
-                 (lambda _
-                   (install-file "libdds.so"
-                                 (string-append #$output "/lib"))
-                   (let ((doc (string-append #$output
-                                             "/share/doc/"
-                                             #$name "-" #$version)))
-                     (install-file "../LICENSE" doc)
-                     (copy-recursively "../doc" doc)))))))
-    (native-inputs
-     (list gawk procps))
-    (inputs
-     (list boost))
-    (home-page "https://privat.bahnhof.se/wb758135/")
-    (synopsis "Double dummy solver for the bridge card game")
-    (description "DDS is a double-dummy solver of bridge hands.  It supports
+  (let ((commit "d2bc4c2c703941664fc1d73e69caa5233cdeac18")
+        (revision "1"))
+    (package
+      (name "dds")
+      (version (git-version "2.9.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/dds-bridge/dds")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "1ishbb69cvyv96xdxshnly0m5ydwljgdf8fwa1cr9rj2qj40q4rm"))))
+      (build-system gnu-build-system)
+      (arguments
+       (list #:phases
+             #~(modify-phases %standard-phases
+                 (add-after 'unpack 'chdir
+                   (lambda _
+                     (chdir "src")))
+                 (replace 'configure
+                   ;; Configuration is done by copying the appropriate
+                   ;; make file in the working directory.  There is no
+                   ;; configure script.
+                   (lambda _
+                     (copy-file "Makefiles/Makefile_linux_shared"
+                                "Makefile")))
+                 (replace 'check
+                   ;; There is no "check" traget.  We must compile
+                   ;; a "dtest" program and apply it on a data set.
+                   (lambda* (#:key tests? #:allow-other-keys)
+                     (when tests?
+                       (install-file "libdds.so" "../test")
+                       (with-directory-excursion "../test"
+                         (copy-file "Makefiles/Makefile_linux"
+                                    "Makefile")
+                         (substitute* "Makefile"
+                           (("-Werror") ""))
+                         (invoke "make")
+                         (invoke "./dtest" "-f" "../hands/list100.txt")))))
+                 (replace 'install
+                   ;; "install" target merely moves ".so" file around
+                   ;; the source directory.  We install it in the store,
+                   ;; along with all shipped documentation (which cannot
+                   ;; be built from source unfortunately).
+                   (lambda _
+                     (install-file "libdds.so"
+                                   (string-append #$output "/lib"))
+                     (let ((doc (string-append #$output
+                                               "/share/doc/"
+                                               #$name "-" #$version)))
+                       (install-file "../LICENSE" doc)
+                       (copy-recursively "../doc" doc)))))))
+      (native-inputs
+       (list gawk procps))
+      (inputs
+       (list boost))
+      (home-page "https://privat.bahnhof.se/wb758135/")
+      (synopsis "Double dummy solver for the bridge card game")
+      (description "DDS is a double-dummy solver of bridge hands.  It supports
 single-threading and multi-threading for improved performance.  DDS
 offers a wide range of functions, including par-score calculations.")
-    (license license:asl2.0)))
+      (license license:asl2.0))))
 
 (define-public deutex
   (package
-- 
2.41.0







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

* [bug#68175] [PATCH 2/2] gnu: Add redeal.
@ 2023-12-31 14:08   ` Nicolas Goaziou via Guix-patches via
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou via Guix-patches via @ 2023-12-31 14:08 UTC (permalink / raw)
  To: 68175; +Cc: Nicolas Goaziou, Liliana Marie Prikler, 宋文武

* gnu/packages/games.scm (redeal): New variable.

Change-Id: I89c000c7afdd594af3555bf23b0f028f99219ec3
---
 gnu/packages/games.scm | 49 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 8313c02754..46ce8c832c 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -2367,6 +2367,55 @@ (define-public prboom-plus
     "PrBoom+ is a Doom source port developed from the original PrBoom project.")
    (license license:gpl2+)))
 
+(define-public redeal
+  (let ((commit "e2e81a477fd31ae548a340b5f0f380594d3d0ad6")
+        (revision "1"))
+    (package
+      (name "redeal")
+      (version (git-version "0.2.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/anntzer/redeal")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "1vac36bg4ah9gs4hgmp745xq6nnmd7s71vsq99d72ng3sxap0wa3"))))
+      (build-system pyproject-build-system)
+      (arguments
+       (list
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'unpack 'unbundle-dds
+              (lambda* (#:key inputs #:allow-other-keys)
+                (substitute* "setup.py"
+                  (("cmdclass=.*") ""))
+                (let ((libdds (search-input-file inputs "lib/libdds.so")))
+                  (substitute* "redeal/dds.py"
+                    ((" and os.path.exists\\(dll_path\\)") "")
+                    (("dll = DLL\\(dll_path\\)")
+                     (format #f "dll = DLL(~s)" libdds))))))
+            (add-after 'install 'install-examples
+              (lambda _
+                (let* ((doc (string-append #$output "/share/doc/"))
+                       (examples
+                        (string-append doc #$name "-" #$version "/examples")))
+                  (mkdir-p examples)
+                  (copy-recursively "examples" examples)))))))
+      (inputs (list dds `(,python "tk")))
+      (propagated-inputs (list python-colorama))
+      (home-page "https://github.com/anntzer/redeal")
+      (synopsis
+       "Deal generator for bridge card game, written in Python")
+      (description
+       "Redeal is a deal generator written in Python.  It outputs deals
+satisfying whatever conditions you specify --- deals with a double void, deals
+with a strong 2♣ opener opposite a yarborough, etc.  Using Bo Haglund's double
+dummy solver, it can even solve the hands it has generated for you.")
+      (license license:gpl3))))
+
 (define-public retux
   (let ((release "1.6.1")
         (revision 0))
-- 
2.41.0







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

* bug#68175: [PATCH 2/2] gnu: Add redeal.
  2023-12-31 14:08   ` [bug#68175] " Nicolas Goaziou via Guix-patches via
  (?)
  (?)
@ 2024-01-07  9:30   ` Liliana Marie Prikler
  -1 siblings, 0 replies; 6+ messages in thread
From: Liliana Marie Prikler @ 2024-01-07  9:30 UTC (permalink / raw)
  To: Nicolas Goaziou, 68175-done; +Cc: 宋文武

Am Sonntag, dem 31.12.2023 um 15:08 +0100 schrieb Nicolas Goaziou:
> * gnu/packages/games.scm (redeal): New variable.
> 
> Change-Id: I89c000c7afdd594af3555bf23b0f028f99219ec3
Pushed.

Thanks




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

end of thread, other threads:[~2024-01-07  9:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-31 13:59 [bug#68175] [PATCH 0/2] Add redeal Nicolas Goaziou via Guix-patches via
2023-12-24  7:34 ` [bug#67994] [PATCH 2/2] gnu: " Nicolas Goaziou via Guix-patches via
2023-12-31 14:08   ` [bug#68175] " Nicolas Goaziou via Guix-patches via
2023-12-31 14:05   ` [bug#67994] " Nicolas Goaziou via Guix-patches via
2024-01-07  9:30   ` bug#68175: " Liliana Marie Prikler
2023-12-31 14:08 ` [bug#68175] [PATCH 1/2] gnu: dds: Update to 2.9.0-1.d2bc4c2 Nicolas Goaziou via Guix-patches via

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.