summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-09-09 13:26:36 -0400
committerBrian Evans <grknight@gentoo.org>2018-09-09 13:26:36 -0400
commita29552182393235aadd8cea192e3f82b5f37edd4 (patch)
tree324dd73342d331c8d0191380418ebe493056da49 /media-video/v4l2loopback
parentsci-geosciences/qmapshack: bump to 1.12.0 (diff)
downloadgentoo-a29552182393235aadd8cea192e3f82b5f37edd4.tar.gz
gentoo-a29552182393235aadd8cea192e3f82b5f37edd4.tar.bz2
gentoo-a29552182393235aadd8cea192e3f82b5f37edd4.zip
media-video/v4l2loopback: Version bump for 0.12.0
Closes: https://bugs.gentoo.org/646260 Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'media-video/v4l2loopback')
-rw-r--r--media-video/v4l2loopback/Manifest1
-rw-r--r--media-video/v4l2loopback/v4l2loopback-0.12.0.ebuild59
-rw-r--r--media-video/v4l2loopback/v4l2loopback-9999.ebuild15
3 files changed, 68 insertions, 7 deletions
diff --git a/media-video/v4l2loopback/Manifest b/media-video/v4l2loopback/Manifest
index b31be47ef33f..86217717bfd5 100644
--- a/media-video/v4l2loopback/Manifest
+++ b/media-video/v4l2loopback/Manifest
@@ -1 +1,2 @@
DIST v4l2loopback-0.10.0.tar.gz 46976 BLAKE2B 9e26aa0079f92deefcb3b48816a5279e994be77e1cb54450a91dbec63953858bf378e85d9f93a0694539809987c87461b3f5795b9632aa9d968974f49d3eca77 SHA512 990b83cc592bf66861483d5ed8ebd7aba9d23f8ab54dc11d82ac3c88588cbd340d9cc49f7b758095e76bf9c5f02822700074506439ba51bcafc5cc7c1c979cb8
+DIST v4l2loopback-0.12.0.tar.gz 48723 BLAKE2B 6d62b7839889f43422623e1cfc52142846e796ca184b567906ab950642012a5c581ac656d3e4a71d806786e7ff347298f1f7aabba33743508ba388beb590c03f SHA512 e951fcc2b0a55ec5cd9812c2c26c0cab6e37b99bbb5b8512e28c67b3c59e981b776cb3285a0275f027dbddc010855f12134b9f3fa92f20e19e4de713f77289a1
diff --git a/media-video/v4l2loopback/v4l2loopback-0.12.0.ebuild b/media-video/v4l2loopback/v4l2loopback-0.12.0.ebuild
new file mode 100644
index 000000000000..c2f92d34a0f1
--- /dev/null
+++ b/media-video/v4l2loopback/v4l2loopback-0.12.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit linux-mod toolchain-funcs
+
+case ${PV} in
+9999)
+ inherit git-r3
+ KEYWORDS=""
+ EGIT_REPO_URI="git://github.com/umlaeute/v4l2loopback.git"
+ ;;
+*)
+ inherit vcs-snapshot
+ KEYWORDS="~amd64 ~x86"
+ 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"
+IUSE="examples"
+
+CONFIG_CHECK="VIDEO_DEV"
+MODULE_NAMES="v4l2loopback(video:)"
+BUILD_TARGETS="all"
+
+pkg_setup() {
+ linux-mod_pkg_setup
+ export KERNELRELEASE=${KV_FULL}
+}
+
+src_prepare() {
+ default
+ sed -i -e 's/gcc /$(CC) /' examples/Makefile || die
+}
+
+src_compile() {
+ linux-mod_src_compile
+ if use examples; then
+ emake CC=$(tc-getCC) -C examples
+ 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
+}
diff --git a/media-video/v4l2loopback/v4l2loopback-9999.ebuild b/media-video/v4l2loopback/v4l2loopback-9999.ebuild
index 7c408014c5c4..c2f92d34a0f1 100644
--- a/media-video/v4l2loopback/v4l2loopback-9999.ebuild
+++ b/media-video/v4l2loopback/v4l2loopback-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-inherit linux-mod
+inherit linux-mod toolchain-funcs
case ${PV} in
9999)
@@ -29,19 +29,20 @@ 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_prepare() {
+ default
+ sed -i -e 's/gcc /$(CC) /' examples/Makefile || die
+}
+
src_compile() {
linux-mod_src_compile
if use examples; then
- cd "${S}"/examples
- emake
+ emake CC=$(tc-getCC) -C examples
fi
}