Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/luacheck/
Date: Sun, 29 Nov 2020 01:33:07
Message-Id: 1606613546.4c2c94561492bba0f711f1f89eac5c173e8390fe.conikost@gentoo
1 commit: 4c2c94561492bba0f711f1f89eac5c173e8390fe
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 01:30:39 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 01:32:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c2c9456
7
8 dev-lua/luacheck: update deps
9
10 Package-Manager: Portage-3.0.9, Repoman-3.0.2
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 dev-lua/luacheck/luacheck-0.20.0-r1.ebuild | 49 ++++++++++++++++++++++++++++++
14 1 file changed, 49 insertions(+)
15
16 diff --git a/dev-lua/luacheck/luacheck-0.20.0-r1.ebuild b/dev-lua/luacheck/luacheck-0.20.0-r1.ebuild
17 new file mode 100644
18 index 00000000000..01238064b62
19 --- /dev/null
20 +++ b/dev-lua/luacheck/luacheck-0.20.0-r1.ebuild
21 @@ -0,0 +1,49 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +inherit toolchain-funcs
27 +
28 +DESCRIPTION="A tool for linting and static analysis of Lua code"
29 +HOMEPAGE="https://github.com/mpeterv/luacheck"
30 +SRC_URI="https://github.com/mpeterv/luacheck/archive/${PV}.tar.gz -> ${P}.tar.gz"
31 +
32 +LICENSE="MIT"
33 +SLOT="0"
34 +KEYWORDS="amd64 arm ppc ppc64 x86"
35 +IUSE="doc luajit test"
36 +RESTRICT="!test? ( test )"
37 +
38 +RDEPEND="
39 + dev-lua/luafilesystem[luajit(-)=]
40 + !luajit? ( >=dev-lang/lua-5.1:= )
41 + luajit? ( dev-lang/luajit:2 )"
42 +DEPEND="${RDEPEND}
43 + virtual/pkgconfig
44 + doc? ( dev-python/sphinx )
45 + test? ( dev-lua/busted )"
46 +
47 +DOCS=( CHANGELOG.md README.md )
48 +
49 +src_compile() {
50 + if use doc; then
51 + sphinx-build docsrc html || die
52 + fi
53 +}
54 +
55 +src_test() {
56 + busted -o gtest || die
57 +}
58 +
59 +src_install() {
60 + local instdir
61 + instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
62 + insinto "${instdir#${EPREFIX}}"
63 + doins -r src/luacheck
64 +
65 + newbin bin/luacheck.lua luacheck
66 +
67 + use doc && HTML_DOCS+=( html/. )
68 +
69 + einstalldocs
70 +}