Diff python-3.7.10_p4 with a python-3.8.9_p2

/usr/portage/dev-lang/python/python-3.8.9_p2.ebuild 2021-05-07 02:39:00.000000000 +0300
7 7
inherit autotools flag-o-matic multiprocessing pax-utils \
8 8
	python-utils-r1 toolchain-funcs verify-sig
9 9

  
10
MY_P="Python-${PV%_p*}"
10
MY_PV=${PV/_rc/rc}
11
MY_P="Python-${MY_PV%_p*}"
11 12
PYVER=$(ver_cut 1-2)
12
PATCHSET="python-gentoo-patches-${PV}"
13
PATCHSET="python-gentoo-patches-${MY_PV}"
13 14

  
14 15
DESCRIPTION="An interpreted, interactive, object-oriented programming language"
15 16
HOMEPAGE="https://www.python.org/"
......
21 22
S="${WORKDIR}/${MY_P}"
22 23

  
23 24
LICENSE="PSF-2"
24
SLOT="${PYVER}/${PYVER}m"
25
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
25
SLOT="${PYVER}"
26
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
26 27
IUSE="bluetooth build examples gdbm hardened ipv6 +ncurses +readline +sqlite +ssl test tk wininst +xml"
27 28
RESTRICT="!test? ( test )"
28 29

  
......
56 57
	test? ( app-arch/xz-utils[extra-filters(+)] )"
57 58
BDEPEND="
58 59
	virtual/pkgconfig
60
	sys-devel/autoconf-archive
59 61
	verify-sig? ( app-crypt/openpgp-keys-python )
60 62
	!sys-devel/gcc[libffi(-)]"
61 63
PDEPEND="app-eselect/eselect-python"
......
88 90
	# force correct number of jobs
89 91
	# https://bugs.gentoo.org/737660
90 92
	local jobs=$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")
93
	sed -i -e "s:-j0:-j${jobs}:" Makefile.pre.in || die
91 94
	sed -i -e "/self\.parallel/s:True:${jobs}:" setup.py || die
92 95

  
93 96
	eautoreconf
......
128 131
		use hardened && replace-flags -O3 -O2
129 132
	fi
130 133

  
134
	# https://bugs.gentoo.org/700012
135
	if is-flagq -flto || is-flagq '-flto=*'; then
136
		append-cflags $(test-flags-CC -ffat-lto-objects)
137
	fi
138

  
131 139
	# Export CXX so it ends up in /usr/lib/python3.X/config/Makefile.
132 140
	tc-export CXX
133 141

  
......
315 323
	chmod +x "${scriptdir}/python${pymajor}-config" || die
316 324
	ln -s "python${pymajor}-config" \
317 325
		"${scriptdir}/python-config" || die
318
	# 2to3, pydoc, pyvenv
326
	# 2to3, pydoc
319 327
	ln -s "../../../bin/2to3-${PYVER}" \
320 328
		"${scriptdir}/2to3" || die
321 329
	ln -s "../../../bin/pydoc${PYVER}" \
322 330
		"${scriptdir}/pydoc" || die
323
	ln -s "../../../bin/pyvenv-${PYVER}" \
324
		"${scriptdir}/pyvenv" || die
325 331
	# idle
326 332
	if use tk; then
327 333
		ln -s "../../../bin/idle${PYVER}" \
Thank you!