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/luafilesystem/
Date: Sun, 29 Nov 2020 15:37:59
Message-Id: 1606663898.0f34282df2e36d7a1f63b65ee7e4c1838e43660e.conikost@gentoo
1 commit: 0f34282df2e36d7a1f63b65ee7e4c1838e43660e
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 15:31:38 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 15:31:38 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f34282d
7
8 dev-lua/luafilesystem: 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 .../luafilesystem/luafilesystem-1.8.0-r101.ebuild | 82 ++++++++++++++++++++++
16 1 file changed, 82 insertions(+)
17
18 diff --git a/dev-lua/luafilesystem/luafilesystem-1.8.0-r101.ebuild b/dev-lua/luafilesystem/luafilesystem-1.8.0-r101.ebuild
19 new file mode 100644
20 index 00000000000..0a5ee44a7d7
21 --- /dev/null
22 +++ b/dev-lua/luafilesystem/luafilesystem-1.8.0-r101.ebuild
23 @@ -0,0 +1,82 @@
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 +
31 +inherit lua toolchain-funcs
32 +
33 +MY_PV=${PV//./_}
34 +
35 +DESCRIPTION="File System Library for the Lua programming language"
36 +HOMEPAGE="https://keplerproject.github.io/luafilesystem/"
37 +SRC_URI="https://github.com/keplerproject/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
38 +S="${WORKDIR}/${PN}-${MY_PV}"
39 +
40 +LICENSE="MIT"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
43 +IUSE="test"
44 +REQUIRED_USE="${LUA_REQUIRED_USE}"
45 +RESTRICT="!test? ( test )"
46 +
47 +RDEPEND="${LUA_DEPS}"
48 +DEPEND="${RDEPEND}"
49 +BDEPEND="
50 + virtual/pkgconfig
51 + test? ( ${RDEPEND} )
52 +"
53 +
54 +HTML_DOCS=( "doc/us/." )
55 +
56 +lua_src_prepare() {
57 + pushd "${BUILD_DIR}" || die
58 + cat > "config-${ELUA}" <<-EOF
59 + CC=$(tc-getCC)
60 + DESTDIR=${ED}
61 + CFLAGS=${CFLAGS} $(lua_get_CFLAGS) -fPIC
62 + LIB_OPTION=${LDFLAGS} -shared
63 + LUA_LIBDIR=$(lua_get_cmod_dir)
64 + EOF
65 + popd
66 +}
67 +
68 +src_prepare() {
69 + default
70 +
71 + lua_copy_sources
72 + lua_foreach_impl lua_src_prepare
73 +}
74 +
75 +lua_src_compile() {
76 + pushd "${BUILD_DIR}" || die
77 + emake CONFIG="config-${ELUA}"
78 + popd
79 +}
80 +
81 +src_compile() {
82 + lua_foreach_impl lua_src_compile
83 +}
84 +
85 +lua_src_test() {
86 + pushd "${BUILD_DIR}" || die
87 + LUA_CPATH="${BUILD_DIR}/src/?.so" ${ELUA} tests/test.lua || die
88 + popd
89 +}
90 +
91 +src_test() {
92 + lua_foreach_impl lua_src_test
93 +}
94 +
95 +lua_src_install() {
96 + pushd "${BUILD_DIR}" || die
97 + emake CONFIG="config-${ELUA}" install
98 + popd
99 +}
100 +
101 +src_install() {
102 + lua_foreach_impl lua_src_install
103 +
104 + einstalldocs
105 +}