summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim A. Misbakh-Soloviov <git@mva.name>2015-09-12 19:17:11 +0600
committerVadim A. Misbakh-Soloviov <git@mva.name>2015-09-12 19:17:11 +0600
commite81d4e9013537aaadc792c1265f94931c8c5bc0a (patch)
tree5e0d3240e01055a8675192312c3548c917f0919c /dev-lua/lsysstats
parentlua-htmlparser: remove lua-set dep (diff)
downloadlua-e81d4e9013537aaadc792c1265f94931c8c5bc0a.tar.gz
lua-e81d4e9013537aaadc792c1265f94931c8c5bc0a.tar.bz2
lua-e81d4e9013537aaadc792c1265f94931c8c5bc0a.zip
eclass/lua: added; dev-lua/*: moving to lua eclass
Signed-off-by: Vadim A. Misbakh-Soloviov <git@mva.name>
Diffstat (limited to 'dev-lua/lsysstats')
-rw-r--r--dev-lua/lsysstats/lsysstats-9999.ebuild32
1 files changed, 17 insertions, 15 deletions
diff --git a/dev-lua/lsysstats/lsysstats-9999.ebuild b/dev-lua/lsysstats/lsysstats-9999.ebuild
index f8d0006..3450870 100644
--- a/dev-lua/lsysstats/lsysstats-9999.ebuild
+++ b/dev-lua/lsysstats/lsysstats-9999.ebuild
@@ -4,7 +4,8 @@
EAPI="5"
-inherit multilib toolchain-funcs flag-o-matic mercurial eutils
+VCS="mercurial"
+inherit lua
DESCRIPTION="System statistics library for Lua"
HOMEPAGE="http://code.matthewwild.co.uk/"
@@ -13,18 +14,19 @@ EHG_REPO_URI="http://code.matthewwild.co.uk/${PN}/"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
-IUSE="luajit"
-
-RDEPEND="
- virtual/lua[luajit=]
- dev-lua/squish
- dev-lua/luasocket
-"
-DEPEND="${RDEPEND}"
-
-src_install() {
- local lua=lua;
- use luajit && lua=luajit;
- insinto $($(tc-getPKG_CONFIG) --variable INSTALL_LMOD ${lua})/${PN}/;
- doins *.lua || die
+IUSE="+examples"
+
+EXAMPLES=( demo.lua )
+
+all_lua_prepare() {
+ sed -r \
+ -e "s#(require.*)(proc.*)#\1${PN}.\2#" \
+ -i init.lua
+
+ mkdir -p ${PN}
+ mv {init,proc}.lua ${PN}
+}
+
+each_lua_install() {
+ dolua ${PN}
}