diff options
author | Karel Kočí <karel.koci@nic.cz> | 2018-09-12 13:54:38 +0200 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2018-09-12 13:54:38 +0200 |
commit | 669d249e439b28f362e5869350c25f4b021e38ca (patch) | |
tree | 9484fbc9f3c58cb28c7119abd4351c08c83713d5 /dev-lua/lua-compat/lua-compat-0.3-r2.ebuild | |
parent | 12beb59bfb51678a5ea48f3e6732f32468cc6a5d (diff) | |
download | gentoo-personal-overlay-669d249e439b28f362e5869350c25f4b021e38ca.tar.gz gentoo-personal-overlay-669d249e439b28f362e5869350c25f4b021e38ca.tar.bz2 gentoo-personal-overlay-669d249e439b28f362e5869350c25f4b021e38ca.zip |
lua packages fixes
Diffstat (limited to 'dev-lua/lua-compat/lua-compat-0.3-r2.ebuild')
-rw-r--r-- | dev-lua/lua-compat/lua-compat-0.3-r2.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
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 +} + |