diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2020-12-17 14:52:39 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2020-12-17 14:53:27 +0100 |
commit | fc5bbd3bc3cdf7a5bf364faa417f30e7b7478abb (patch) | |
tree | 6cea657e2da345fea5cdff93931bca1dc73706da /dev-lua | |
parent | app-i18n/transifex-client: add support for Python 3.9 (diff) | |
download | gentoo-fc5bbd3bc3cdf7a5bf364faa417f30e7b7478abb.tar.gz gentoo-fc5bbd3bc3cdf7a5bf364faa417f30e7b7478abb.tar.bz2 gentoo-fc5bbd3bc3cdf7a5bf364faa417f30e7b7478abb.zip |
Revert "dev-lua/luacheck: drop old version"
This reverts commit a69562323fe5a013355f7130a14188326e8121af.
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-lua')
-rw-r--r-- | dev-lua/luacheck/Manifest | 1 | ||||
-rw-r--r-- | dev-lua/luacheck/luacheck-0.20.0-r1.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-lua/luacheck/Manifest b/dev-lua/luacheck/Manifest index 926e7bc8573a..f22c82aeba84 100644 --- a/dev-lua/luacheck/Manifest +++ b/dev-lua/luacheck/Manifest @@ -1 +1,2 @@ +DIST luacheck-0.20.0.tar.gz 132693 BLAKE2B d485ef841c00241023a9cb9bd0e1f994da3b5e79dad01281e0203e1561f788f8d1e8db97910d3a82ab3daafb3dceef1fe2897beee9f16e71350fdff27eba7fe0 SHA512 08b1a64849b329e6ad71b1d7011fac0833de068641270adaa009e9a17139968ab73add3786a508a8787ce1fcfe1f028a35b5434221e4f1f62bea56833e0e65dd DIST luacheck-0.23.0.tar.gz 158201 BLAKE2B c0780143a335b1deb7725819dbdac03446742fd459eed5a6de0cf3de5576f3be5379ff7086348b8880eba70dd5f7a1e719e9a09fdcc70abc293e1636f575ad57 SHA512 d76e4b22f1e9d868a8531ad51fb98607e5bfb1fbbd55053105d9978ba6c0455de99202c53d4e199733ea997863b26527fb84e7e9717209fd588f1d02db9db028 diff --git a/dev-lua/luacheck/luacheck-0.20.0-r1.ebuild b/dev-lua/luacheck/luacheck-0.20.0-r1.ebuild new file mode 100644 index 000000000000..857d9ef215df --- /dev/null +++ b/dev-lua/luacheck/luacheck-0.20.0-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit 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 ppc ppc64 x86" +IUSE="doc luajit test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-lua/luafilesystem[luajit(-)=] + !luajit? ( >=dev-lang/lua-5.1:0= ) + luajit? ( dev-lang/luajit:2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( dev-python/sphinx ) + test? ( dev-lua/busted )" + +DOCS=( CHANGELOG.md README.md ) + +src_compile() { + if use doc; then + sphinx-build docsrc html || die + fi +} + +src_test() { + busted -o gtest || die +} + +src_install() { + local instdir + instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))" + insinto "${instdir#${EPREFIX}}" + doins -r src/luacheck + + newbin bin/luacheck.lua luacheck + + use doc && HTML_DOCS+=( html/. ) + + einstalldocs +} |