Diff v4l2loopback-0.13.1 with a v4l2loopback-9999

/usr/portage/media-video/v4l2loopback/v4l2loopback-9999.ebuild 2025-12-22 20:18:06.550894333 +0300
5 5

  
6 6
inherit linux-mod-r1 toolchain-funcs
7 7

  
8
case ${PV} in
9
9999)
8
DESCRIPTION="v4l2 loopback device whose output is its own input"
9
HOMEPAGE="https://github.com/umlaeute/v4l2loopback"
10

  
11
if [[ "${PV}" == *9999* ]]; then
10 12
	inherit git-r3
11 13
	EGIT_REPO_URI="https://github.com/umlaeute/v4l2loopback.git"
12
	;;
13
*)
14
	KEYWORDS="amd64 x86"
14
else
15 15
	SRC_URI="https://github.com/umlaeute/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16
	;;
17
esac
18

  
19
DESCRIPTION="v4l2 loopback device whose output is its own input"
20
HOMEPAGE="https://github.com/umlaeute/v4l2loopback"
16
	KEYWORDS="~amd64 ~x86"
17
fi
21 18

  
22 19
LICENSE="GPL-2"
23 20
SLOT="0"
24
IUSE="examples"
25 21

  
26
CONFIG_CHECK="VIDEO_DEV"
22
IUSE="examples"
27 23

  
28 24
pkg_setup() {
25
	local CONFIG_CHECK="VIDEO_DEV"
26

  
29 27
	linux-mod-r1_pkg_setup
30
	export KERNELRELEASE=${KV_FULL}
28

  
29
	export KERNELRELEASE="${KV_FULL}"
31 30
}
32 31

  
33 32
src_prepare() {
34 33
	default
34

  
35 35
	sed -i -e 's/gcc /$(CC) /' examples/Makefile || die
36 36
}
37 37

  
38 38
src_compile() {
39 39
	local modlist=(
40
		v4l2loopback=video:::all
40
		"v4l2loopback=video:::all"
41 41
	)
42 42

  
43 43
	linux-mod-r1_src_compile
44

  
44 45
	if use examples; then
45 46
		emake CC="$(tc-getCC)" -C examples
46 47
	fi
......
48 49

  
49 50
src_install() {
50 51
	linux-mod-r1_src_install
52

  
51 53
	dosbin utils/v4l2loopback-ctl
52 54
	dodoc doc/kernel_debugging.txt
53 55
	dodoc doc/docs.txt
56

  
54 57
	if use examples; then
55 58
		dosbin examples/yuv4mpeg_to_v4l2
56 59
		docinto examples
Thank you!