commit:     f13a9b44bef909ba165a051caee921734834b377
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 25 02:06:50 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Jan 25 02:06:50 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f13a9b44

games-puzzle/gnome2048: fix build with meson 0.61

Closes: https://bugs.gentoo.org/831748
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/gnome2048-3.38.2-meson-0.61.patch        | 31 ++++++++++++++++++++++
 games-puzzle/gnome2048/gnome2048-3.38.2.ebuild     |  6 ++++-
 2 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/games-puzzle/gnome2048/files/gnome2048-3.38.2-meson-0.61.patch 
b/games-puzzle/gnome2048/files/gnome2048-3.38.2-meson-0.61.patch
new file mode 100644
index 000000000000..749b8e04d674
--- /dev/null
+++ b/games-puzzle/gnome2048/files/gnome2048-3.38.2-meson-0.61.patch
@@ -0,0 +1,31 @@
+https://gitlab.gnome.org/GNOME/gnome-2048/-/merge_requests/21.patch
+https://bugs.gentoo.org/831748
+
+From 194e22699f7166a016cd39ba26dd719aeecfc868 Mon Sep 17 00:00:00 2001
+From: Jan Beich <jbe...@freebsd.org>
+Date: Sun, 23 Jan 2022 10:49:07 +0000
+Subject: [PATCH] meson: drop unused argument for i18n.merge_file()
+
+Ignored in Meson < 0.60.0, deprecated since 0.60.1 and fatal since 0.61.0.
+
+data/meson.build:19:0: ERROR: Function does not take positional arguments.
+data/meson.build:39:0: ERROR: Function does not take positional arguments.
+--- a/data/meson.build
++++ b/data/meson.build
+@@ -17,7 +17,6 @@ install_data(
+ 
+ # Desktop file
+ desktop_file = i18n.merge_file(
+-  'desktop-file',
+   input: 'org.gnome.TwentyFortyEight.desktop.in',
+   output: 'org.gnome.TwentyFortyEight.desktop',
+   install: true,
+@@ -37,7 +36,6 @@ endif
+ 
+ # AppData file
+ appdata_file = i18n.merge_file(
+-  'appdata-file',
+   input: 'org.gnome.TwentyFortyEight.appdata.xml.in',
+   output: 'org.gnome.TwentyFortyEight.appdata.xml',
+   install: true,
+GitLab

diff --git a/games-puzzle/gnome2048/gnome2048-3.38.2.ebuild 
b/games-puzzle/gnome2048/gnome2048-3.38.2.ebuild
index 7b0f85ac85ae..8e058dd8bbf0 100644
--- a/games-puzzle/gnome2048/gnome2048-3.38.2.ebuild
+++ b/games-puzzle/gnome2048/gnome2048-3.38.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -31,6 +31,10 @@ BDEPEND="
        $(vala_depend)
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-3.38.2-meson-0.61.patch
+)
+
 src_prepare() {
        xdg_src_prepare
        vala_src_prepare

Reply via email to