summaryrefslogtreecommitdiff
path: root/dev-lua/penlight
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-02-02 01:39:05 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-02-02 01:39:05 +0000
commitfcc5224904648a8e6eb528d7603154160a20022f (patch)
tree3bfce096b38a9cea8eed13fc70c1526c456e9abd /dev-lua/penlight
parent2fd57282f0262ca084e05b0f2c63fbada395d02b (diff)
gentoo resync : 02.02.2022
Diffstat (limited to 'dev-lua/penlight')
-rw-r--r--dev-lua/penlight/Manifest2
-rw-r--r--dev-lua/penlight/penlight-1.12.0.ebuild64
2 files changed, 66 insertions, 0 deletions
diff --git a/dev-lua/penlight/Manifest b/dev-lua/penlight/Manifest
index aede2cfb7b03..7a0c9a627a25 100644
--- a/dev-lua/penlight/Manifest
+++ b/dev-lua/penlight/Manifest
@@ -1,3 +1,5 @@
DIST penlight-1.11.0.tar.gz 413442 BLAKE2B 47b2713f26c6f0879e439d94c4306968312f6394cc96bf9c6d0c78b886a3d8f5c9678bc66eb90dc48900cfc4ab219618386e75a43e7795095db198b01dc7dbeb SHA512 dbf5b1a558cf7279db793c6e0b63a7cd5eade87c4c6c12d7de3c1416f85008b2fef44c90fd1268761a64d3f8f18a971a1b645ba55278032611fb04cd2276d23b
+DIST penlight-1.12.0.tar.gz 429587 BLAKE2B b8a659c051c1bb9406e9c20ad1da20029e3a141d8193c1d74e83c24b7089ee11c12bb1850c6abb08d7199dbe6d02f40ef8efdfaf2ba4fb16aa88b0218f1dbc65 SHA512 70628bd43a0ac4176704611e47c3a42c287c24aac98a0bc63071a192326e4ecab016a499ff9ab201a9e7d7848f26760f0a2ef87d46220df679b4f70a0fdc4aac
EBUILD penlight-1.11.0.ebuild 1224 BLAKE2B 18ebee38b904b703ad93d3c5c84d027efa75d8d24a1c8b04e7e0d84eb9db80056032f637d1d07c120c655f3672f048b9007abac23847ae04f354923d0d2c8dac SHA512 6276b436edf5831206174c0b0110e83729e00be0032e7924881ae2367c075dc16d9e5d631b6630bd6a74c2c849c6df2e8d8bab12ee1e152d942900fa967276b4
+EBUILD penlight-1.12.0.ebuild 1230 BLAKE2B 8010a5dd2e94b596865bf206db4732f0c07d06bc257cd558f9567741e65f0ed38cf87e1892dcab787d3d94e2a9d6b1936cdb5a9d9f5f890877fd6be7152329f2 SHA512 6b84d1537e8e9c1984a39ce4495f95bb6d9f995e664c8de8689f64bf25383aa3ce9b951ddada342d2c2bdefb2dfa056d54066605ced5e4b2ebb33f4a1bdc9f52
MISC metadata.xml 729 BLAKE2B 17f0fbc28fb9cf4ca711c87af3bed31dcf145b348e6abd6eb3b62cc29e52949ee7b54d006da2accd60f6d5a1d17137c6e28b1d897aed6ec969685fbad34e516b SHA512 52fe762113833b6658431544a3f929e786423a294327d60cd07d3aaec09fb03ed3e6870ff393ef6dc00926eed95b142eba0753835e314a0625aec751ffbfaa31
diff --git a/dev-lua/penlight/penlight-1.12.0.ebuild b/dev-lua/penlight/penlight-1.12.0.ebuild
new file mode 100644
index 000000000000..db57b800a0e7
--- /dev/null
+++ b/dev-lua/penlight/penlight-1.12.0.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2022 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 toolchain-funcs
+
+DESCRIPTION="Lua utility libraries loosely based on the Python standard libraries"
+HOMEPAGE="https://github.com/lunarmodules/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 ~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
+}