From 291aaa6f249cec26cd86c4210e0b427201234b6b Mon Sep 17 00:00:00 2001 From: Aric Belsito Date: Fri, 25 Aug 2017 11:34:56 -0700 Subject: dev-lua/luacheck: new package --- dev-lua/luacheck/Manifest | 1 + dev-lua/luacheck/luacheck-0.20.0.ebuild | 48 +++++++++++++++++++++++++++++++++ dev-lua/luacheck/metadata.xml | 16 +++++++++++ 3 files changed, 65 insertions(+) create mode 100644 dev-lua/luacheck/Manifest create mode 100644 dev-lua/luacheck/luacheck-0.20.0.ebuild create mode 100644 dev-lua/luacheck/metadata.xml (limited to 'dev-lua') diff --git a/dev-lua/luacheck/Manifest b/dev-lua/luacheck/Manifest new file mode 100644 index 000000000000..b9eb0875102f --- /dev/null +++ b/dev-lua/luacheck/Manifest @@ -0,0 +1 @@ +DIST luacheck-0.20.0.tar.gz 132693 SHA256 9ae04c3bc015493c98f3ebb8de8c06a26abb7f3dfa8732c5f741a54771613219 SHA512 08b1a64849b329e6ad71b1d7011fac0833de068641270adaa009e9a17139968ab73add3786a508a8787ce1fcfe1f028a35b5434221e4f1f62bea56833e0e65dd WHIRLPOOL 2e35598cff84c805e4595b229111a3cf01156a46be91092174963ec47336c6c2c78d3c12562a99565dd7ba1f9a25cc396047b3bce1dc1639153a052b3d3513df diff --git a/dev-lua/luacheck/luacheck-0.20.0.ebuild b/dev-lua/luacheck/luacheck-0.20.0.ebuild new file mode 100644 index 000000000000..b45c1fc3ae27 --- /dev/null +++ b/dev-lua/luacheck/luacheck-0.20.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2017 Gentoo Foundation +# 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" +IUSE="doc luajit test" + +RDEPEND=" + dev-lua/luafilesystem[luajit=] + !luajit? ( >=dev-lang/lua-5.1:= ) + 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 +} diff --git a/dev-lua/luacheck/metadata.xml b/dev-lua/luacheck/metadata.xml new file mode 100644 index 000000000000..b79aded448ba --- /dev/null +++ b/dev-lua/luacheck/metadata.xml @@ -0,0 +1,16 @@ + + + + + lluixhi@gmail.com + Aric Belsito + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Use dev-lang/luajit instead of + dev-lang/lua + + -- cgit v1.2.3-65-gdbad