Diff tvheadend-4.3_p20240618-r1 with a tvheadend-9999

/usr/portage/media-tv/tvheadend/tvheadend-9999.ebuild 2026-05-27 19:17:04.585637142 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
COMMIT="e855f62e6697cf756ad2eed2ed03b8d06ba2019b"
7 6
PYTHON_COMPAT=( python3_{11..14} )
8 7

  
9
inherit ffmpeg-compat flag-o-matic linux-info python-single-r1 systemd toolchain-funcs
8
inherit flag-o-matic linux-info python-single-r1 systemd toolchain-funcs
9

  
10
if [[ ${PV} == *9999* ]]; then
11
	EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
12
	inherit git-r3
13
else
14
	COMMIT=""
15
	SRC_URI="https://github.com/tvheadend/tvheadend/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
16
	S="${WORKDIR}/${PN}-${COMMIT}"
17
	KEYWORDS="~amd64 ~arm ~arm64 ~x86"
18
fi
10 19

  
11 20
DESCRIPTION="Tvheadend is a TV streaming server and digital video recorder"
12 21
HOMEPAGE="https://tvheadend.org/"
13
SRC_URI="https://github.com/tvheadend/tvheadend/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
14
S="${WORKDIR}/${PN}-${COMMIT}"
22

  
15 23
LICENSE="GPL-3"
16 24
SLOT="0"
17
KEYWORDS="amd64 arm arm64 x86"
18
IUSE="dbus debug +ddci dvbcsa +dvb +ffmpeg hdhomerun +imagecache +inotify iptv opus satip systemd +timeshift uriparser vpx x264 x265 xmltv zeroconf zlib"
25
IUSE="dbus debug +ddci dvbcsa +dvb +ffmpeg hdhomerun +imagecache +inotify iptv opus satip systemd +timeshift uriparser vaapi vpx x264 x265 xmltv zeroconf zlib"
19 26

  
20 27
REQUIRED_USE="
21 28
	${PYTHON_REQUIRED_USE}
22 29
	ddci? ( dvb )
30
	vaapi? ( ffmpeg )
23 31
"
24 32

  
25 33
BDEPEND="
......
34 42
	virtual/libiconv
35 43
	dbus? ( sys-apps/dbus )
36 44
	dvbcsa? ( media-libs/libdvbcsa )
37
	ffmpeg? ( media-video/ffmpeg-compat:6=[opus?,vpx?,x264?,x265?] )
45
	ffmpeg? ( media-video/ffmpeg:=[opus?,vpx?,x264?,x265?] )
38 46
	hdhomerun? ( media-libs/libhdhomerun )
39 47
	dev-libs/openssl:0=
40 48
	uriparser? ( dev-libs/uriparser )
......
54 62
		x264? ( media-libs/x264 )
55 63
		x265? ( media-libs/x265 )
56 64
	)
65
	vaapi? ( media-libs/libva:= )
57 66
"
58 67

  
59 68
RDEPEND+="
......
91 100
# most of them only take effect when --enable-ffmpeg_static is given.
92 101

  
93 102
src_configure() {
94
	# TODO: fix with >=ffmpeg-7 then drop compat (bug #954780)
95
	use ffmpeg && ffmpeg_compat_setup 6
96

  
97 103
	# -Werror=lto-type-mismatch
98 104
	# https://bugs.gentoo.org/932794
99 105
	# https://github.com/tvheadend/tvheadend/issues/1732
......
131 137
		$(use_enable systemd libsystemd_daemon) \
132 138
		$(use_enable timeshift) \
133 139
		$(use_enable uriparser) \
140
		$(use_enable vaapi) \
134 141
		$(use_enable vpx libvpx) \
135 142
		$(use_enable x264 libx264) \
136 143
		$(use_enable x265 libx265) \
Thank you!