Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/penlight/, profiles/
Date: Sat, 28 Nov 2020 16:17:48
Message-Id: 1606580196.370b39240d3f7cb689f727beb64dd04e3e76e864.conikost@gentoo
1 commit: 370b39240d3f7cb689f727beb64dd04e3e76e864
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 28 15:43:10 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 28 16:16:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=370b3924
7
8 dev-lua/penlight: migrate to lua eclass
9
10 Closes: https://bugs.gentoo.org/752942
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/penlight/Manifest | 1 +
15 dev-lua/penlight/metadata.xml | 6 ++-
16 dev-lua/penlight/penlight-1.9.2-r100.ebuild | 57 +++++++++++++++++++++++++++++
17 profiles/package.mask | 1 +
18 4 files changed, 64 insertions(+), 1 deletion(-)
19
20 diff --git a/dev-lua/penlight/Manifest b/dev-lua/penlight/Manifest
21 index d348b03ca14..6ea12b1323b 100644
22 --- a/dev-lua/penlight/Manifest
23 +++ b/dev-lua/penlight/Manifest
24 @@ -1,3 +1,4 @@
25 DIST penlight-1.3.2-core.zip 116854 BLAKE2B c653a51cf8ea286c849e1a2c68968ed767c350b1461dd11d9a2e99c81295461c67044175c7bf99c31e8040118e6cfce85f8613d4b6c49e726d31393029abcbbf SHA512 01ba35e967e255f6f39afff9c2238f4921de9e52850ce0d2ec0c9068029fc61a241c82bede680a28fda46c4504582784fcd2241a2eef0bef95c7c389c4042d02
26 DIST penlight-1.5.4.tar.gz 213938 BLAKE2B c6bba4fd7fc491d2e6ca464f71b897ba4b5dc8dc94e7340fd77d3add47a9b4a72ce48cea268f94fe55c2aef1edd850f96f00f2ba1ef7186e1e8d86a4e3155366 SHA512 c46e7875410a90390bfbf010a53f1d536475e2094668722618d03951caad0fcb0674c9bc7119a0753e4ed3df9e4d70fef828ba4c6c24e8ada4036948d2432519
27 DIST penlight-1.7.0.tar.gz 384917 BLAKE2B 153660f5029509611265399aad8b92d82b266ac470414c06e9d7f01b37225834f98488f30f9bbdfdc3a6714edfe2edc0fccd0356ebb966d964be633bff38eb25 SHA512 edeb09307c9feb5da6bccd82216a6ad71db988c433245d72d28abb6c555004f77eebba556928b0912937b29ef93e065ad491368041e17730610813de8e595d7d
28 +DIST penlight-1.9.2.tar.gz 396248 BLAKE2B 2bbbece6e9855e8fc54f22f01e516cdf886782ec9a007a4ffac8ac980d7e0836cd19b8a7659ab1e05331e12b11bdb1c9c7df5e2f03c39965532c381298017035 SHA512 8df26e74f73ccf6dc73546640e1537b63e40357072855f9409e96b2ef8251c25b4653456d1237d5142573618af242e885490aa9750dffb387e4670ed9f3cfa91
29
30 diff --git a/dev-lua/penlight/metadata.xml b/dev-lua/penlight/metadata.xml
31 index 2d40d2a4011..98992c8b794 100644
32 --- a/dev-lua/penlight/metadata.xml
33 +++ b/dev-lua/penlight/metadata.xml
34 @@ -5,7 +5,11 @@
35 <email>williamh@g.o</email>
36 <name>William Hubbs</name>
37 </maintainer>
38 - <longdescription lang="en">
39 + <maintainer type="person">
40 + <email>conikost@g.o</email>
41 + <name>Conrad Kostecki</name>
42 + </maintainer>
43 + <longdescription>
44 Penlight is a set of pure Lua libraries for making it easier to work
45 with common tasks like iterating over directories, reading
46 configuration files and the like. Provides functional operations
47
48 diff --git a/dev-lua/penlight/penlight-1.9.2-r100.ebuild b/dev-lua/penlight/penlight-1.9.2-r100.ebuild
49 new file mode 100644
50 index 00000000000..fc399a4a51d
51 --- /dev/null
52 +++ b/dev-lua/penlight/penlight-1.9.2-r100.ebuild
53 @@ -0,0 +1,57 @@
54 +# Copyright 1999-2020 Gentoo Authors
55 +# Distributed under the terms of the GNU General Public License v2
56 +
57 +EAPI=7
58 +
59 +LUA_COMPAT=( lua5-{1..3} luajit )
60 +MY_PN="Penlight"
61 +
62 +inherit lua toolchain-funcs
63 +
64 +DESCRIPTION="Lua utility libraries loosely based on the Python standard libraries"
65 +HOMEPAGE="https://github.com/Tieske/Penlight",
66 +SRC_URI="https://github.com/Tieske/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
67 +S="${WORKDIR}/${MY_PN}-${PV}"
68 +
69 +LICENSE="MIT"
70 +SLOT="0"
71 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
72 +IUSE="test"
73 +REQUIRED_USE="${LUA_REQUIRED_USE}"
74 +RESTRICT="!test? ( test )"
75 +
76 +DEPEND="${LUA_DEPS}"
77 +
78 +RDEPEND="
79 + >=dev-lua/luafilesystem-1.8.0-r100
80 + ${DEPEND}
81 +"
82 +
83 +BDEPEND="
84 + virtual/pkgconfig
85 + test? ( ${DEPEND} )
86 +"
87 +
88 +HTML_DOCS=( "docs/." )
89 +
90 +lua_src_test() {
91 + ${ELUA} run.lua || die
92 +}
93 +
94 +src_test() {
95 + # This is a demo app, not a real test
96 + rm tests/test-app.lua
97 +
98 + lua_foreach_impl lua_src_test
99 +}
100 +
101 +lua_src_install() {
102 + insinto $(lua_get_lmod_dir)
103 + doins -r lua/pl
104 +
105 + einstalldocs
106 +}
107 +
108 +src_install() {
109 + lua_foreach_impl lua_src_install
110 +}
111
112 diff --git a/profiles/package.mask b/profiles/package.mask
113 index 0784fbc3f4b..7e36b0741a0 100644
114 --- a/profiles/package.mask
115 +++ b/profiles/package.mask
116 @@ -513,6 +513,7 @@ dev-lua/luacrypto
117 >=dev-lua/lutok-0.4-r10
118 >=dev-lua/luv-1.32.0.0-r100
119 >=dev-lua/messagepack-0.3.2-r100
120 +>=dev-lua/penlight-1.9.2-r100
121 >=dev-lua/say-1.3_p1-r100
122 >=dev-lua/toluapp-1.0.93_p20190513-r100
123 >=dev-util/geany-plugins-1.37-r100