summaryrefslogtreecommitdiff
blob: 9df5c4f16cf1728dbd35c1e8788f46cd8d3c4087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit perl-module

DESCRIPTION="Video::ivtv perl module, for use with ivtv-ptune"
HOMEPAGE="http://ivtv.sourceforge.net"
SRC_URI="https://downloads.sourceforge.net/ivtv/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"

RDEPEND=""
BDEPEND="${RDEPEND}"

src_configure() {
	export OPTIMIZE="$CFLAGS"
	perl-module_src_configure
}

# Requires /dev/video0 access, set DIST_TEST_OVERRIDE
# to circumvent
DIST_TEST="skip"

src_test() {
	ebegin "Compile testing Video::ivtv ${PV}"
		perl -Mblib="${S}" -M"Video::ivtv ${PV} ()" -e1
	if ! eend $?; then
		echo
		eerror "One or more modules failed compile:";
		eerror "  Video::ivtv ${PV}"
		die "Failing due to module compilation errors";
	fi
	perl-module_src_test
}