diff options
author | Vadim A. Misbakh-Soloviov <git@mva.name> | 2015-09-12 19:17:11 +0600 |
---|---|---|
committer | Vadim A. Misbakh-Soloviov <git@mva.name> | 2015-09-12 19:17:11 +0600 |
commit | e81d4e9013537aaadc792c1265f94931c8c5bc0a (patch) | |
tree | 5e0d3240e01055a8675192312c3548c917f0919c /dev-lua/lsysstats | |
parent | lua-htmlparser: remove lua-set dep (diff) | |
download | lua-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.ebuild | 32 |
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} } |