Diff lua-5.2.3-r3 with a lua-5.2.4

/usr/portage/dev-lang/lua/lua-5.2.4.ebuild 2019-10-11 18:40: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"
16 21

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

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

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

  
172
	multilib_foreach_abi abi_src_test
173

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