aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Zdanevich <zdanevich.vitaly@ya.ru>2024-05-21 04:30:14 +0400
committerVitaly Zdanevich <zdanevich.vitaly@ya.ru>2024-05-21 04:30:14 +0400
commit60632d90622785ac717c4e05e0e16d985e09a39d (patch)
tree5cf9a24640a2eb5c50b4cea11213548cf085f1b7 /dev-lua
parentsys-kernel/ugrd: Add 9999 ebuild (diff)
downloadguru-60632d90622785ac717c4e05e0e16d985e09a39d.tar.gz
guru-60632d90622785ac717c4e05e0e16d985e09a39d.tar.bz2
guru-60632d90622785ac717c4e05e0e16d985e09a39d.zip
dev-lua/multipart-post: new package
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/multipart-post/Manifest1
-rw-r--r--dev-lua/multipart-post/metadata.xml11
-rw-r--r--dev-lua/multipart-post/multipart-post-1.4.ebuild37
3 files changed, 49 insertions, 0 deletions
diff --git a/dev-lua/multipart-post/Manifest b/dev-lua/multipart-post/Manifest
new file mode 100644
index 000000000..c79170e6d
--- /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 000000000..0c1cfc2f9
--- /dev/null
+++ b/dev-lua/multipart-post/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zdanevich.vitaly@ya.ru</email>
+ <name>Vitaly Zdanevich</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">catwell/lua-multipart-post</remote-id>
+ </upstream>
+</pkgmetadata>
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 000000000..11de272da
--- /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
+}