diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-lua/luacheck | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-lua/luacheck')
-rw-r--r-- | dev-lua/luacheck/Manifest | 3 | ||||
-rw-r--r-- | dev-lua/luacheck/luacheck-0.20.0.ebuild | 48 | ||||
-rw-r--r-- | dev-lua/luacheck/metadata.xml | 5 |
3 files changed, 56 insertions, 0 deletions
diff --git a/dev-lua/luacheck/Manifest b/dev-lua/luacheck/Manifest new file mode 100644 index 000000000000..38c254cf485a --- /dev/null +++ b/dev-lua/luacheck/Manifest @@ -0,0 +1,3 @@ +DIST luacheck-0.20.0.tar.gz 132693 BLAKE2B d485ef841c00241023a9cb9bd0e1f994da3b5e79dad01281e0203e1561f788f8d1e8db97910d3a82ab3daafb3dceef1fe2897beee9f16e71350fdff27eba7fe0 SHA512 08b1a64849b329e6ad71b1d7011fac0833de068641270adaa009e9a17139968ab73add3786a508a8787ce1fcfe1f028a35b5434221e4f1f62bea56833e0e65dd +EBUILD luacheck-0.20.0.ebuild 1034 BLAKE2B ef1d0350af38e755a25219018074d8a1526550cc0c9ecaabaaea814a18f357efb09bee1ed8fc10fbf2696a619ca5cb051918ae513dd11cb7b0c96558041b187c SHA512 004a8a8c6fa13dffce97b33e0a6eeae7de2a75b76ea14465d3f7e381b49a104ce41f2a9b40446bd9314d3fbb779285ee07fe1deac99d9271ebe976df56275b31 +MISC metadata.xml 168 BLAKE2B 95e3160d1d6abb3e5510581fe45ddcd9ad526f89bbc0d3ad226e2782d148a0c71e50426809a87fb45e6fc9356e597a1d271002764caebc79be8846301eb82d5e SHA512 5edd6cda32972ff5e53cf5f883928bd1887b4a45572657f99101284a909ea04ff906b8f4068d247d1b3367bde813dbb37ba11565aaff880d9b500685b0f5a33d 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..f4df09eefbb1 --- /dev/null +++ b/dev-lua/luacheck/luacheck-0.20.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 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 ~arm ~ppc ~ppc64 ~x86" +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..585b0dc75dda --- /dev/null +++ b/dev-lua/luacheck/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + </pkgmetadata> |