summaryrefslogtreecommitdiff
path: root/dev-lua/luacheck
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2020-11-29 05:21:22 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2020-11-29 05:21:22 +0000
commita57f88110bcc0b8cc033205b9f46e6ad733df73a (patch)
tree4f6ed3c0c2b9509a9f02580a39eb1505b8d793c9 /dev-lua/luacheck
parentff1b595d818530fb7640152e423f97327cb7a371 (diff)
downloadbaldeagleos-repo-a57f88110bcc0b8cc033205b9f46e6ad733df73a.tar.gz
baldeagleos-repo-a57f88110bcc0b8cc033205b9f46e6ad733df73a.tar.xz
baldeagleos-repo-a57f88110bcc0b8cc033205b9f46e6ad733df73a.zip
Updating liguros repo
Diffstat (limited to 'dev-lua/luacheck')
-rw-r--r--dev-lua/luacheck/files/luacheck-0.23.0-disable-measuring-performance-test.patch13
-rw-r--r--dev-lua/luacheck/luacheck-0.20.0-r1.ebuild (renamed from dev-lua/luacheck/luacheck-0.20.0.ebuild)4
-rw-r--r--dev-lua/luacheck/luacheck-0.23.0-r1.ebuild (renamed from dev-lua/luacheck/luacheck-0.23.0.ebuild)6
-rw-r--r--dev-lua/luacheck/luacheck-0.23.0-r100.ebuild65
-rw-r--r--dev-lua/luacheck/metadata.xml4
5 files changed, 88 insertions, 4 deletions
diff --git a/dev-lua/luacheck/files/luacheck-0.23.0-disable-measuring-performance-test.patch b/dev-lua/luacheck/files/luacheck-0.23.0-disable-measuring-performance-test.patch
new file mode 100644
index 000000000000..04d40ec958b6
--- /dev/null
+++ b/dev-lua/luacheck/files/luacheck-0.23.0-disable-measuring-performance-test.patch
@@ -0,0 +1,13 @@
+--- a/spec/cli_spec.lua
++++ b/spec/cli_spec.lua
+@@ -68,10 +68,6 @@
+ assert.equal(0, get_exitcode "spec/samples/good_code.lua --no-config")
+ end)
+
+- it("allows measuring performance", function()
+- assert.equal(0, get_exitcode "spec/samples/good_code.lua --no-config --profile")
+- end)
+-
+ it("removes ./ in the beginnings of file names", function()
+ assert.equal([[
+ Checking spec/samples/good_code.lua OK
diff --git a/dev-lua/luacheck/luacheck-0.20.0.ebuild b/dev-lua/luacheck/luacheck-0.20.0-r1.ebuild
index 070046152a0c..01238064b628 100644
--- a/dev-lua/luacheck/luacheck-0.20.0.ebuild
+++ b/dev-lua/luacheck/luacheck-0.20.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -15,7 +15,7 @@ IUSE="doc luajit test"
RESTRICT="!test? ( test )"
RDEPEND="
- dev-lua/luafilesystem[luajit=]
+ dev-lua/luafilesystem[luajit(-)=]
!luajit? ( >=dev-lang/lua-5.1:= )
luajit? ( dev-lang/luajit:2 )"
DEPEND="${RDEPEND}
diff --git a/dev-lua/luacheck/luacheck-0.23.0.ebuild b/dev-lua/luacheck/luacheck-0.23.0-r1.ebuild
index bfdbe93ecb29..47d0aed6d004 100644
--- a/dev-lua/luacheck/luacheck-0.23.0.ebuild
+++ b/dev-lua/luacheck/luacheck-0.23.0-r1.ebuild
@@ -15,9 +15,9 @@ IUSE="doc luajit test"
RESTRICT="!test? ( test )"
RDEPEND="
- dev-lua/lua-argparse[luajit=]
+ dev-lua/lua-argparse[luajit(-)=]
dev-lua/luafilesystem[luajit(-)=]
- dev-lua/lua-utf8[luajit=]
+ dev-lua/lua-utf8[luajit(-)=]
!luajit? ( >=dev-lang/lua-5.1:= )
luajit? ( dev-lang/luajit:2 )"
BDEPEND="
@@ -29,6 +29,8 @@ BDEPEND="
)"
DEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}/${PN}-0.23.0-disable-measuring-performance-test.patch" )
+
src_compile() {
if use doc; then
sphinx-build docsrc html || die
diff --git a/dev-lua/luacheck/luacheck-0.23.0-r100.ebuild b/dev-lua/luacheck/luacheck-0.23.0-r100.ebuild
new file mode 100644
index 000000000000..995faeb6e699
--- /dev/null
+++ b/dev-lua/luacheck/luacheck-0.23.0-r100.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..3} luajit )
+
+inherit lua toolchain-funcs
+
+DESCRIPTION="A tool for linting and static analysis of Lua code"
+HOMEPAGE="https://github.com/mpeterv/luacheck"
+SRC_URI="https://github.com/mpeterv/luacheck/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-lua/lua-argparse-0.6.0-r100[${LUA_USEDEP}]
+ >=dev-lua/lua-utf8-0.1.3-r100[${LUA_USEDEP}]
+ >=dev-lua/luafilesystem-1.8.0-r100[${LUA_USEDEP}]
+"
+
+DEPEND="${RDEPEND}"
+
+BDEPEND="
+ virtual/pkgconfig
+ doc? ( dev-python/sphinx )
+ test? (
+ >=dev-lua/busted-2.0.0-r100[${LUA_USEDEP}]
+ ${RDEPEND}
+ )
+"
+
+PATCHES=( "${FILESDIR}/${PN}-0.23.0-disable-measuring-performance-test.patch" )
+
+src_compile() {
+ if use doc; then
+ sphinx-build docsrc html || die
+ fi
+}
+
+lua_src_test() {
+ busted --lua=${ELUA} || die
+}
+
+src_test() {
+ lua_foreach_impl lua_src_test
+}
+
+lua_src_install() {
+ insinto "$(lua_get_lmod_dir)"
+ doins -r src/luacheck
+}
+
+src_install() {
+ lua_foreach_impl lua_src_install
+
+ newbin bin/luacheck.lua luacheck
+
+ use doc && local -a HTML_DOCS=( "html/." )
+ einstalldocs
+}
diff --git a/dev-lua/luacheck/metadata.xml b/dev-lua/luacheck/metadata.xml
index 3c492bf4b114..425ef895e484 100644
--- a/dev-lua/luacheck/metadata.xml
+++ b/dev-lua/luacheck/metadata.xml
@@ -2,6 +2,10 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
+ <email>conikost@gentoo.org</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <maintainer type="person">
<email>vpayno+gentoo@gmail.com</email>
<name>Victor Payno</name>
</maintainer>