Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/droidcam/
Date: Tue, 07 Dec 2021 10:04:02
Message-Id: 1638871437.567dacd9959f8a3760393df7347bc2597ab78549.andrewammerlaan@gentoo
1 commit: 567dacd9959f8a3760393df7347bc2597ab78549
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 7 10:00:11 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 7 10:03:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=567dacd9
7
8 media-video/droidcam: cleanup old
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 media-video/droidcam/Manifest | 1 -
14 media-video/droidcam/droidcam-1.8.0-r1.ebuild | 156 --------------------------
15 media-video/droidcam/droidcam-1.8.0.ebuild | 144 ------------------------
16 3 files changed, 301 deletions(-)
17
18 diff --git a/media-video/droidcam/Manifest b/media-video/droidcam/Manifest
19 index eeff2b0ec94a..12a5981ccc16 100644
20 --- a/media-video/droidcam/Manifest
21 +++ b/media-video/droidcam/Manifest
22 @@ -1,2 +1 @@
23 -DIST droidcam-1.8.0.tar.gz 84376 BLAKE2B 581e57e2c80dd9662764e399dd797e5893f617e69ee2501a1063d1c51434baf64d7d2b72779debede6d679127f31fa95a4e67953978da591acbf6a41bd05551d SHA512 b448f686562030b352630c6b677a098ecb5041582dd06e57809b04674cb334d02ddfdf1d09b43e1ecc70897e8073714ad6913ab14d894a7679fc433adb3fda82
24 DIST droidcam-1.8.1.tar.gz 84566 BLAKE2B ba023c98159003bef39eac2fcff211243aa5fb2cc4369a333c5b78c9708b8c34ff9987d6b84628b32e436bab776e0c8c83f75b7c6a788f85831d3d17dd468833 SHA512 58ce6014004edcbf89b4847ed916f9cd2757865172c61e446a04b2f6d93395db1013f0cb31f0b10161bfd83a1436e684891c3457371a3ad62308509bb85b4cf4
25
26 diff --git a/media-video/droidcam/droidcam-1.8.0-r1.ebuild b/media-video/droidcam/droidcam-1.8.0-r1.ebuild
27 deleted file mode 100644
28 index d81482560789..000000000000
29 --- a/media-video/droidcam/droidcam-1.8.0-r1.ebuild
30 +++ /dev/null
31 @@ -1,156 +0,0 @@
32 -# Copyright 2019-2021 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -inherit desktop linux-mod xdg
38 -
39 -DESCRIPTION="Use your phone or tablet as webcam with a v4l device driver and app"
40 -HOMEPAGE="https://www.dev47apps.com/droidcam/linux/"
41 -SRC_URI="https://github.com/dev47apps/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 -
43 -KEYWORDS="~amd64"
44 -LICENSE="GPL-2"
45 -SLOT="0"
46 -
47 -IUSE="gtk"
48 -
49 -# Requires connection to phone/tablet
50 -RESTRICT="test"
51 -
52 -DEPEND="
53 - app-pda/libplist
54 - app-pda/libusbmuxd
55 - dev-libs/glib
56 - dev-libs/libappindicator:3
57 - dev-libs/libxml2
58 - dev-util/android-tools
59 - media-libs/alsa-lib
60 - media-libs/libjpeg-turbo
61 - >=media-libs/speex-1.2.0-r1
62 - media-video/ffmpeg
63 - gtk? (
64 - dev-cpp/gtkmm:3.0
65 - x11-libs/gdk-pixbuf
66 - x11-libs/gtk+:3
67 - x11-libs/libX11
68 - x11-libs/pango
69 - )
70 -"
71 -RDEPEND="${DEPEND}"
72 -BDEPEND="virtual/pkgconfig"
73 -
74 -BUILD_TARGETS="all"
75 -MODULE_NAMES="v4l2loopback-dc(video:${S}/v4l2loopback:${S}/v4l2loopback)"
76 -MODULESD_V4L2LOOPBACK_DC_ENABLED="yes"
77 -
78 -CONFIG_CHECK="~SND_ALOOP VIDEO_DEV MEDIA_SUPPORT MEDIA_CAMERA_SUPPORT"
79 -ERROR_SND_ALOOP="CONFIG_SND_ALOOP is optionally required for audio support"
80 -
81 -PATCHES="${FILESDIR}/${PN}-makefile-fixes.patch"
82 -
83 -src_prepare() {
84 - if ! use gtk; then
85 - sed -i -e '/cflags gtk+/d' Makefile || die
86 - default
87 - else
88 - # remove path and extension from Icon and Exec entry
89 - sed -i -e 's/Icon=\/opt\/droidcam-icon.png/Icon=droidcam/g' \
90 - -e 's/\/usr\/local\/bin\/droidcam/droidcam/g' \
91 - droidcam.desktop || die
92 - sed -i -e 's%/opt/droidcam-icon.png%/usr/share/icons/hicolor/96x96/apps/droidcam.png%g' src/droidcam.c || die
93 - xdg_src_prepare
94 - fi
95 -}
96 -
97 -src_configure() {
98 - set_arch_to_kernel
99 - default
100 -}
101 -
102 -src_compile() {
103 - if use gtk; then
104 - emake droidcam
105 - fi
106 - emake droidcam-cli
107 -
108 - if linux_chkconfig_present CC_IS_CLANG; then
109 - BUILD_PARAMS+=' CC=${CHOST}-clang'
110 - if linux_chkconfig_present LD_IS_LLD; then
111 - BUILD_PARAMS+=' LD=ld.lld'
112 - if linux_chkconfig_present LTO_CLANG_THIN; then
113 - # kernel enables cache by default leading to sandbox violations
114 - BUILD_PARAMS+=' ldflags-y=--thinlto-cache-dir= LDFLAGS_MODULE=--thinlto-cache-dir='
115 - fi
116 - fi
117 - fi
118 - export KERNEL_DIR || die
119 - linux-mod_src_compile
120 -}
121 -
122 -src_test() {
123 - pushd "v4l2loopback" || die
124 - default
125 - ./test || die
126 - popd || die
127 -}
128 -
129 -src_install() {
130 - if use gtk; then
131 - dobin droidcam
132 - newicon -s 32 icon.png droidcam.png
133 - newicon -s 96 icon2.png droidcam.png
134 - domenu droidcam.desktop
135 - fi
136 - dobin droidcam-cli
137 -
138 - # The cli and gui do not auto load the module if unloaded (why not though?)
139 - # so we just put it in modules-load.d to make sure it always works
140 - insinto /etc/modules-load.d
141 - if linux_config_exists; then
142 - if linux_chkconfig_module SND_ALOOP; then
143 - newins - "${PN}.conf" <<-EOF
144 - v4l2loopback-dc
145 - snd_aloop
146 - EOF
147 - else
148 - newins - "${PN}.conf" <<-EOF
149 - v4l2loopback-dc
150 - EOF
151 - fi
152 - fi
153 -
154 - einstalldocs
155 - linux-mod_src_install
156 -}
157 -
158 -pkg_preinst() {
159 - linux-mod_pkg_preinst
160 - if use gtk; then
161 - xdg_pkg_preinst
162 - fi
163 -}
164 -
165 -pkg_postinst() {
166 - linux-mod_pkg_postinst
167 - if use gtk; then
168 - xdg_pkg_postinst
169 - else
170 - elog
171 - elog "Only droidcam-cli has been installed since 'gtk' flag was not set"
172 - elog
173 - fi
174 -
175 - elog "The default resolution for v4l2loopback-dc (i.e. droidcam) is 640x480."
176 - elog "You can change this value in /etc/modprobe.d/v4l2loopback-dc.conf"
177 - elog
178 - elog "Links to the Android/iPhone/iPad apps can be found at"
179 - elog "https://www.dev47apps.com/"
180 -}
181 -
182 -pkg_postrm() {
183 - linux-mod_pkg_postrm
184 - if use gtk; then
185 - xdg_pkg_postrm
186 - fi
187 -}
188
189 diff --git a/media-video/droidcam/droidcam-1.8.0.ebuild b/media-video/droidcam/droidcam-1.8.0.ebuild
190 deleted file mode 100644
191 index 60f47eb1847b..000000000000
192 --- a/media-video/droidcam/droidcam-1.8.0.ebuild
193 +++ /dev/null
194 @@ -1,144 +0,0 @@
195 -# Copyright 2019-2021 Gentoo Authors
196 -# Distributed under the terms of the GNU General Public License v2
197 -
198 -EAPI=7
199 -
200 -inherit desktop linux-mod xdg
201 -
202 -DESCRIPTION="Use your phone or tablet as webcam with a v4l device driver and app"
203 -HOMEPAGE="https://www.dev47apps.com/droidcam/linux/"
204 -SRC_URI="https://github.com/dev47apps/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
205 -
206 -KEYWORDS="~amd64"
207 -LICENSE="GPL-2"
208 -SLOT="0"
209 -
210 -IUSE="gtk"
211 -
212 -# Requires connection to phone/tablet
213 -RESTRICT="test"
214 -
215 -DEPEND="
216 - app-pda/libplist
217 - app-pda/libusbmuxd
218 - dev-libs/glib
219 - dev-libs/libappindicator:3
220 - dev-libs/libxml2
221 - dev-util/android-tools
222 - media-libs/alsa-lib
223 - media-libs/libjpeg-turbo
224 - >=media-libs/speex-1.2.0-r1
225 - media-video/ffmpeg
226 - gtk? (
227 - dev-cpp/gtkmm:3.0
228 - x11-libs/gdk-pixbuf
229 - x11-libs/gtk+:3
230 - x11-libs/libX11
231 - x11-libs/pango
232 - )
233 -"
234 -RDEPEND="${DEPEND}"
235 -BDEPEND="virtual/pkgconfig"
236 -
237 -BUILD_TARGETS="all"
238 -MODULE_NAMES="v4l2loopback-dc(video:${S}/v4l2loopback:${S}/v4l2loopback)"
239 -MODULESD_V4L2LOOPBACK_DC_ENABLED="yes"
240 -
241 -CONFIG_CHECK="~SND_ALOOP VIDEO_DEV MEDIA_SUPPORT MEDIA_CAMERA_SUPPORT"
242 -ERROR_SND_ALOOP="CONFIG_SND_ALOOP is optionally required for audio support"
243 -
244 -PATCHES="${FILESDIR}/${PN}-makefile-fixes.patch"
245 -
246 -src_prepare() {
247 - if ! use gtk; then
248 - sed -i -e '/cflags gtk+/d' Makefile || die
249 - default
250 - else
251 - # remove path and extension from Icon and Exec entry
252 - sed -i -e 's/Icon=\/opt\/droidcam-icon.png/Icon=droidcam/g' \
253 - -e 's/\/usr\/local\/bin\/droidcam/droidcam/g' \
254 - droidcam.desktop || die
255 - sed -i -e 's%/opt/droidcam-icon.png%/usr/share/icons/hicolor/96x96/apps/droidcam.png%g' src/droidcam.c || die
256 - xdg_src_prepare
257 - fi
258 -}
259 -
260 -src_configure() {
261 - set_arch_to_kernel
262 - default
263 -}
264 -
265 -src_compile() {
266 - if use gtk; then
267 - emake droidcam
268 - fi
269 - emake droidcam-cli
270 - KERNELRELEASE="${KV_FULL}" linux-mod_src_compile
271 -}
272 -
273 -src_test() {
274 - pushd "v4l2loopback" || die
275 - default
276 - ./test || die
277 - popd || die
278 -}
279 -
280 -src_install() {
281 - if use gtk; then
282 - dobin droidcam
283 - newicon -s 32 icon.png droidcam.png
284 - newicon -s 96 icon2.png droidcam.png
285 - domenu droidcam.desktop
286 - fi
287 - dobin droidcam-cli
288 -
289 - # The cli and gui do not auto load the module if unloaded (why not though?)
290 - # so we just put it in modules-load.d to make sure it always works
291 - insinto /etc/modules-load.d
292 - if linux_config_exists; then
293 - if linux_chkconfig_module SND_ALOOP; then
294 - newins - "${PN}.conf" <<-EOF
295 - v4l2loopback-dc
296 - snd_aloop
297 - EOF
298 - else
299 - newins - "${PN}.conf" <<-EOF
300 - v4l2loopback-dc
301 - EOF
302 - fi
303 - fi
304 -
305 - einstalldocs
306 - linux-mod_src_install
307 -}
308 -
309 -pkg_preinst() {
310 - if use gtk; then
311 - xdg_pkg_preinst
312 - fi
313 - linux-mod_pkg_preinst
314 -}
315 -
316 -pkg_postinst() {
317 - linux-mod_pkg_postinst
318 - if use gtk; then
319 - xdg_pkg_postinst
320 - else
321 - elog
322 - elog "Only droidcam-cli has been installed since 'gtk' flag was not set"
323 - elog
324 - fi
325 -
326 - elog "The default resolution for v4l2loopback-dc (i.e. droidcam) is 640x480."
327 - elog "You can change this value in /etc/modprobe.d/v4l2loopback-dc.conf"
328 - elog
329 - elog "Links to the Android/iPhone/iPad apps can be found at"
330 - elog "https://www.dev47apps.com/"
331 -}
332 -
333 -pkg_postrm() {
334 - if use gtk; then
335 - xdg_pkg_postrm
336 - fi
337 - linux-mod_pkg_postrm
338 -}