From 1aa0c3663349ffe81b8fbba1b62dce68b4c56027 Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Sun, 15 Mar 2020 16:29:28 -0700 Subject: dev-lua/lua-argparse: fix installation destination Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Georgy Yakovlev --- dev-lua/lua-argparse/lua-argparse-0.6.0-r1.ebuild | 53 +++++++++++++++++++++++ dev-lua/lua-argparse/lua-argparse-0.6.0.ebuild | 53 ----------------------- 2 files changed, 53 insertions(+), 53 deletions(-) create mode 100644 dev-lua/lua-argparse/lua-argparse-0.6.0-r1.ebuild delete mode 100644 dev-lua/lua-argparse/lua-argparse-0.6.0.ebuild (limited to 'dev-lua') diff --git a/dev-lua/lua-argparse/lua-argparse-0.6.0-r1.ebuild b/dev-lua/lua-argparse/lua-argparse-0.6.0-r1.ebuild new file mode 100644 index 000000000000..daa669b32c0f --- /dev/null +++ b/dev-lua/lua-argparse/lua-argparse-0.6.0-r1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit toolchain-funcs + +DESCRIPTION="Command line argument parser for the Lua Programming Language" +HOMEPAGE="https://github.com/mpeterv/argparse" +SRC_URI="https://github.com/mpeterv/argparse/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc64" +IUSE="doc luajit test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-lang/lua-5.1:= + luajit? ( dev-lang/luajit:2 )" +BDEPEND=" + virtual/pkgconfig + doc? ( dev-python/sphinx ) + test? ( + ${RDEPEND} + dev-lua/busted + )" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN//lua-/}-${PV}" + +src_compile() { + if use doc; then + sphinx-build docsrc html || die + rm -rf "${S}"/html/{.doctrees,_sources} || die + fi +} + +src_test() { + busted -o gtest --exclude-tags="unsafe" || die +} + +src_install() { + use doc && local -a HTML_DOCS=( html/. ) + local -a DOCS=( README.md CHANGELOG.md ) + einstalldocs + + local instdir + instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))" + + insinto "${instdir#${EPREFIX}}" + doins src/argparse.lua +} diff --git a/dev-lua/lua-argparse/lua-argparse-0.6.0.ebuild b/dev-lua/lua-argparse/lua-argparse-0.6.0.ebuild deleted file mode 100644 index 11c79413cf45..000000000000 --- a/dev-lua/lua-argparse/lua-argparse-0.6.0.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit toolchain-funcs - -DESCRIPTION="Command line argument parser for the Lua Programming Language" -HOMEPAGE="https://github.com/mpeterv/argparse" -SRC_URI="https://github.com/mpeterv/argparse/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~ppc64" -IUSE="doc luajit test" - -RESTRICT="!test? ( test )" - -RDEPEND=" - >=dev-lang/lua-5.1:= - luajit? ( dev-lang/luajit:2 )" -BDEPEND=" - virtual/pkgconfig - doc? ( dev-python/sphinx ) - test? ( - ${RDEPEND} - dev-lua/busted - )" -DEPEND="${RDEPEND}" - -S="${WORKDIR}/${PN//lua-/}-${PV}" - -src_compile() { - if use doc; then - sphinx-build docsrc html || die - rm -rf "${S}"/html/{.doctrees,_sources} || die - fi -} - -src_test() { - busted -o gtest --exclude-tags="unsafe" || die -} - -src_install() { - use doc && local -a HTML_DOCS=( html/. ) - local -a DOCS=( README.md CHANGELOG.md ) - einstalldocs - - local instdir - instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"/${PN} - - insinto "${instdir#${EPREFIX}}" - doins src/argparse.lua -} -- cgit v1.2.3