diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-lua/luacheck |
reinit the tree, so we can have metadata
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 | 16 |
3 files changed, 67 insertions, 0 deletions
diff --git a/dev-lua/luacheck/Manifest b/dev-lua/luacheck/Manifest new file mode 100644 index 000000000000..be2586cda95b --- /dev/null +++ b/dev-lua/luacheck/Manifest @@ -0,0 +1,3 @@ +DIST luacheck-0.20.0.tar.gz 132693 SHA256 9ae04c3bc015493c98f3ebb8de8c06a26abb7f3dfa8732c5f741a54771613219 SHA512 08b1a64849b329e6ad71b1d7011fac0833de068641270adaa009e9a17139968ab73add3786a508a8787ce1fcfe1f028a35b5434221e4f1f62bea56833e0e65dd WHIRLPOOL 2e35598cff84c805e4595b229111a3cf01156a46be91092174963ec47336c6c2c78d3c12562a99565dd7ba1f9a25cc396047b3bce1dc1639153a052b3d3513df +EBUILD luacheck-0.20.0.ebuild 1013 SHA256 8d464c97ec28b05b54290631677ee4bbd7965ac82049808e880d034926e74af7 SHA512 84945736bf149dbb98a22e32948a997aa2934d749ecab521c6cc91c3829ff352870283d7274e8e12011d685766218bc55b1731b4f2028f211964b63c5da40e68 WHIRLPOOL 3317c9640f796fe3d1a6a0327dcd8c014ae66bbecfc0759b15e7ece57af59d8e009888509d343c4b05d7052f6e7762fba81cb53e2781b53faed6d9bce2a168a1 +MISC metadata.xml 475 SHA256 b80370f7faa890244120831f3780ab374b1ac53d5ef03c1ea5a22fcd636986cc SHA512 b5aae02046cc8ed7fd2d406a68f8d4b5a2884684563992a91e8659150309617a9841f240e2727c89bdd571a4c2bffd66e1affdd2d56cb1e8dd823ae52497f76c WHIRLPOOL 9e8994a343eff526b87ba610f6b730e96f4ad05b08d7c72a7305d3ebd9b59d73cfed664845e87b37ce6e69fc6659369da38d4eb45ce32573a862d8def161108c 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> |