summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2023-07-16 12:32:22 +0200
committerDavid Seifert <soap@gentoo.org>2023-07-16 12:32:22 +0200
commit66baf9c626901c7195a3f6e136e60dd1a562ea4d (patch)
treeeeba852aa3ac5f305c4571a64fc852b87dae5fa7 /dev-lang/lua
parentdev-util/b2: add 4.10.1 (diff)
downloadgentoo-66baf9c626901c7195a3f6e136e60dd1a562ea4d.tar.gz
gentoo-66baf9c626901c7195a3f6e136e60dd1a562ea4d.tar.bz2
gentoo-66baf9c626901c7195a3f6e136e60dd1a562ea4d.zip
dev-lang/lua: add 5.4.6
Bug: https://bugs.gentoo.org/856463 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-lang/lua')
-rw-r--r--dev-lang/lua/Manifest1
-rw-r--r--dev-lang/lua/lua-5.4.6.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-lang/lua/Manifest b/dev-lang/lua/Manifest
index 222d628af913..ec26d04f4fb5 100644
--- a/dev-lang/lua/Manifest
+++ b/dev-lang/lua/Manifest
@@ -1,3 +1,4 @@
DIST lua-5.1.5.tar.xz 397416 BLAKE2B ef3880d78be1def383a9db6753b7aec4160f6fa8719529c2ea6266015771a23a1be81424520de10bb087a86081f1ec48c58c36eb8b24bff53adb6bd8d791e31b SHA512 bd827cb2e63cd71d15d846eb29c8745bf869e7b70e12c565ce173623d1fcd29dabf4d33a99c48f294151bb580d830c112cf178e2d80a5a5c36acc7b3bfcd7d24
DIST lua-5.3.6.tar.xz 541220 BLAKE2B c356cec06b14cdcbb29e382c951491432a3189618f9fd8c8832bdc8c831640fbcb9e212db05b61a577633c5fe9831e75a158cb97720c1e51cab27544526c9e24 SHA512 9a632a90806fa71398d70be7d38769065c1258fd94709cef72236753b42131b8d30da2a5dd28c74211ef8d04b0c30f52d0c593d49c2e8686568c8896b69577d7
DIST lua-5.4.4.tar.xz 606456 BLAKE2B ba6cad647c0171e5e737151b189b5b404948c08182e9f17d7974a6c6c3b7d99b03cf930add863188db22674b8613fc600d771f62f9dfc99232aab9caea9b073c SHA512 8f3950ed5972a29d7c79e72af617526f6b9f6be7ab268e66206d7e453acc2564541c9d01e2de08a7e9046ab24c66b02167e48a0d5764753befd95dc922b61219
+DIST lua-5.4.6.tar.xz 608376 BLAKE2B bec47685a24be429fa930ac02e6930300ad77105c56d970d3f1a9a6241c23da5ea77b863e9eca36b6c20e1ef1dc90f3635afe9b09dc4221f1e5dd72ce951df38 SHA512 8e7f6bd9d7fdf9327134f7eb01a78df87141989ea0d95f331eb0e71acdbf7c7b7d908da95e16cd91b3f9bad1b496e3b4db2380a851557f29cdc53f4f5255cda5
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
+}