1 |
commit: d8070d3052303014b468f89f64a7338034093066 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 29 15:49:47 2020 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 29 15:49:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8070d30 |
7 |
|
8 |
dev-lua/LuaBitOp: drop old version |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
dev-lua/LuaBitOp/LuaBitOp-1.0.2-r100.ebuild | 84 ----------------------------- |
14 |
1 file changed, 84 deletions(-) |
15 |
|
16 |
diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r100.ebuild b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r100.ebuild |
17 |
deleted file mode 100644 |
18 |
index c7fc464de59..00000000000 |
19 |
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r100.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,84 +0,0 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-LUA_COMPAT=( lua5-{1..2} ) |
28 |
- |
29 |
-inherit lua multilib-minimal toolchain-funcs |
30 |
- |
31 |
-DESCRIPTION="Bit Operations Library for the Lua Programming Language" |
32 |
-HOMEPAGE="http://bitop.luajit.org" |
33 |
-SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz" |
34 |
- |
35 |
-LICENSE="MIT" |
36 |
-SLOT="0" |
37 |
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86" |
38 |
-IUSE="test" |
39 |
-REQUIRED_USE="${LUA_REQUIRED_USE}" |
40 |
-RESTRICT="!test? ( test )" |
41 |
- |
42 |
-RDEPEND="${LUA_DEPS}" |
43 |
-DEPEND="${RDEPEND}" |
44 |
-BDEPEND="virtual/pkgconfig" |
45 |
- |
46 |
-HTML_DOCS=( "doc/." ) |
47 |
- |
48 |
-src_prepare() { |
49 |
- default |
50 |
- |
51 |
- multilib_copy_sources |
52 |
-} |
53 |
- |
54 |
-lua_multilib_src_compile() { |
55 |
- # Clean project, to compile it for every lua slot |
56 |
- emake clean |
57 |
- |
58 |
- local myemakeargs=( |
59 |
- "CC=$(tc-getCC)" |
60 |
- "CCOPT=" |
61 |
- "INCLUDES=$(lua_get_CFLAGS)" |
62 |
- ) |
63 |
- |
64 |
- emake "${myemakeargs[@]}" all |
65 |
- |
66 |
- # Copy module to match the choosen LUA implementation |
67 |
- cp "bit.so" "${S}/bit-${ELUA}.so" || die |
68 |
-} |
69 |
- |
70 |
-multilib_src_compile() { |
71 |
- lua_foreach_impl lua_multilib_src_compile |
72 |
-} |
73 |
- |
74 |
-lua_multilib_src_test() { |
75 |
- local mytests=( |
76 |
- "bitbench.lua" |
77 |
- "bittest.lua" |
78 |
- "md5test.lua" |
79 |
- "nsievebits.lua" |
80 |
- ) |
81 |
- |
82 |
- for mytest in ${mytests[@]}; do |
83 |
- LUA_CPATH="${S}/bit-${ELUA}.so" ${ELUA} ${mytest} |
84 |
- done |
85 |
-} |
86 |
- |
87 |
-multilib_src_test() { |
88 |
- multilib_is_native_abi && lua_foreach_impl lua_multilib_src_test |
89 |
-} |
90 |
- |
91 |
-lua_multilib_src_install() { |
92 |
- # Use correct module for the choosen LUA implementation |
93 |
- cp "${S}/bit-${ELUA}.so" "bit.so" || die |
94 |
- |
95 |
- exeinto $(lua_get_cmod_dir) |
96 |
- doexe bit.so |
97 |
-} |
98 |
- |
99 |
-multilib_src_install() { |
100 |
- lua_foreach_impl lua_multilib_src_install |
101 |
-} |
102 |
- |
103 |
-multilib_src_install_all() { |
104 |
- einstalldocs |
105 |
-} |