summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAric Belsito <lluixhi@gmail.com>2017-08-25 11:33:58 -0700
committerMichał Górny <mgorny@gentoo.org>2017-09-02 10:45:22 +0200
commit248d1e7c2b617e4d564d8d4d0cd6f3e6d74d0cb0 (patch)
tree12100fd8dddccb3976dc2dbfe68cde52f601c9e1 /dev-lua/luassert
parentdev-lua/say: add luajit support (diff)
downloadgentoo-248d1e7c2b617e4d564d8d4d0cd6f3e6d74d0cb0.tar.gz
gentoo-248d1e7c2b617e4d564d8d4d0cd6f3e6d74d0cb0.tar.bz2
gentoo-248d1e7c2b617e4d564d8d4d0cd6f3e6d74d0cb0.zip
dev-lua/luassert: version bump to 1.7.10
Bump to EAPI 6 Add Test phase Gentoo-Bug: https://bugs.gentoo.org/628758
Diffstat (limited to 'dev-lua/luassert')
-rw-r--r--dev-lua/luassert/Manifest1
-rw-r--r--dev-lua/luassert/luassert-1.7.10.ebuild38
-rw-r--r--dev-lua/luassert/metadata.xml4
3 files changed, 43 insertions, 0 deletions
diff --git a/dev-lua/luassert/Manifest b/dev-lua/luassert/Manifest
index 3c1d1cccc3d..866f8b1ab78 100644
--- a/dev-lua/luassert/Manifest
+++ b/dev-lua/luassert/Manifest
@@ -1 +1,2 @@
+DIST luassert-1.7.10.tar.gz 35789 SHA256 f9f8347727c2a4aa8af30d88a0de0314f04cd681b60430e24f6ec0ed393e12e1 SHA512 2d5ca354b5f7b971f0d3420c305d921143cd7f9e1a6f4559cb466b833886a00a045e7b7c594bd9ec3c929b3d5bb8a7a4a6de75a6599e5cba7614b7652061bf05 WHIRLPOOL 15c67d24a151998373f6afdc434b1b603d9944a901ec7cf3337dd35c9420b8801fb89fc80a579307e8f95255adc2d636be139025f546698a2421757c5d6c63b6
DIST luassert-1.7.9.tar.gz 34803 SHA256 e632e3f4819badc4906370242b652d5c912317e735b0ccc8c4d5c851591ff161 SHA512 4e1257bf7adaa9002af7c6ac15f2d042c9094ceeae9ce065c51296c663a99fa239ac8d37f106151100478cde8c68d3290b42588553ac681d183e7edef288414b WHIRLPOOL 0e9d848c3d7ae29dd444504814f3c4ba7d00994d766a3aea560e5a4cd8ee479dd35a64fe3b43b7ad6eaf869e70357658f6208e3f3aa5a729becb0bab3bb19aeb
diff --git a/dev-lua/luassert/luassert-1.7.10.ebuild b/dev-lua/luassert/luassert-1.7.10.ebuild
new file mode 100644
index 00000000000..cc60c96aaf5
--- /dev/null
+++ b/dev-lua/luassert/luassert-1.7.10.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Lua Assertions Extension"
+HOMEPAGE="http://olivinelabs.com/busted/"
+SRC_URI="https://github.com/Olivine-Labs/luassert/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="luajit test"
+
+CDEPEND="
+ !luajit? ( >=dev-lang/lua-5.1:= )
+ luajit? ( dev-lang/luajit:2 )"
+RDEPEND="${CDEPEND}
+ >=dev-lua/say-1.2_p1[luajit=]"
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ test? ( dev-lua/busted )"
+
+DOCS=( CONTRIBUTING.md README.md )
+
+src_test() {
+ busted -o gtest || die
+}
+
+src_install() {
+ local instdir
+ instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD $(usex luajit 'luajit' 'lua'))"/${PN}
+ insinto "${instdir#${EPREFIX}}"
+ doins -r src/*
+ einstalldocs
+}
diff --git a/dev-lua/luassert/metadata.xml b/dev-lua/luassert/metadata.xml
index 0c230917f9a..8f62d93090b 100644
--- a/dev-lua/luassert/metadata.xml
+++ b/dev-lua/luassert/metadata.xml
@@ -9,6 +9,10 @@
Adds a framework that allows registering new assertions
without compromising builtin assertion functionality.
</longdescription>
+ <use>
+ <flag name="luajit">Use <pkg>dev-lang/luajit</pkg> instead of
+ <pkg>dev-lang/lua</pkg></flag>
+ </use>
<upstream>
<remote-id type="github">Olivine-Labs/luassert</remote-id>
</upstream>