Сравнение lua-5.1.5-r200 с lua-5.3.6-r102
| /usr/portage/dev-lang/lua/lua-5.3.6-r102.ebuild 2025-09-08 18:21:11.934421302 +0300 | ||
|---|---|---|
| 3 | 3 | |
| 4 | 4 |
EAPI=8 |
| 5 | 5 | |
| 6 |
inherit libtool optfeature |
|
| 6 |
inherit flag-o-matic libtool 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 ~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 |
| 32 | 27 |
elibtoolize |
| 28 | ||
| 29 |
if use elibc_musl; then |
|
| 30 |
# locales on musl are non-functional (#834153) |
|
| 31 |
# https://wiki.musl-libc.org/open-issues.html#Locale-limitations |
|
| 32 |
sed -e 's|os.setlocale("pt_BR") or os.setlocale("ptb")|false|g' \
|
|
| 33 |
-i tests/literals.lua || die |
|
| 34 |
fi |
|
| 33 | 35 |
} |
| 34 | 36 | |
| 35 | 37 |
src_configure() {
|
| 36 |
econf \ |
|
| 37 |
$(use_enable deprecated) \ |
|
| 38 |
$(use_with readline) |
|
| 38 |
use deprecated && append-cppflags -DLUA_COMPAT_5_1 -DLUA_COMPAT_5_2 |
|
| 39 |
econf $(use_with readline) |
|
| 39 | 40 |
} |
| 40 | 41 | |
| 41 | 42 |
src_install() {
|