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: Mon, 11 Oct 2021 18:22:49
Message-Id: 1633976555.f2d6b0683ab150dbc6ef3074a599be8b70f99a3b.conikost@gentoo
1 commit: f2d6b0683ab150dbc6ef3074a599be8b70f99a3b
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 11 18:22:21 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 11 18:22:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2d6b068
7
8 dev-lua/LuaBitOp: drop old version
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild | 95 -----------------------------
14 1 file changed, 95 deletions(-)
15
16 diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
17 deleted file mode 100644
18 index 11bcdb422dd..00000000000
19 --- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
20 +++ /dev/null
21 @@ -1,95 +0,0 @@
22 -# Copyright 1999-2021 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} luajit )
28 -
29 -inherit flag-o-matic lua 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="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~x64-macos"
38 -REQUIRED_USE="${LUA_REQUIRED_USE}"
39 -
40 -RDEPEND="${LUA_DEPS}"
41 -DEPEND="${RDEPEND}"
42 -BDEPEND="virtual/pkgconfig"
43 -
44 -HTML_DOCS=( "doc/." )
45 -
46 -src_prepare() {
47 - default
48 -
49 - lua_copy_sources
50 -}
51 -
52 -lua_src_compile() {
53 - pushd "${BUILD_DIR}" || die
54 -
55 - local myemakeargs=(
56 - "CC=$(tc-getCC)"
57 - "CCOPT="
58 - "INCLUDES=$(lua_get_CFLAGS)"
59 - )
60 -
61 - emake "${myemakeargs[@]}" all
62 -
63 - popd
64 -}
65 -
66 -src_compile() {
67 - if [[ $CHOST == *-darwin* ]] ; then
68 - append-ldflags "-undefined dynamic_lookup"
69 - fi
70 - lua_foreach_impl lua_src_compile
71 -}
72 -
73 -lua_src_test() {
74 - pushd "${BUILD_DIR}" || die
75 -
76 - local mytests=(
77 - "bitbench.lua"
78 - "bittest.lua"
79 - "md5test.lua"
80 - "nsievebits.lua"
81 - )
82 -
83 - for mytest in ${mytests[@]}; do
84 - LUA_CPATH="./?.so" ${ELUA} ${mytest}
85 - done
86 -
87 - popd
88 -}
89 -
90 -src_test() {
91 - lua_foreach_impl lua_src_test
92 -}
93 -
94 -lua_src_install() {
95 - pushd "${BUILD_DIR}" || die
96 -
97 - mycmoddir="$(lua_get_cmod_dir)"
98 - exeinto "${mycmoddir#$EPREFIX}"
99 - doexe bit.so
100 -
101 - popd
102 -
103 - if [[ ${CHOST} == *-darwin* ]] ; then
104 - local luav=$(lua_get_version)
105 - # we only want the major version (e.g. 5.1)
106 - local luamv=${luav:0:3}
107 - local file="lua/${luamv}/bit.so"
108 - install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${file}" "${ED}/usr/$(get_libdir)/${file}" || die "Failed to adjust install_name"
109 - fi
110 -}
111 -
112 -src_install() {
113 - lua_foreach_impl lua_src_install
114 -
115 - einstalldocs
116 -}