1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 11:42:40 +01:00

app-forensics/luadec: cosmetic changes

This commit is contained in:
2024-05-08 17:39:21 +02:00
parent 4df913f1b6
commit ffa910a8a7
3 changed files with 21 additions and 11 deletions

View File

@@ -1,40 +1,40 @@
# Copyright 2021 Gentoo Authors
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
LUA_COMPAT=( lua5-1 )
LUA_TARGET=5.1.5
EGIT_COMMIT="895d92313fabaee260121c758c8320d1b21dd741"
inherit lua-single
inherit lua-single toolchain-funcs
DESCRIPTION="LuaDec is a Lua decompiler for lua 5.1"
HOMEPAGE="https://github.com/viruscamp/luadec"
SRC_URI="https://github.com/viruscamp/luadec/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
https://www.lua.org/ftp/lua-${LUA_TARGET}.tar.gz"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
LICENSE="MIT"
SLOT="5.1"
KEYWORDS="~amd64 ~x86"
REQUIRED_USE="${LUA_REQUIRED_USE}"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND="${LUA_DEPS}"
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
RDEPEND="${DEPEND}"
src_prepare() {
rm -rf lua-${SLOT}
ln -s ${WORKDIR}/lua-${LUA_TARGET} lua-${SLOT}
ln -s "${WORKDIR}"/lua-${LUA_TARGET} lua-${SLOT}
default
}
src_compile() {
emake -C lua-${SLOT} linux || die
emake LUAVER=${SLOT} -C luadec || die
emake -C lua-${SLOT} linux CC="$(tc-getCC)" || die
emake -C luadec LUAVER=${SLOT} CC="$(tc-getCC)" || die
}
src_install() {