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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 206411581F3 for ; Mon, 2 Dec 2024 16:12:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8B4B1E0821; Mon, 2 Dec 2024 16:12:17 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 D0EA6E0821 for ; Mon, 2 Dec 2024 16:12:16 +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 EEC9B342FB1 for ; Mon, 2 Dec 2024 16:12:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1A0FE1F0B for ; Mon, 2 Dec 2024 16:12:12 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1733152290.364d1882d051412b6c103adf68ad02e4d7523831.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-lua/binaryheap/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-lua/binaryheap/Manifest dev-lua/binaryheap/binaryheap-0.4.ebuild dev-lua/binaryheap/metadata.xml X-VCS-Directories: dev-lua/binaryheap/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 364d1882d051412b6c103adf68ad02e4d7523831 X-VCS-Branch: master Date: Mon, 2 Dec 2024 16:12:12 +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: 827f29bc-e35e-48e3-a58d-5681d419b7d5 X-Archives-Hash: 60328840f83ee7c5522473666af3811a commit: 364d1882d051412b6c103adf68ad02e4d7523831 Author: Nicolas PARLANT parhuet fr> AuthorDate: Mon Dec 2 13:46:41 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Mon Dec 2 15:11:30 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=364d1882 dev-lua/binaryheap: new package, add 0.4 Signed-off-by: Nicolas PARLANT parhuet.fr> dev-lua/binaryheap/Manifest | 1 + dev-lua/binaryheap/binaryheap-0.4.ebuild | 62 ++++++++++++++++++++++++++++++++ dev-lua/binaryheap/metadata.xml | 11 ++++++ 3 files changed, 74 insertions(+) diff --git a/dev-lua/binaryheap/Manifest b/dev-lua/binaryheap/Manifest new file mode 100644 index 000000000..251f87d00 --- /dev/null +++ b/dev-lua/binaryheap/Manifest @@ -0,0 +1 @@ +DIST binaryheap.lua-version_0v4.tar.gz 13556 BLAKE2B 92b7d7a54b5f1e1988a865842e80600852df0d03e566ca0075f59c521462632bc54dedcf0e67db71f1d6f29c2c932afc44fab4604eb0c386039c9528021276f1 SHA512 2d26108af024f6de5873d9ad2a10dc2fec5b603770c5ff3b3b36289c73261ad6952ed790caad6886bd313a41f9bd42a8257585dd653508d7f1bcd5d1236d2e12 diff --git a/dev-lua/binaryheap/binaryheap-0.4.ebuild b/dev-lua/binaryheap/binaryheap-0.4.ebuild new file mode 100644 index 000000000..b3b85c720 --- /dev/null +++ b/dev-lua/binaryheap/binaryheap-0.4.ebuild @@ -0,0 +1,62 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..4} luajit ) + +inherit lua + +MY_PN="${PN}.lua" +MY_PV="version_$(ver_rs 1 v)" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="Binary heap implementation in pure Lua" +HOMEPAGE="http://tieske.github.io/binaryheap.lua" +SRC_URI="https://github.com/Tieske/${MY_PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" + +S="${WORKDIR}/${MY_P}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +REQUIRED_USE="${LUA_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +DEPEND="${LUA_DEPS}" +RDEPEND="${DEPEND}" +BDEPEND=" + test? ( + dev-lua/busted[${LUA_USEDEP}] + dev-lua/luacov[${LUA_USEDEP}] + ) +" + +src_prepare() { + default + lua_copy_sources +} + +lua_src_test() { + if [[ ${ELUA} == "lua5.3" ]]; then + # this test failed only with 5.3 + rm "${BUILD_DIR}"/spec/dijkstras_algorithm_spec.lua || die + fi + busted --lua="${ELUA}" --output="plainTerminal" "${BUILD_DIR}"/spec || die "Tests fail with ${ELUA}" +} + +src_test() { + lua_foreach_impl lua_src_test +} + +lua_src_install() { + insinto $(lua_get_lmod_dir) + doins src/${PN}.lua +} + +src_install() { + lua_foreach_impl lua_src_install + einstalldocs +} diff --git a/dev-lua/binaryheap/metadata.xml b/dev-lua/binaryheap/metadata.xml new file mode 100644 index 000000000..d9ad9d635 --- /dev/null +++ b/dev-lua/binaryheap/metadata.xml @@ -0,0 +1,11 @@ + + + + + nicolas.parlant@parhuet.fr + Nicolas PARLANT + + + Tieske/binaryheap.lua + +