summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim A. Misbakh-Soloviov <git@mva.name>2015-09-12 19:17:11 +0600
committerVadim A. Misbakh-Soloviov <git@mva.name>2015-09-12 19:17:11 +0600
commite81d4e9013537aaadc792c1265f94931c8c5bc0a (patch)
tree5e0d3240e01055a8675192312c3548c917f0919c /dev-lua/lapis
parentlua-htmlparser: remove lua-set dep (diff)
downloadlua-e81d4e9013537aaadc792c1265f94931c8c5bc0a.tar.gz
lua-e81d4e9013537aaadc792c1265f94931c8c5bc0a.tar.bz2
lua-e81d4e9013537aaadc792c1265f94931c8c5bc0a.zip
eclass/lua: added; dev-lua/*: moving to lua eclass
Signed-off-by: Vadim A. Misbakh-Soloviov <git@mva.name>
Diffstat (limited to 'dev-lua/lapis')
-rw-r--r--dev-lua/lapis/lapis-9999.ebuild31
1 files changed, 14 insertions, 17 deletions
diff --git a/dev-lua/lapis/lapis-9999.ebuild b/dev-lua/lapis/lapis-9999.ebuild
index f5bc8e6..b0ac90e 100644
--- a/dev-lua/lapis/lapis-9999.ebuild
+++ b/dev-lua/lapis/lapis-9999.ebuild
@@ -4,7 +4,8 @@
EAPI="5"
-inherit base toolchain-funcs git-r3
+VCS="git-r3"
+inherit lua
DESCRIPTION="A web framework for Lua/MoonScript."
HOMEPAGE="https://github.com/leafo/lapis"
@@ -15,10 +16,9 @@ EGIT_REPO_URI="https://github.com/leafo/lapis"
LICENSE="MIT"
SLOT="0"
KEYWORDS=""
-IUSE="luajit moonscript"
+IUSE="doc moonscript"
RDEPEND="
- virtual/lua[luajit=]
moonscript? ( dev-lua/moonscript )
dev-lua/ansicolors
dev-lua/luasocket
@@ -33,24 +33,21 @@ DEPEND="
virtual/pkgconfig
"
-HTML_DOCS=( "docs/" "README.md" )
+DOCS=( docs/ README.md )
-src_compile() {
- use moonscript && emake build
+all_lua_prepare() {
+ use moonscript || find "${S}" -type -name '*.moon' -delete
}
-src_install() {
- local lua=lua;
- use luajit && lua=luajit;
-
- use moonscript || find "${S}" -type -name '*.moon' -delete
+each_lua_compile() {
+ use moonscript && emake build
+}
- insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD ${lua})"
- doins -r lapis
+each_lua_install() {
+ use moonscript && dolua lapis.moon
+ dolua lapis
+}
+all_lua_install() {
dobin bin/lapis
-
- use moonscript && doins lapis.moon
-
- base_src_install_docs
}