diff options
Diffstat (limited to 'dev-lua/ldoc/ldoc-9999.ebuild')
-rw-r--r-- | dev-lua/ldoc/ldoc-9999.ebuild | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/dev-lua/ldoc/ldoc-9999.ebuild b/dev-lua/ldoc/ldoc-9999.ebuild index cb39915..4eed4ed 100644 --- a/dev-lua/ldoc/ldoc-9999.ebuild +++ b/dev-lua/ldoc/ldoc-9999.ebuild @@ -4,7 +4,8 @@ EAPI="5" -inherit eutils toolchain-funcs git-r3 +VCS="git-r3" +inherit lua DESCRIPTION="A LuaDoc-compatible documentation generation system" HOMEPAGE="https://github.com/stevedonovan/LDoc/" @@ -15,33 +16,29 @@ EGIT_REPO_URI="https://github.com/stevedonovan/LDoc/" LICENSE="MIT" SLOT="0" KEYWORDS="" -IUSE="luajit doc" +IUSE="doc" RDEPEND=" - virtual/lua[luajit=] -" -DEPEND=" - ${RDEPEND} - virtual/pkgconfig + dev-lua/penlight " -src_prepare() { - local lua=lua - use luajit && lua=luajit +DOCS=( doc/doc.md readme.md ) - sed -r \ - -e "1s#(/usr/bin/env).*#\1 ${lua}#" \ - -i ldoc.lua -} +HTML_DOCS=( doc_html/ ldoc_html/ ) -src_compile() { :; } +all_lua_prepare() { + local lua="$(lua_get_implementation)" -src_install() { - local lua=lua - use luajit && lua=luajit + cd doc; ${lua} ../ldoc.lua . -d ../doc_html; cd .. + cd ldoc; ${lua} ../ldoc.lua . -d ../ldoc_html; cd .. - insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD ${lua})" - doins -r ldoc ldoc.lua + rm ldoc/{SciTE.properties,config.ld} +} + +each_lua_install() { + dolua ldoc ldoc.lua +} +all_lua_install() { newbin ldoc.lua ldoc } |