summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lua/lsysstats/lsysstats-9999.ebuild')
-rw-r--r--dev-lua/lsysstats/lsysstats-9999.ebuild14
1 files changed, 9 insertions, 5 deletions
diff --git a/dev-lua/lsysstats/lsysstats-9999.ebuild b/dev-lua/lsysstats/lsysstats-9999.ebuild
index 0f8d6ad..f8d0006 100644
--- a/dev-lua/lsysstats/lsysstats-9999.ebuild
+++ b/dev-lua/lsysstats/lsysstats-9999.ebuild
@@ -6,21 +6,25 @@ EAPI="5"
inherit multilib toolchain-funcs flag-o-matic mercurial eutils
-DESCRIPTION="XMPP client library written in Lua."
+DESCRIPTION="System statistics library for Lua"
HOMEPAGE="http://code.matthewwild.co.uk/"
EHG_REPO_URI="http://code.matthewwild.co.uk/${PN}/"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
-IUSE=""
+IUSE="luajit"
-RDEPEND="|| ( >=dev-lang/lua-5.1 dev-lang/luajit:2 )
+RDEPEND="
+ virtual/lua[luajit=]
dev-lua/squish
- dev-lua/luasocket"
+ dev-lua/luasocket
+"
DEPEND="${RDEPEND}"
src_install() {
- insinto $($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)/${PN}/;
+ local lua=lua;
+ use luajit && lua=luajit;
+ insinto $($(tc-getPKG_CONFIG) --variable INSTALL_LMOD ${lua})/${PN}/;
doins *.lua || die
}