dev-lang/lua - 5.5.1 (lanodanOverlay)

Search

Install

Install this version:

emerge -a =dev-lang/lua-5.5.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-lang/lua-5.5.1

Or alternatively:

emerge --autounmask-write -a =dev-lang/lua-5.5.1

Package Information

Description:
A powerful light-weight programming language designed for extending applications
Homepage:
https://www.lua.org/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
5.5.1 8 ~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris 5.5
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit flag-o-matic libtool optfeature

DESCRIPTION="A powerful light-weight programming language designed for extending applications"
HOMEPAGE="https://www.lua.org/"
# `make dist` 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"
SRC_URI="https://hacktivis.me/tmp/${P}.gentoo.tar.xz"

LICENSE="MIT"
SLOT="5.5"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris"
IUSE="readline"

DEPEND="
	>=app-eselect/eselect-lua-3
	readline? ( sys-libs/readline:= )
	!dev-lang/lua:0"
RDEPEND="${DEPEND}"
BDEPEND="virtual/pkgconfig"

src_prepare() {
	default
	elibtoolize

	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() {
	# lua-5.5.0 dropped the LUA_COMPAT_5_x scheme
	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
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-lang/lua | euse -E <flag> -p dev-lang/lua | euse -D <flag> -p dev-lang/lua

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

	>=app-eselect/eselect-lua-3
	readline? ( sys-libs/readline:= )
	!dev-lang/lua:0

RDEPEND

	>=app-eselect/eselect-lua-3
	readline? ( sys-libs/readline:= )
	!dev-lang/lua:0

BDEPEND

virtual/pkgconfig

Manifest for 5.5.1

Type File Size Source URLs
DIST lua-5.5.1.gentoo.tar.xz 652188 bytes https://hacktivis.me/tmp/lua-5.5.1.gentoo.tar.xz