1 |
commit: 0a7b9937e6b01e7173cf8f78142c64352e5165af |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 2 23:55:26 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 2 23:57:24 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a7b9937 |
7 |
|
8 |
dev-lua/luaposix: migrate to lua.eclass |
9 |
|
10 |
Nice and easy, upstream build scripts work very nicely with the wrapper. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/752930 |
13 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
14 |
|
15 |
dev-lua/luaposix/luaposix-35.0-r100.ebuild | 70 ++++++++++++++++++++++++++++++ |
16 |
profiles/package.mask | 1 + |
17 |
2 files changed, 71 insertions(+) |
18 |
|
19 |
diff --git a/dev-lua/luaposix/luaposix-35.0-r100.ebuild b/dev-lua/luaposix/luaposix-35.0-r100.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..7881ac5e480 |
22 |
--- /dev/null |
23 |
+++ b/dev-lua/luaposix/luaposix-35.0-r100.ebuild |
24 |
@@ -0,0 +1,70 @@ |
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..4} luajit ) |
31 |
+ |
32 |
+inherit lua toolchain-funcs |
33 |
+ |
34 |
+DESCRIPTION="Bindings for POSIX APIs" |
35 |
+HOMEPAGE="https://luaposix.github.io/luaposix/ https://github.com/luaposix/luaposix" |
36 |
+SRC_URI="https://github.com/luaposix/luaposix/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+SLOT="0" |
38 |
+LICENSE="MIT" |
39 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
40 |
+ |
41 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
42 |
+ |
43 |
+# Requires specl, which is not in the tree yet |
44 |
+RESTRICT="test" |
45 |
+ |
46 |
+DEPEND="${LUA_DEPS}" |
47 |
+RDEPEND="${DEPEND} |
48 |
+ lua_targets_lua5-1? ( dev-lua/lua-bit32[lua_targets_lua5-1(-)] ) |
49 |
+ lua_targets_luajit? ( dev-lua/lua-bit32[lua_targets_luajit(-)] )" |
50 |
+BDEPEND="virtual/pkgconfig" |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ default |
54 |
+ |
55 |
+ # Temporary fix for respect LDFLAGS (#739050) |
56 |
+ # Fixed in luke 0.2.1 |
57 |
+ sed -i -e "s:c_module,libdirs:c_module,'\$LDFLAGS',libdirs:g" \ |
58 |
+ build-aux/luke || die |
59 |
+ |
60 |
+ lua_copy_sources |
61 |
+} |
62 |
+ |
63 |
+lua_src_compile() { |
64 |
+ pushd "${BUILD_DIR}" || die |
65 |
+ |
66 |
+ ./build-aux/luke package="${PN}" version="${PV}" \ |
67 |
+ PREFIX="${ED}/usr" \ |
68 |
+ INST_LIBDIR="${ED}/$(lua_get_cmod_dir)" \ |
69 |
+ INST_LUADIR="${ED}/$(lua_get_lmod_dir)" \ |
70 |
+ CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" || die |
71 |
+ |
72 |
+ popd |
73 |
+} |
74 |
+ |
75 |
+src_compile() { |
76 |
+ lua_foreach_impl lua_src_compile |
77 |
+} |
78 |
+ |
79 |
+lua_src_install() { |
80 |
+ pushd "${BUILD_DIR}" || die |
81 |
+ |
82 |
+ ./build-aux/luke install \ |
83 |
+ PREFIX="${ED}/usr" \ |
84 |
+ INST_LIBDIR="${ED}/$(lua_get_cmod_dir)" \ |
85 |
+ INST_LUADIR="${ED}/$(lua_get_lmod_dir)" \ |
86 |
+ || die |
87 |
+ |
88 |
+ popd |
89 |
+} |
90 |
+ |
91 |
+src_install() { |
92 |
+ lua_foreach_impl lua_src_install |
93 |
+ dodoc -r doc NEWS.md README.md |
94 |
+} |
95 |
|
96 |
diff --git a/profiles/package.mask b/profiles/package.mask |
97 |
index cba2bad8489..509c9083369 100644 |
98 |
--- a/profiles/package.mask |
99 |
+++ b/profiles/package.mask |
100 |
@@ -557,6 +557,7 @@ dev-lua/luacrypto |
101 |
>=dev-lua/lualdap-1.2.5-r100 |
102 |
>=dev-lua/luajson-1.3.4 |
103 |
>=dev-lua/luaossl-20200709-r100 |
104 |
+>=dev-lua/luaposix-35.0-r100 |
105 |
>=dev-lua/luarocks-3.4.0-r100 |
106 |
>=dev-lua/luasec-0.9-r100 |
107 |
>=dev-lua/luasocket-3.0_rc1_p20200328-r100 |