summaryrefslogtreecommitdiff
path: root/dev-lua/penlight
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lua/penlight')
-rw-r--r--dev-lua/penlight/Manifest2
-rw-r--r--dev-lua/penlight/penlight-1.11.0.ebuild64
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-lua/penlight/Manifest b/dev-lua/penlight/Manifest
index 4839b473d1b3..09cd1e92a227 100644
--- a/dev-lua/penlight/Manifest
+++ b/dev-lua/penlight/Manifest
@@ -1,3 +1,5 @@
DIST penlight-1.10.0.tar.gz 413134 BLAKE2B 2091cc6b06f4b64c19f21e25e17495d35d90bc49895b810fb2b31ff99abcd4ac71048d215050e09c27c3954f45cc5a0509886ad66dc17532500238bdf78a926e SHA512 47128b09d1f7d41e8cac7ecc50338b7ebe9095b6768a43f961e27156aac7129e192909e771711e3d2fbd87d3ef475d5934874e0b7ad44f1e40ab4c1cee00736d
+DIST penlight-1.11.0.tar.gz 413442 BLAKE2B 47b2713f26c6f0879e439d94c4306968312f6394cc96bf9c6d0c78b886a3d8f5c9678bc66eb90dc48900cfc4ab219618386e75a43e7795095db198b01dc7dbeb SHA512 dbf5b1a558cf7279db793c6e0b63a7cd5eade87c4c6c12d7de3c1416f85008b2fef44c90fd1268761a64d3f8f18a971a1b645ba55278032611fb04cd2276d23b
EBUILD penlight-1.10.0.ebuild 1211 BLAKE2B 4892c02c044e72862793ee26fdb247e476221c56a49245b98f21860fc2fc4e3c68e4976781b7591be7f465af3079dc6c1e6afe2de5778c45b66cbfa0c969c930 SHA512 89732457341bcb7810091a632dfea305e5d9189e541ea288cad85c1ad5e2e421342dbd7f30ad1fb9e743b23b239d0f88fe3b6847fc721f43d6dc78388cc73a3c
+EBUILD penlight-1.11.0.ebuild 1217 BLAKE2B 0b6c021df0cda194075413c66ba174586be3e8af068df2428403e41d4ab6082dee5d4467e125bbb3b9fffb4f3d684b79745a188660e9fbd86b75b8110059353b SHA512 c97002b2c423367d233dff71d5a7dc9fcf58b9653cc43b2af097ae0b9b40e2cab558421f2a7f54b3dfb5d31b2f62432587627d828ba088274fa67e7c2f7a8d78
MISC metadata.xml 728 BLAKE2B 39c141488fb9a86659316af5cd1da4f74b4e2a2e736d310998b849d982e1365c57d3d17332a076c16b88f57be67f6aa4095a7cb404f65d2e482aa3be49877153 SHA512 dfee770abf04ff66d508b62945b7e44d20222f802e530c86d710c6a02cff6148da2bfa0b538ce7b9d6ec1f2159d2ce67fd18c50fe574ab21231221b10dc2eb00
diff --git a/dev-lua/penlight/penlight-1.11.0.ebuild b/dev-lua/penlight/penlight-1.11.0.ebuild
new file mode 100644
index 000000000000..9224d13d24b3
--- /dev/null
+++ b/dev-lua/penlight/penlight-1.11.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+MY_PN="Penlight"
+
+inherit lua toolchain-funcs
+
+DESCRIPTION="Lua utility libraries loosely based on the Python standard libraries"
+HOMEPAGE="https://github.com/Tieske/Penlight"
+SRC_URI="https://github.com/Tieske/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="test"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+DEPEND="${LUA_DEPS}"
+
+RDEPEND="
+ dev-lua/luafilesystem[${LUA_USEDEP}]
+ ${DEPEND}
+"
+
+BDEPEND="
+ virtual/pkgconfig
+ test? ( ${DEPEND} )
+"
+
+HTML_DOCS=( "docs/." )
+
+src_prepare() {
+ default
+
+ # This is a demo app, not a real test
+ rm tests/test-app.lua || die
+
+ # Remove test for executing a non-existent command
+ sed -e '/most-likely-nonexistent-command/d' -i tests/test-utils3.lua || die
+}
+
+lua_src_test() {
+ "${ELUA}" run.lua || die
+}
+
+src_test() {
+ lua_foreach_impl lua_src_test
+}
+
+lua_src_install() {
+ insinto $(lua_get_lmod_dir)
+ doins -r lua/pl
+
+ einstalldocs
+}
+
+src_install() {
+ lua_foreach_impl lua_src_install
+}