summaryrefslogtreecommitdiff
path: root/dev-lua/lua-argparse/lua-argparse-0.6.0.ebuild
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2020-03-15 16:29:28 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-03-15 16:29:28 -0700
commit1aa0c3663349ffe81b8fbba1b62dce68b4c56027 (patch)
tree1d8f8fd4e45b544f8949a03e513954b003f4b497 /dev-lua/lua-argparse/lua-argparse-0.6.0.ebuild
parent33350338b970a9ea1d10a4a00b9d9460ee93d83b (diff)
downloadgentoo-1aa0c3663349ffe81b8fbba1b62dce68b4c56027.tar.gz
gentoo-1aa0c3663349ffe81b8fbba1b62dce68b4c56027.tar.bz2
gentoo-1aa0c3663349ffe81b8fbba1b62dce68b4c56027.zip
dev-lua/lua-argparse: fix installation destination
Package-Manager: Portage-2.3.94, Repoman-2.3.21 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lua/lua-argparse/lua-argparse-0.6.0.ebuild')
-rw-r--r--dev-lua/lua-argparse/lua-argparse-0.6.0.ebuild53
1 files changed, 0 insertions, 53 deletions
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
-}