From 669d249e439b28f362e5869350c25f4b021e38ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 12 Sep 2018 13:54:38 +0200 Subject: lua packages fixes --- dev-lua/lua-compat/lua-compat-0.3-r2.ebuild | 41 +++++++++++++++++++++++++++++ dev-lua/lua-compat/lua-compat-0.3.ebuild | 41 ----------------------------- dev-lua/luaposix/luaposix-34.0.4.ebuild | 2 -- 3 files changed, 41 insertions(+), 43 deletions(-) create mode 100644 dev-lua/lua-compat/lua-compat-0.3-r2.ebuild delete mode 100644 dev-lua/lua-compat/lua-compat-0.3.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 new file mode 100644 index 0000000..3292d4c --- /dev/null +++ b/dev-lua/lua-compat/lua-compat-0.3-r2.ebuild @@ -0,0 +1,41 @@ +# 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.ebuild b/dev-lua/lua-compat/lua-compat-0.3.ebuild deleted file mode 100644 index 6b53f5a..0000000 --- a/dev-lua/lua-compat/lua-compat-0.3.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)"/term - 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/luaposix/luaposix-34.0.4.ebuild b/dev-lua/luaposix/luaposix-34.0.4.ebuild index 387c16f..d662ffc 100644 --- a/dev-lua/luaposix/luaposix-34.0.4.ebuild +++ b/dev-lua/luaposix/luaposix-34.0.4.ebuild @@ -16,5 +16,3 @@ RDEPEND=" dev-lang/lua:0= dev-lua/lua-compat[bit32]" DEPEND="${RDEPEND}" - -S="${WORKDIR}"/${PN}-release-v${PV} -- cgit v1.2.3