1 |
commit: 82f2636f13ae0f8d8e073c89392b88caaa0d9781 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Nov 28 22:37:56 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 28 23:25:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82f2636f |
7 |
|
8 |
dev-lua/LuaBitOp: depend on lua-5.1 |
9 |
|
10 |
Changing RDEPEND to lua-5.1 non slotted, as we will have a new version |
11 |
in future, which will be used for slotted lua. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/739916 |
14 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
15 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
16 |
|
17 |
dev-lua/LuaBitOp/LuaBitOp-1.0.2-r2.ebuild | 44 +++++++++++++++++++++++++++++++ |
18 |
1 file changed, 44 insertions(+) |
19 |
|
20 |
diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r2.ebuild b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r2.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..67165da21a3 |
23 |
--- /dev/null |
24 |
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r2.ebuild |
25 |
@@ -0,0 +1,44 @@ |
26 |
+# Copyright 1999-2020 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI="5" |
30 |
+inherit toolchain-funcs multilib-minimal |
31 |
+ |
32 |
+DESCRIPTION="Bit Operations Library for the Lua Programming Language" |
33 |
+HOMEPAGE="http://bitop.luajit.org" |
34 |
+SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="MIT" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="amd64 arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86" |
39 |
+IUSE="" |
40 |
+ |
41 |
+RDEPEND=">=dev-lang/lua-5.1.5-r2:0[${MULTILIB_USEDEP}]" |
42 |
+DEPEND="${RDEPEND} |
43 |
+ virtual/pkgconfig" |
44 |
+ |
45 |
+src_prepare() { |
46 |
+ multilib_copy_sources |
47 |
+} |
48 |
+ |
49 |
+multilib_src_compile() |
50 |
+{ |
51 |
+ emake CC="$(tc-getCC)" INCLUDES= CCOPT= |
52 |
+} |
53 |
+ |
54 |
+multilib_src_test() { |
55 |
+ # tests use native lua interpreter |
56 |
+ multilib_is_native_abi && default |
57 |
+} |
58 |
+ |
59 |
+multilib_src_install() |
60 |
+{ |
61 |
+ local instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" |
62 |
+ exeinto "${instdir#${EPREFIX}}" |
63 |
+ doexe bit.so |
64 |
+} |
65 |
+ |
66 |
+multilib_src_install_all() { |
67 |
+ dodoc README |
68 |
+ dohtml -r doc/. |
69 |
+} |