commit:     18453307e62e22c155bfd0adbad96cb151cbaae9
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Mon Dec 15 09:49:09 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Dec 17 14:51:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18453307

media-video/v4l2loopback: add 0.15.3, update 9999

Includes some cosmetic changes.
Uses standard format for handling `-9999`.
Moved `DESCRIPTION` and `HOMEPAGE` where they usually are.
Moved `CONFIG_CHECK` as `local` var into `pkg_setup`.
Added some newlines to make command grouping clearer.

Closes: https://bugs.gentoo.org/967523
Closes: https://bugs.gentoo.org/966360
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/45046
Closes: https://github.com/gentoo/gentoo/pull/45046
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-video/v4l2loopback/Manifest                  |  1 +
 ...back-9999.ebuild => v4l2loopback-0.15.3.ebuild} | 33 ++++++++++++----------
 media-video/v4l2loopback/v4l2loopback-9999.ebuild  | 33 ++++++++++++----------
 3 files changed, 37 insertions(+), 30 deletions(-)

diff --git a/media-video/v4l2loopback/Manifest 
b/media-video/v4l2loopback/Manifest
index fd221a4306f5..104b792a5a8e 100644
--- a/media-video/v4l2loopback/Manifest
+++ b/media-video/v4l2loopback/Manifest
@@ -1,3 +1,4 @@
 DIST v4l2loopback-0.13.1.tar.gz 84323 BLAKE2B 
ad84826791763107c29ecc79435eb5e6d5bd1c18a18cfeabebaffd2c6f00a17564e8cb2773c35aba40cc181d06a21b2aafc86910b1d160adee98c015497cda7f
 SHA512 
28b8c90f1e5fe48d19f41dbc188bf383ce8a6db33707ef161b55cae3217704a7e45e91a782bc3bf08db338f8ba0f045afd52899026be7e2e9bfeb6799a876628
 DIST v4l2loopback-0.15.0.tar.gz 89257 BLAKE2B 
aa8d7820b239d2cc8c82b3285c78dee623d0f328ddca423783d00308f82a008c5e82151cacaa3ede884fc493d9bfeb549f052f8a361ed0d489ec4fb2976d81ca
 SHA512 
a8834b38a63efbee6ae55844544264561a11c4c8f7b4248e401c5591630afcecbb205a8502f5e059bd025c3e02926af3fe37a2ba075e20fea26273ede680fd34
 DIST v4l2loopback-0.15.1.tar.gz 89396 BLAKE2B 
947fe4683b898cf7c9868599014992a933872fd1204ec451501f6ade1a15b4001d5af80690b0b3d28a713e16525415f4860cd3786ab4e897f2446956dec9f4b8
 SHA512 
4a0a97ddf14971e1f7059461b76fa5fc36199a6d2612db4348374835363304eefdbd4b43a965d7b2a43fd267ebd28d0f7c91ad937628e6ed8897a1851e415329
+DIST v4l2loopback-0.15.3.tar.gz 89708 BLAKE2B 
30cc7415b41657e6bad6a7e52db0834eecd25a7be3f04bee86dce43e2856c8b97061b04d2f7e36d2eb917a6e529cf7664aaf9cf71b5b4fc3c74cfee9d2c78b02
 SHA512 
a4ee59115bb9eec62b5a94e9e00b1fe13933ddacac6bc395c07ede772e40e697d23d6fcd8d2f1073c27567372f88d460958fee1bd2bc0e4f4310968b8fa4c528

diff --git a/media-video/v4l2loopback/v4l2loopback-9999.ebuild 
b/media-video/v4l2loopback/v4l2loopback-0.15.3.ebuild
similarity index 84%
copy from media-video/v4l2loopback/v4l2loopback-9999.ebuild
copy to media-video/v4l2loopback/v4l2loopback-0.15.3.ebuild
index 545a948b1fb4..637ab55a7649 100644
--- a/media-video/v4l2loopback/v4l2loopback-9999.ebuild
+++ b/media-video/v4l2loopback/v4l2loopback-0.15.3.ebuild
@@ -1,46 +1,47 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 inherit linux-mod-r1 toolchain-funcs
 
-case ${PV} in
-9999)
+DESCRIPTION="v4l2 loopback device whose output is its own input"
+HOMEPAGE="https://github.com/umlaeute/v4l2loopback";
+
+if [[ "${PV}" == *9999* ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/umlaeute/v4l2loopback.git";
-       ;;
-*)
-       KEYWORDS="~amd64 ~x86"
+else
        SRC_URI="https://github.com/umlaeute/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-       ;;
-esac
-
-DESCRIPTION="v4l2 loopback device whose output is its own input"
-HOMEPAGE="https://github.com/umlaeute/v4l2loopback";
+       KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="examples"
 
-CONFIG_CHECK="VIDEO_DEV"
+IUSE="examples"
 
 pkg_setup() {
+       local CONFIG_CHECK="VIDEO_DEV"
+
        linux-mod-r1_pkg_setup
-       export KERNELRELEASE=${KV_FULL}
+
+       export KERNELRELEASE="${KV_FULL}"
 }
 
 src_prepare() {
        default
+
        sed -i -e 's/gcc /$(CC) /' examples/Makefile || die
 }
 
 src_compile() {
        local modlist=(
-               v4l2loopback=video:::all
+               "v4l2loopback=video:::all"
        )
 
        linux-mod-r1_src_compile
+
        if use examples; then
                emake CC="$(tc-getCC)" -C examples
        fi
@@ -48,9 +49,11 @@ src_compile() {
 
 src_install() {
        linux-mod-r1_src_install
+
        dosbin utils/v4l2loopback-ctl
        dodoc doc/kernel_debugging.txt
        dodoc doc/docs.txt
+
        if use examples; then
                dosbin examples/yuv4mpeg_to_v4l2
                docinto examples

diff --git a/media-video/v4l2loopback/v4l2loopback-9999.ebuild 
b/media-video/v4l2loopback/v4l2loopback-9999.ebuild
index 545a948b1fb4..637ab55a7649 100644
--- a/media-video/v4l2loopback/v4l2loopback-9999.ebuild
+++ b/media-video/v4l2loopback/v4l2loopback-9999.ebuild
@@ -1,46 +1,47 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
 inherit linux-mod-r1 toolchain-funcs
 
-case ${PV} in
-9999)
+DESCRIPTION="v4l2 loopback device whose output is its own input"
+HOMEPAGE="https://github.com/umlaeute/v4l2loopback";
+
+if [[ "${PV}" == *9999* ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/umlaeute/v4l2loopback.git";
-       ;;
-*)
-       KEYWORDS="~amd64 ~x86"
+else
        SRC_URI="https://github.com/umlaeute/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
-       ;;
-esac
-
-DESCRIPTION="v4l2 loopback device whose output is its own input"
-HOMEPAGE="https://github.com/umlaeute/v4l2loopback";
+       KEYWORDS="~amd64 ~x86"
+fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="examples"
 
-CONFIG_CHECK="VIDEO_DEV"
+IUSE="examples"
 
 pkg_setup() {
+       local CONFIG_CHECK="VIDEO_DEV"
+
        linux-mod-r1_pkg_setup
-       export KERNELRELEASE=${KV_FULL}
+
+       export KERNELRELEASE="${KV_FULL}"
 }
 
 src_prepare() {
        default
+
        sed -i -e 's/gcc /$(CC) /' examples/Makefile || die
 }
 
 src_compile() {
        local modlist=(
-               v4l2loopback=video:::all
+               "v4l2loopback=video:::all"
        )
 
        linux-mod-r1_src_compile
+
        if use examples; then
                emake CC="$(tc-getCC)" -C examples
        fi
@@ -48,9 +49,11 @@ src_compile() {
 
 src_install() {
        linux-mod-r1_src_install
+
        dosbin utils/v4l2loopback-ctl
        dodoc doc/kernel_debugging.txt
        dodoc doc/docs.txt
+
        if use examples; then
                dosbin examples/yuv4mpeg_to_v4l2
                docinto examples

Reply via email to