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/luasystem/
Date: Sun, 29 Nov 2020 15:37:59
Message-Id: 1606663646.dd3819e2de90c535a3cd97b8950cd630722ac490.conikost@gentoo
1 commit: dd3819e2de90c535a3cd97b8950cd630722ac490
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 15:27:26 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 15:27:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd3819e2
7
8 dev-lua/luasystem: 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/luasystem/luasystem-0.2.1_p0-r101.ebuild | 84 ------------------------
14 1 file changed, 84 deletions(-)
15
16 diff --git a/dev-lua/luasystem/luasystem-0.2.1_p0-r101.ebuild b/dev-lua/luasystem/luasystem-0.2.1_p0-r101.ebuild
17 deleted file mode 100644
18 index cbc542df1f3..00000000000
19 --- a/dev-lua/luasystem/luasystem-0.2.1_p0-r101.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..3} luajit )
28 -MY_PV="${PV/_p/-}"
29 -
30 -inherit lua toolchain-funcs
31 -
32 -DESCRIPTION="Platform independent system calls for Lua"
33 -HOMEPAGE="https://github.com/o-lim/luasystem/"
34 -SRC_URI="https://github.com/o-lim/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
35 -S="${WORKDIR}/${PN}-${MY_PV}"
36 -
37 -LICENSE="MIT"
38 -SLOT="0"
39 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
40 -IUSE="test"
41 -RESTRICT="!test? ( test )"
42 -
43 -RDEPEND="${LUA_DEPS}"
44 -DEPEND="${RDEPEND}"
45 -BDEPEND="
46 - virtual/pkgconfig
47 - test? (
48 - >=dev-lua/busted-2.0.0-r100[${LUA_USEDEP}]
49 - ${RDEPEND}
50 - )
51 -"
52 -
53 -PATCHES=( "${FILESDIR}"/${P}-fix-makefile.patch )
54 -
55 -lua_src_test() {
56 - busted --lua=${ELUA} || die
57 -}
58 -
59 -src_test() {
60 - lua_foreach_impl lua_src_test
61 -}
62 -
63 -lua_src_compile() {
64 - # Clean project, to compile it for every lua slot
65 - emake clean
66 -
67 - local myemakeargs=(
68 - "CC=$(tc-getCC)"
69 - "LD=$(tc-getCC)"
70 - "LUAINC_linux=$(lua_get_include_dir)"
71 - "MYCFLAGS=${CFLAGS}"
72 - "MYLDFLAGS=${LDFLAGS}"
73 - )
74 -
75 - emake "${myemakeargs[@]}" linux
76 -
77 - # Copy module to match the choosen LUA implementation
78 - cp "src/core.so" "src/core-${ELUA}.so" || die
79 -}
80 -
81 -src_compile() {
82 - lua_foreach_impl lua_src_compile
83 -}
84 -
85 -lua_src_install () {
86 - # Use correct module for the choosen LUA implementation
87 - cp "src/core-${ELUA}.so" "src/core.so" || die
88 -
89 - local emakeargs=(
90 - "INSTALL_TOP_CDIR=${ED}/$(lua_get_cmod_dir)"
91 - "INSTALL_TOP_LDIR=${ED}/$(lua_get_lmod_dir)"
92 - "LUA_INC=${ED}/$(lua_get_include_dir)"
93 - )
94 -
95 - emake "${emakeargs[@]}" install
96 -
97 - insinto $(lua_get_lmod_dir)/system
98 - doins system/init.lua
99 -}
100 -
101 -src_install() {
102 - lua_foreach_impl lua_src_install
103 -
104 - einstalldocs
105 -}