summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2022-02-09 21:26:03 +0100
committerConrad Kostecki <conikost@gentoo.org>2022-02-09 23:55:43 +0100
commit5fa373ebd03105bd343179fbcd9ed4e1517cf1be (patch)
tree58b7639e165106c2d5ca29ffb3e4f7421819b9e1 /dev-lua/luacov
parentdev-lua/luacheck: add 0.25.0 (diff)
downloadgentoo-5fa373ebd03105bd343179fbcd9ed4e1517cf1be.tar.gz
gentoo-5fa373ebd03105bd343179fbcd9ed4e1517cf1be.tar.bz2
gentoo-5fa373ebd03105bd343179fbcd9ed4e1517cf1be.zip
dev-lua/luacov: add 0.15.0
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-lua/luacov')
-rw-r--r--dev-lua/luacov/Manifest1
-rw-r--r--dev-lua/luacov/luacov-0.15.0.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-lua/luacov/Manifest b/dev-lua/luacov/Manifest
index 9f2cfe036bbe..25c15fe59729 100644
--- a/dev-lua/luacov/Manifest
+++ b/dev-lua/luacov/Manifest
@@ -1 +1,2 @@
DIST luacov-0.14.0.tar.gz 49571 BLAKE2B 2248fc00e1af0a1cdec923bbe6150ae682cc1ba814c77f21bc86269d723ea80542fb48fe62980de2527040598b7b9c87f92f146d6c62abde06651fa6733c75c5 SHA512 44ea158ce597f705d80b9768676e401804daea91b9c2afb146a8d25aae612e895e4f42a29c4b7b3438659c596fa500af5d23b66b7f3477459747ad06ca9b7ffa
+DIST luacov-0.15.0.tar.gz 52571 BLAKE2B f9d12295739b1461a4b9d698990430a17b5e73608bec062bf614c5ed84d91b86e2de61031275e0c767f61fcb1da0747dc2587aa0d6ef5ec119f809bf947c74ab SHA512 cab02c540aad905db1fecd7f62545157c8ff9ea82f9ea602bff7b6093e3940a3a316e212a2efe30fa2439435dae6cd4005c2ee41de6b937d3e5f447bc2128a59
diff --git a/dev-lua/luacov/luacov-0.15.0.ebuild b/dev-lua/luacov/luacov-0.15.0.ebuild
new file mode 100644
index 000000000000..3f80f11204be
--- /dev/null
+++ b/dev-lua/luacov/luacov-0.15.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..3} luajit )
+
+inherit lua
+
+DESCRIPTION="A simple coverage analyzer for Lua scripts"
+HOMEPAGE="https://github.com/keplerproject/luacov"
+SRC_URI="https://github.com/keplerproject/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="test"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+RDEPEND="${LUA_DEPS}"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ virtual/pkgconfig
+ test? (
+ dev-lua/busted[${LUA_USEDEP}]
+ dev-lua/lua_cliargs[${LUA_USEDEP}]
+ ${RDEPEND}
+ )
+"
+
+HTML_DOCS=( "doc/." )
+
+lua_src_test() {
+ busted --lua=${ELUA} || die
+}
+
+src_test() {
+ lua_foreach_impl lua_src_test
+}
+
+lua_src_install() {
+ insinto "$(lua_get_lmod_dir)"
+ doins src/luacov.lua
+ doins -r src/luacov
+}
+
+src_install() {
+ lua_foreach_impl lua_src_install
+
+ dobin src/bin/luacov
+
+ einstalldocs
+}