1 |
commit: 798995d092765da59dbe28edd90561368afcc1bb |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 28 16:06:09 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 16:16:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=798995d0 |
7 |
|
8 |
dev-lua/lua-term: migrate to lua eclass |
9 |
|
10 |
Closes: https://bugs.gentoo.org/752624 |
11 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
dev-lua/lua-term/lua-term-0.7-r100.ebuild | 66 +++++++++++++++++++++++++++++++ |
15 |
dev-lua/lua-term/metadata.xml | 4 ++ |
16 |
profiles/package.mask | 1 + |
17 |
3 files changed, 71 insertions(+) |
18 |
|
19 |
diff --git a/dev-lua/lua-term/lua-term-0.7-r100.ebuild b/dev-lua/lua-term/lua-term-0.7-r100.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..5ced1bbb4f1 |
22 |
--- /dev/null |
23 |
+++ b/dev-lua/lua-term/lua-term-0.7-r100.ebuild |
24 |
@@ -0,0 +1,66 @@ |
25 |
+# Copyright 1999-2020 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+LUA_COMPAT=( lua5-{1..3} luajit ) |
31 |
+MY_PV="0.07" |
32 |
+MY_PV_SO="1.0.1" |
33 |
+ |
34 |
+inherit lua toolchain-funcs |
35 |
+ |
36 |
+DESCRIPTION="Terminal operations for Lua" |
37 |
+HOMEPAGE="https://github.com/hoelzro/lua-term" |
38 |
+SRC_URI="https://github.com/hoelzro/lua-term/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" |
39 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
40 |
+ |
41 |
+LICENSE="MIT" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
44 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
45 |
+ |
46 |
+RDEPEND="${LUA_DEPS}" |
47 |
+DEPEND="${RDEPEND}" |
48 |
+BDEPEND="virtual/pkgconfig" |
49 |
+ |
50 |
+src_prepare() { |
51 |
+ default |
52 |
+ |
53 |
+ # Respect users CFLAGS |
54 |
+ sed -e 's/-O3//g' -i Makefile |
55 |
+} |
56 |
+ |
57 |
+lua_src_compile() { |
58 |
+ # Clean project to compile it for every lua slot |
59 |
+ emake clean |
60 |
+ |
61 |
+ local myemakeargs=( |
62 |
+ "CC=$(tc-getCC)" |
63 |
+ "CFLAGS=${CFLAGS} ${LDFLAGS} $(lua_get_CFLAGS)" |
64 |
+ ) |
65 |
+ |
66 |
+ emake "${myemakeargs[@]}" all |
67 |
+ |
68 |
+ # Copy module to match the choosen LUA implementation |
69 |
+ cp "core.so.${MY_PV_SO}" "core-${ELUA}.so.${MY_PV_SO}" || die |
70 |
+} |
71 |
+ |
72 |
+src_compile() { |
73 |
+ lua_foreach_impl lua_src_compile |
74 |
+} |
75 |
+ |
76 |
+lua_src_install() { |
77 |
+ # Use correct module for the choosen LUA implementation |
78 |
+ cp "core-${ELUA}.so.${MY_PV_SO}" "core.so.${MY_PV_SO}" || die |
79 |
+ |
80 |
+ local myemakeargs=( |
81 |
+ LUA_LIBDIR="${ED}/$(lua_get_cmod_dir)/term" |
82 |
+ LUA_SHARE="${ED}/$(lua_get_lmod_dir)/term" |
83 |
+ ) |
84 |
+ |
85 |
+ emake "${myemakeargs[@]}" install |
86 |
+} |
87 |
+ |
88 |
+src_install() { |
89 |
+ lua_foreach_impl lua_src_install |
90 |
+} |
91 |
|
92 |
diff --git a/dev-lua/lua-term/metadata.xml b/dev-lua/lua-term/metadata.xml |
93 |
index cd082b51556..a0fd1bd9d69 100644 |
94 |
--- a/dev-lua/lua-term/metadata.xml |
95 |
+++ b/dev-lua/lua-term/metadata.xml |
96 |
@@ -5,6 +5,10 @@ |
97 |
<email>williamh@g.o</email> |
98 |
<name>William Hubbs</name> |
99 |
</maintainer> |
100 |
+ <maintainer type="person"> |
101 |
+ <email>conikost@g.o</email> |
102 |
+ <name>Conrad Kostecki</name> |
103 |
+ </maintainer> |
104 |
<upstream> |
105 |
<remote-id type="github">hoelzro/lua-term</remote-id> |
106 |
</upstream> |
107 |
|
108 |
diff --git a/profiles/package.mask b/profiles/package.mask |
109 |
index 5a1c0da8b6d..3c83c651669 100644 |
110 |
--- a/profiles/package.mask |
111 |
+++ b/profiles/package.mask |
112 |
@@ -508,6 +508,7 @@ dev-lua/luacrypto |
113 |
=dev-lua/luaexpat-1.3.0-r100 |
114 |
=dev-lua/luaexpat-1.3.3-r100 |
115 |
>=dev-lua/lua_cliargs-3.0_p2-r100 |
116 |
+>=dev-lua/lua-term-0.7-r100 |
117 |
>=dev-lua/luafilesystem-1.8.0-r100 |
118 |
>=dev-lua/luasec-0.9-r100 |
119 |
>=dev-lua/luasocket-3.0_rc1_p20200328-r100 |