unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#37718] [PATCH] Add gnome-mahjongg.
@ 2019-10-12 16:17 David Wilson
  2019-10-15 12:17 ` bug#37718: " Ludovic Courtès
  2019-10-15 12:20 ` [bug#37718] " Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: David Wilson @ 2019-10-12 16:17 UTC (permalink / raw)
  To: 37718

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

Hi fellow Guixers,

Here's a patch to add the (highly addictive) game Gnome Mahjongg.  Please let me know if there's any way this package definition can be improved!

Happy hacking,

David

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-gnome-mahjongg.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-gnome-mahjongg.patch", Size: 2346 bytes --]

From a589ef5124d265b9c0fb646b35e8efe852b74855 Mon Sep 17 00:00:00 2001
From: David Wilson <david@daviwil.com>
Date: Sat, 12 Oct 2019 09:07:11 -0700
Subject: [PATCH] gnu: Add gnome-mahjongg.

* gnu/packages/gnome.scm (gnome-mahjongg) New variable.
---
 gnu/packages/gnome.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 91a781bfba..ce58ff4006 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -41,6 +41,7 @@
 ;;; Copyright © 2019 Jonathan Frederickson <jonathan@terracrypt.net>
 ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2019 Martin Becze <mjbecze@riseup.net>
+;;; Copyright © 2019 David Wilson <david@daviwil.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -8394,3 +8395,39 @@ access library.  It only implements the core plumbing functions, not really the
 higher level porcelain stuff.")
     (home-page "https://wiki.gnome.org/Projects/Libgit2-glib")
     (license license:gpl2+)))
+
+(define-public gnome-mahjongg
+  (package
+    (name "gnome-mahjongg")
+    (version "3.35.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
+                    (commit version)))
+              (sha256
+               (base32
+                "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
+    (build-system meson-build-system)
+    (arguments
+     `(#:glib-or-gtk? #t))
+    (native-inputs
+     `(("appstream-glib" ,appstream-glib)
+       ("gettext" ,gettext-minimal)
+       ("glib:bin" ,glib "bin") ;; For glib-compile-resources
+       ("gtk+" ,gtk+ "bin")     ;; For gtk-update-icon-cache
+       ("itstool" ,itstool)
+       ("pkg-config" ,pkg-config)
+       ("vala" ,vala)))
+    (propagated-inputs
+     `(("dconf" ,dconf)))
+    (inputs
+     `(("glib" ,glib)
+       ("gtk+" ,gtk+)
+       ("librsvg" ,librsvg)))
+    (synopsis "Mahjongg tile-matching game")
+    (description "Gnome Mahjongg is a game based on the classic Chinese tile-
+matching game Mahjong.  It features multiple board layouts, tile themes, and a
+high score table.")
+    (home-page "https://wiki.gnome.org/Apps/Mahjongg")
+    (license license:gpl2)))
-- 
2.23.0


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

* bug#37718: [PATCH] Add gnome-mahjongg.
  2019-10-12 16:17 [bug#37718] [PATCH] Add gnome-mahjongg David Wilson
@ 2019-10-15 12:17 ` Ludovic Courtès
  2019-10-15 12:20 ` [bug#37718] " Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2019-10-15 12:17 UTC (permalink / raw)
  To: David Wilson; +Cc: 37718-done

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

Hi David,

"David Wilson" <david@daviwil.com> skribis:

> From a589ef5124d265b9c0fb646b35e8efe852b74855 Mon Sep 17 00:00:00 2001
> From: David Wilson <david@daviwil.com>
> Date: Sat, 12 Oct 2019 09:07:11 -0700
> Subject: [PATCH] gnu: Add gnome-mahjongg.
>
> * gnu/packages/gnome.scm (gnome-mahjongg) New variable.

Applied with the following changes, thanks!

Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1141 bytes --]

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 81566e6e42..99cd7a7cb6 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -8406,6 +8406,7 @@ higher level porcelain stuff.")
               (uri (git-reference
                     (url "https://gitlab.gnome.org/GNOME/gnome-mahjongg.git")
                     (commit version)))
+              (file-name (git-file-name name version))
               (sha256
                (base32
                 "019a66a4m5w4kkb0sm6gxj0wi54n06zdxdlmyqw7h8kbakjizv7l"))))
@@ -8427,8 +8428,8 @@ higher level porcelain stuff.")
        ("gtk+" ,gtk+)
        ("librsvg" ,librsvg)))
     (synopsis "Mahjongg tile-matching game")
-    (description "Gnome Mahjongg is a game based on the classic Chinese tile-
-matching game Mahjong.  It features multiple board layouts, tile themes, and a
-high score table.")
+    (description "GNOME Mahjongg is a game based on the classic Chinese
+tile-matching game Mahjong.  It features multiple board layouts, tile themes,
+and a high score table.")
     (home-page "https://wiki.gnome.org/Apps/Mahjongg")
     (license license:gpl2)))

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

* [bug#37718] [PATCH] Add gnome-mahjongg.
  2019-10-12 16:17 [bug#37718] [PATCH] Add gnome-mahjongg David Wilson
  2019-10-15 12:17 ` bug#37718: " Ludovic Courtès
@ 2019-10-15 12:20 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2019-10-15 12:20 UTC (permalink / raw)
  To: David Wilson; +Cc: 37718

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

Oops, and this change too:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 432 bytes --]

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 99cd7a7cb6..81cb2fb37f 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -8432,4 +8432,4 @@ higher level porcelain stuff.")
 tile-matching game Mahjong.  It features multiple board layouts, tile themes,
 and a high score table.")
     (home-page "https://wiki.gnome.org/Apps/Mahjongg")
-    (license license:gpl2)))
+    (license license:gpl2+)))

[-- Attachment #3: Type: text/plain, Size: 93 bytes --]


… because source file headers carry the “or any later version” wording.

Ludo’.

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

end of thread, other threads:[~2019-10-15 12:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-12 16:17 [bug#37718] [PATCH] Add gnome-mahjongg David Wilson
2019-10-15 12:17 ` bug#37718: " Ludovic Courtès
2019-10-15 12:20 ` [bug#37718] " Ludovic Courtès

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).