Install this version:
emerge -a =dev-lua/lua-ext-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-lua/lua-ext-9999
Or alternatively:
emerge --autounmask-write -a =dev-lua/lua-ext-9999
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 9999 | 8 | 0 |
# Copyright 2026 mva
# Distributed under the terms of the Public Domain or CC0 License
EAPI=8
LUA_COMPAT=( lua{5-{1..4},jit} )
inherit lua git-r3
DESCRIPTION="Some useful extensions to Lua classes"
HOMEPAGE="https://github.com/thenumbernine/lua-ext"
EGIT_REPO_URI="https://github.com/thenumbernine/lua-ext"
LICENSE="MIT"
SLOT="0"
IUSE="+gcmem"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="
${LUA_DEPS}
dev-lua/luafilesystem[${LUA_USEDEP}]
gcmem? (
!lua_targets_luajit? (
dev-lua/lua-ffi-bindings[${LUA_USEDEP}]
)
)
"
DEPEND="
${RDEPEND}
"
each_lua_install() {
insinto "$(lua_get_lmod_dir)"
doins -r ext
}
src_install() {
lua_foreach_impl each_lua_install
einstalldocs
}
src_prepare() {
default
use gcmem || rm gcmem.lua
mkdir -p ext
mv ext.lua ext/init.lua || die
mv *.lua ext || die
}
Manage flags for this package:
euse -i <flag> -p dev-lua/lua-ext |
euse -E <flag> -p dev-lua/lua-ext |
euse -D <flag> -p dev-lua/lua-ext
dev-lua/luafilesystem[] gcmem? ( !lua_targets_luajit? ( dev-lua/lua-ffi-bindings[] ) )
dev-lua/luafilesystem[] gcmem? ( !lua_targets_luajit? ( dev-lua/lua-ffi-bindings[] ) )