From 60632d90622785ac717c4e05e0e16d985e09a39d Mon Sep 17 00:00:00 2001 From: Vitaly Zdanevich Date: Tue, 21 May 2024 04:30:14 +0400 Subject: [PATCH] dev-lua/multipart-post: new package Signed-off-by: Vitaly Zdanevich --- dev-lua/multipart-post/Manifest | 1 + dev-lua/multipart-post/metadata.xml | 11 ++++++ .../multipart-post/multipart-post-1.4.ebuild | 37 +++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 dev-lua/multipart-post/Manifest create mode 100644 dev-lua/multipart-post/metadata.xml create mode 100644 dev-lua/multipart-post/multipart-post-1.4.ebuild diff --git a/dev-lua/multipart-post/Manifest b/dev-lua/multipart-post/Manifest new file mode 100644 index 0000000000..c79170e6d5 --- /dev/null +++ b/dev-lua/multipart-post/Manifest @@ -0,0 +1 @@ +DIST lua-multipart-post-1.4.tar.gz 4993 BLAKE2B e4c23f8dd895acd4f186fce26c2071e11fecf013cf3500725e74b25d11ec4e682eaa8fd128ded409d81d2dce2009a4fa5caf8f0b6059cb31077beeb7d163a220 SHA512 610e79c789ac63872c0fc5e4ae416d3ebf9808261d1de0cd624d088f83a41ccb9d4d9624585be7b9a249040efdaa9d3c51c10e1ac0910a736119ec426c297df0 diff --git a/dev-lua/multipart-post/metadata.xml b/dev-lua/multipart-post/metadata.xml new file mode 100644 index 0000000000..0c1cfc2f9b --- /dev/null +++ b/dev-lua/multipart-post/metadata.xml @@ -0,0 +1,11 @@ + + + + + zdanevich.vitaly@ya.ru + Vitaly Zdanevich + + + catwell/lua-multipart-post + + diff --git a/dev-lua/multipart-post/multipart-post-1.4.ebuild b/dev-lua/multipart-post/multipart-post-1.4.ebuild new file mode 100644 index 0000000000..11de272dae --- /dev/null +++ b/dev-lua/multipart-post/multipart-post-1.4.ebuild @@ -0,0 +1,37 @@ +# 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 Multipart Post helper that does just that." +HOMEPAGE="https://github.com/catwell/lua-multipart-post" +SRC_URI="https://github.com/catwell/lua-$PN/archive/refs/tags/v$PV.tar.gz -> lua-${P}.tar.gz" +S="$WORKDIR/lua-$P" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +REQUIRED_USE="${LUA_REQUIRED_USE}" + +RDEPEND="dev-lua/luasocket[${LUA_USEDEP}]" + +# Require cwtes, which is not in the tree yet +RESTRICT="test" + +DOCS=( README.md ) + +lua_src_install() { + insinto "$(lua_get_lmod_dir)" + doins multipart-post.lua +} + +src_install() { + lua_foreach_impl lua_src_install + + einstalldocs +}