summaryrefslogtreecommitdiff
path: root/dev-lua/lua_cliargs/lua_cliargs-3.0_p2-r100.ebuild
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/lua_cliargs-3.0_p2-r100.ebuild
parente36ce11c257fb088b5e889c9b68f31ced1eb849b (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/lua_cliargs-3.0_p2-r100.ebuild')
-rw-r--r--dev-lua/lua_cliargs/lua_cliargs-3.0_p2-r100.ebuild37
1 files changed, 37 insertions, 0 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
+}