1
0
mirror of synced 2024-12-23 05:10:24 +01:00
TheChymera-overlay/media-video/v4l2loopback/v4l2loopback-0.10.0.ebuild
Horea Christian c4cf554e8e
media-video/v4l2loopback: bump from https://bugs.gentoo.org/show_bug.cgi?id=568776
Package-Manager: Portage-2.3.6, Repoman-2.3.3
2017-08-11 01:30:28 +02:00

58 lines
1.0 KiB
Bash

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit linux-mod
case ${PV} in
9999)
inherit git-2
EGIT_REPO_URI="git://github.com/umlaeute/v4l2loopback.git"
;;
*)
inherit vcs-snapshot
SRC_URI="https://github.com/umlaeute/v4l2loopback/tarball/v${PV} -> ${P}.tar.gz"
;;
esac
DESCRIPTION="v4l2 loopback device which output is it's own input"
HOMEPAGE="https://github.com/umlaeute/v4l2loopback"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
CONFIG_CHECK="VIDEO_DEV"
MODULE_NAMES="v4l2loopback(video:)"
BUILD_TARGETS="all"
DEPEND=""
RDEPEND="${DEPEND}"
pkg_setup() {
linux-mod_pkg_setup
export KERNELRELEASE=${KV_FULL}
}
src_compile() {
linux-mod_src_compile
if use examples; then
cd "${S}"/examples
emake
fi
}
src_install() {
linux-mod_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
dodoc examples/{*.sh,*.c,Makefile}
fi
}