summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAric Belsito <lluixhi@gmail.com>2017-08-25 11:34:56 -0700
committerMichał Górny <mgorny@gentoo.org>2017-09-02 10:45:22 +0200
commit291aaa6f249cec26cd86c4210e0b427201234b6b (patch)
treea61502b662b7a30c2b4afb90bbfe31b8c469c3da /dev-lua
parentdev-lua/luassert: version bump to 1.7.10 (diff)
downloadgentoo-291aaa6f249cec26cd86c4210e0b427201234b6b.tar.gz
gentoo-291aaa6f249cec26cd86c4210e0b427201234b6b.tar.bz2
gentoo-291aaa6f249cec26cd86c4210e0b427201234b6b.zip
dev-lua/luacheck: new package
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/luacheck/Manifest1
-rw-r--r--dev-lua/luacheck/luacheck-0.20.0.ebuild48
-rw-r--r--dev-lua/luacheck/metadata.xml16
3 files changed, 65 insertions, 0 deletions
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 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lluixhi@gmail.com</email>
+ <name>Aric Belsito</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="luajit">Use <pkg>dev-lang/luajit</pkg> instead of
+ <pkg>dev-lang/lua</pkg></flag>
+ </use>
+</pkgmetadata>