Diff lua-5.2.3-r3 with a lua-5.2.4

/usr/portage/dev-lang/lua/lua-5.2.4.ebuild 2019-12-11 02:41:00.000000000 +0300
7 7

  
8 8
DESCRIPTION="A powerful light-weight programming language designed for extending applications"
9 9
HOMEPAGE="http://www.lua.org/"
10
SRC_URI="http://www.lua.org/ftp/${P}.tar.gz"
10
TEST_PV="5.2.2" # no 5.2.3-specific release yet
11
TEST_A="${PN}-${TEST_PV}-tests.tar.gz"
12
PKG_A="${P}.tar.gz"
13
SRC_URI="
14
	http://www.lua.org/ftp/${PKG_A}
15
	test? ( https://www.lua.org/tests/${TEST_A} )"
11 16

  
12 17
LICENSE="MIT"
13 18
SLOT="5.2"
14 19
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
15
IUSE="+deprecated emacs readline static"
20
IUSE="+deprecated emacs readline static test test-complete"
21
RESTRICT="!test? ( test )"
16 22

  
17 23
RDEPEND="readline? ( sys-libs/readline:0= )
18 24
	app-eselect/eselect-lua
......
140 146

  
141 147
# Makefile contains a dummy target that doesn't do tests
142 148
# but causes issues with slotted lua (bug #510360)
143
src_test() { :; }
149
src_test() {
150
	debug-print-function ${FUNCNAME} "$@"
151
	cd "${WORKDIR}/lua-${TEST_PV}-tests" || die
152
	# https://www.lua.org/tests/
153
	# There are two sets:
154
	# basic
155
	# complete.
156
	#
157
	# The basic subset is selected by passing -e'_U=true'
158
	# The complete set is noted to contain tests that may consume too much memory or have non-portable tests.
159
	# attrib.lua for example needs some multilib customization (have to compile the stuff in libs/ for each ABI)
160
	use test-complete || TEST_OPTS="-e_U=true"
161
	TEST_MARKER="${T}/test.failed"
162
	rm -f "${TEST_MARKER}"
163

  
164
	# If we are failing, set the marker file, and only check it after done all ABIs
165
	abi_src_test() {
166
		debug-print-function ${FUNCNAME} "$@"
167
		TEST_LOG="${T}/test.${MULTIBUILD_ID}.log"
168
		eval "${BUILD_DIR}"/src/lua${SLOT} ${TEST_OPTS} all.lua 2>&1 | tee "${TEST_LOG}" || die
169
		grep -sq -e "final OK" "${TEST_LOG}" || echo "FAIL ${MULTIBUILD_ID}" >>"${TEST_MARKER}"
170
		return 0
171
	}
172

  
173
	multilib_foreach_abi abi_src_test
174

  
175
	if [ -e "${TEST_MARKER}" ]; then
176
		cat "${TEST_MARKER}"
177
		die "Tests failed"
178
	fi
179
}
Thank you!