1 |
commit: 714cf5b1ea59db1e077e8ac9f6fa591b168a469a |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 18 13:11:59 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 18 13:11:59 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=714cf5b1 |
7 |
|
8 |
dev-lua/lua-bit32: bump to newest version |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
dev-lua/lua-bit32/Manifest | 1 + |
14 |
dev-lua/lua-bit32/lua-bit32-5.3.5-r2.ebuild | 49 +++++++++++++++++++++++++++++ |
15 |
2 files changed, 50 insertions(+) |
16 |
|
17 |
diff --git a/dev-lua/lua-bit32/Manifest b/dev-lua/lua-bit32/Manifest |
18 |
index e2a2c4db2bf..ff46965f4b2 100644 |
19 |
--- a/dev-lua/lua-bit32/Manifest |
20 |
+++ b/dev-lua/lua-bit32/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST lua-compat53-0.10.tar.gz 53695 BLAKE2B e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191 SHA512 f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d |
23 |
DIST lua-compat53-0.9.tar.gz 53599 BLAKE2B 7d9efe0afb49c40a68b1d6c28f975080b3331e07d0aa788e0f1f77d5c360504a5cac9cca4e6074b2c64aa7ad8934df3fe2609ff8009db52b046b2f639b670213 SHA512 bec15b6e95cb5cc775785515eba1f094e453059a0ba1eefa433d328b823378b7f48d9c7a34080ad77478cffb2008bead93418f809793afa6021e6046562acc58 |
24 |
|
25 |
diff --git a/dev-lua/lua-bit32/lua-bit32-5.3.5-r2.ebuild b/dev-lua/lua-bit32/lua-bit32-5.3.5-r2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..9004734fa97 |
28 |
--- /dev/null |
29 |
+++ b/dev-lua/lua-bit32/lua-bit32-5.3.5-r2.ebuild |
30 |
@@ -0,0 +1,49 @@ |
31 |
+# Copyright 2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit toolchain-funcs |
37 |
+ |
38 |
+# Weird upstream version descisions... |
39 |
+# Result tarball may be reused for future lua-compat53 package |
40 |
+LUA_COMPAT_PN="lua-compat-5.3" |
41 |
+LUA_COMPAT_PV="0.10" |
42 |
+ |
43 |
+DESCRIPTION="Backported Lua bit manipulation library" |
44 |
+HOMEPAGE="https://github.com/keplerproject/lua-compat-5.3" |
45 |
+SRC_URI="https://github.com/keplerproject/${LUA_COMPAT_PN}/archive/v${LUA_COMPAT_PV}.tar.gz -> lua-compat53-${LUA_COMPAT_PV}.tar.gz" |
46 |
+ |
47 |
+S="${WORKDIR}/${LUA_COMPAT_PN}-${LUA_COMPAT_PV}" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" |
52 |
+IUSE="test" |
53 |
+ |
54 |
+RESTRICT="!test? ( test )" |
55 |
+ |
56 |
+DEPEND="dev-lang/lua:0=" |
57 |
+RDEPEND="${DEPEND}" |
58 |
+BDEPEND="virtual/pkgconfig" |
59 |
+ |
60 |
+src_compile() { |
61 |
+ # TODO maybe sometime there will be luarocks eclass... |
62 |
+ compile="$(tc-getCC) ${CFLAGS} ${LDFLAGS} -fPIC -I/usr/include -c lbitlib.c -o lbitlib.o -DLUA_COMPAT_BITLIB -Ic-api" |
63 |
+ einfo "${compile}" |
64 |
+ eval "${compile}" || die |
65 |
+ |
66 |
+ link="$(tc-getCC) -shared ${LDFLAGS} -o bit32.so lbitlib.o" |
67 |
+ einfo "${link}" |
68 |
+ eval "${link}" || die |
69 |
+} |
70 |
+ |
71 |
+src_test() { |
72 |
+ LUA_CPATH=./?.so lua tests/test-bit32.lua || die |
73 |
+} |
74 |
+ |
75 |
+src_install() { |
76 |
+ exeinto $($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua) |
77 |
+ doexe bit32.so |
78 |
+ dodoc README.md |
79 |
+} |