summaryrefslogtreecommitdiff
blob: 4c85ef9f04d42cafd52cf28f7117646ee1856176 (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
32
33
34
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

VCS="git"
GITHUB_A="thenumbernine"
inherit lua

DESCRIPTION="Some useful extensions to Lua classes"
HOMEPAGE="https://github.com/thenumbernine/lua-ext"

LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="gcmem"

DEPEND=""
RDEPEND="
	dev-lua/luafilesystem
	gcmem? (
		dev-lua/lua-ffi-bindings
		dev-lang/luajit
	)
"

DOCS=(README.md)

each_lua_install() {
	use gcmem || rm gcmem.lua
	mv ext.lua init.lua
	_dolua_insdir="ext" \
	dolua *.lua
}