blob: ba497c370ef7c9cf1ae2df4da77407eb8d77f378 (
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
|
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
VCS="git"
GITHUB_A="Fizzadar"
GITHUB_PN="${PN^}"
inherit lua
DESCRIPTION="Static sites generator (from markdown files)"
HOMEPAGE="http://luapress.org"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="examples"
DOCS=(README.md)
EXAMPLES=(tests/.)
RDEPEND="
dev-lua/luafilesystem
dev-lua/lustache
dev-lua/ansicolors
"
all_lua_prepare() {
mv "${PN}/${PN}.lua" "${PN}/init.lua"
sed -r \
-e '/local base/s@(")("\))$@\1/share/'"${P}"'\2@' \
-i "${PN}/init.lua"
lua_default
}
each_lua_install() {
dolua "${PN}"
}
all_lua_install() {
insinto "/usr/share/${P}"
doins -r template plugins
dobin "bin/${PN}"
}
|