1 |
commit: 6f53a8f0a00ae7b74fdccdb4ed7bf3d844036801 |
2 |
Author: Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Sep 27 19:40:05 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 27 20:30:42 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f53a8f0 |
7 |
|
8 |
dev-lua/luaposix: update to 35.1 |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/22423 |
11 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
12 |
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com> |
13 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
14 |
|
15 |
dev-lua/luaposix/Manifest | 1 + |
16 |
dev-lua/luaposix/luaposix-35.1.ebuild | 73 +++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 74 insertions(+) |
18 |
|
19 |
diff --git a/dev-lua/luaposix/Manifest b/dev-lua/luaposix/Manifest |
20 |
index eb74e269748..217c57beffb 100644 |
21 |
--- a/dev-lua/luaposix/Manifest |
22 |
+++ b/dev-lua/luaposix/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST luaposix-35.0.tar.gz 178091 BLAKE2B b2d2ca01f18f0e98b45008919fc886e05d2cad034c84e870900c33891dd5867d9bc7aa8deae06c3f3f0852db902c1e766e693162b32ed474eb710b379bf9e3ed SHA512 4bb61892b78d9e59418a9a6360b9f611fb9b5438b9261a2c6672f053a1b21dfd9a2060b8d2f0d3eac6185773cf84672c1769c081c4ab53d2ddae2232e4a9269b |
25 |
+DIST luaposix-35.1.tar.gz 180002 BLAKE2B fc48ae91c31968cb92ea9818148f135e16e2bacac10265cbfa43539c34a934c4eb636417b820ce3b0b3724fecbf27a860c6b481749d339b009fc01b6f81e6277 SHA512 f2c36bf69c0d73b4a2c6ab0915f81473addce427c22e82e2d1c334016dec7fecb4365fc980fa6adb0de21ad1a60bc75b73f58579e8a423990ad2067c9ae37775 |
26 |
|
27 |
diff --git a/dev-lua/luaposix/luaposix-35.1.ebuild b/dev-lua/luaposix/luaposix-35.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..656a22c8df1 |
30 |
--- /dev/null |
31 |
+++ b/dev-lua/luaposix/luaposix-35.1.ebuild |
32 |
@@ -0,0 +1,73 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+LUA_COMPAT=( lua5-{1..4} luajit ) |
39 |
+ |
40 |
+inherit lua toolchain-funcs |
41 |
+ |
42 |
+DESCRIPTION="Bindings for POSIX APIs" |
43 |
+HOMEPAGE="https://luaposix.github.io/luaposix/ https://github.com/luaposix/luaposix" |
44 |
+SRC_URI="https://github.com/luaposix/luaposix/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="MIT" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
49 |
+IUSE="doc" |
50 |
+REQUIRED_USE="${LUA_REQUIRED_USE}" |
51 |
+ |
52 |
+# Requires specl, which is not in the tree yet |
53 |
+RESTRICT="test" |
54 |
+ |
55 |
+DEPEND="${LUA_DEPS} |
56 |
+ virtual/libcrypt:= |
57 |
+" |
58 |
+RDEPEND="${DEPEND} |
59 |
+ lua_targets_lua5-1? ( dev-lua/lua-bit32[lua_targets_lua5-1(-)] ) |
60 |
+ lua_targets_luajit? ( dev-lua/lua-bit32[lua_targets_luajit(-)] ) |
61 |
+" |
62 |
+BDEPEND="virtual/pkgconfig" |
63 |
+ |
64 |
+src_prepare() { |
65 |
+ default |
66 |
+ lua_copy_sources |
67 |
+} |
68 |
+ |
69 |
+lua_src_compile() { |
70 |
+ pushd "${BUILD_DIR}" || die |
71 |
+ |
72 |
+ # LDOC=true means disable ldoc update documentation |
73 |
+ ./build-aux/luke --verbose package="${PN}" version="${PV}" \ |
74 |
+ LDOC=true \ |
75 |
+ PREFIX="${ED}/usr" \ |
76 |
+ INST_LIBDIR="${ED}/$(lua_get_cmod_dir)" \ |
77 |
+ INST_LUADIR="${ED}/$(lua_get_lmod_dir)" \ |
78 |
+ LUA_INCDIR="${EPREFIX}/$(lua_get_include_dir)" \ |
79 |
+ CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" CC="$(tc-getCC)" || die |
80 |
+ |
81 |
+ popd || die |
82 |
+} |
83 |
+ |
84 |
+src_compile() { |
85 |
+ lua_foreach_impl lua_src_compile |
86 |
+} |
87 |
+ |
88 |
+lua_src_install() { |
89 |
+ pushd "${BUILD_DIR}" || die |
90 |
+ |
91 |
+ ./build-aux/luke install \ |
92 |
+ LDOC=true \ |
93 |
+ PREFIX="${ED}/usr" \ |
94 |
+ INST_LIBDIR="${ED}/$(lua_get_cmod_dir)" \ |
95 |
+ INST_LUADIR="${ED}/$(lua_get_lmod_dir)" \ |
96 |
+ || die |
97 |
+ |
98 |
+ popd || die |
99 |
+} |
100 |
+ |
101 |
+src_install() { |
102 |
+ lua_foreach_impl lua_src_install |
103 |
+ dodoc {NEWS,README}.md |
104 |
+ use doc && dodoc -r doc |
105 |
+} |