summaryrefslogtreecommitdiff
path: root/dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild
diff options
context:
space:
mode:
authorZurab Kvachadze <zurabid2016@gmail.com>2024-12-22 12:42:07 +0100
committerSam James <sam@gentoo.org>2025-07-05 08:27:00 +0100
commitc76fbcab4fa72361bd4f7052223f137c2d4c7234 (patch)
treeddd9b638376db5924c375aae346d8e42a789e9c3 /dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild
parentc64f73046f9aa55e5d753411debcc6a5b33f67b6 (diff)
downloadgentoo-c76fbcab4fa72361bd4f7052223f137c2d4c7234.tar.gz
gentoo-c76fbcab4fa72361bd4f7052223f137c2d4c7234.tar.bz2
gentoo-c76fbcab4fa72361bd4f7052223f137c2d4c7234.zip
dev-lua/lua-resty-lrucache: new package, add 0.15
lua-resty-lrucache[1] is a "Lua LRU cache"; it is a runtime dependency of www-nginx/ngx-lua-module. [1]: https://github.com/openresty/lua-resty-lrucache Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/37590 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild')
-rw-r--r--dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild b/dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.ebuild
new file mode 100644
index 000000000000..f85dbf3f9a66
--- /dev/null
+++ b/dev-lua/lua-resty-lrucache/lua-resty-lrucache-0.15.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-land LRU Cache based on LuaJIT FFI"
+HOMEPAGE="https://github.com/openresty/lua-resty-lrucache"
+SRC_URI="
+ https://github.com/openresty/lua-resty-lrucache/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
+}