Gentoo Archives: gentoo-commits

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