1 |
commit: a2ad22254b2986550c1186a4347098a436e62a7b |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 28 16:03:00 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 16:16:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2ad2225 |
7 |
|
8 |
dev-lua/lua_cliargs: migrate to lua eclass |
9 |
|
10 |
Closes: https://bugs.gentoo.org/752633 |
11 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
dev-lua/lua_cliargs/lua_cliargs-3.0_p2-r100.ebuild | 37 ++++++++++++++++++++++ |
15 |
dev-lua/lua_cliargs/metadata.xml | 6 +++- |
16 |
profiles/package.mask | 1 + |
17 |
3 files changed, 43 insertions(+), 1 deletion(-) |
18 |
|
19 |
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 |
20 |
new file mode 100644 |
21 |
index 00000000000..471bebcf2aa |
22 |
--- /dev/null |
23 |
+++ b/dev-lua/lua_cliargs/lua_cliargs-3.0_p2-r100.ebuild |
24 |
@@ -0,0 +1,37 @@ |
25 |
+# Copyright 1999-2020 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+LUA_COMPAT=( lua5-{1..3} luajit ) |
31 |
+MY_PV="${PV/_p/-}" |
32 |
+ |
33 |
+inherit lua toolchain-funcs |
34 |
+ |
35 |
+DESCRIPTION="A command-line argument parsing module for Lua" |
36 |
+HOMEPAGE="https://github.com/amireh/lua_cliargs" |
37 |
+SRC_URI="https://github.com/amireh/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" |
38 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
39 |
+ |
40 |
+LICENSE="MIT" |
41 |
+SLOT="0" |
42 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
43 |
+IUSE="examples" |
44 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
45 |
+ |
46 |
+RDEPEND="${LUA_DEPS}" |
47 |
+BDEPEND="virtual/pkgconfig" |
48 |
+ |
49 |
+HTML_DOCS=( "doc/." ) |
50 |
+ |
51 |
+lua_src_install() { |
52 |
+ insinto $(lua_get_lmod_dir) |
53 |
+ doins -r src/. |
54 |
+} |
55 |
+ |
56 |
+src_install() { |
57 |
+ lua_foreach_impl lua_src_install |
58 |
+ |
59 |
+ use examples && dodoc -r examples |
60 |
+ einstalldocs |
61 |
+} |
62 |
|
63 |
diff --git a/dev-lua/lua_cliargs/metadata.xml b/dev-lua/lua_cliargs/metadata.xml |
64 |
index 61ea9ce5139..5574ee57f23 100644 |
65 |
--- a/dev-lua/lua_cliargs/metadata.xml |
66 |
+++ b/dev-lua/lua_cliargs/metadata.xml |
67 |
@@ -5,7 +5,11 @@ |
68 |
<email>williamh@g.o</email> |
69 |
<name>William Hubbs</name> |
70 |
</maintainer> |
71 |
- <longdescription lang="en"> |
72 |
+ <maintainer type="person"> |
73 |
+ <email>conikost@g.o</email> |
74 |
+ <name>Conrad Kostecki</name> |
75 |
+ </maintainer> |
76 |
+ <longdescription> |
77 |
This module adds support for accepting CLI |
78 |
arguments easily using multiple notations and argument types. |
79 |
|
80 |
|
81 |
diff --git a/profiles/package.mask b/profiles/package.mask |
82 |
index 864c47017f9..5a1c0da8b6d 100644 |
83 |
--- a/profiles/package.mask |
84 |
+++ b/profiles/package.mask |
85 |
@@ -507,6 +507,7 @@ dev-lua/luacrypto |
86 |
>=dev-lua/luaevent-0.4.6-r100 |
87 |
=dev-lua/luaexpat-1.3.0-r100 |
88 |
=dev-lua/luaexpat-1.3.3-r100 |
89 |
+>=dev-lua/lua_cliargs-3.0_p2-r100 |
90 |
>=dev-lua/luafilesystem-1.8.0-r100 |
91 |
>=dev-lua/luasec-0.9-r100 |
92 |
>=dev-lua/luasocket-3.0_rc1_p20200328-r100 |