blob: 7aea2ff5d40169048c688072367df4d9de76421a (
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
|
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
VCS="git"
GITHUB_A="stevedonovan"
inherit lua
DESCRIPTION="A LuaDoc-compatible documentation generation system"
HOMEPAGE="https://github.com/stevedonovan/LDoc/"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="doc"
RDEPEND="
dev-lua/penlight
"
DOCS=( doc/doc.md readme.md )
HTML_DOCS=( doc_html/. ldoc_html/. )
all_lua_prepare() {
local lua="$(lua_get_implementation)"
mkdir -p doc_html/ ldoc_html/ # for USE=-doc case
use doc && (
for doc in {,l}doc; do
pushd "${doc}" &>/dev/null
"${lua}" ../ldoc.lua . -d ../${doc}_html || die "Failed to build in ${doc} dir"
popd
done
)
rm ldoc/{SciTE.properties,config.ld}
lua_default
}
each_lua_install() {
dolua ldoc ldoc.lua
}
all_lua_install() {
newbin ldoc.lua ldoc
}
|