Install this version:
emerge -a =dev-lua/lua-resty-http-0.18.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-lua/lua-resty-http-0.18.0
Or alternatively:
emerge --autounmask-write -a =dev-lua/lua-resty-http-0.18.0
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# Openresty only ever supports luajit.
LUA_COMPAT=( luajit )
inherit lua-single
DESCRIPTION="Lua HTTP client cosocket driver for OpenResty / ngx_lua"
HOMEPAGE="https://github.com/ledgetech/lua-resty-http"
if [[ "${PV}" =~ 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/ledgetech/lua-resty-http"
else
SRC_URI="https://github.com/ledgetech/lua-resty-http/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~x86"
fi
LICENSE="BSD-2"
SLOT="0"
# Tests require replicating much of nginx-module_src_test() in each
# dev-lua/lua-resty-* ebuild.
RESTRICT="test"
REQUIRED_USE="${LUA_REQUIRED_USE}"
BDEPEND="virtual/pkgconfig"
DEPEND="${LUA_DEPS}"
RDEPEND="
${DEPEND}
dev-lua/lua-resty-string[${LUA_SINGLE_USEDEP}]
$(lua_gen_cond_dep 'dev-lua/lua-resty-openssl[${LUA_USEDEP}]')
"
src_configure() {
# The directory where to Lua files are to be installed, used by the build
# system.
export LUA_LIB_DIR="$(lua_get_lmod_dir)"
default
}
${DEPEND}
dev-lua/lua-resty-string[${LUA_SINGLE_USEDEP}]
$(lua_gen_cond_dep 'dev-lua/lua-resty-openssl[${LUA_USEDEP}]')
virtual/pkgconfig
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | lua-resty-http-0.18.0.tar.gz | 49172 bytes | https://github.com/ledgetech/lua-resty-http/archive/refs/tags/v0.18.0.tar.gz |