1 |
commit: f6384adb1fa52e7d4fc3480019c26245313f3cc4 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 31 11:47:44 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 31 11:53:34 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6384adb |
7 |
|
8 |
media-video/droidcam: drop 1.8.1-r2 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/830128 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
media-video/droidcam/Manifest | 1 - |
14 |
media-video/droidcam/droidcam-1.8.1-r2.ebuild | 155 -------------------------- |
15 |
2 files changed, 156 deletions(-) |
16 |
|
17 |
diff --git a/media-video/droidcam/Manifest b/media-video/droidcam/Manifest |
18 |
index 4cb844547c78..766c4a5ea355 100644 |
19 |
--- a/media-video/droidcam/Manifest |
20 |
+++ b/media-video/droidcam/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST droidcam-1.8.1.tar.gz 84566 BLAKE2B ba023c98159003bef39eac2fcff211243aa5fb2cc4369a333c5b78c9708b8c34ff9987d6b84628b32e436bab776e0c8c83f75b7c6a788f85831d3d17dd468833 SHA512 58ce6014004edcbf89b4847ed916f9cd2757865172c61e446a04b2f6d93395db1013f0cb31f0b10161bfd83a1436e684891c3457371a3ad62308509bb85b4cf4 |
23 |
DIST droidcam-1.8.2.tar.gz 84797 BLAKE2B b2458dd04b467106a6d9a8a9f3d44058641a7c8ca429d5c92f498401c07f6bc364dc056755f21b40faac7e7aec1877250afb119ac3b7f979b24cdeb86f45c384 SHA512 507f513c8d0dffa86afe5368ccab5461931e236b6352269a6eb5e970a79e5f9b386808da3466f3b391e955170b47b24a82663632ddc3c3c84e4de5988b7d3f8f |
24 |
|
25 |
diff --git a/media-video/droidcam/droidcam-1.8.1-r2.ebuild b/media-video/droidcam/droidcam-1.8.1-r2.ebuild |
26 |
deleted file mode 100644 |
27 |
index 819276a7b5d0..000000000000 |
28 |
--- a/media-video/droidcam/droidcam-1.8.1-r2.ebuild |
29 |
+++ /dev/null |
30 |
@@ -1,155 +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 |
- x11-libs/gdk-pixbuf |
64 |
- x11-libs/gtk+:3 |
65 |
- x11-libs/libX11 |
66 |
- x11-libs/pango |
67 |
- ) |
68 |
-" |
69 |
-RDEPEND="${DEPEND}" |
70 |
-BDEPEND="virtual/pkgconfig" |
71 |
- |
72 |
-BUILD_TARGETS="all" |
73 |
-MODULE_NAMES="v4l2loopback-dc(video:${S}/v4l2loopback:${S}/v4l2loopback)" |
74 |
-MODULESD_V4L2LOOPBACK_DC_ENABLED="yes" |
75 |
- |
76 |
-CONFIG_CHECK="~SND_ALOOP VIDEO_DEV VIDEO_V4L2 MEDIA_SUPPORT MEDIA_CAMERA_SUPPORT" |
77 |
-ERROR_SND_ALOOP="CONFIG_SND_ALOOP is optionally required for audio support" |
78 |
- |
79 |
-PATCHES="${FILESDIR}/${PN}-makefile-fixes.patch" |
80 |
- |
81 |
-src_prepare() { |
82 |
- if ! use gtk; then |
83 |
- default |
84 |
- sed -i -e '/cflags gtk+/d' Makefile || die |
85 |
- else |
86 |
- xdg_src_prepare |
87 |
- # remove path and extension from Icon and Exec entry |
88 |
- sed -i -e 's/Icon=\/opt\/droidcam-icon.png/Icon=droidcam/g' \ |
89 |
- -e 's/\/usr\/local\/bin\/droidcam/droidcam/g' \ |
90 |
- droidcam.desktop || die |
91 |
- sed -i -e 's%/opt/droidcam-icon.png%/usr/share/icons/hicolor/96x96/apps/droidcam.png%g' src/droidcam.c || die |
92 |
- fi |
93 |
-} |
94 |
- |
95 |
-src_configure() { |
96 |
- set_arch_to_kernel |
97 |
- default |
98 |
-} |
99 |
- |
100 |
-src_compile() { |
101 |
- if use gtk; then |
102 |
- emake droidcam |
103 |
- fi |
104 |
- emake droidcam-cli |
105 |
- |
106 |
- if linux_chkconfig_present CC_IS_CLANG; then |
107 |
- BUILD_PARAMS+=' CC=${CHOST}-clang' |
108 |
- if linux_chkconfig_present LD_IS_LLD; then |
109 |
- BUILD_PARAMS+=' LD=ld.lld' |
110 |
- if linux_chkconfig_present LTO_CLANG_THIN; then |
111 |
- # kernel enables cache by default leading to sandbox violations |
112 |
- BUILD_PARAMS+=' ldflags-y=--thinlto-cache-dir= LDFLAGS_MODULE=--thinlto-cache-dir=' |
113 |
- fi |
114 |
- fi |
115 |
- fi |
116 |
- export KERNEL_DIR || die |
117 |
- linux-mod_src_compile |
118 |
-} |
119 |
- |
120 |
-src_test() { |
121 |
- pushd "v4l2loopback" || die |
122 |
- default |
123 |
- ./test || die |
124 |
- popd || die |
125 |
-} |
126 |
- |
127 |
-src_install() { |
128 |
- if use gtk; then |
129 |
- dobin droidcam |
130 |
- newicon -s 32 icon.png droidcam.png |
131 |
- newicon -s 96 icon2.png droidcam.png |
132 |
- domenu droidcam.desktop |
133 |
- fi |
134 |
- dobin droidcam-cli |
135 |
- |
136 |
- # The cli and gui do not auto load the module if unloaded (why not though?) |
137 |
- # so we just put it in modules-load.d to make sure it always works |
138 |
- insinto /etc/modules-load.d |
139 |
- if linux_config_exists; then |
140 |
- if linux_chkconfig_module SND_ALOOP; then |
141 |
- newins - "${PN}.conf" <<-EOF |
142 |
- v4l2loopback-dc |
143 |
- snd_aloop |
144 |
- EOF |
145 |
- else |
146 |
- newins - "${PN}.conf" <<-EOF |
147 |
- v4l2loopback-dc |
148 |
- EOF |
149 |
- fi |
150 |
- fi |
151 |
- |
152 |
- einstalldocs |
153 |
- linux-mod_src_install |
154 |
-} |
155 |
- |
156 |
-pkg_preinst() { |
157 |
- linux-mod_pkg_preinst |
158 |
- if use gtk; then |
159 |
- xdg_pkg_preinst |
160 |
- fi |
161 |
-} |
162 |
- |
163 |
-pkg_postinst() { |
164 |
- linux-mod_pkg_postinst |
165 |
- if use gtk; then |
166 |
- xdg_pkg_postinst |
167 |
- else |
168 |
- elog |
169 |
- elog "Only droidcam-cli has been installed since 'gtk' flag was not set" |
170 |
- elog |
171 |
- fi |
172 |
- |
173 |
- elog "The default resolution for v4l2loopback-dc (i.e. droidcam) is 640x480." |
174 |
- elog "You can change this value in /etc/modprobe.d/v4l2loopback-dc.conf" |
175 |
- elog |
176 |
- elog "Links to the Android/iPhone/iPad apps can be found at" |
177 |
- elog "https://www.dev47apps.com/" |
178 |
-} |
179 |
- |
180 |
-pkg_postrm() { |
181 |
- linux-mod_pkg_postrm |
182 |
- if use gtk; then |
183 |
- xdg_pkg_postrm |
184 |
- fi |
185 |
-} |