summaryrefslogtreecommitdiff
path: root/dev-lua/luassert
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-09-26 03:05:23 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-09-26 03:05:23 +0100
commitbc9ef8effb5fec9ca32cb92dcd35672461c0153b (patch)
treeb5db7e5a5b0a9411637d49fe2089a8793152cbfd /dev-lua/luassert
parent5b14ea000f5782ac047162ffc35ef8c3c0648b4a (diff)
gentoo auto-resync : 26:09:2022 - 03:05:22
Diffstat (limited to 'dev-lua/luassert')
-rw-r--r--dev-lua/luassert/Manifest5
-rw-r--r--dev-lua/luassert/files/luassert-1.8.0-disable-highlightcolor-test.patch57
-rw-r--r--dev-lua/luassert/luassert-1.8.0-r1.ebuild56
-rw-r--r--dev-lua/luassert/luassert-1.9.0.ebuild2
4 files changed, 2 insertions, 118 deletions
diff --git a/dev-lua/luassert/Manifest b/dev-lua/luassert/Manifest
index d52ebe1fc0d7..c32a5659ccd7 100644
--- a/dev-lua/luassert/Manifest
+++ b/dev-lua/luassert/Manifest
@@ -1,6 +1,3 @@
-AUX luassert-1.8.0-disable-highlightcolor-test.patch 2931 BLAKE2B dcf614b08aa0e89404d18e9bdc77ac5b723d577b8f5694f7fded74275c8ace59e938ddd2ad46b19a9ba7d8a36886d36db384d6fb439a2cccee77cf370e711060 SHA512 0bf9b3877e78183d5db3d33acb977f64e1aa7934f313838ffb5ec9b759283b21f071c619020ca4b8ec8aa36d9ea4e8082e3510d59d800fbd82fef74e0d8b9895
-DIST luassert-1.8.0.tar.gz 38874 BLAKE2B ebc4aab1de5dc830d0b9266726ca6bf361e03000f3a8acd27c04805a6c963373755c8e163b187714f64178acc5d755c05493d745b55c785e3254dd41aa4bef31 SHA512 18b296fececa6b0d5950b2a20c4d30da3bbf9b0932c568bbb8ca212b5c82a1047b73c52ee72b4505a41a393d41dd21321189367e038dd029152d177e11bafc93
DIST luassert-1.9.0.tar.gz 42645 BLAKE2B 2541184bb5ee7a6a7e0c8e2fead8c4926a5d8384345dc173d60c9b52bb4cffe9f50e90980293465e1e5cadee337823abf77421d1cfc423eb32d9d73a7594a306 SHA512 267d31f0061376a4766c7e978bda9e4a2396c8bf959d4aaa347ad40bd286a3873441e38983e1e86ea07a1be7cf7c92d91248c4ba70d6dd4ec82f02c7f7638e9f
-EBUILD luassert-1.8.0-r1.ebuild 1008 BLAKE2B aeea15204616df45d3dd9469f59d50481ff1be4152c25d6e2f50df45ab93175d0fafe49bc2618a7e095b086b46144b513e07415d80e5e3ca3686ebf9131ed776 SHA512 49d8e2f31ccb1cd5a3ab74d3a2aa828b566f0c23fb289413de2aef0509158ad92c0fd75c1ade7494b99bb0115779f4ed359e464e507601e3499259073f7c0228
-EBUILD luassert-1.9.0.ebuild 941 BLAKE2B bf320ce8c7cd4b5d306fc6fd1df7a659004301c3f76c01c4bc98e6b4a403e132fe44c00fdc8f0f7f74729ca0b1a8bd4421c297dc43a570d5d592e565acd4bd92 SHA512 ced15e22247dab1fb37ed0877abde9b02739c4012b6670adfba37db16ae426e755d7eb1f460e712e2c0dbf260e6af8048c4a19dee6678a769efe06a74a2f7d98
+EBUILD luassert-1.9.0.ebuild 935 BLAKE2B 65f3f1880c0d8880e5ee9c7e5647a6e867301e5d5cb4a9aaf028f89f8fdc0d6f36d41823a65f2d39f1ef11eaae4de44c7739a7ab5f4eb54052da2c1ff822f396 SHA512 3514692ef366abb6f0f97d0093594d896fa512c2bf35dd4177e6fcd0d682f89af810091c7528fdcd66c45d488da04cf1989523a402ed3b0960776cebb85af6e7
MISC metadata.xml 623 BLAKE2B 314b10b15a976e5db10ce4decd9a44157dd14ee49ed61bdf3193df9317b766ef57884e1e501cd3755fba5d686d7bf2d61ee54cd0170bb5d3996e1a49b835a239 SHA512 71e94894fb184314e80af6a4e6f493712aa61f5c8a9c8aabcecd10b9b08f11dff9378d9abcbc40bd0bd9142b3777bebb3e1d896e0b05106a24aa40b83ac66d8f
diff --git a/dev-lua/luassert/files/luassert-1.8.0-disable-highlightcolor-test.patch b/dev-lua/luassert/files/luassert-1.8.0-disable-highlightcolor-test.patch
deleted file mode 100644
index fe3f7815a04e..000000000000
--- a/dev-lua/luassert/files/luassert-1.8.0-disable-highlightcolor-test.patch
+++ /dev/null
@@ -1,57 +0,0 @@
---- a/spec/formatters_spec.lua
-+++ b/spec/formatters_spec.lua
-@@ -102,18 +102,6 @@
- assert.is.equal(expected, formatted)
- end)
-
-- it("Checks to see if TableErrorHighlightColor changes error color", function()
-- local ok, colors = pcall(require, "term.colors")
-- if not ok then pending("lua term.colors not available") end
--
-- assert:set_parameter("TableErrorHighlightColor", "red")
-- local t = {1,2,3}
-- local fmtargs = { {crumbs = {2}} }
-- local formatted = assert:format({t, n = 1, fmtargs = fmtargs})[1]
-- local expected = string.format("("..tostring(t)..") {\n [1] = 1\n %s[2] = 2\n [3] = 3 }", colors.red("*"))
-- assert.is.equal(expected, formatted)
-- end)
--
- it("Checks to see if self referencing tables can be formatted", function()
- local t = {1,2}
- t[3] = t
---- a/spec/assertions_spec.lua
-+++ b/spec/assertions_spec.lua
-@@ -472,17 +472,6 @@
- assert.no_error_matches(t_ok, ".*")
- end)
-
-- it("Checks error_matches compares error strings with pattern", function()
-- assert.error_matches(function() error() end, nil)
-- assert.no_error_matches(function() end, nil)
-- assert.does_error_match(function() error(123) end, "^%d+$")
-- assert.error.matches(function() error("string") end, "^%w+$")
-- assert.matches.error(function() error("string") end, "str", nil, true)
-- assert.matches_error(function() error("123string") end, "^[^0-9]+", 4)
-- assert.has_no_error.match(function() error("123string") end, "123", 4, true)
-- assert.does_not.match_error(function() error("string") end, "^%w+$", nil, true)
-- end)
--
- it("Checks error_matches does not compare error objects", function()
- local func = function() end
- assert.no_error_matches(function() error({ "table" }) end, "table")
-@@ -557,15 +546,6 @@
- assert.is_same({}, {assert.has_no_match("%d+", "string", nil, true, "message")})
- end)
-
-- it("Checks assert.has_error returns thrown error on success", function()
-- assert.is_same({"err message", "err message"}, {assert.has_error(function() error("err message") end, "err message")})
-- assert.is_same({"err", "err"}, {assert.has_error(function() error(setmetatable({},{__tostring = function() return "err" end})) end, "err")})
-- assert.is_same({{}, {}}, {assert.has_error(function() error({}) end, {})})
-- assert.is_same({'0', 0}, {assert.has_error(function() error(0) end, 0)})
-- assert.is_same({nil, nil}, {assert.has_error(function() error(nil) end, nil)})
-- assert.is_same({nil, "string"}, {assert.has_no_error(function() end, "string")})
-- end)
--
- it("Checks assert.error_matches returns captures of thrown error on success", function()
- assert.is_same({"err", "message"}, {assert.error_matches(function() error("err message") end, "(err) (%w+)$")})
- assert.is_same({"err"}, {assert.error_matches(function() error(setmetatable({},{__tostring = function() return "err" end})) end, "err", nil, true)})
diff --git a/dev-lua/luassert/luassert-1.8.0-r1.ebuild b/dev-lua/luassert/luassert-1.8.0-r1.ebuild
deleted file mode 100644
index 9310edd6efbd..000000000000
--- a/dev-lua/luassert/luassert-1.8.0-r1.ebuild
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LUA_COMPAT=( lua5-{1..4} luajit )
-
-inherit lua
-
-DESCRIPTION="Assertion library for Lua"
-HOMEPAGE="http://olivinelabs.com/busted/"
-SRC_URI="https://github.com/Olivine-Labs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-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 )"
-
-RDEPEND="
- dev-lua/say[${LUA_USEDEP}]
- ${LUA_DEPS}
-"
-
-BDEPEND="
- virtual/pkgconfig
- test? (
- dev-lua/busted[${LUA_USEDEP}]
- dev-lua/lua_cliargs[${LUA_USEDEP}]
- ${RDEPEND}
- )
-"
-
-DEPEND="${RDEPEND}"
-
-PATCHES=( "${FILESDIR}/${PN}-1.8.0-disable-highlightcolor-test.patch" )
-
-lua_src_test() {
- busted --lua=${ELUA} || die
-}
-
-src_test() {
- lua_foreach_impl lua_src_test
-}
-
-lua_src_install() {
- insinto $(lua_get_lmod_dir)/luassert
- doins -r src/.
-
- einstalldocs
-}
-
-src_install() {
- lua_foreach_impl lua_src_install
-}
diff --git a/dev-lua/luassert/luassert-1.9.0.ebuild b/dev-lua/luassert/luassert-1.9.0.ebuild
index 3bfe540696f0..f60fbc483d39 100644
--- a/dev-lua/luassert/luassert-1.9.0.ebuild
+++ b/dev-lua/luassert/luassert-1.9.0.ebuild
@@ -13,7 +13,7 @@ SRC_URI="https://github.com/Olivine-Labs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
IUSE="test"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RESTRICT="!test? ( test )"