Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lua/say/
Date: Sat, 02 Sep 2017 08:45:31
Message-Id: 1504341921.906bc295a93e283bd2888ebd558bb5c665e95665.mgorny@gentoo
1 commit: 906bc295a93e283bd2888ebd558bb5c665e95665
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Wed Aug 23 18:06:07 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 2 08:45:21 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=906bc295
7
8 dev-lua/say: add luajit support
9
10 Bump to EAPI 6
11 Add Test phase.
12
13 Gentoo-Bug: https://bugs.gentoo.org/628758
14
15 dev-lua/say/metadata.xml | 4 ++++
16 dev-lua/say/say-1.3_p1-r1.ebuild | 39 +++++++++++++++++++++++++++++++++++++++
17 2 files changed, 43 insertions(+)
18
19 diff --git a/dev-lua/say/metadata.xml b/dev-lua/say/metadata.xml
20 index 3f45427ec3a..382dfdc0f2b 100644
21 --- a/dev-lua/say/metadata.xml
22 +++ b/dev-lua/say/metadata.xml
23 @@ -8,6 +8,10 @@
24 <longdescription lang="en">
25 Useful for internationalization.
26 </longdescription>
27 + <use>
28 + <flag name="luajit">Use <pkg>dev-lang/luajit</pkg> instead of
29 + <pkg>dev-lang/lua</pkg></flag>
30 + </use>
31 <upstream>
32 <remote-id type="github">Olivine-Labs/say</remote-id>
33 </upstream>
34
35 diff --git a/dev-lua/say/say-1.3_p1-r1.ebuild b/dev-lua/say/say-1.3_p1-r1.ebuild
36 new file mode 100644
37 index 00000000000..e5c2c5512d0
38 --- /dev/null
39 +++ b/dev-lua/say/say-1.3_p1-r1.ebuild
40 @@ -0,0 +1,39 @@
41 +# Copyright 1999-2017 Gentoo Foundation
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI=6
45 +MY_PV=1.3-1
46 +
47 +inherit toolchain-funcs
48 +
49 +DESCRIPTION="Lua String Hashing/Indexing Library"
50 +HOMEPAGE="http://olivinelabs.com/busted/"
51 +SRC_URI="https://github.com/Olivine-Labs/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz"
52 +
53 +LICENSE="MIT"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~x86"
56 +IUSE="luajit test"
57 +
58 +RDEPEND="
59 + !luajit? ( >=dev-lang/lua-5.1:= )
60 + luajit? ( dev-lang/luajit:2 )"
61 +DEPEND="${RDEPEND}
62 + virtual/pkgconfig
63 + test? ( dev-lua/busted )"
64 +
65 +DOCS=( CONTRIBUTING.md README.md )
66 +
67 +S="${WORKDIR}/${PN}-${MY_PV}"
68 +
69 +src_test() {
70 + busted -o gtest || die
71 +}
72 +
73 +src_install() {
74 + local instdir
75 + instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"/${PN}
76 + insinto "${instdir#${EPREFIX}}"
77 + doins src/init.lua
78 + einstalldocs
79 +}