summaryrefslogtreecommitdiff
path: root/dev-lua/penlight
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-18 12:04:39 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-18 12:04:39 +0100
commit2d01b3d133c0fbf17de8d7b47905585af88bd6e4 (patch)
treef74eb9a3d16ed25f8c15b825f4d28b759ae99a42 /dev-lua/penlight
parent97bacba3ead078e5db8b87ab651a3ffa7d82f60f (diff)
gentoo auto-resync : 18:04:2024 - 12:04:39
Diffstat (limited to 'dev-lua/penlight')
-rw-r--r--dev-lua/penlight/Manifest2
-rw-r--r--dev-lua/penlight/penlight-1.14.0.ebuild64
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-lua/penlight/Manifest b/dev-lua/penlight/Manifest
index cc0701e1c878..3c57c52b2d0a 100644
--- a/dev-lua/penlight/Manifest
+++ b/dev-lua/penlight/Manifest
@@ -1,3 +1,5 @@
DIST penlight-1.13.1.tar.gz 434059 BLAKE2B 09a509afc11ad28b88fc92e9f9237fef4d18fc4c5b8c401c6fc8b4e3765941534409e5e5c9c9a08e0ad1a8b08d635d9ef8b453ec602514e4365317e1b31bbf63 SHA512 de0a6a2f585f32bed234ef084d8fca9cee645eed3459aa3c39b885b46a05ae752b5c7ac3bb1957fef9519df2a11e250fc87d6d4d62ee6155be2742ad43a079fe
+DIST penlight-1.14.0.tar.gz 439720 BLAKE2B 22ba9741dfcc446c2ffaa38af26f2a5b5022e316c63acc552ad4b7158c97e9239bdf124f1dc3438bd272f8dc79d8ae090f1aa7ba4b3bbcd5d006ec7244fc4041 SHA512 a83f70716106d6576b27a42222ba897d5d5a7b3918088c582e89283cf091a95a9920fe6d0b8d65e1ffc4c1664166f7d5bc4df3b023539d1b33d7175e585bbe9f
EBUILD penlight-1.13.1.ebuild 1214 BLAKE2B 2be3e785d471c3c6ea4f139a447de08e01ab49bd359aaa7074a908d50ed06c6b5e386420ba7023e631876c8e756fed55d122b33962eab4e1501ae20c67101a6e SHA512 b6083a46484c1e19bb3154f6bd4e049a14ea66eec6eb0b7ec6ebf485c8732758a4b21d66154cf7a447811bd3f4caaac12fa69b74e2ca8d1de5395f05f24dca57
+EBUILD penlight-1.14.0.ebuild 1220 BLAKE2B d3a42adb286bc7e2ad2b9319cf92105a530eb9d4e4bd2f7359ff1c3c134ee0396bfb6b795916477fc8c180043dc7f725107b5812e5a09d73ff087623793db6b6 SHA512 21ec6dbb2637ba006c85a7678c85619c8ca1862d3308c433096a4162e8ed12a4527b4068d8d6e5a31b21db0ffee5e01f899f5601f00c48f3be1a1b533fae030b
MISC metadata.xml 735 BLAKE2B a68f6f53a706c2b7c5d6e5407efbdc571d7839f7c5c7f05ece179e798419767562b82e1acab87b8b034392f5f3d77190cfd00a19bbd97d54359aeb127c4fe9c8 SHA512 eb5019d34e384d12cc2d1709c879a3afc2832f4e33ece3a0cdebf4bfd15c1d887a9fabed8c34821ee5c72ceb88111f62de87a4043f0fb0f076137fd4b8acecbc
diff --git a/dev-lua/penlight/penlight-1.14.0.ebuild b/dev-lua/penlight/penlight-1.14.0.ebuild
new file mode 100644
index 000000000000..9dc40907ae10
--- /dev/null
+++ b/dev-lua/penlight/penlight-1.14.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+MY_PN="Penlight"
+
+inherit lua
+
+DESCRIPTION="Lua utility libraries loosely based on the Python standard libraries"
+HOMEPAGE="https://github.com/lunarmodules/Penlight"
+SRC_URI="https://github.com/lunarmodules/${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 ~riscv ~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
+}