Diff opensc-0.23.0-r2 with a opensc-9999

/usr/portage/dev-libs/opensc/opensc-9999.ebuild 2023-10-09 14:52:29.544368351 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit autotools bash-completion-r1
6
inherit bash-completion-r1 libtool
7 7

  
8 8
DESCRIPTION="Libraries and applications to access smartcards"
9 9
HOMEPAGE="https://github.com/OpenSC/OpenSC/wiki"
10 10

  
11 11
if [[ ${PV} == *9999 ]]; then
12
	inherit git-r3
12
	inherit autotools git-r3
13 13
	EGIT_REPO_URI="https://github.com/OpenSC/OpenSC.git"
14 14
else
15 15
	SRC_URI="https://github.com/OpenSC/OpenSC/releases/download/${PV}/${P}.tar.gz"
16
	KEYWORDS="amd64 ~arm ~arm64 ~hppa ~loong ~ppc ppc64 ~riscv ~s390 ~sparc x86"
16
	KEYWORDS="~amd64 ~ppc64 ~x86"
17 17
fi
18 18

  
19 19
LICENSE="LGPL-2.1"
......
40 40
	ctapi? ( !pcsc-lite !openct )
41 41
	|| ( pcsc-lite openct ctapi )"
42 42

  
43
PATCHES=(
44
	"${FILESDIR}"/${P}-CVE-2023-2977.patch
45
	"${FILESDIR}"/${P}-backport-pr2656.patch
46
)
47

  
48 43
src_prepare() {
49 44
	default
50
	eautoreconf
45

  
46
	if [[ ${PV} == *9999 ]]; then
47
		eautoreconf
48
	else
49
		elibtoolize
50
	fi
51 51
}
52 52

  
53 53
src_configure() {
Thank you!