From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9E14E158087 for ; Thu, 20 Jan 2022 23:56:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F1CC82BC06F; Thu, 20 Jan 2022 23:56:53 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D99D82BC06F for ; Thu, 20 Jan 2022 23:56:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CC080342DD6 for ; Thu, 20 Jan 2022 23:56:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 083A72A7 for ; Thu, 20 Jan 2022 23:56:49 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1642722980.a847ec97409acc3e9e865dbc133d02e5c4feff8b.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/penlight/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lua/penlight/Manifest dev-lua/penlight/penlight-1.12.0.ebuild X-VCS-Directories: dev-lua/penlight/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: a847ec97409acc3e9e865dbc133d02e5c4feff8b X-VCS-Branch: master Date: Thu, 20 Jan 2022 23:56:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: acef0a73-466d-44cb-bef8-569097dea048 X-Archives-Hash: 3fab6013f46cbe8c92c5fa41f71084ad commit: a847ec97409acc3e9e865dbc133d02e5c4feff8b Author: Conrad Kostecki gentoo org> AuthorDate: Thu Jan 20 23:39:46 2022 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Thu Jan 20 23:56:20 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a847ec97 dev-lua/penlight: add 1.12.0 Signed-off-by: Conrad Kostecki gentoo.org> dev-lua/penlight/Manifest | 1 + dev-lua/penlight/penlight-1.12.0.ebuild | 64 +++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) diff --git a/dev-lua/penlight/Manifest b/dev-lua/penlight/Manifest index 308afcbc2dd2..5472680e637b 100644 --- a/dev-lua/penlight/Manifest +++ b/dev-lua/penlight/Manifest @@ -1 +1,2 @@ DIST penlight-1.11.0.tar.gz 413442 BLAKE2B 47b2713f26c6f0879e439d94c4306968312f6394cc96bf9c6d0c78b886a3d8f5c9678bc66eb90dc48900cfc4ab219618386e75a43e7795095db198b01dc7dbeb SHA512 dbf5b1a558cf7279db793c6e0b63a7cd5eade87c4c6c12d7de3c1416f85008b2fef44c90fd1268761a64d3f8f18a971a1b645ba55278032611fb04cd2276d23b +DIST penlight-1.12.0.tar.gz 429587 BLAKE2B b8a659c051c1bb9406e9c20ad1da20029e3a141d8193c1d74e83c24b7089ee11c12bb1850c6abb08d7199dbe6d02f40ef8efdfaf2ba4fb16aa88b0218f1dbc65 SHA512 70628bd43a0ac4176704611e47c3a42c287c24aac98a0bc63071a192326e4ecab016a499ff9ab201a9e7d7848f26760f0a2ef87d46220df679b4f70a0fdc4aac 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 +}