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 <zurabid2...@gmail.com>
---
 dev-lua/lua-resty-mysql/Manifest                     |  1 +
 .../lua-resty-mysql-0.27.ebuild}                     | 12 ++++++++----
 .../metadata.xml                                     |  9 ++++++---
 3 files changed, 15 insertions(+), 7 deletions(-)
 create mode 100644 dev-lua/lua-resty-mysql/Manifest
 copy dev-lua/{lua-resty-core/lua-resty-core-0.1.30.ebuild => 
lua-resty-mysql/lua-resty-mysql-0.27.ebuild} (61%)
 copy dev-lua/{lua-resty-lrucache => lua-resty-mysql}/metadata.xml (58%)

diff --git a/dev-lua/lua-resty-mysql/Manifest b/dev-lua/lua-resty-mysql/Manifest
new file mode 100644
index 000000000000..b4bb7a726d6c
--- /dev/null
+++ b/dev-lua/lua-resty-mysql/Manifest
@@ -0,0 +1 @@
+DIST lua-resty-mysql-0.27.tar.gz 128105 BLAKE2B 
32b012691dd6b8aa29bd663b16d51d775c85268abd2a6018be5d154e8af7b191f87d26e627208bf99ee64bd329e71feab17df2636d9e83b3454412ce916ef591
 SHA512 
5b3ee2ae61fc87af9253d23d79fdfeffa78e8167a72d37ec31a27686b353ec8b5a3863ba8281f69f26acfcdb984eaa759646c235a3278476db2059970f613f03
diff --git a/dev-lua/lua-resty-core/lua-resty-core-0.1.30.ebuild 
b/dev-lua/lua-resty-mysql/lua-resty-mysql-0.27.ebuild
similarity index 61%
copy from dev-lua/lua-resty-core/lua-resty-core-0.1.30.ebuild
copy to dev-lua/lua-resty-mysql/lua-resty-mysql-0.27.ebuild
index eb4de4b5c50e..08350757ce10 100644
--- a/dev-lua/lua-resty-core/lua-resty-core-0.1.30.ebuild
+++ b/dev-lua/lua-resty-mysql/lua-resty-mysql-0.27.ebuild
@@ -7,10 +7,10 @@ EAPI=8
 LUA_COMPAT=( luajit )
 inherit lua-single
 
-DESCRIPTION="FFI-based API for lua-nginx-module"
-HOMEPAGE="https://github.com/openresty/lua-resty-core";
+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-core/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
+       
https://github.com/openresty/lua-resty-mysql/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
 "
 
 LICENSE="BSD-2"
@@ -23,7 +23,11 @@ REQUIRED_USE="${LUA_REQUIRED_USE}"
 
 BDEPEND="virtual/pkgconfig"
 DEPEND="${LUA_DEPS}"
-RDEPEND="${DEPEND}"
+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
diff --git a/dev-lua/lua-resty-lrucache/metadata.xml 
b/dev-lua/lua-resty-mysql/metadata.xml
similarity index 58%
copy from dev-lua/lua-resty-lrucache/metadata.xml
copy to dev-lua/lua-resty-mysql/metadata.xml
index 81d1558075b9..d53c791c23b0 100644
--- a/dev-lua/lua-resty-lrucache/metadata.xml
+++ b/dev-lua/lua-resty-mysql/metadata.xml
@@ -10,10 +10,13 @@
                <name>Proxy Maintainers</name>
        </maintainer>
        <longdescription>
-               This library implements a simple LRU cache for OpenResty and 
the ngx_lua module.
+               This Lua library is a MySQL client driver for the 
ngx-lua-module NGINX module.
+
+               lua-resty-mysql takes advantage of ngx-lua-module's cosocket 
API, which ensures 100%
+               nonblocking behavior.   
        </longdescription>
        <upstream>
-               
<bugs-to>https://github.com/openresty/lua-resty-lrucache/issues</bugs-to>
-               <remote-id 
type="github">openresty/lua-resty-lrucache</remote-id>
+               
<bugs-to>https://github.com/openresty/lua-resty-mysql/issues</bugs-to>
+               <remote-id type="github">openresty/lua-resty-mysql</remote-id>
        </upstream>
 </pkgmetadata>
-- 
2.45.3


Reply via email to