Diff lua-5.1.5-r200 with a lua-5.3.6-r102

/usr/portage/dev-lang/lua/lua-5.3.6-r102.ebuild 2023-10-09 14:52:29.464368349 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit optfeature
6
inherit flag-o-matic optfeature
7 7

  
8 8
DESCRIPTION="A powerful light-weight programming language designed for extending applications"
9 9
HOMEPAGE="https://www.lua.org/"
......
11 11
SRC_URI="https://dev.gentoo.org/~soap/distfiles/${P}.tar.xz"
12 12

  
13 13
LICENSE="MIT"
14
SLOT="5.1"
14
SLOT="5.3"
15 15
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
16 16
IUSE="+deprecated readline"
17 17

  
......
22 22
RDEPEND="${DEPEND}"
23 23
BDEPEND="virtual/pkgconfig"
24 24

  
25
PATCHES=( "${FILESDIR}"/${SLOT} )
26

  
27 25
src_prepare() {
28
	! use deprecated && PATCHES+=(
29
		"${FILESDIR}"/${PN}-5.1.4-test.patch
30
	)
31 26
	default
27

  
28
	if use elibc_musl; then
29
		# locales on musl are non-functional (#834153)
30
		# https://wiki.musl-libc.org/open-issues.html#Locale-limitations
31
		sed -e 's|os.setlocale("pt_BR") or os.setlocale("ptb")|false|g' \
32
			-i tests/literals.lua || die
33
	fi
32 34
}
33 35

  
34 36
src_configure() {
35
	econf \
36
		$(use_enable deprecated) \
37
		$(use_with readline)
37
	use deprecated && append-cppflags -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2
38
	econf $(use_with readline)
38 39
}
39 40

  
40 41
src_install() {
Thank you!