1 |
commit: 248d1e7c2b617e4d564d8d4d0cd6f3e6d74d0cb0 |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Aug 25 18:33:58 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 2 08:45:22 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=248d1e7c |
7 |
|
8 |
dev-lua/luassert: version bump to 1.7.10 |
9 |
|
10 |
Bump to EAPI 6 |
11 |
Add Test phase |
12 |
|
13 |
Gentoo-Bug: https://bugs.gentoo.org/628758 |
14 |
|
15 |
dev-lua/luassert/Manifest | 1 + |
16 |
dev-lua/luassert/luassert-1.7.10.ebuild | 38 +++++++++++++++++++++++++++++++++ |
17 |
dev-lua/luassert/metadata.xml | 4 ++++ |
18 |
3 files changed, 43 insertions(+) |
19 |
|
20 |
diff --git a/dev-lua/luassert/Manifest b/dev-lua/luassert/Manifest |
21 |
index 3c1d1cccc3d..866f8b1ab78 100644 |
22 |
--- a/dev-lua/luassert/Manifest |
23 |
+++ b/dev-lua/luassert/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
+DIST luassert-1.7.10.tar.gz 35789 SHA256 f9f8347727c2a4aa8af30d88a0de0314f04cd681b60430e24f6ec0ed393e12e1 SHA512 2d5ca354b5f7b971f0d3420c305d921143cd7f9e1a6f4559cb466b833886a00a045e7b7c594bd9ec3c929b3d5bb8a7a4a6de75a6599e5cba7614b7652061bf05 WHIRLPOOL 15c67d24a151998373f6afdc434b1b603d9944a901ec7cf3337dd35c9420b8801fb89fc80a579307e8f95255adc2d636be139025f546698a2421757c5d6c63b6 |
26 |
DIST luassert-1.7.9.tar.gz 34803 SHA256 e632e3f4819badc4906370242b652d5c912317e735b0ccc8c4d5c851591ff161 SHA512 4e1257bf7adaa9002af7c6ac15f2d042c9094ceeae9ce065c51296c663a99fa239ac8d37f106151100478cde8c68d3290b42588553ac681d183e7edef288414b WHIRLPOOL 0e9d848c3d7ae29dd444504814f3c4ba7d00994d766a3aea560e5a4cd8ee479dd35a64fe3b43b7ad6eaf869e70357658f6208e3f3aa5a729becb0bab3bb19aeb |
27 |
|
28 |
diff --git a/dev-lua/luassert/luassert-1.7.10.ebuild b/dev-lua/luassert/luassert-1.7.10.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..cc60c96aaf5 |
31 |
--- /dev/null |
32 |
+++ b/dev-lua/luassert/luassert-1.7.10.ebuild |
33 |
@@ -0,0 +1,38 @@ |
34 |
+# Copyright 1999-2017 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+inherit toolchain-funcs |
40 |
+ |
41 |
+DESCRIPTION="Lua Assertions Extension" |
42 |
+HOMEPAGE="http://olivinelabs.com/busted/" |
43 |
+SRC_URI="https://github.com/Olivine-Labs/luassert/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="MIT" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="luajit test" |
49 |
+ |
50 |
+CDEPEND=" |
51 |
+ !luajit? ( >=dev-lang/lua-5.1:= ) |
52 |
+ luajit? ( dev-lang/luajit:2 )" |
53 |
+RDEPEND="${CDEPEND} |
54 |
+ >=dev-lua/say-1.2_p1[luajit=]" |
55 |
+DEPEND="${CDEPEND} |
56 |
+ virtual/pkgconfig |
57 |
+ test? ( dev-lua/busted )" |
58 |
+ |
59 |
+DOCS=( CONTRIBUTING.md README.md ) |
60 |
+ |
61 |
+src_test() { |
62 |
+ busted -o gtest || die |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ local instdir |
67 |
+ instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"/${PN} |
68 |
+ insinto "${instdir#${EPREFIX}}" |
69 |
+ doins -r src/* |
70 |
+ einstalldocs |
71 |
+} |
72 |
|
73 |
diff --git a/dev-lua/luassert/metadata.xml b/dev-lua/luassert/metadata.xml |
74 |
index 0c230917f9a..8f62d93090b 100644 |
75 |
--- a/dev-lua/luassert/metadata.xml |
76 |
+++ b/dev-lua/luassert/metadata.xml |
77 |
@@ -9,6 +9,10 @@ |
78 |
Adds a framework that allows registering new assertions |
79 |
without compromising builtin assertion functionality. |
80 |
</longdescription> |
81 |
+ <use> |
82 |
+ <flag name="luajit">Use <pkg>dev-lang/luajit</pkg> instead of |
83 |
+ <pkg>dev-lang/lua</pkg></flag> |
84 |
+ </use> |
85 |
<upstream> |
86 |
<remote-id type="github">Olivine-Labs/luassert</remote-id> |
87 |
</upstream> |