Install this version:
emerge -a =dev-lua/lapis-9999
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-lua/lapis-9999
Or alternatively:
emerge --autounmask-write -a =dev-lua/lapis-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="A web framework for Lua/MoonScript"
HOMEPAGE="https://github.com/leafo/lapis"
EGIT_REPO_URI="https://github.com/leafo/lapis"
LICENSE="MIT"
SLOT="0"
IUSE="lua-http moonscript"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="
${LUA_DEPS}
moonscript? ( dev-lua/moonscript )
dev-lua/ansicolors[${LUA_USEDEP}]
dev-lua/luasocket[${LUA_USEDEP}]
dev-lua/luacrypto[${LUA_USEDEP}]
dev-lua/lua-cjson[${LUA_USEDEP}]
dev-lua/lpeg[${LUA_USEDEP}]
dev-lua/lua-rds-parser[${LUA_USEDEP}]
lua-http? (
dev-lua/lua-http[$LUA_USEDEP]
)
!lua-http? (
dev-lua/lua-resty-upload[${LUA_USEDEP}]
)
"
DEPEND="
${RDEPEND}
"
DOCS=( docs/. README.md )
src_prepare() {
use moonscript || find "${S}" -type -name '*.moon' -delete
default
lua_copy_sources
}
each_lua_compile() {
pushd "${BUILD_DIR}"
use moonscript && emake build
popd
}
each_lua_install() {
pushd "${BUILD_DIR}"
insinto "$(lua_get_lmod_dir)"
use moonscript && doins lapis.moon
doins -r lapis
popd
}
src_compile() {
lua_foreach_impl each_lua_compile
}
src_install() {
lua_foreach_impl each_lua_install
dobin bin/lapis
einstalldocs
}
Manage flags for this package:
euse -i <flag> -p dev-lua/lapis |
euse -E <flag> -p dev-lua/lapis |
euse -D <flag> -p dev-lua/lapis
moonscript? ( dev-lua/moonscript ) dev-lua/ansicolors[] dev-lua/luasocket[] dev-lua/luacrypto[] dev-lua/lua-cjson[] dev-lua/lpeg[] dev-lua/lua-rds-parser[] lua-http? ( dev-lua/lua-http[] ) !lua-http? ( dev-lua/lua-resty-upload[] )
moonscript? ( dev-lua/moonscript ) dev-lua/ansicolors[] dev-lua/luasocket[] dev-lua/luacrypto[] dev-lua/lua-cjson[] dev-lua/lpeg[] dev-lua/lua-rds-parser[] lua-http? ( dev-lua/lua-http[] ) !lua-http? ( dev-lua/lua-resty-upload[] )