From ecc5995097fcecc06aa4794013659dd5cd48415d Mon Sep 17 00:00:00 2001 From: "Vadim A. Misbakh-Soloviov" Date: Sat, 3 Oct 2015 05:20:51 +0600 Subject: Finished porting to lua.eclass Signed-off-by: Vadim A. Misbakh-Soloviov --- dev-lua/resty-dns/resty-dns-9999.ebuild | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'dev-lua/resty-dns') diff --git a/dev-lua/resty-dns/resty-dns-9999.ebuild b/dev-lua/resty-dns/resty-dns-9999.ebuild index 8261dd6..5a7d23c 100644 --- a/dev-lua/resty-dns/resty-dns-9999.ebuild +++ b/dev-lua/resty-dns/resty-dns-9999.ebuild @@ -4,10 +4,11 @@ EAPI="5" -inherit eutils toolchain-funcs git-r3 +VCS="git-r3" +inherit lua DESCRIPTION="Lua DNS resolver for the ngx_lua based on the cosocket API" -HOMEPAGE="https://github.com/openresty/lua-${PN}" +HOMEPAGE="https://github.com/openresty/lua-resty-dns" SRC_URI="" EGIT_REPO_URI="https://github.com/openresty/lua-${PN}" @@ -15,24 +16,18 @@ EGIT_REPO_URI="https://github.com/openresty/lua-${PN}" LICENSE="BSD" SLOT="0" KEYWORDS="" -IUSE="luajit" +IUSE="" RDEPEND=" - virtual/lua[luajit=] + virtual/lua[bit] www-servers/nginx[nginx_modules_http_lua] " DEPEND=" ${RDEPEND} - virtual/pkgconfig " -src_prepare() { - local lua=lua; - use luajit && lua=luajit; +READMES=( README.markdown ) - sed -r \ - -e "s#^(PREFIX).*#\1=/usr#" \ - -e "s#^(LUA_LIB_DIR).*#\1=$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD ${lua})#" \ - -e "s#^(LUA_INCLUDE_DIR).*#\1=$($(tc-getPKG_CONFIG) --variable includedir ${lua})#" \ - -i Makefile +each_lua_install() { + dolua lib/resty } -- cgit v1.2.3-65-gdbad