dev-lua/luassert: version bump to 1.7.10

Bump to EAPI 6
Add Test phase

Gentoo-Bug: https://bugs.gentoo.org/628758
This commit is contained in:
Aric Belsito
2017-08-25 11:33:58 -07:00
committed by Michał Górny
parent 906bc295a9
commit 248d1e7c2b
3 changed files with 43 additions and 0 deletions

View File

@@ -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

View File

@@ -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
}

View File

@@ -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>