unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 47887@debbugs.gnu.org
Cc: Raghav Gururajan <rg@raghavgururajan.name>,
	jackhill@jackhill.us, rprior@protonmail.com, ccao001@fiu.edu
Subject: [bug#47887] [PATCH 1/2] gnu: Add gnome-2048
Date: Mon, 19 Apr 2021 05:58:34 +0000	[thread overview]
Message-ID: <26a081d94e472666f6fb5a35e78b90ee@dismail.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 421 bytes --]

Hi Guix,

Here is gnome-2048 co-authored with Carla Cao for review.

Carla wrote the description for the game.

I had to upgrade libgnome-games-support which now uses the meson-build-system instead of a Makefile.

We tested this with ./pre-inst-env guix environment --ad-hoc gnome-2048 -- gnome-2048

A word of caution: the above command will launch you into a very addictive game ;)

all the best,

jgart

[-- Attachment #2: 0001-gnu-libgnome-games-support-Update-to-1.7.1.patch --]
[-- Type: application/octet-stream, Size: 1881 bytes --]

From 9b0c462b1a8522c740cdef8f6afda45ad94a4dff Mon Sep 17 00:00:00 2001
From: jgart <jgart@dismail.de>
Date: Mon, 19 Apr 2021 01:33:30 -0400
Subject: [PATCH 1/2] gnu: libgnome-games-support: Update to 1.7.1.

* gnu/packages/gnome.scm (libgnome-games-support): Update to 1.7.1.
---
 gnu/packages/gnome.scm | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 34f5078581..ccb0814de7 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -6002,7 +6002,7 @@ queries upon that data.")
 (define-public libgnome-games-support
   (package
     (name "libgnome-games-support")
-    (version "1.4.4")
+    (version "1.7.1")
     (source (origin
               (method url-fetch)
               (uri (string-append "mirror://gnome/sources/libgnome-games-support/"
@@ -6010,16 +6010,17 @@ queries upon that data.")
                                   "libgnome-games-support-" version ".tar.xz"))
               (sha256
                (base32
-                "1zkbmnrn161p74qg6jhsn9f66yjjzxfm13pl1klv9av8k1bax9pq"))))
-    (build-system gnu-build-system)
+                "11g1r3ppb9v8m3anks9gxf7fv1x38vmjiya3lr7zjjv328pb69d6"))))
+    (build-system meson-build-system)
     (arguments
-     '(#:phases
-       (modify-phases %standard-phases
-         (add-before 'check 'pre-check
-           (lambda _
-             ;; Tests require a writable HOME.
-             (setenv "HOME" (getcwd))
-             #t)))))
+      '(#:glib-or-gtk? #t
+        #:phases
+          (modify-phases %standard-phases
+            (add-before 'check 'pre-check
+              (lambda _
+                ;; Tests require a writable HOME.
+                (setenv "HOME" (getcwd))
+                #t)))))
     (native-inputs
      `(("intltool" ,intltool)
        ("pkg-config" ,pkg-config)
-- 
2.29.3


[-- Attachment #3: 0002-gnu-Add-gnome-2048.patch --]
[-- Type: application/octet-stream, Size: 2740 bytes --]

From 7ea5cee4c0af275dfc9afdcc28dff166110b2f3f Mon Sep 17 00:00:00 2001
From: jgart <jgart@dismail.de>
Date: Mon, 19 Apr 2021 01:43:04 -0400
Subject: [PATCH 2/2] gnu: Add gnome-2048.

    * gnu/packages/games.scm (gnome-2048): New variable.

    Co-authored-by: Carla Cao <ccao001@fiu.edu>
---
 gnu/packages/games.scm | 46 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 91ac839aee..50a742935a 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -1623,6 +1623,52 @@ destroying an ancient book using a special wand.")
     ;; license.  The whole package is released under GPLv3+.
     (license license:gpl3+)))
 
+(define-public gnome-2048
+  (package
+    (name "gnome-2048")
+    (version "3.38.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://gnome/sources/gnome-2048/"
+                                  (version-major+minor version)  "/"
+                                  "gnome-2048-" version ".tar.xz"))
+              (sha256
+               (base32
+                "0s5fg4z5in1h39fcr69j1qc5ynmg7a8mfprk3mc3c0csq3snfwz2"))))
+    (build-system meson-build-system)
+    (arguments
+     '(#:glib-or-gtk? #t
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'skip-gtk-update-icon-cache
+           ;; Don't create 'icon-theme.cache'.
+           (lambda _
+             (substitute* "meson_post_install.py"
+               (("gtk-update-icon-cache") "true"))
+             #t)))))
+    (inputs
+     `(("gtk+" ,gtk+)
+       ("clutter" ,clutter)
+       ("clutter-gtk" ,clutter-gtk)
+       ("libgee" ,libgee)
+       ("libgnome-games-support" ,libgnome-games-support)))
+    (native-inputs
+     `(("gettext" ,gettext-minimal)
+       ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
+       ("itstool" ,itstool)
+       ("libxml2" ,libxml2)
+       ("pkg-config" ,pkg-config)
+       ("vala" ,vala)))
+    (home-page "https://wiki.gnome.org/Apps/2048")
+    (synopsis "Move the tiles until you obtain the 2048 tile")
+    (description "GNOME 2048 provides a 2D grid for playing 2048, a single-player sliding
+tile puzzle game.  The objective of the game is to merge together adjacent tiles of the
+same number until the sum of 2048 is achieved in one tile.  However, one can continue to
+play the game after achieving a tile of 2048 to create tiles with even larger numbers.
+You can save your progress at any point, allowing you to continue from where you left off
+when reopening the game.")
+    (license license:gpl3+)))
+
 (define-public gnome-chess
   (package
     (name "gnome-chess")
-- 
2.29.3


             reply	other threads:[~2021-04-19  5:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-19  5:58 jgart via Guix-patches via [this message]
2021-04-19  9:54 ` [bug#47887] [PATCH 1/2] gnu: Add gnome-2048 Leo Prikler
2021-04-19 20:28 ` jgart via Guix-patches via

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=26a081d94e472666f6fb5a35e78b90ee@dismail.de \
    --to=guix-patches@gnu.org \
    --cc=47887@debbugs.gnu.org \
    --cc=ccao001@fiu.edu \
    --cc=jackhill@jackhill.us \
    --cc=jgart@dismail.de \
    --cc=rg@raghavgururajan.name \
    --cc=rprior@protonmail.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).