1 |
commit: 1956405d5a510da460f0ab36d3937226953e2d12 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 20 03:00:43 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 20 03:00:43 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1956405d |
7 |
|
8 |
games-puzzle/hitori: fix build with meson 0.61 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/831462 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.../files/hitori-3.38.3-meson-0.61-build.patch | 35 ++++++++++++++++++++++ |
14 |
games-puzzle/hitori/hitori-3.38.3.ebuild | 6 +++- |
15 |
2 files changed, 40 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/games-puzzle/hitori/files/hitori-3.38.3-meson-0.61-build.patch b/games-puzzle/hitori/files/hitori-3.38.3-meson-0.61-build.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..a89b1b498502 |
20 |
--- /dev/null |
21 |
+++ b/games-puzzle/hitori/files/hitori-3.38.3-meson-0.61-build.patch |
22 |
@@ -0,0 +1,35 @@ |
23 |
+https://gitlab.gnome.org/GNOME/hitori/-/commit/d25728e122f1d7b985029a5ba96810c3e57c27f7.patch |
24 |
+https://bugs.gentoo.org/831462 |
25 |
+ |
26 |
+From: Philip Withnall <pwithnall@×××××××××.org> |
27 |
+Date: Tue, 2 Nov 2021 12:04:29 +0000 |
28 |
+Subject: [PATCH] build: Drop positional arguments from i18n.merge_file() calls |
29 |
+MIME-Version: 1.0 |
30 |
+Content-Type: text/plain; charset=UTF-8 |
31 |
+Content-Transfer-Encoding: 8bit |
32 |
+ |
33 |
+Meson never took positional arguments in this function, but didn’t warn |
34 |
+about it until Meson 0.60. Drop the unnecessary arguments to fix the |
35 |
+warning. |
36 |
+ |
37 |
+Signed-off-by: Philip Withnall <pwithnall@×××××××××.org> |
38 |
+--- a/data/meson.build |
39 |
++++ b/data/meson.build |
40 |
+@@ -1,6 +1,6 @@ |
41 |
+ subdir('icons') |
42 |
+ |
43 |
+-desktop_file = i18n.merge_file('desktop-file', |
44 |
++desktop_file = i18n.merge_file( |
45 |
+ type: 'desktop', |
46 |
+ input: '@0@××××××××.in'.format(application_id), |
47 |
+ output: '@0@.desktop'.format(application_id), |
48 |
+@@ -20,7 +20,7 @@ if desktop_file_validate.found() |
49 |
+ ) |
50 |
+ endif |
51 |
+ |
52 |
+-appdata_file = i18n.merge_file('appdata-file', |
53 |
++appdata_file = i18n.merge_file( |
54 |
+ input: '@0@××××××××××××.in'.format(application_id), |
55 |
+ output: '@0@××××××××.xml'.format(application_id), |
56 |
+ po_dir: join_paths(meson.source_root(), 'po'), |
57 |
+GitLab |
58 |
|
59 |
diff --git a/games-puzzle/hitori/hitori-3.38.3.ebuild b/games-puzzle/hitori/hitori-3.38.3.ebuild |
60 |
index 03d77e2e63fd..e6f87c980f0f 100644 |
61 |
--- a/games-puzzle/hitori/hitori-3.38.3.ebuild |
62 |
+++ b/games-puzzle/hitori/hitori-3.38.3.ebuild |
63 |
@@ -1,4 +1,4 @@ |
64 |
-# Copyright 1999-2021 Gentoo Authors |
65 |
+# Copyright 1999-2022 Gentoo Authors |
66 |
# Distributed under the terms of the GNU General Public License v2 |
67 |
|
68 |
EAPI=7 |
69 |
@@ -25,6 +25,10 @@ DEPEND="${RDEPEND} |
70 |
virtual/pkgconfig |
71 |
" |
72 |
|
73 |
+PATCHES=( |
74 |
+ "${FILESDIR}"/${P}-meson-0.61-build.patch |
75 |
+) |
76 |
+ |
77 |
pkg_postinst() { |
78 |
xdg_pkg_postinst |
79 |
gnome2_schemas_update |