summaryrefslogtreecommitdiff
blob: 8a3e33ee9c627fde94907d74fb14dc1e81a20123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

VCS="mercurial"
inherit 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="+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}
}