Сравнение droidcam-2.0.0-r1 с droidcam-2.0.0-r3

/usr/portage/media-video/droidcam/droidcam-2.0.0-r3.ebuild 2023-10-09 14:52:31.816368409 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit desktop linux-mod xdg
6
inherit desktop linux-mod-r1 xdg
7 7

  
8 8
DESCRIPTION="Use your phone or tablet as webcam with a v4l device driver and app"
9 9
HOMEPAGE="https://www.dev47apps.com/droidcam/linux/"
......
40 40
RDEPEND="${DEPEND}"
41 41
BDEPEND="virtual/pkgconfig"
42 42

  
43
BUILD_TARGETS="all"
44
MODULE_NAMES="v4l2loopback-dc(video:${S}/v4l2loopback:${S}/v4l2loopback)"
45
MODULESD_V4L2LOOPBACK_DC_ENABLED="yes"
46

  
47 43
CONFIG_CHECK="~SND_ALOOP VIDEO_DEV MEDIA_SUPPORT MEDIA_CAMERA_SUPPORT"
48 44
ERROR_SND_ALOOP="CONFIG_SND_ALOOP is optionally required for audio support"
49 45

  
......
76 72
	fi
77 73
	 APPINDICATOR=ayatana-appindicator3-0.1 emake droidcam-cli
78 74

  
79
	if linux_chkconfig_present CC_IS_CLANG; then
80
		BUILD_PARAMS+=' CC=${CHOST}-clang'
81
		if linux_chkconfig_present LD_IS_LLD; then
82
			BUILD_PARAMS+=' LD=ld.lld'
83
			if linux_chkconfig_present LTO_CLANG_THIN; then
84
				# kernel enables cache by default leading to sandbox violations
85
				BUILD_PARAMS+=' ldflags-y=--thinlto-cache-dir= LDFLAGS_MODULE=--thinlto-cache-dir='
86
			fi
87
		fi
88
	fi
89
	export KERNEL_DIR || die
90
	linux-mod_src_compile
75
	local modlist=(
76
		v4l2loopback-dc=video:v4l2loopback:v4l2loopback:all
77
	)
78

  
79
	local modargs=(
80
		KERNEL_DIR="${KV_OUT_DIR}"
81
	)
82

  
83
	linux-mod-r1_src_compile
91 84
}
92 85

  
93 86
src_test() {
......
106 99
	fi
107 100
	dobin droidcam-cli
108 101

  
109
	# The cli and gui do not auto load the module if unloaded (why not though?)
102
	# The cli and gui do not auto load the module if unloaded,
110 103
	# so we just put it in modules-load.d to make sure it always works
111 104
	insinto /etc/modules-load.d
112 105
	if linux_config_exists; then
......
122 115
		fi
123 116
	fi
124 117

  
125
	einstalldocs
126
	linux-mod_src_install
118
	linux-mod-r1_src_install
127 119
}
128 120

  
129 121
pkg_preinst() {
130
	linux-mod_pkg_preinst
131 122
	if use gtk; then
132 123
		xdg_pkg_preinst
133 124
	fi
134 125
}
135 126

  
136 127
pkg_postinst() {
137
	linux-mod_pkg_postinst
128
	linux-mod-r1_pkg_postinst
138 129
	if use gtk; then
139 130
		xdg_pkg_postinst
140 131
	else
......
151 142
}
152 143

  
153 144
pkg_postrm() {
154
	linux-mod_pkg_postrm
155 145
	if use gtk; then
156 146
		xdg_pkg_postrm
157 147
	fi
Спасибо!