diff options
author | Dustin Polke <DuPol@gmx.de> | 2017-01-31 20:41:14 +0100 |
---|---|---|
committer | Dustin Polke <DuPol@gmx.de> | 2017-01-31 20:41:14 +0100 |
commit | 75953842182b7e89821f75b70e28bf9a7577527f (patch) | |
tree | 03edd5d49746f148d58c088cccca39ed36a6a1da /media-video/webcamstudio-module/webcamstudio-module-0.9.1.ebuild | |
parent | [media-video/webcamstudio] Fix repoman complaint about metadata. (diff) | |
download | DuPol-75953842182b7e89821f75b70e28bf9a7577527f.tar.gz DuPol-75953842182b7e89821f75b70e28bf9a7577527f.tar.bz2 DuPol-75953842182b7e89821f75b70e28bf9a7577527f.zip |
[media-video/webcamstudio-module] Use newer module based on v4l2loopback; drop old.
Diffstat (limited to 'media-video/webcamstudio-module/webcamstudio-module-0.9.1.ebuild')
-rw-r--r-- | media-video/webcamstudio-module/webcamstudio-module-0.9.1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/media-video/webcamstudio-module/webcamstudio-module-0.9.1.ebuild b/media-video/webcamstudio-module/webcamstudio-module-0.9.1.ebuild new file mode 100644 index 0000000..a968c4b --- /dev/null +++ b/media-video/webcamstudio-module/webcamstudio-module-0.9.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit linux-mod + +DESCRIPTION="Kernel module to create webcamstudio's virtual webcam loopback device" +HOMEPAGE="https://github.com/umlaeute/v4l2loopback" +SRC_URI="https://github.com/umlaeute/v4l2loopback/tarball/v${PV} -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="modules" + +DEPEND="" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/umlaeute-v4l2loopback-dd9ea64 + +pkg_setup() { + linux-mod_pkg_setup + CONFIG_CHECK="VIDEO_DEV" + MODULE_NAMES="webcamstudio(video:)" + BUILD_TARGETS="all" +} + +src_prepare() { + if use modules; then + epatch "${FILESDIR}/${P}-webcamstudio.patch" + sed -e "s:\$(KERNEL_DIR):${KV_DIR}:" \ + -i Makefile || die + set_arch_to_kernel + fi +} + +src_compile() { + if use modules; then + einfo "Compile kernel module" + mv v4l2loopback.c webcamstudio.c || die + linux-mod_src_compile + fi +} + +src_install() { + use modules && linux-mod_src_install +} + +pkg_postinst() { + use modules && linux-mod_pkg_postinst +} |