diff --git a/dev-lua/lua-resty-memcached/Manifest b/dev-lua/lua-resty-memcached/Manifest new file mode 100644 index 0000000000000..1f9d3170a1fae --- /dev/null +++ b/dev-lua/lua-resty-memcached/Manifest @@ -0,0 +1 @@ +DIST lua-resty-memcached-0.17.tar.gz 21216 BLAKE2B 3b65a06d50fce5cc33d570e558e412446c649173e5e495bf1b8d00f63114fe451e9fb4f3284cd314cdfe9561f87291b45b32750c2a290e8d0f05b6996fa765fd SHA512 efc7164e01816133b24a60524078565fa4c5f4f1e22608e59d49bb825c8df459ecd315c434c390be2641d3fd55cdfd960f607ced63675cdcd11dd254196b1a63 diff --git a/dev-lua/lua-resty-memcached/lua-resty-memcached-0.17.ebuild b/dev-lua/lua-resty-memcached/lua-resty-memcached-0.17.ebuild new file mode 100644 index 0000000000000..e04b3fd3ce0a0 --- /dev/null +++ b/dev-lua/lua-resty-memcached/lua-resty-memcached-0.17.ebuild @@ -0,0 +1,33 @@ +# 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 memcached client driver based on cosocket API for ngx-lua-module" +HOMEPAGE="https://github.com/openresty/lua-resty-memcached" +SRC_URI=" + https://github.com/openresty/lua-resty-memcached/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz +" + +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}" + +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 +} diff --git a/dev-lua/lua-resty-memcached/metadata.xml b/dev-lua/lua-resty-memcached/metadata.xml new file mode 100644 index 0000000000000..0a435022302b3 --- /dev/null +++ b/dev-lua/lua-resty-memcached/metadata.xml @@ -0,0 +1,16 @@ + + + + + zurabid2016@gmail.com + Zurab Kvachadze + + + proxy-maint@gentoo.org + Proxy Maintainers + + + https://github.com/openresty/lua-resty-memcached/issues + openresty/lua-resty-memcached + +