From 48f102adcd89a5cae2ccbf412b8d8b3d4dfa3803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 12 Sep 2018 14:36:42 +0200 Subject: dev-lua/lua-compat: fix install path --- dev-lua/lua-compat/lua-compat-0.3-r2.ebuild | 41 ---------------------------- dev-lua/lua-compat/lua-compat-0.3-r3.ebuild | 42 +++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 41 deletions(-) delete mode 100644 dev-lua/lua-compat/lua-compat-0.3-r2.ebuild create mode 100644 dev-lua/lua-compat/lua-compat-0.3-r3.ebuild diff --git a/dev-lua/lua-compat/lua-compat-0.3-r2.ebuild b/dev-lua/lua-compat/lua-compat-0.3-r2.ebuild deleted file mode 100644 index 3292d4c..0000000 --- a/dev-lua/lua-compat/lua-compat-0.3-r2.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit toolchain-funcs - -DESCRIPTION="Lua-5.2-style APIs for Lua 5.1" -HOMEPAGE="https://github.com/keplerproject/lua-compat-5.2" -SRC_URI="https://github.com/keplerproject/lua-compat-5.2/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -SLOT="0" -LICENSE="MIT" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="+bit32 +compat52" - -RDEPEND="dev-lang/lua:0=" -DEPEND="${RDEPEND} - virtual/pkgconfig" - -S="${WORKDIR}/lua-compat-5.2-0.3" - -src_compile() { - if use bit32; then - $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -fPIC -shared \ - -I c-api -o bit32.so lbitlib.c || die - fi -} - -src_install() { - insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" - if use bit32; then - doins bit32.so - fi - if use compat52; then - doins compat52.lua - newins compat52/strict.lua compat52.strict.lua - newins compat52/mstrict.lua compat52.mstrict.lua - fi -} - diff --git a/dev-lua/lua-compat/lua-compat-0.3-r3.ebuild b/dev-lua/lua-compat/lua-compat-0.3-r3.ebuild new file mode 100644 index 0000000..f67f3d0 --- /dev/null +++ b/dev-lua/lua-compat/lua-compat-0.3-r3.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="Lua-5.2-style APIs for Lua 5.1" +HOMEPAGE="https://github.com/keplerproject/lua-compat-5.2" +SRC_URI="https://github.com/keplerproject/lua-compat-5.2/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +SLOT="0" +LICENSE="MIT" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+bit32 +compat52" + +RDEPEND="dev-lang/lua:0=" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/lua-compat-5.2-0.3" + +src_compile() { + if use bit32; then + $(tc-getCC) ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -fPIC -shared \ + -I c-api -o bit32.so lbitlib.c || die + fi +} + +src_install() { + insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" + if use bit32; then + doins bit32.so + fi + insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" + if use compat52; then + doins compat52.lua + newins compat52/strict.lua compat52.strict.lua + newins compat52/mstrict.lua compat52.mstrict.lua + fi +} + -- cgit v1.2.3