Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/cheese/, media-video/cheese/files/
Date: Sun, 02 Feb 2020 03:53:28
Message-Id: 1580615460.59a9a772ac2ad618268fc0f29533c02f00f67126.mattst88@gentoo
1 commit: 59a9a772ac2ad618268fc0f29533c02f00f67126
2 Author: David Heidelberg <david <AT> ixit <DOT> cz>
3 AuthorDate: Tue Oct 22 10:05:53 2019 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 2 03:51:00 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59a9a772
7
8 media-video/cheese: bump 3.34.0
9
10 - ported to meson
11 - ported to EAPI7
12 - make X dependency optional, since meson build do not requires xserver
13
14 Closes: https://bugs.gentoo.org/673804
15 Closes: https://bugs.gentoo.org/698250
16 Closes: https://github.com/gentoo/gentoo/pull/13378
17 Signed-off-by: David Heidelberg <david <AT> ixit.cz>
18 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
19
20 media-video/cheese/Manifest | 1 +
21 media-video/cheese/cheese-3.34.0.ebuild | 103 +++++++++++++
22 .../cheese/files/cheese-3.34.0-buildfix.patch | 17 +++
23 ...-3.34.0-help-No-more-menu-bars-in-3.34-UI.patch | 160 +++++++++++++++++++++
24 4 files changed, 281 insertions(+)
25
26 diff --git a/media-video/cheese/Manifest b/media-video/cheese/Manifest
27 index dfca397dfc8..bb7880206e1 100644
28 --- a/media-video/cheese/Manifest
29 +++ b/media-video/cheese/Manifest
30 @@ -1 +1,2 @@
31 DIST cheese-3.32.1.tar.xz 1487792 BLAKE2B 6e27b68f590aa4f90a8bbbc72972bed96fe9741b4efd849d226751cfd6abe37241fa214240c4a8b0449fb2bc53de1043ac0abd60a06bc884796a4272c07212af SHA512 bdd0ae72e3df596d19ad467dc0222a49b028f2ad8c285d55360813624ca2dac1956463cfd9cea4f2a6ff123070966544cd7254ee2891e973dca42d07061a6c94
32 +DIST cheese-3.34.0.tar.xz 1077052 BLAKE2B 9719818aebb3472b804d96d79b02ee71b818d098b6eeb54f2075939e95ba651c251d561b4bc79c30a0aae6217a8a29f46f045be9279c9100ba1b0344f1279ba5 SHA512 093b4e5f7f15fd0c445fffd254d4a5035a4e3e91bacccdeeda64a4a7182901646daea5c8596c954a67896f9aaf37dab2309c21e8f026583f59d787a2c1e4c200
33
34 diff --git a/media-video/cheese/cheese-3.34.0.ebuild b/media-video/cheese/cheese-3.34.0.ebuild
35 new file mode 100644
36 index 00000000000..7d4f0574c48
37 --- /dev/null
38 +++ b/media-video/cheese/cheese-3.34.0.ebuild
39 @@ -0,0 +1,103 @@
40 +# Copyright 1999-2019 Gentoo Authors
41 +# Distributed under the terms of the GNU General Public License v2
42 +
43 +EAPI=7
44 +
45 +inherit gnome.org meson vala virtualx xdg-utils
46 +
47 +DESCRIPTION="A cheesy program to take pictures and videos from your webcam"
48 +HOMEPAGE="https://wiki.gnome.org/Apps/Cheese"
49 +
50 +LICENSE="GPL-2+"
51 +SLOT="0/8" # subslot = libcheese soname version
52 +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
53 +IUSE="gtk-doc +introspection test X"
54 +RESTRICT="test" # Tests fail
55 +
56 +REQUIRED_USE="test? ( X )"
57 +COMMON_DEPEND="
58 + >=dev-libs/glib-2.39.90:2
59 + >=x11-libs/gtk+-3.13.4:3[introspection?]
60 + >=gnome-base/gnome-desktop-2.91.6:3=
61 + >=media-libs/libcanberra-0.26[gtk3]
62 + >=media-libs/clutter-1.13.2:1.0[introspection?]
63 + >=media-libs/clutter-gtk-0.91.8:1.0
64 + media-libs/clutter-gst:3.0
65 + media-libs/cogl:1.0=[introspection?]
66 +
67 + media-video/gnome-video-effects
68 + x11-libs/gdk-pixbuf:2[jpeg,introspection?]
69 +
70 + >=media-libs/gstreamer-1.4:1.0[introspection?]
71 + >=media-libs/gst-plugins-base-1.4:1.0[introspection?,ogg,pango,theora,vorbis,X?]
72 +
73 + introspection? ( >=dev-libs/gobject-introspection-0.6.7:= )
74 +
75 + X? (
76 + x11-base/xorg-proto
77 + x11-libs/libX11
78 + )
79 +"
80 +
81 +DEPEND="
82 + ${COMMON_DEPEND}
83 + test? ( x11-libs/libXtst )
84 +"
85 +
86 +RDEPEND="${COMMON_DEPEND}
87 + >=media-libs/gst-plugins-bad-1.4:1.0
88 + >=media-libs/gst-plugins-good-1.4:1.0
89 +
90 + >=media-plugins/gst-plugins-jpeg-1.4:1.0
91 + >=media-plugins/gst-plugins-v4l2-1.4:1.0
92 + >=media-plugins/gst-plugins-vpx-1.4:1.0
93 +"
94 +
95 +BDEPEND="
96 + $(vala_depend)
97 + app-text/docbook-xml-dtd:4.3
98 + dev-util/itstool
99 + dev-libs/appstream-glib
100 + >=dev-util/intltool-0.50
101 + dev-libs/libxslt
102 + dev-libs/libxml2:2
103 + dev-util/glib-utils
104 + virtual/pkgconfig
105 +"
106 +
107 +PATCHES=(
108 + "${FILESDIR}"/${P}-buildfix.patch
109 + "${FILESDIR}"/${P}-help-No-more-menu-bars-in-3.34-UI.patch
110 +)
111 +
112 +src_prepare() {
113 + vala_src_prepare
114 +
115 + default
116 +}
117 +
118 +src_configure() {
119 + local emesonargs=(
120 + $(meson_use gtk-doc gtk_doc)
121 + $(meson_use introspection)
122 + $(meson_use test tests)
123 + -Dman=true
124 + )
125 +
126 + meson_src_configure
127 +
128 + # Hack: version.xml is not generated if gtk-doc is not enabled
129 + echo ${PV} > docs/reference/version.xml
130 +}
131 +
132 +src_test() {
133 + virtx meson_src_test
134 +}
135 +
136 +pkg_postinst() {
137 + xdg_icon_cache_update
138 +}
139 +
140 +pkg_postrm() {
141 + xdg_icon_cache_update
142 +}
143
144 diff --git a/media-video/cheese/files/cheese-3.34.0-buildfix.patch b/media-video/cheese/files/cheese-3.34.0-buildfix.patch
145 new file mode 100644
146 index 00000000000..8e2ac282481
147 --- /dev/null
148 +++ b/media-video/cheese/files/cheese-3.34.0-buildfix.patch
149 @@ -0,0 +1,17 @@
150 +diff --git a/meson.build b/meson.build
151 +index a4775d44..9d1e5587 100644
152 +--- a/meson.build
153 ++++ b/meson.build
154 +@@ -149,11 +149,7 @@ gnome_video_effects_dep = dependency(
155 + # Recommend some runtime GStreamer plugins.
156 + gst_inspect = find_program('gst-inspect-1.0', required: false)
157 + if gst_inspect.found()
158 +- foreach plugin: ['camerabin', 'vp8enc', 'webmmux']
159 +- if run_command(gst_inspect, plugin).returncode() != 0
160 +- warning(plugin + ' was not found. It needs to be installed before Cheese is run')
161 +- endif
162 +- endforeach
163 ++ warning('unable to check for runtime GStreamer plugin dependencies due to Gentoo\'s sandbox: camerabin, vp8enc, webmmux')
164 + else
165 + warning('unable to check for runtime GStreamer plugin dependencies')
166 + endif
167
168 diff --git a/media-video/cheese/files/cheese-3.34.0-help-No-more-menu-bars-in-3.34-UI.patch b/media-video/cheese/files/cheese-3.34.0-help-No-more-menu-bars-in-3.34-UI.patch
169 new file mode 100644
170 index 00000000000..b19c8fa30d5
171 --- /dev/null
172 +++ b/media-video/cheese/files/cheese-3.34.0-help-No-more-menu-bars-in-3.34-UI.patch
173 @@ -0,0 +1,160 @@
174 +From 9a9e47a3d3e910805bd7c9c1763c66400181f677 Mon Sep 17 00:00:00 2001
175 +From: Andre Klapper <a9016009@×××.de>
176 +Date: Sun, 5 Jan 2020 23:35:37 +0100
177 +Subject: [PATCH] help: No more menu bars in 3.34 UI
178 +
179 +---
180 + help/C/burst-mode.page | 5 +++--
181 + help/C/pref-countdown.page | 6 ++++--
182 + help/C/pref-flash.page | 5 +++--
183 + help/C/pref-fullscreen.page | 6 ++++--
184 + help/C/pref-image-properties.page | 5 +++--
185 + help/C/pref-resolution.page | 6 ++++--
186 + 6 files changed, 21 insertions(+), 12 deletions(-)
187 +
188 +diff --git a/help/C/burst-mode.page b/help/C/burst-mode.page
189 +index a14d3ab8..0a587ca1 100644
190 +--- a/help/C/burst-mode.page
191 ++++ b/help/C/burst-mode.page
192 +@@ -9,6 +9,7 @@
193 + <revision pkgversion="3.1" date="2011-09-05" status="review"/>
194 + <revision pkgversion="3.8" date="2013-04-19" status="review"/>
195 + <revision pkgversion="3.12" date="2014-02-21" status="review"/>
196 ++ <revision pkgversion="3.34" date="2020-01-05" status="review"/>
197 +
198 + <credit type="author copyright">
199 + <name>Julita Inca</name>
200 +@@ -59,8 +60,8 @@
201 +
202 + <steps>
203 + <item>
204 +- <p>Select
205 +- <guiseq><gui style="menu">Cheese</gui><gui style="menuitem">Preferences</gui><gui style="tab">Capture</gui></guiseq>.</p>
206 ++ <p>Press the menu button in the top-right corner of the window and select
207 ++ <guiseq><gui style="menuitem">Preferences</gui><gui style="tab">Capture</gui></guiseq>.</p>
208 + </item>
209 + <item>
210 + <p>Edit the preference settings:</p>
211 +diff --git a/help/C/pref-countdown.page b/help/C/pref-countdown.page
212 +index 9077d7a0..8f4b0292 100644
213 +--- a/help/C/pref-countdown.page
214 ++++ b/help/C/pref-countdown.page
215 +@@ -9,6 +9,7 @@
216 + <revision pkgversion="3.1" date="2011-09-19" status="review"/>
217 + <revision pkgversion="3.8" date="2013-04-15" status="review"/>
218 + <revision pkgversion="3.12" date="2014-02-21" status="final"/>
219 ++ <revision pkgversion="3.34" date="2020-01-05" status="final"/>
220 +
221 + <credit type="author copyright">
222 + <name>Julita Inca</name>
223 +@@ -28,8 +29,9 @@
224 + <title>Disable the <gui>Countdown</gui></title>
225 +
226 + <p>By default, <app>Cheese</app> counts down from three before taking a
227 +- photo. You can disable this feature by selecting
228 +- <guiseq><gui>Cheese</gui><gui>Preferences</gui><gui>Capture</gui></guiseq>
229 ++ photo. You can disable this feature by pressing the menu button in the
230 ++ top-right corner of the window, selecting
231 ++ <guiseq><gui style="menuitem">Preferences</gui><gui style="tab">Capture</gui></guiseq>,
232 + and unchecking <gui>Countdown</gui>.</p>
233 +
234 + </page>
235 +diff --git a/help/C/pref-flash.page b/help/C/pref-flash.page
236 +index b6ccd736..52897d2f 100644
237 +--- a/help/C/pref-flash.page
238 ++++ b/help/C/pref-flash.page
239 +@@ -9,6 +9,7 @@
240 + <revision pkgversion="3.1" date="2011-09-19" status="review"/>
241 + <revision pkgversion="3.8" date="2013-04-15" status="review"/>
242 + <revision pkgversion="3.12" date="2014-02-21" status="final"/>
243 ++ <revision pkgversion="3.34" date="2020-01-05" status="final"/>
244 +
245 + <credit type="author copyright">
246 + <name>Julita Inca</name>
247 +@@ -30,8 +31,8 @@
248 + <p>When you take a photo with Cheese, the computer screen briefly turns
249 + white.</p>
250 +
251 +- <p>To disable this feature, select
252 +- <guiseq><gui>Cheese</gui><gui>Preferences</gui><gui>Capture</gui></guiseq>
253 ++ <p>To disable this feature, press the menu button in the top-right corner of the window, select
254 ++ <guiseq><gui style="menuitem">Preferences</gui><gui style="tab">Capture</gui></guiseq>,
255 + and uncheck <gui>Fire flash</gui>.</p>
256 +
257 + </page>
258 +diff --git a/help/C/pref-fullscreen.page b/help/C/pref-fullscreen.page
259 +index a90baaad..7e79f374 100644
260 +--- a/help/C/pref-fullscreen.page
261 ++++ b/help/C/pref-fullscreen.page
262 +@@ -7,6 +7,7 @@
263 + <link type="guide" xref="index#preferences"/>
264 + <revision pkgversion="3.6" date="2012-05-09" status="stub"/>
265 + <revision pkgversion="3.12" date="2014-02-21" status="review"/>
266 ++ <revision pkgversion="3.34" date="2020-01-05" status="review"/>
267 +
268 + <credit type="author">
269 + <name>Ekaterina Gerasimova</name>
270 +@@ -23,10 +24,11 @@
271 + <p>To enable or disable the fullscreen mode:</p>
272 +
273 + <steps>
274 +- <item><p>Select <guiseq><gui>Cheese</gui><gui>Fullscreen</gui></guiseq></p></item>
275 ++ <item><p>Press the menu button in the top-right corner of the window and select
276 ++ <gui style="menuitem">Fullscreen</gui>.</p></item>
277 + </steps>
278 +
279 +- <p>If you cannot see the <gui style="menu">Cheese</gui> menu in fullscreen
280 ++ <p>If you cannot see the menu button in fullscreen
281 + mode, move your mouse or tap your touchscreen.</p>
282 +
283 + <note style="tip">
284 +diff --git a/help/C/pref-image-properties.page b/help/C/pref-image-properties.page
285 +index eea2c0e3..7d812596 100644
286 +--- a/help/C/pref-image-properties.page
287 ++++ b/help/C/pref-image-properties.page
288 +@@ -10,6 +10,7 @@
289 + <revision pkgversion="3.1" date="2011-09-05" status="review"/>
290 + <revision pkgversion="3.8" date="2013-04-15" status="review"/>
291 + <revision pkgversion="3.12" date="2014-02-21" status="review"/>
292 ++ <revision pkgversion="3.34" date="2020-01-05" status="review"/>
293 +
294 + <credit type="author copyright">
295 + <name>Julita Inca</name>
296 +@@ -33,8 +34,8 @@
297 +
298 + <steps>
299 + <item>
300 +- <p>Select
301 +- <guiseq><gui>Cheese</gui><gui>Preferences</gui><gui>Image</gui></guiseq>.</p>
302 ++ <p>Press the menu button in the top-right corner of the window and select
303 ++ <guiseq><gui style="menuitem">Preferences</gui><gui style="tab">Image</gui></guiseq>.</p>
304 + </item>
305 + <item>
306 + <p>Move the sliders to find the best settings for your webcam.</p>
307 +diff --git a/help/C/pref-resolution.page b/help/C/pref-resolution.page
308 +index a620a4ba..42846841 100644
309 +--- a/help/C/pref-resolution.page
310 ++++ b/help/C/pref-resolution.page
311 +@@ -8,6 +8,7 @@
312 + <revision pkgversion="3.0" date="2011-08-25" status="candidate"/>
313 + <revision pkgversion="3.1" date="2011-09-05" status="review"/>
314 + <revision pkgversion="3.12" date="2014-02-21" status="candidate"/>
315 ++ <revision pkgversion="3.34" date="2020-01-05" status="candidate"/>
316 +
317 + <credit type="author copyright">
318 + <name>Julita Inca</name>
319 +@@ -38,8 +39,9 @@
320 +
321 + <steps>
322 + <item>
323 +- <p>Select
324 +- <guiseq><gui>Cheese</gui><gui>Preferences</gui><gui>Webcam</gui></guiseq>.</p>
325 ++ <p>Press the menu button in the top-right corner of the window and select
326 ++ <guiseq><gui style="menuitem">Preferences</gui><gui style="tab">Webcam</gui></guiseq>.</p>
327 ++
328 + </item>
329 + <item>
330 + <p>Choose a different resolution from the drop-down list. Some webcams
331 +--
332 +2.24.1
333 +