1 |
commit: 77f847e558cd3deb63fe631a1b7cc105e5d6189f |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 3 09:05:00 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 3 09:05:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77f847e5 |
7 |
|
8 |
app-editors/gedit-plugins: fix build with meson 0.61 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/832315 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.../files/gedit-plugins-40.1-meson-0.61.patch | 208 +++++++++++++++++++++ |
14 |
.../gedit-plugins/gedit-plugins-40.1.ebuild | 4 + |
15 |
2 files changed, 212 insertions(+) |
16 |
|
17 |
diff --git a/app-editors/gedit-plugins/files/gedit-plugins-40.1-meson-0.61.patch b/app-editors/gedit-plugins/files/gedit-plugins-40.1-meson-0.61.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..d8661773ea0d |
20 |
--- /dev/null |
21 |
+++ b/app-editors/gedit-plugins/files/gedit-plugins-40.1-meson-0.61.patch |
22 |
@@ -0,0 +1,208 @@ |
23 |
+https://gitlab.gnome.org/GNOME/gedit-plugins/-/merge_requests/27.patch |
24 |
+https://bugs.gentoo.org/832315 |
25 |
+ |
26 |
+From: Jan Beich <jbeich@×××××××.org> |
27 |
+Date: Tue, 25 Jan 2022 12:10:06 +0000 |
28 |
+Subject: [PATCH] meson: drop unused argument for i18n.merge_file() |
29 |
+ |
30 |
+Ignored in Meson < 0.60.0, deprecated since 0.60.1 and fatal since 0.61.0. |
31 |
+ |
32 |
+plugins/bookmarks/meson.build:43:0: ERROR: Function does not take positional arguments. |
33 |
+plugins/bracketcompletion/meson.build:32:0: ERROR: Function does not take positional arguments. |
34 |
+plugins/charmap/meson.build:28:0: ERROR: Function does not take positional arguments. |
35 |
+plugins/codecomment/meson.build:32:0: ERROR: Function does not take positional arguments. |
36 |
+plugins/colorpicker/meson.build:32:0: ERROR: Function does not take positional arguments. |
37 |
+plugins/colorschemer/meson.build:41:0: ERROR: Function does not take positional arguments. |
38 |
+plugins/commander/meson.build:37:0: ERROR: Function does not take positional arguments. |
39 |
+plugins/drawspaces/meson.build:58:0: ERROR: Function does not take positional arguments. |
40 |
+plugins/findinfiles/meson.build:64:0: ERROR: Function does not take positional arguments. |
41 |
+plugins/git/meson.build:28:0: ERROR: Function does not take positional arguments. |
42 |
+plugins/joinlines/meson.build:32:0: ERROR: Function does not take positional arguments. |
43 |
+plugins/multiedit/meson.build:28:0: ERROR: Function does not take positional arguments. |
44 |
+plugins/smartspaces/meson.build:36:0: ERROR: Function does not take positional arguments. |
45 |
+plugins/synctex/meson.build:28:0: ERROR: Function does not take positional arguments. |
46 |
+plugins/terminal/meson.build:40:0: ERROR: Function does not take positional arguments. |
47 |
+plugins/textsize/meson.build:28:0: ERROR: Function does not take positional arguments. |
48 |
+plugins/translate/meson.build:49:0: ERROR: Function does not take positional arguments. |
49 |
+plugins/wordcompletion/meson.build:57:0: ERROR: Function does not take positional arguments. |
50 |
+--- a/plugins/bookmarks/meson.build |
51 |
++++ b/plugins/bookmarks/meson.build |
52 |
+@@ -41,7 +41,6 @@ bookmarks_plugin = custom_target( |
53 |
+ ) |
54 |
+ |
55 |
+ bookmarks_metainfo = i18n.merge_file( |
56 |
+- 'gedit-bookmarks.metainfo.xml', |
57 |
+ input: 'gedit-bookmarks.metainfo.xml.in', |
58 |
+ output: 'gedit-bookmarks.metainfo.xml', |
59 |
+ po_dir: join_paths(srcdir, 'po'), |
60 |
+--- a/plugins/bracketcompletion/meson.build |
61 |
++++ b/plugins/bracketcompletion/meson.build |
62 |
+@@ -30,7 +30,6 @@ bracketcompletion_plugin = custom_target( |
63 |
+ ) |
64 |
+ |
65 |
+ bracketcompletion_metainfo = i18n.merge_file( |
66 |
+- 'gedit-bracketcompletion.metainfo.xml', |
67 |
+ input: 'gedit-bracketcompletion.metainfo.xml.in', |
68 |
+ output: 'gedit-bracketcompletion.metainfo.xml', |
69 |
+ po_dir: join_paths(srcdir, 'po'), |
70 |
+--- a/plugins/charmap/meson.build |
71 |
++++ b/plugins/charmap/meson.build |
72 |
+@@ -26,7 +26,6 @@ charmap_plugin = custom_target( |
73 |
+ ) |
74 |
+ |
75 |
+ charmap_metainfo = i18n.merge_file( |
76 |
+- 'gedit-charmap.metainfo.xml', |
77 |
+ input: 'gedit-charmap.metainfo.xml.in', |
78 |
+ output: 'gedit-charmap.metainfo.xml', |
79 |
+ po_dir: join_paths(srcdir, 'po'), |
80 |
+--- a/plugins/codecomment/meson.build |
81 |
++++ b/plugins/codecomment/meson.build |
82 |
+@@ -30,7 +30,6 @@ codecomment_plugin = custom_target( |
83 |
+ ) |
84 |
+ |
85 |
+ codecomment_metainfo = i18n.merge_file( |
86 |
+- 'gedit-codecomment.metainfo.xml', |
87 |
+ input: 'gedit-codecomment.metainfo.xml.in', |
88 |
+ output: 'gedit-codecomment.metainfo.xml', |
89 |
+ po_dir: join_paths(srcdir, 'po'), |
90 |
+--- a/plugins/colorpicker/meson.build |
91 |
++++ b/plugins/colorpicker/meson.build |
92 |
+@@ -30,7 +30,6 @@ colorpicker_plugin = custom_target( |
93 |
+ ) |
94 |
+ |
95 |
+ colorpicker_metainfo = i18n.merge_file( |
96 |
+- 'gedit-colorpicker.metainfo.xml', |
97 |
+ input: 'gedit-colorpicker.metainfo.xml.in', |
98 |
+ output: 'gedit-colorpicker.metainfo.xml', |
99 |
+ po_dir: join_paths(srcdir, 'po'), |
100 |
+--- a/plugins/colorschemer/meson.build |
101 |
++++ b/plugins/colorschemer/meson.build |
102 |
+@@ -39,7 +39,6 @@ colorschemer_plugin = custom_target( |
103 |
+ ) |
104 |
+ |
105 |
+ colorschemer_metainfo = i18n.merge_file( |
106 |
+- 'gedit-colorschemer.metainfo.xml', |
107 |
+ input: 'gedit-colorschemer.metainfo.xml.in', |
108 |
+ output: 'gedit-colorschemer.metainfo.xml', |
109 |
+ po_dir: join_paths(srcdir, 'po'), |
110 |
+--- a/plugins/commander/meson.build |
111 |
++++ b/plugins/commander/meson.build |
112 |
+@@ -35,7 +35,6 @@ commander_plugin = custom_target( |
113 |
+ ) |
114 |
+ |
115 |
+ commander_metainfo = i18n.merge_file( |
116 |
+- 'gedit-commander.metainfo.xml', |
117 |
+ input: 'gedit-commander.metainfo.xml.in', |
118 |
+ output: 'gedit-commander.metainfo.xml', |
119 |
+ po_dir: join_paths(srcdir, 'po'), |
120 |
+--- a/plugins/drawspaces/meson.build |
121 |
++++ b/plugins/drawspaces/meson.build |
122 |
+@@ -56,7 +56,6 @@ install_data( |
123 |
+ ) |
124 |
+ |
125 |
+ drawspaces_metainfo = i18n.merge_file( |
126 |
+- 'gedit-drawspaces.metainfo.xml', |
127 |
+ input: 'gedit-drawspaces.metainfo.xml.in', |
128 |
+ output: 'gedit-drawspaces.metainfo.xml', |
129 |
+ po_dir: join_paths(srcdir, 'po'), |
130 |
+--- a/plugins/findinfiles/meson.build |
131 |
++++ b/plugins/findinfiles/meson.build |
132 |
+@@ -62,7 +62,6 @@ findinfiles_plugin = custom_target( |
133 |
+ ) |
134 |
+ |
135 |
+ findinfiles_metainfo = i18n.merge_file( |
136 |
+- 'gedit-findinfiles.metainfo.xml', |
137 |
+ input: 'gedit-findinfiles.metainfo.xml.in', |
138 |
+ output: 'gedit-findinfiles.metainfo.xml', |
139 |
+ po_dir: join_paths(srcdir, 'po'), |
140 |
+--- a/plugins/git/meson.build |
141 |
++++ b/plugins/git/meson.build |
142 |
+@@ -26,7 +26,6 @@ git_plugin = custom_target( |
143 |
+ ) |
144 |
+ |
145 |
+ git_metainfo = i18n.merge_file( |
146 |
+- 'gedit-git.metainfo.xml', |
147 |
+ input: 'gedit-git.metainfo.xml.in', |
148 |
+ output: 'gedit-git.metainfo.xml', |
149 |
+ po_dir: join_paths(srcdir, 'po'), |
150 |
+--- a/plugins/joinlines/meson.build |
151 |
++++ b/plugins/joinlines/meson.build |
152 |
+@@ -30,7 +30,6 @@ joinlines_plugin = custom_target( |
153 |
+ ) |
154 |
+ |
155 |
+ joinlines_metainfo = i18n.merge_file( |
156 |
+- 'gedit-joinlines.metainfo.xml', |
157 |
+ input: 'gedit-joinlines.metainfo.xml.in', |
158 |
+ output: 'gedit-joinlines.metainfo.xml', |
159 |
+ po_dir: join_paths(srcdir, 'po'), |
160 |
+--- a/plugins/multiedit/meson.build |
161 |
++++ b/plugins/multiedit/meson.build |
162 |
+@@ -26,7 +26,6 @@ multiedit_plugin = custom_target( |
163 |
+ ) |
164 |
+ |
165 |
+ multiedit_metainfo = i18n.merge_file( |
166 |
+- 'gedit-multiedit.metainfo.xml', |
167 |
+ input: 'gedit-multiedit.metainfo.xml.in', |
168 |
+ output: 'gedit-multiedit.metainfo.xml', |
169 |
+ po_dir: join_paths(srcdir, 'po'), |
170 |
+--- a/plugins/smartspaces/meson.build |
171 |
++++ b/plugins/smartspaces/meson.build |
172 |
+@@ -34,7 +34,6 @@ smartspaces_plugin = custom_target( |
173 |
+ ) |
174 |
+ |
175 |
+ smartspaces_metainfo = i18n.merge_file( |
176 |
+- 'gedit-smartspaces.metainfo.xml', |
177 |
+ input: 'gedit-smartspaces.metainfo.xml.in', |
178 |
+ output: 'gedit-smartspaces.metainfo.xml', |
179 |
+ po_dir: join_paths(srcdir, 'po'), |
180 |
+--- a/plugins/synctex/meson.build |
181 |
++++ b/plugins/synctex/meson.build |
182 |
+@@ -26,7 +26,6 @@ synctex_plugin = custom_target( |
183 |
+ ) |
184 |
+ |
185 |
+ synctex_metainfo = i18n.merge_file( |
186 |
+- 'gedit-synctex.metainfo.xml', |
187 |
+ input: 'gedit-synctex.metainfo.xml.in', |
188 |
+ output: 'gedit-synctex.metainfo.xml', |
189 |
+ po_dir: join_paths(srcdir, 'po'), |
190 |
+--- a/plugins/terminal/meson.build |
191 |
++++ b/plugins/terminal/meson.build |
192 |
+@@ -38,7 +38,6 @@ install_data( |
193 |
+ ) |
194 |
+ |
195 |
+ terminal_metainfo = i18n.merge_file( |
196 |
+- 'gedit-terminal.metainfo.xml', |
197 |
+ input: 'gedit-terminal.metainfo.xml.in', |
198 |
+ output: 'gedit-terminal.metainfo.xml', |
199 |
+ po_dir: join_paths(srcdir, 'po'), |
200 |
+--- a/plugins/textsize/meson.build |
201 |
++++ b/plugins/textsize/meson.build |
202 |
+@@ -26,7 +26,6 @@ textsize_plugin = custom_target( |
203 |
+ ) |
204 |
+ |
205 |
+ textsize_metainfo = i18n.merge_file( |
206 |
+- 'gedit-textsize.metainfo.xml', |
207 |
+ input: 'gedit-textsize.metainfo.xml.in', |
208 |
+ output: 'gedit-textsize.metainfo.xml', |
209 |
+ po_dir: join_paths(srcdir, 'po'), |
210 |
+--- a/plugins/translate/meson.build |
211 |
++++ b/plugins/translate/meson.build |
212 |
+@@ -47,7 +47,6 @@ install_data( |
213 |
+ ) |
214 |
+ |
215 |
+ translate_metainfo = i18n.merge_file( |
216 |
+- 'gedit-translate.metainfo.xml', |
217 |
+ input: 'gedit-translate.metainfo.xml.in', |
218 |
+ output: 'gedit-translate.metainfo.xml', |
219 |
+ po_dir: join_paths(srcdir, 'po'), |
220 |
+--- a/plugins/wordcompletion/meson.build |
221 |
++++ b/plugins/wordcompletion/meson.build |
222 |
+@@ -55,7 +55,6 @@ install_data( |
223 |
+ ) |
224 |
+ |
225 |
+ wordcompletion_metainfo = i18n.merge_file( |
226 |
+- 'gedit-wordcompletion.metainfo.xml', |
227 |
+ input: 'gedit-wordcompletion.metainfo.xml.in', |
228 |
+ output: 'gedit-wordcompletion.metainfo.xml', |
229 |
+ po_dir: join_paths(srcdir, 'po'), |
230 |
+GitLab |
231 |
|
232 |
diff --git a/app-editors/gedit-plugins/gedit-plugins-40.1.ebuild b/app-editors/gedit-plugins/gedit-plugins-40.1.ebuild |
233 |
index d056232a64b2..5f781ec10f14 100644 |
234 |
--- a/app-editors/gedit-plugins/gedit-plugins-40.1.ebuild |
235 |
+++ b/app-editors/gedit-plugins/gedit-plugins-40.1.ebuild |
236 |
@@ -58,6 +58,10 @@ BDEPEND=" |
237 |
vala? ( $(vala_depend) ) |
238 |
" |
239 |
|
240 |
+PATCHES=( |
241 |
+ "${FILESDIR}"/${PN}-40.1-meson-0.61.patch |
242 |
+) |
243 |
+ |
244 |
pkg_setup() { |
245 |
use python && python-single-r1_pkg_setup |
246 |
} |