Diff yt-dlp-2023.07.06 with a yt-dlp-9999

/usr/portage/net-misc/yt-dlp/yt-dlp-9999.ebuild 2023-10-09 14:52:34.716368482 +0300
4 4
EAPI=8
5 5

  
6 6
DISTUTILS_USE_PEP517=setuptools
7
PYTHON_COMPAT=( python3_{10..11} )
8
inherit bash-completion-r1 distutils-r1 optfeature wrapper
7
PYTHON_COMPAT=( python3_{10..12} )
8
inherit bash-completion-r1 distutils-r1 git-r3 optfeature wrapper
9 9

  
10 10
DESCRIPTION="youtube-dl fork with additional features and fixes"
11 11
HOMEPAGE="https://github.com/yt-dlp/yt-dlp/"
12
SRC_URI="https://github.com/yt-dlp/yt-dlp/releases/download/${PV}/${PN}.tar.gz -> ${P}.tar.gz"
13
S="${WORKDIR}/${PN}"
12
EGIT_REPO_URI="https://github.com/yt-dlp/yt-dlp.git"
14 13

  
15 14
LICENSE="Unlicense"
16 15
SLOT="0"
17
KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 ~riscv x86 ~arm64-macos ~x64-macos"
16
KEYWORDS=""
17
IUSE="man"
18 18

  
19 19
RDEPEND="
20 20
	dev-python/pycryptodome[${PYTHON_USEDEP}]
21 21
	!net-misc/youtube-dl[-yt-dlp(-)]"
22
BDEPEND="man? ( virtual/pandoc )"
22 23

  
23 24
distutils_enable_tests pytest
24 25

  
......
31 32
		-e "/^(brotli.*|certifi|mutagen|websockets)/d" || die
32 33
}
33 34

  
35
python_compile() {
36
	# generate missing files in live, not in compile_all nor prepare
37
	# given need lazy before compile and it needs a usable ${PYTHON}
38
	emake completions lazy-extractors $(usev man yt-dlp.1)
39

  
40
	"${EPYTHON}" devscripts/update-version.py || die
41

  
42
	distutils-r1_python_compile
43
}
44

  
34 45
python_test() {
35 46
	epytest -m 'not download'
36 47
}
37 48

  
38 49
python_install_all() {
39 50
	dodoc README.md Changelog.md supportedsites.md
40
	doman yt-dlp.1
51
	use man && doman yt-dlp.1
41 52

  
42 53
	dobashcomp completions/bash/yt-dlp
43 54

  
......
47 58
	insinto /usr/share/zsh/site-functions
48 59
	doins completions/zsh/_yt-dlp
49 60

  
50
	rm -r "${ED}"/usr/share/doc/yt_dlp || die
51

  
52 61
	make_wrapper youtube-dl "yt-dlp --compat-options youtube-dl"
53 62
}
54 63

  
Thank you!