commit:     1e0e19bcda03825592fde2a659fcf3447d005f6f
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Tue Dec 10 15:34:19 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec 11 02:09:30 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e0e19bc

dev-lua/lua-http: new package, add 0.4_p20240908

optional for net-dns/knot-resolver

Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lua/lua-http/Manifest                      |  1 +
 dev-lua/lua-http/lua-http-0.4_p20240908.ebuild | 61 ++++++++++++++++++++++++++
 dev-lua/lua-http/metadata.xml                  | 15 +++++++
 3 files changed, 77 insertions(+)

diff --git a/dev-lua/lua-http/Manifest b/dev-lua/lua-http/Manifest
new file mode 100644
index 000000000000..d83ea6b842bc
--- /dev/null
+++ b/dev-lua/lua-http/Manifest
@@ -0,0 +1 @@
+DIST lua-http-0.4_p20240908.tar.gz 142897 BLAKE2B 
2c68b11ffa8e579ba2be9db08c65f8f28b1eb96079a8d1b71c245ff516a7249cee86317aca3e0635b2e612120aedfa6f4e3bbe9392919835502845567cb2100f
 SHA512 
579db298e901c555bfabd09d375d83ec1be0b45e37c9c55a779620c720a18392fdee3dc971a2ded7b0804f1fcdfc9f69863510a5823b1a0b2637b8195a42cae1

diff --git a/dev-lua/lua-http/lua-http-0.4_p20240908.ebuild 
b/dev-lua/lua-http/lua-http-0.4_p20240908.ebuild
new file mode 100644
index 000000000000..9310050a0344
--- /dev/null
+++ b/dev-lua/lua-http/lua-http-0.4_p20240908.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit lua
+
+DESCRIPTION="HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client 
and server."
+HOMEPAGE="https://daurnimator.github.io/lua-http/";
+HOMEPAGE+=" https://github.com/daurnimator/lua-http";
+EGIT_COMMIT="ee3cf4b4992479b8ebfb39b530694af3bbd1d1eb"
+SRC_URI="https://github.com/daurnimator/${PN}/archive/${EGIT_COMMIT}.tar.gz -> 
${P}.tar.gz"
+
+S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="doc"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+DEPEND="
+       ${LUA_DEPS}
+       dev-lua/basexx[${LUA_USEDEP}]
+       dev-lua/binaryheap[${LUA_USEDEP}]
+       dev-lua/cqueues[${LUA_USEDEP}]
+       dev-lua/fifo[${LUA_USEDEP}]
+       dev-lua/lpeg[${LUA_USEDEP}]
+       dev-lua/lpeg-patterns[${LUA_USEDEP}]
+       dev-lua/LuaBitOp[${LUA_USEDEP}]
+       dev-lua/luaossl[${LUA_USEDEP}]
+       lua_targets_luajit? ( dev-lua/compat53[lua_targets_luajit(-)] )
+       lua_targets_lua5-1? ( dev-lua/compat53[lua_targets_lua5-1(-)] )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="doc? ( virtual/pandoc )"
+
+lua_enable_tests busted
+
+src_compile() {
+       default
+       use doc && emake -C doc lua-http.html lua-http.3
+}
+
+lua_src_install() {
+       insinto $(lua_get_lmod_dir)/http/
+       doins http/*.lua http/compat/*.lua
+}
+
+src_install() {
+       lua_foreach_impl lua_src_install
+       if use doc; then
+               local HTML_DOCS=( doc/lua-http.html )
+               doman doc/lua-http.3
+       fi
+       dodoc -r "examples"
+       einstalldocs
+}

diff --git a/dev-lua/lua-http/metadata.xml b/dev-lua/lua-http/metadata.xml
new file mode 100644
index 000000000000..10fa16252b62
--- /dev/null
+++ b/dev-lua/lua-http/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Nicolas PARLANT</name>
+       </maintainer>
+       <maintainer type="project" proxied="proxy">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">daurnimator/lua-http</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to