From 3b40d81cf4fb2c88397575ee400cdcd4eba9aea9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 10 Nov 2019 12:09:04 +0100 Subject: [PATCH] dev-lua/luadoc: Bump to EAPI 7 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/697354 Signed-off-by: Michał Górny --- dev-lua/luadoc/luadoc-3.0.1.ebuild | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/dev-lua/luadoc/luadoc-3.0.1.ebuild b/dev-lua/luadoc/luadoc-3.0.1.ebuild index 801cfcd98671..c2d1de3b9b1f 100644 --- a/dev-lua/luadoc/luadoc-3.0.1.ebuild +++ b/dev-lua/luadoc/luadoc-3.0.1.ebuild @@ -1,9 +1,8 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=0 +EAPI=7 -inherit multilib DESCRIPTION="LuaDoc is a documentation tool for Lua source code" HOMEPAGE="http://luadoc.luaforge.net/" SRC_URI="http://luaforge.net/frs/download.php/3185/${P}.tar.gz" @@ -17,9 +16,9 @@ DEPEND="" RDEPEND=">=dev-lang/lua-5.1.3 dev-lua/luafilesystem" -src_unpack() { - unpack ${A} - cd "${S}" +src_prepare() { + default + sed -i \ -e "s|/usr/local|\$(DESTDIR)/usr|" \ -e "s|lib|$(get_libdir)|" \ @@ -27,11 +26,11 @@ src_unpack() { config || die # lua-5.1.3 - find . -name '*.lua' | xargs sed -i -e "s/gfind/gmatch/g" || die + find . -name '*.lua' -exec sed -i -e "s/gfind/gmatch/g" {} + || die } src_install() { - emake DESTDIR="${D}" install || die - dodoc README - dohtml -r doc/us/* + default + docinto html + dodoc -r doc/us/. } -- 2.26.2