summaryrefslogtreecommitdiff
path: root/dev-lua/lua-resty-mysql/lua-resty-mysql-0.27.ebuild
diff options
context:
space:
mode:
authorZurab Kvachadze <zurabid2016@gmail.com>2025-02-18 16:19:38 +0100
committerSam James <sam@gentoo.org>2025-07-05 08:27:02 +0100
commite968890b2ae1ee9d88640cba752a34955ce063e7 (patch)
tree9f74d44bae447ed3c7061a54f79c82f3e8825e54 /dev-lua/lua-resty-mysql/lua-resty-mysql-0.27.ebuild
parent68c9c7920a0691afc56a2376e7d9e8b28a0adb7a (diff)
downloadgentoo-e968890b2ae1ee9d88640cba752a34955ce063e7.tar.gz
gentoo-e968890b2ae1ee9d88640cba752a34955ce063e7.tar.bz2
gentoo-e968890b2ae1ee9d88640cba752a34955ce063e7.zip
dev-lua/lua-resty-mysql: new package, add 0.27
lua-resty-mysql[1] is a "nonblocking Lua MySQL driver library for ngx_lua". [1]: https://github.com/openresty/lua-resty-mysql 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-mysql/lua-resty-mysql-0.27.ebuild')
-rw-r--r--dev-lua/lua-resty-mysql/lua-resty-mysql-0.27.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-lua/lua-resty-mysql/lua-resty-mysql-0.27.ebuild b/dev-lua/lua-resty-mysql/lua-resty-mysql-0.27.ebuild
new file mode 100644
index 000000000000..08350757ce10
--- /dev/null
+++ b/dev-lua/lua-resty-mysql/lua-resty-mysql-0.27.ebuild
@@ -0,0 +1,37 @@
+# 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="Nonblocking Lua MySQL driver library for the ngx-lua-module NGINX module"
+HOMEPAGE="https://github.com/openresty/lua-resty-mysql"
+SRC_URI="
+ https://github.com/openresty/lua-resty-mysql/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}
+ dev-lua/lua-resty-string[${LUA_SINGLE_USEDEP}]
+ $(lua_gen_cond_dep 'dev-lua/LuaBitOp[${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
+}