1 |
commit: a847ec97409acc3e9e865dbc133d02e5c4feff8b |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jan 20 23:39:46 2022 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 20 23:56:20 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a847ec97 |
7 |
|
8 |
dev-lua/penlight: add 1.12.0 |
9 |
|
10 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
11 |
|
12 |
dev-lua/penlight/Manifest | 1 + |
13 |
dev-lua/penlight/penlight-1.12.0.ebuild | 64 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 65 insertions(+) |
15 |
|
16 |
diff --git a/dev-lua/penlight/Manifest b/dev-lua/penlight/Manifest |
17 |
index 308afcbc2dd2..5472680e637b 100644 |
18 |
--- a/dev-lua/penlight/Manifest |
19 |
+++ b/dev-lua/penlight/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST penlight-1.11.0.tar.gz 413442 BLAKE2B 47b2713f26c6f0879e439d94c4306968312f6394cc96bf9c6d0c78b886a3d8f5c9678bc66eb90dc48900cfc4ab219618386e75a43e7795095db198b01dc7dbeb SHA512 dbf5b1a558cf7279db793c6e0b63a7cd5eade87c4c6c12d7de3c1416f85008b2fef44c90fd1268761a64d3f8f18a971a1b645ba55278032611fb04cd2276d23b |
22 |
+DIST penlight-1.12.0.tar.gz 429587 BLAKE2B b8a659c051c1bb9406e9c20ad1da20029e3a141d8193c1d74e83c24b7089ee11c12bb1850c6abb08d7199dbe6d02f40ef8efdfaf2ba4fb16aa88b0218f1dbc65 SHA512 70628bd43a0ac4176704611e47c3a42c287c24aac98a0bc63071a192326e4ecab016a499ff9ab201a9e7d7848f26760f0a2ef87d46220df679b4f70a0fdc4aac |
23 |
|
24 |
diff --git a/dev-lua/penlight/penlight-1.12.0.ebuild b/dev-lua/penlight/penlight-1.12.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..db57b800a0e7 |
27 |
--- /dev/null |
28 |
+++ b/dev-lua/penlight/penlight-1.12.0.ebuild |
29 |
@@ -0,0 +1,64 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+LUA_COMPAT=( lua5-{1..4} luajit ) |
36 |
+MY_PN="Penlight" |
37 |
+ |
38 |
+inherit lua toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="Lua utility libraries loosely based on the Python standard libraries" |
41 |
+HOMEPAGE="https://github.com/lunarmodules/Penlight" |
42 |
+SRC_URI="https://github.com/Tieske/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
48 |
+IUSE="test" |
49 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
50 |
+RESTRICT="!test? ( test )" |
51 |
+ |
52 |
+DEPEND="${LUA_DEPS}" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ dev-lua/luafilesystem[${LUA_USEDEP}] |
56 |
+ ${DEPEND} |
57 |
+" |
58 |
+ |
59 |
+BDEPEND=" |
60 |
+ virtual/pkgconfig |
61 |
+ test? ( ${DEPEND} ) |
62 |
+" |
63 |
+ |
64 |
+HTML_DOCS=( "docs/." ) |
65 |
+ |
66 |
+src_prepare() { |
67 |
+ default |
68 |
+ |
69 |
+ # This is a demo app, not a real test |
70 |
+ rm tests/test-app.lua || die |
71 |
+ |
72 |
+ # Remove test for executing a non-existent command |
73 |
+ sed -e '/most-likely-nonexistent-command/d' -i tests/test-utils3.lua || die |
74 |
+} |
75 |
+ |
76 |
+lua_src_test() { |
77 |
+ "${ELUA}" run.lua || die |
78 |
+} |
79 |
+ |
80 |
+src_test() { |
81 |
+ lua_foreach_impl lua_src_test |
82 |
+} |
83 |
+ |
84 |
+lua_src_install() { |
85 |
+ insinto $(lua_get_lmod_dir) |
86 |
+ doins -r lua/pl |
87 |
+ |
88 |
+ einstalldocs |
89 |
+} |
90 |
+ |
91 |
+src_install() { |
92 |
+ lua_foreach_impl lua_src_install |
93 |
+} |