blob: c68250b22759dedc826deeb1e7591b4b4e806fd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="Penlight"
inherit toolchain-funcs
DESCRIPTION="Lua utility libraries loosely based on the Python standard libraries"
HOMEPAGE="https://github.com/Tieske/Penlight"
SRC_URI="https://github.com/Tieske/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
DEPEND=">=dev-lang/lua-5.1:0="
RDEPEND="
dev-lua/luafilesystem
${DEPEND}
"
BDEPEND="
virtual/pkgconfig
test? ( ${DEPEND} )
"
HTML_DOCS=( "docs/." )
src_prepare() {
default
# This is a demo app, not a real test
rm tests/test-app.lua || die
# Remove test for executing a non-existent command
sed -e '/most-likely-nonexistent-command/d' -i tests/test-utils3.lua || die
}
src_test() {
lua run.lua || die
}
src_install() {
insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"
doins -r lua/pl
einstalldocs
}
|