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