Diff handbrake-1.11.2-r1 with a handbrake-9999

/usr/portage/media-video/handbrake/handbrake-9999.ebuild 2026-09-28 20:03:05.433777172 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
PYTHON_COMPAT=( python3_{12..15} )
6
PYTHON_COMPAT=( python3_{11..15} )
7 7

  
8 8
inherit edo flag-o-matic multiprocessing python-any-r1 toolchain-funcs xdg
9 9

  
......
25 25
		)
26 26
	"
27 27
	S="${WORKDIR}/${MY_P}"
28
	KEYWORDS="amd64 ~arm64 ~x86"
28
	KEYWORDS="~amd64 ~arm64 ~x86"
29 29
fi
30 30

  
31 31
# contrib/<project>/module.defs
......
33 33
	# Heavily patched in an incompatible way.
34 34
	# Issues related to using system ffmpeg historically.
35 35
	# See bug #829595 and #922828
36
	[ffmpeg]="https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs2/ffmpeg-8.0.2.tar.bz2;"
36
	[ffmpeg]="https://ffmpeg.org/releases/ffmpeg-9.0.2.tar.bz2;"
37 37
	# Patched in an incompatible way
38
	[x265]="https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs2/x265-snapshot-20260216-13309.tar.gz;x265"
39
	[x265_8bit]="https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs2/x265-snapshot-20260216-13309.tar.gz;x265"
40
	[x265_10bit]="https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs2/x265-snapshot-20260216-13309.tar.gz;x265"
41
	[x265_12bit]="https://github.com/HandBrake/HandBrake-contribs/releases/download/contribs2/x265-snapshot-20260216-13309.tar.gz;x265"
38
	[x265]="https://github.com/Multicorewareinc/x265/releases/download/4.3/x265_4.3.tar.gz;x265"
39
	[x265_8bit]="https://github.com/Multicorewareinc/x265/releases/download/4.3/x265_4.3.tar.gz;x265"
40
	[x265_10bit]="https://github.com/Multicorewareinc/x265/releases/download/4.3/x265_4.3.tar.gz;x265"
41
	[x265_12bit]="https://github.com/Multicorewareinc/x265/releases/download/4.3/x265_4.3.tar.gz;x265"
42 42
)
43 43

  
44 44
bundle_src_uri() {
......
51 51

  
52 52
		tarball=${uri##*/}
53 53
		if [[ -n ${use} ]]; then
54
			SRC_URI+=" ${use}? ( ${uri} -> handbrake-${tarball} )"
54
			SRC_URI+=" ${use}? ( ${uri} )"
55 55
		else
56
			SRC_URI+=" ${uri} -> handbrake-${tarball}"
56
			SRC_URI+=" ${uri}"
57 57
		fi
58 58
	done
59 59
}
......
62 62

  
63 63
LICENSE="GPL-2"
64 64
SLOT="0"
65
IUSE="amf +fdk gui libdovi numa nvdec nvenc qsv x265"
65
IUSE="amf +fdk gui libdovi numa nvdec nvenc qsv vaapi x265"
66 66

  
67 67
REQUIRED_USE="
68 68
	numa? ( x265 )
......
85 85
	>=media-libs/libvpx-1.12.0:=
86 86
	media-libs/opus
87 87
	>=media-libs/speex-1.2.1
88
	=media-libs/svt-av1-4*:=
88
	>=media-libs/svt-av1-4.0.0:=
89 89
	>=media-libs/x264-0.0.20220222:=
90 90
	>=media-libs/zimg-3.0.4
91 91
	media-sound/lame
......
105 105
		media-libs/libva:=
106 106
		>=media-libs/libvpl-1.13.0:=
107 107
	)
108
	vaapi? (
109
		media-libs/libva:=[X]
110
		x11-libs/libX11
111
		x11-libs/libdrm
112
	)
108 113
"
109 114
RDEPEND="
110 115
	${COMMON_DEPEND}
......
112 117
"
113 118
DEPEND="
114 119
	${COMMON_DEPEND}
115
	amf? ( >=media-libs/amf-headers-1.4.36-r1 )
120
	amf? ( >=media-libs/amf-headers-1.5.2 )
116 121
"
117 122
# cmake needed for custom script: bug #852701
118 123
BDEPEND="
......
133 138
PATCHES=(
134 139
	"${FILESDIR}"/handbrake-1.9.0-link-libdovi-properly.patch
135 140
	"${FILESDIR}"/handbrake-1.9.0-include-vpl-properly.patch
136
	"${FILESDIR}"/handbrake-1.9.2-set-ffmpeg-toolchain-explicitly.patch
141
	"${FILESDIR}"/handbrake-1.12.0-set-ffmpeg-toolchain-explicitly.patch
137 142
	"${FILESDIR}"/handbrake-1.9.2-allow-overriding-tools-via-env.patch
138 143
)
139 144

  
......
149 154
src_prepare() {
150 155
	default
151 156

  
152
	# bug #979520
153
	cp "${FILESDIR}"/ffmpeg-8.0.2/A99-fix-nv-codec-headers-13.1.patch contrib/ffmpeg/ || die
154

  
155 157
	mkdir download || die
156 158
	for name in "${!BUNDLED[@]}"; do
157 159
		IFS=$';' read -r uri use <<< ${BUNDLED[${name}]}
......
159 161
		if [[ -n ${use} ]]; then
160 162
			use ${use} || continue
161 163
		fi
162
		cp "${DISTDIR}/handbrake-${tarball}" download/${tarball} || die
164
		cp "${DISTDIR}/${tarball}" download/${tarball} || die
163 165
	done
164 166

  
165 167
	# Get rid of leftover bundled library build definitions
......
203 205
		$(use_enable numa)
204 206
		$(use_enable nvdec)
205 207
		$(use_enable nvenc)
206
		$(use_enable x265)
207 208
		$(use_enable qsv)
209
		$(use_enable vaapi)
210
		$(use_enable x265)
208 211
	)
209 212

  
210 213
	edo ./configure ${myconfargs[@]}
Thank you!