summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2020-11-28 17:03:00 +0100
committerConrad Kostecki <conikost@gentoo.org>2020-11-28 17:16:39 +0100
commita2ad22254b2986550c1186a4347098a436e62a7b (patch)
treeba0f8d9198106c9016fe679733e95c6b4eeb5514 /dev-lua/lua_cliargs
parentdev-lua/luassert: migrate to lua eclass (diff)
downloadgentoo-a2ad22254b2986550c1186a4347098a436e62a7b.tar.gz
gentoo-a2ad22254b2986550c1186a4347098a436e62a7b.tar.bz2
gentoo-a2ad22254b2986550c1186a4347098a436e62a7b.zip
dev-lua/lua_cliargs: migrate to lua eclass
Closes: https://bugs.gentoo.org/752633 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-lua/lua_cliargs')
-rw-r--r--dev-lua/lua_cliargs/lua_cliargs-3.0_p2-r100.ebuild37
-rw-r--r--dev-lua/lua_cliargs/metadata.xml6
2 files changed, 42 insertions, 1 deletions
diff --git a/dev-lua/lua_cliargs/lua_cliargs-3.0_p2-r100.ebuild b/dev-lua/lua_cliargs/lua_cliargs-3.0_p2-r100.ebuild
new file mode 100644
index 000000000000..471bebcf2aa6
--- /dev/null
+++ b/dev-lua/lua_cliargs/lua_cliargs-3.0_p2-r100.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..3} luajit )
+MY_PV="${PV/_p/-}"
+
+inherit lua toolchain-funcs
+
+DESCRIPTION="A command-line argument parsing module for Lua"
+HOMEPAGE="https://github.com/amireh/lua_cliargs"
+SRC_URI="https://github.com/amireh/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="examples"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RDEPEND="${LUA_DEPS}"
+BDEPEND="virtual/pkgconfig"
+
+HTML_DOCS=( "doc/." )
+
+lua_src_install() {
+ insinto $(lua_get_lmod_dir)
+ doins -r src/.
+}
+
+src_install() {
+ lua_foreach_impl lua_src_install
+
+ use examples && dodoc -r examples
+ einstalldocs
+}
diff --git a/dev-lua/lua_cliargs/metadata.xml b/dev-lua/lua_cliargs/metadata.xml
index 61ea9ce51390..5574ee57f237 100644
--- a/dev-lua/lua_cliargs/metadata.xml
+++ b/dev-lua/lua_cliargs/metadata.xml
@@ -5,7 +5,11 @@
<email>williamh@gentoo.org</email>
<name>William Hubbs</name>
</maintainer>
- <longdescription lang="en">
+ <maintainer type="person">
+ <email>conikost@gentoo.org</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <longdescription>
This module adds support for accepting CLI
arguments easily using multiple notations and argument types.