Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/lua-term/
Date: Sun, 29 Nov 2020 15:37:57
Message-Id: 1606662944.099724ceaf973f76d87340056b53330dfe050178.conikost@gentoo
1 commit: 099724ceaf973f76d87340056b53330dfe050178
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 15:15:44 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 15:15:44 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=099724ce
7
8 dev-lua/lua-term: update lua eclass ebuild
9
10 Updated ebuild not to use multiple times clean.
11
12 Package-Manager: Portage-3.0.9, Repoman-3.0.2
13 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
14
15 dev-lua/lua-term/lua-term-0.7-r101.ebuild | 66 +++++++++++++++++++++++++++++++
16 1 file changed, 66 insertions(+)
17
18 diff --git a/dev-lua/lua-term/lua-term-0.7-r101.ebuild b/dev-lua/lua-term/lua-term-0.7-r101.ebuild
19 new file mode 100644
20 index 00000000000..d9f090f2e7e
21 --- /dev/null
22 +++ b/dev-lua/lua-term/lua-term-0.7-r101.ebuild
23 @@ -0,0 +1,66 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +LUA_COMPAT=( lua5-{1..3} luajit )
30 +MY_PV="0.07"
31 +
32 +inherit lua toolchain-funcs
33 +
34 +DESCRIPTION="Terminal operations for Lua"
35 +HOMEPAGE="https://github.com/hoelzro/lua-term"
36 +SRC_URI="https://github.com/hoelzro/lua-term/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
37 +S="${WORKDIR}/${PN}-${MY_PV}"
38 +
39 +LICENSE="MIT"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
42 +REQUIRED_USE="${LUA_REQUIRED_USE}"
43 +
44 +RDEPEND="${LUA_DEPS}"
45 +DEPEND="${RDEPEND}"
46 +BDEPEND="virtual/pkgconfig"
47 +
48 +src_prepare() {
49 + default
50 +
51 + # Respect users CFLAGS
52 + sed -e 's/-O3//g' -i Makefile
53 +
54 + lua_copy_sources
55 +}
56 +
57 +lua_src_compile() {
58 + pushd "${BUILD_DIR}" || die
59 +
60 + local myemakeargs=(
61 + "CC=$(tc-getCC)"
62 + "CFLAGS=${CFLAGS} ${LDFLAGS} $(lua_get_CFLAGS)"
63 + )
64 +
65 + emake "${myemakeargs[@]}" all
66 +
67 + popd
68 +}
69 +
70 +src_compile() {
71 + lua_foreach_impl lua_src_compile
72 +}
73 +
74 +lua_src_install() {
75 + pushd "${BUILD_DIR}" || die
76 +
77 + local myemakeargs=(
78 + LUA_LIBDIR="${ED}/$(lua_get_cmod_dir)/term"
79 + LUA_SHARE="${ED}/$(lua_get_lmod_dir)/term"
80 + )
81 +
82 + emake "${myemakeargs[@]}" install
83 +
84 + popd
85 +}
86 +
87 +src_install() {
88 + lua_foreach_impl lua_src_install
89 +}