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/lua-cjson/
Date: Wed, 27 Jan 2021 19:48:16
Message-Id: 1611776414.4b7e790de3436efa0ce50f2332ac44347fc8b2e5.conikost@gentoo
1 commit: 4b7e790de3436efa0ce50f2332ac44347fc8b2e5
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 24 17:57:54 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 27 19:40:14 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b7e790d
7
8 dev-lua/lua-cjson: drop old version
9
10 Package-Manager: Portage-3.0.14, Repoman-3.0.2
11 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
12
13 dev-lua/lua-cjson/lua-cjson-2.1.0.8.ebuild | 70 ------------------------------
14 1 file changed, 70 deletions(-)
15
16 diff --git a/dev-lua/lua-cjson/lua-cjson-2.1.0.8.ebuild b/dev-lua/lua-cjson/lua-cjson-2.1.0.8.ebuild
17 deleted file mode 100644
18 index 2b119941749..00000000000
19 --- a/dev-lua/lua-cjson/lua-cjson-2.1.0.8.ebuild
20 +++ /dev/null
21 @@ -1,70 +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 -inherit toolchain-funcs
28 -
29 -DESCRIPTION="A fast JSON encoding/parsing module for Lua"
30 -HOMEPAGE="https://www.kyne.com.au/~mark/software/lua-cjson.php https://github.com/openresty/lua-cjson"
31 -SRC_URI="https://github.com/openresty/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
32 -
33 -LICENSE="MIT"
34 -SLOT="0"
35 -KEYWORDS="~amd64 ~arm ~arm64 ~x86"
36 -IUSE="+internal-fpconv luajit test +threads"
37 -RESTRICT="!test? ( test )"
38 -REQUIRED_USE="threads? ( internal-fpconv )"
39 -
40 -RDEPEND="
41 - luajit? ( dev-lang/luajit:2 )
42 - !luajit? ( dev-lang/lua:0 )
43 -"
44 -
45 -DEPEND="${RDEPEND}"
46 -BDEPEND="test? ( dev-lang/perl )"
47 -
48 -DOCS=( "manual.txt" "NEWS" "performance.txt" "README.md" "THANKS" )
49 -
50 -PATCHES=( "${FILESDIR}/${PN}-2.1.0.8-sparse_array_test_fix.patch" )
51 -
52 -src_prepare() {
53 - default
54 -
55 - # Don't install tests
56 - sed -e '/cd tests/d' -i Makefile || die
57 -}
58 -
59 -src_compile() {
60 - local myemakeargs=(
61 - "CC=$(tc-getCC)"
62 - "CFLAGS=${CFLAGS}"
63 - "LDFLAGS=${LDFLAGS}"
64 - "LUA_INCLUDE_DIR=$($(tc-getPKG_CONFIG) --variable $(usex luajit 'includedir' 'INSTALL_INC') $(usex luajit 'luajit' 'lua'))"
65 - )
66 -
67 - emake "${myemakeargs[@]}"
68 -}
69 -
70 -src_test() {
71 - cd tests || die
72 -
73 - ln -s "${S}"/cjson.so ./ || die
74 - ln -s "${S}"/lua/cjson ./ || die
75 -
76 - ./genutf8.pl || die
77 - ./test.lua || die
78 -}
79 -
80 -src_install() {
81 - local myemakeargs=(
82 - "DESTDIR=${D}"
83 - "LUA_CMODULE_DIR=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $(usex luajit 'luajit' 'lua'))"
84 - "LUA_MODULE_DIR=$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"
85 - "PREFIX=${EPREFIX}/usr"
86 - )
87 -
88 - emake "${myemakeargs[@]}" install install-extra
89 -
90 - einstalldocs
91 -}