diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-18 00:58:25 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-18 00:58:25 +0100 |
commit | 5e0a5ca921524f8859808527a57655eec16efa52 (patch) | |
tree | 7c58411b1e81478df4e20082a6adec2553c24c5c /dev-lang/lua/lua-5.4.6.ebuild | |
parent | 4c16e0a214824f15f09396e359db4f1f5c086fec (diff) |
gentoo auto-resync : 18:07:2023 - 00:58:24
Diffstat (limited to 'dev-lang/lua/lua-5.4.6.ebuild')
-rw-r--r-- | dev-lang/lua/lua-5.4.6.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-lang/lua/lua-5.4.6.ebuild b/dev-lang/lua/lua-5.4.6.ebuild new file mode 100644 index 000000000000..f50b88fb7a79 --- /dev/null +++ b/dev-lang/lua/lua-5.4.6.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic optfeature + +DESCRIPTION="A powerful light-weight programming language designed for extending applications" +HOMEPAGE="https://www.lua.org/" +# tarballs produced from ${PV} branches in https://gitweb.gentoo.org/proj/lua-patches.git +SRC_URI="https://dev.gentoo.org/~soap/distfiles/${P}.tar.xz" + +LICENSE="MIT" +SLOT="5.4" +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" +IUSE="+deprecated readline" + +DEPEND=" + >=app-eselect/eselect-lua-3 + readline? ( sys-libs/readline:= ) + !dev-lang/lua:0" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + default + + if use elibc_musl; then + # locales on musl are non-functional (#834153) + # https://wiki.musl-libc.org/open-issues.html#Locale-limitations + sed -e 's|os.setlocale("pt_BR") or os.setlocale("ptb")|false|g' \ + -i tests/literals.lua || die + fi +} + +src_configure() { + use deprecated && append-cppflags -DLUA_COMPAT_5_3 + econf $(use_with readline) +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} + +pkg_postinst() { + eselect lua set --if-unset "${PN}${SLOT}" + + optfeature "Lua support for Emacs" app-emacs/lua-mode +} |