1 |
commit: 68076b1d9310f0680c331a1f9d611ee76988adf5 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 25 22:28:25 2022 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 25 23:11:44 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68076b1d |
7 |
|
8 |
dev-lua/luassert: drop 1.8.0-r1 |
9 |
|
10 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
11 |
|
12 |
dev-lua/luassert/Manifest | 1 - |
13 |
...uassert-1.8.0-disable-highlightcolor-test.patch | 57 ---------------------- |
14 |
dev-lua/luassert/luassert-1.8.0-r1.ebuild | 56 --------------------- |
15 |
3 files changed, 114 deletions(-) |
16 |
|
17 |
diff --git a/dev-lua/luassert/Manifest b/dev-lua/luassert/Manifest |
18 |
index c111573a5e69..eeadb92638ca 100644 |
19 |
--- a/dev-lua/luassert/Manifest |
20 |
+++ b/dev-lua/luassert/Manifest |
21 |
@@ -1,2 +1 @@ |
22 |
-DIST luassert-1.8.0.tar.gz 38874 BLAKE2B ebc4aab1de5dc830d0b9266726ca6bf361e03000f3a8acd27c04805a6c963373755c8e163b187714f64178acc5d755c05493d745b55c785e3254dd41aa4bef31 SHA512 18b296fececa6b0d5950b2a20c4d30da3bbf9b0932c568bbb8ca212b5c82a1047b73c52ee72b4505a41a393d41dd21321189367e038dd029152d177e11bafc93 |
23 |
DIST luassert-1.9.0.tar.gz 42645 BLAKE2B 2541184bb5ee7a6a7e0c8e2fead8c4926a5d8384345dc173d60c9b52bb4cffe9f50e90980293465e1e5cadee337823abf77421d1cfc423eb32d9d73a7594a306 SHA512 267d31f0061376a4766c7e978bda9e4a2396c8bf959d4aaa347ad40bd286a3873441e38983e1e86ea07a1be7cf7c92d91248c4ba70d6dd4ec82f02c7f7638e9f |
24 |
|
25 |
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 |
26 |
deleted file mode 100644 |
27 |
index fe3f7815a04e..000000000000 |
28 |
--- a/dev-lua/luassert/files/luassert-1.8.0-disable-highlightcolor-test.patch |
29 |
+++ /dev/null |
30 |
@@ -1,57 +0,0 @@ |
31 |
---- a/spec/formatters_spec.lua |
32 |
-+++ b/spec/formatters_spec.lua |
33 |
-@@ -102,18 +102,6 @@ |
34 |
- assert.is.equal(expected, formatted) |
35 |
- end) |
36 |
- |
37 |
-- it("Checks to see if TableErrorHighlightColor changes error color", function() |
38 |
-- local ok, colors = pcall(require, "term.colors") |
39 |
-- if not ok then pending("lua term.colors not available") end |
40 |
-- |
41 |
-- assert:set_parameter("TableErrorHighlightColor", "red") |
42 |
-- local t = {1,2,3} |
43 |
-- local fmtargs = { {crumbs = {2}} } |
44 |
-- local formatted = assert:format({t, n = 1, fmtargs = fmtargs})[1] |
45 |
-- local expected = string.format("("..tostring(t)..") {\n [1] = 1\n %s[2] = 2\n [3] = 3 }", colors.red("*")) |
46 |
-- assert.is.equal(expected, formatted) |
47 |
-- end) |
48 |
-- |
49 |
- it("Checks to see if self referencing tables can be formatted", function() |
50 |
- local t = {1,2} |
51 |
- t[3] = t |
52 |
---- a/spec/assertions_spec.lua |
53 |
-+++ b/spec/assertions_spec.lua |
54 |
-@@ -472,17 +472,6 @@ |
55 |
- assert.no_error_matches(t_ok, ".*") |
56 |
- end) |
57 |
- |
58 |
-- it("Checks error_matches compares error strings with pattern", function() |
59 |
-- assert.error_matches(function() error() end, nil) |
60 |
-- assert.no_error_matches(function() end, nil) |
61 |
-- assert.does_error_match(function() error(123) end, "^%d+$") |
62 |
-- assert.error.matches(function() error("string") end, "^%w+$") |
63 |
-- assert.matches.error(function() error("string") end, "str", nil, true) |
64 |
-- assert.matches_error(function() error("123string") end, "^[^0-9]+", 4) |
65 |
-- assert.has_no_error.match(function() error("123string") end, "123", 4, true) |
66 |
-- assert.does_not.match_error(function() error("string") end, "^%w+$", nil, true) |
67 |
-- end) |
68 |
-- |
69 |
- it("Checks error_matches does not compare error objects", function() |
70 |
- local func = function() end |
71 |
- assert.no_error_matches(function() error({ "table" }) end, "table") |
72 |
-@@ -557,15 +546,6 @@ |
73 |
- assert.is_same({}, {assert.has_no_match("%d+", "string", nil, true, "message")}) |
74 |
- end) |
75 |
- |
76 |
-- it("Checks assert.has_error returns thrown error on success", function() |
77 |
-- assert.is_same({"err message", "err message"}, {assert.has_error(function() error("err message") end, "err message")}) |
78 |
-- assert.is_same({"err", "err"}, {assert.has_error(function() error(setmetatable({},{__tostring = function() return "err" end})) end, "err")}) |
79 |
-- assert.is_same({{}, {}}, {assert.has_error(function() error({}) end, {})}) |
80 |
-- assert.is_same({'0', 0}, {assert.has_error(function() error(0) end, 0)}) |
81 |
-- assert.is_same({nil, nil}, {assert.has_error(function() error(nil) end, nil)}) |
82 |
-- assert.is_same({nil, "string"}, {assert.has_no_error(function() end, "string")}) |
83 |
-- end) |
84 |
-- |
85 |
- it("Checks assert.error_matches returns captures of thrown error on success", function() |
86 |
- assert.is_same({"err", "message"}, {assert.error_matches(function() error("err message") end, "(err) (%w+)$")}) |
87 |
- assert.is_same({"err"}, {assert.error_matches(function() error(setmetatable({},{__tostring = function() return "err" end})) end, "err", nil, true)}) |
88 |
|
89 |
diff --git a/dev-lua/luassert/luassert-1.8.0-r1.ebuild b/dev-lua/luassert/luassert-1.8.0-r1.ebuild |
90 |
deleted file mode 100644 |
91 |
index 9310edd6efbd..000000000000 |
92 |
--- a/dev-lua/luassert/luassert-1.8.0-r1.ebuild |
93 |
+++ /dev/null |
94 |
@@ -1,56 +0,0 @@ |
95 |
-# Copyright 1999-2022 Gentoo Authors |
96 |
-# Distributed under the terms of the GNU General Public License v2 |
97 |
- |
98 |
-EAPI=8 |
99 |
- |
100 |
-LUA_COMPAT=( lua5-{1..4} luajit ) |
101 |
- |
102 |
-inherit lua |
103 |
- |
104 |
-DESCRIPTION="Assertion library for Lua" |
105 |
-HOMEPAGE="http://olivinelabs.com/busted/" |
106 |
-SRC_URI="https://github.com/Olivine-Labs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
107 |
- |
108 |
-LICENSE="MIT" |
109 |
-SLOT="0" |
110 |
-KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86" |
111 |
-IUSE="test" |
112 |
-REQUIRED_USE="${LUA_REQUIRED_USE}" |
113 |
-RESTRICT="!test? ( test )" |
114 |
- |
115 |
-RDEPEND=" |
116 |
- dev-lua/say[${LUA_USEDEP}] |
117 |
- ${LUA_DEPS} |
118 |
-" |
119 |
- |
120 |
-BDEPEND=" |
121 |
- virtual/pkgconfig |
122 |
- test? ( |
123 |
- dev-lua/busted[${LUA_USEDEP}] |
124 |
- dev-lua/lua_cliargs[${LUA_USEDEP}] |
125 |
- ${RDEPEND} |
126 |
- ) |
127 |
-" |
128 |
- |
129 |
-DEPEND="${RDEPEND}" |
130 |
- |
131 |
-PATCHES=( "${FILESDIR}/${PN}-1.8.0-disable-highlightcolor-test.patch" ) |
132 |
- |
133 |
-lua_src_test() { |
134 |
- busted --lua=${ELUA} || die |
135 |
-} |
136 |
- |
137 |
-src_test() { |
138 |
- lua_foreach_impl lua_src_test |
139 |
-} |
140 |
- |
141 |
-lua_src_install() { |
142 |
- insinto $(lua_get_lmod_dir)/luassert |
143 |
- doins -r src/. |
144 |
- |
145 |
- einstalldocs |
146 |
-} |
147 |
- |
148 |
-src_install() { |
149 |
- lua_foreach_impl lua_src_install |
150 |
-} |