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/luassert-1.7.10.ebuild
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/luassert-1.7.10.ebuild')
-rw-r--r--dev-lua/luassert/luassert-1.7.10.ebuild38
1 files changed, 38 insertions, 0 deletions
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 000000000000..cc60c96aaf5c
--- /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
+}