Diff x264-0.0.20220222 with a x264-9999

/usr/portage/media-libs/x264/x264-9999.ebuild 2025-02-03 17:39:34.134671583 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5

  
6
# Please bump with media-video/x264-encoder
5 7

  
6 8
inherit multilib-minimal toolchain-funcs flag-o-matic
7 9

  
8
DESCRIPTION="A free library for encoding X264/AVC streams"
10
DESCRIPTION="Free library for encoding X264/AVC streams"
9 11
HOMEPAGE="https://www.videolan.org/developers/x264.html"
12

  
10 13
if [[ ${PV} == 9999 ]]; then
11 14
	inherit git-r3
12 15
	EGIT_REPO_URI="https://code.videolan.org/videolan/x264.git"
13 16
else
14
	# Download https://code.videolan.org/videolan/x264/-/archive/master/x264-master.tar.bz2
15
	SRC_URI="https://dev.gentoo.org/~aballier/distfiles/${P}.tar.bz2"
16
	KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
17
	S="${WORKDIR}/${PN}-master"
17
	X264_COMMIT="4613ac3c15fd75cebc4b9f65b7fb95e70a3acce1"
18
	SRC_URI="https://code.videolan.org/videolan/x264/-/archive/${X264_COMMIT}/x264-${X264_COMMIT}.tar.bz2 -> ${P}.tar.bz2"
19
	KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
20
	S="${WORKDIR}/${PN}-${X264_COMMIT}"
18 21
fi
19 22

  
20
SLOT="0/164" # SONAME
21

  
22 23
LICENSE="GPL-2"
23
IUSE="cpu_flags_ppc_altivec +interlaced opencl pic static-libs cpu_flags_x86_sse +threads"
24
SLOT="0/164" # SONAME
25
IUSE="cpu_flags_ppc_altivec +interlaced opencl static-libs +threads"
24 26

  
25 27
ASM_DEP=">=dev-lang/nasm-2.13"
26
DEPEND="abi_x86_32? ( ${ASM_DEP} )
28
DEPEND="
29
	abi_x86_32? ( ${ASM_DEP} )
27 30
	abi_x86_64? ( ${ASM_DEP} )
28
	opencl? ( dev-lang/perl )"
31
	opencl? ( dev-lang/perl )
32
"
29 33
RDEPEND="opencl? ( >=virtual/opencl-0-r3[${MULTILIB_USEDEP}] )"
30 34

  
35
# TODO: Consider implementing src_test which does what doc/regression_test says
36
# https://code.videolan.org/videolan/x264/-/blob/master/doc/regression_test.txt
31 37
DOCS=( AUTHORS doc/{ratecontrol,regression_test,standards,threads,vui}.txt )
32 38

  
33 39
multilib_src_configure() {
......
42 48
	local asm_conf=""
43 49

  
44 50
	if \
45
		[[ ${ABI} == x86* ]] && { use pic || use !cpu_flags_x86_sse ; } \
51
		[[ ${ABI} == x86* ]] \
46 52
		|| [[ ${ABI} == "x32" ]] \
47 53
		|| [[ ${CHOST} == armv5* ]] \
48 54
		|| [[ ${ABI} == ppc* ]] && { use !cpu_flags_ppc_altivec ; } \
Thank you!