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/lpeg/
Date: Sun, 29 Nov 2020 15:37:59
Message-Id: 1606664189.8150f08e78573d2f8c87426bd879e61a553f488f.conikost@gentoo
1 commit: 8150f08e78573d2f8c87426bd879e61a553f488f
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 15:36:29 2020 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 15:36:29 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8150f08e
7
8 dev-lua/lpeg: 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/lpeg/lpeg-1.0.2-r100.ebuild | 77 -------------------------------------
14 1 file changed, 77 deletions(-)
15
16 diff --git a/dev-lua/lpeg/lpeg-1.0.2-r100.ebuild b/dev-lua/lpeg/lpeg-1.0.2-r100.ebuild
17 deleted file mode 100644
18 index a6d27c94e39..00000000000
19 --- a/dev-lua/lpeg/lpeg-1.0.2-r100.ebuild
20 +++ /dev/null
21 @@ -1,77 +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 -
29 -inherit lua flag-o-matic toolchain-funcs
30 -
31 -DESCRIPTION="Parsing Expression Grammars for Lua"
32 -HOMEPAGE="http://www.inf.puc-rio.br/~roberto/lpeg/"
33 -SRC_URI="http://www.inf.puc-rio.br/~roberto/${PN}/${P}.tar.gz"
34 -
35 -LICENSE="MIT"
36 -SLOT="0"
37 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
38 -IUSE="debug test"
39 -REQUIRED_USE="${LUA_REQUIRED_USE}"
40 -RESTRICT="!test? ( test )"
41 -
42 -RDEPEND="${LUA_DEPS}"
43 -DEPEND="${RDEPEND}"
44 -BDEPEND="virtual/pkgconfig"
45 -
46 -HTML_DOCS=( "lpeg.html" "lpeg-128.gif" "re.html" )
47 -
48 -PATCHES=( "${FILESDIR}/${PN}-1.0.2-makefile.patch" )
49 -
50 -src_prepare() {
51 - default
52 -
53 - use debug && append-cflags -DLPEG_DEBUG
54 -}
55 -
56 -lua_src_compile() {
57 - # Clean project to compile it for every lua slot
58 - emake clean
59 -
60 - local myemakeargs=(
61 - CC="$(tc-getCC)"
62 - LUADIR="$(lua_get_include_dir)"
63 - )
64 -
65 - emake "${myemakeargs[@]}"
66 -
67 - # Copy module to match the choosen LUA implementation
68 - cp "lpeg.so" "lpeg-${ELUA}.so" || die
69 -}
70 -
71 -src_compile() {
72 - lua_foreach_impl lua_src_compile
73 -}
74 -
75 -lua_src_test() {
76 - LUA_CPATH="${S}/lpeg-${ELUA}.so" ${ELUA} test.lua || die
77 -}
78 -
79 -src_test() {
80 - lua_foreach_impl lua_src_test
81 -}
82 -
83 -lua_src_install() {
84 - # Use correct module for the choosen LUA implementation
85 - cp "lpeg-${ELUA}.so" "lpeg.so" || die
86 -
87 - exeinto $(lua_get_cmod_dir)
88 - doexe lpeg.so
89 -
90 - insinto $(lua_get_lmod_dir)
91 - doins re.lua
92 -}
93 -
94 -src_install() {
95 - lua_foreach_impl lua_src_install
96 -
97 - einstalldocs
98 -}