1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit toolchain-funcs multilib-minimal
7 DESCRIPTION="Bit Operations Library for the Lua Programming Language"
8 HOMEPAGE="http://bitop.luajit.org"
9 SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz"
13 KEYWORDS="amd64 ~arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86"
16 RDEPEND=">=dev-lang/lua-5.1.5-r2:*[${MULTILIB_USEDEP}]"
18 >=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
24 multilib_src_compile()
26 emake CC="$(tc-getCC)" INCLUDES= CCOPT=
30 # tests use native lua interpreter
31 multilib_is_native_abi && default
34 multilib_src_install()
36 local instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"
37 exeinto "${instdir#${EPREFIX}}"
41 multilib_src_install_all() {