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: Fri, 30 Jul 2021 08:14:03
Message-Id: 1627632794.1d10d2ea0c943bb75b23324ec67b5a92cf8d7a56.andrewammerlaan@gentoo
1 commit: 1d10d2ea0c943bb75b23324ec67b5a92cf8d7a56
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 30 07:59:45 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 30 08:13:14 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d10d2ea
7
8 media-video/droidcam: remove 1.7.3
9
10 Package-Manager: Portage-3.0.20, 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.7.3.ebuild | 142 -----------------------------
15 2 files changed, 143 deletions(-)
16
17 diff --git a/media-video/droidcam/Manifest b/media-video/droidcam/Manifest
18 index 6a9b200974b..eaca205848f 100644
19 --- a/media-video/droidcam/Manifest
20 +++ b/media-video/droidcam/Manifest
21 @@ -1,2 +1 @@
22 -DIST droidcam-1.7.3.tar.gz 83146 BLAKE2B b79d210a7d6a3cee7322b373cd92b2c1a326dd9887dff1df752e9818f9e7ed88dfdfd4a33a22ccb39c601df81c4e9538b1efa8029a9ad56f39d400fc50bc746b SHA512 39d6947b66f1be7896c56aa01d471cbd025deaeb2d2359f9434e5ea91e4302f4c16ee31486bb04fab1dfc7f6d8b2de3f6800ead665b7b3d366b01b25297beaba
23 DIST droidcam-1.8.0.tar.gz 84376 BLAKE2B 581e57e2c80dd9662764e399dd797e5893f617e69ee2501a1063d1c51434baf64d7d2b72779debede6d679127f31fa95a4e67953978da591acbf6a41bd05551d SHA512 b448f686562030b352630c6b677a098ecb5041582dd06e57809b04674cb334d02ddfdf1d09b43e1ecc70897e8073714ad6913ab14d894a7679fc433adb3fda82
24
25 diff --git a/media-video/droidcam/droidcam-1.7.3.ebuild b/media-video/droidcam/droidcam-1.7.3.ebuild
26 deleted file mode 100644
27 index 9ac87c8084a..00000000000
28 --- a/media-video/droidcam/droidcam-1.7.3.ebuild
29 +++ /dev/null
30 @@ -1,142 +0,0 @@
31 -# Copyright 2019-2021 Gentoo Authors
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=7
35 -
36 -inherit desktop linux-mod xdg
37 -
38 -DESCRIPTION="Use your phone or tablet as webcam with a v4l device driver and app"
39 -HOMEPAGE="https://www.dev47apps.com/droidcam/linux/"
40 -SRC_URI="https://github.com/dev47apps/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 -
42 -KEYWORDS="~amd64"
43 -LICENSE="GPL-2"
44 -SLOT="0"
45 -
46 -IUSE="gtk"
47 -
48 -# Requires connection to phone/tablet
49 -RESTRICT="test"
50 -
51 -DEPEND="
52 - app-pda/libplist
53 - app-pda/libusbmuxd
54 - dev-libs/glib
55 - dev-libs/libappindicator:3
56 - dev-libs/libxml2
57 - dev-util/android-tools
58 - media-libs/alsa-lib
59 - media-libs/libjpeg-turbo
60 - >=media-libs/speex-1.2.0-r1
61 - media-video/ffmpeg
62 - gtk? (
63 - dev-cpp/gtkmm:3.0
64 - x11-libs/gdk-pixbuf
65 - x11-libs/gtk+:3
66 - x11-libs/libX11
67 - x11-libs/pango
68 - )
69 -"
70 -RDEPEND="${DEPEND}"
71 -BDEPEND="virtual/pkgconfig"
72 -
73 -BUILD_TARGETS="all"
74 -MODULE_NAMES="v4l2loopback-dc(video:${S}/v4l2loopback:${S}/v4l2loopback)"
75 -MODULESD_V4L2LOOPBACK_DC_ENABLED="yes"
76 -
77 -CONFIG_CHECK="~SND_ALOOP VIDEO_DEV MEDIA_SUPPORT MEDIA_CAMERA_SUPPORT"
78 -ERROR_SND_ALOOP="CONFIG_SND_ALOOP is optionally required for audio support"
79 -
80 -PATCHES="${FILESDIR}/${PN}-makefile-fixes.patch"
81 -
82 -src_prepare() {
83 - if ! use gtk; then
84 - sed -i -e '/cflags gtk+/d' Makefile || die
85 - default
86 - else
87 - # remove path and extension from icon entry
88 - sed -i -e 's/Icon=\/opt\/droidcam-icon.png/Icon=droidcam/g' droidcam.desktop || die
89 - sed -i -e 's%/opt/droidcam-icon.png%/usr/share/icons/hicolor/96x96/apps/droidcam.png%g' src/droidcam.c || die
90 - xdg_src_prepare
91 - fi
92 -}
93 -
94 -src_configure() {
95 - set_arch_to_kernel
96 - default
97 -}
98 -
99 -src_compile() {
100 - if use gtk; then
101 - emake droidcam
102 - fi
103 - emake droidcam-cli
104 - KERNELRELEASE="${KV_FULL}" linux-mod_src_compile
105 -}
106 -
107 -src_test() {
108 - pushd "v4l2loopback"
109 - default
110 - ./test || die
111 - popd
112 -}
113 -
114 -src_install() {
115 - if use gtk; then
116 - dobin droidcam
117 - newicon -s 32 icon.png droidcam.png
118 - newicon -s 96 icon2.png droidcam.png
119 - domenu droidcam.desktop
120 - fi
121 - dobin droidcam-cli
122 -
123 - # The cli and gui do not auto load the module if unloaded (why not though?)
124 - # so we just put it in modules-load.d to make sure it always works
125 - insinto /etc/modules-load.d
126 - if linux_config_exists; then
127 - if linux_chkconfig_module SND_ALOOP; then
128 - newins - "${PN}.conf" <<-EOF
129 - v4l2loopback-dc
130 - snd_aloop
131 - EOF
132 - else
133 - newins - "${PN}.conf" <<-EOF
134 - v4l2loopback-dc
135 - EOF
136 - fi
137 - fi
138 -
139 - einstalldocs
140 - linux-mod_src_install
141 -}
142 -
143 -pkg_preinst() {
144 - if use gtk; then
145 - xdg_pkg_preinst
146 - fi
147 - linux-mod_pkg_preinst
148 -}
149 -
150 -pkg_postinst() {
151 - linux-mod_pkg_postinst
152 - if use gtk; then
153 - xdg_pkg_postinst
154 - else
155 - elog
156 - elog "Only droidcam-cli has been installed since 'gtk' flag was not set"
157 - elog
158 - fi
159 -
160 - elog "The default resolution for v4l2loopback-dc (i.e. droidcam) is 640x480."
161 - elog "You can change this value in /etc/modprobe.d/v4l2loopback-dc.conf"
162 - elog
163 - elog "Links to the Android/iPhone/iPad apps can be found at"
164 - elog "https://www.dev47apps.com/"
165 -}
166 -
167 -pkg_postrm() {
168 - if use gtk; then
169 - xdg_pkg_postrm
170 - fi
171 - linux-mod_pkg_postrm
172 -}