summaryrefslogtreecommitdiff
blob: 27c3989aee76384fba252ce4ee7b82f58bda25f4 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

VCS="git"
GITHUB_A="gvvaughan"

inherit lua

DESCRIPTION="a testing tool for Lua, providing a Behaviour Driven Development framework in the vein of RSpec"
HOMEPAGE="https://github.com/gvvaughan/specl"

LICENSE="GPL"
SLOT="0"
KEYWORDS=""
IUSE="doc"

RDEPEND="
	dev-lua/luamacro
	dev-lua/lyaml
"
DEPEND="
	${RDEPEND}
"

DOCS=(README.md doc/specl.md NEWS.md)
HTML_DOCS=(html/.)

all_lua_prepare() {
	mkdir -p html
	sed \
		-e '/^dir/s@"."@"../html"@' \
		-i doc/config.ld.in
	lua_default
}

each_lua_compile() {
	make lib/specl/version.lua
}

all_lua_compile() {
	lua_default
	emake doc/specl.1
}

each_lua_install() {
	dobin bin/specl
	dolua lib/specl/*.lua lib/specl/*/
}