blob: 996207a3f95df1984446d7f5d50790deaa14dc93 [file] [log] [blame]
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit toolchain-funcs multilib-minimal
DESCRIPTION="Bit Operations Library for the Lua Programming Language"
HOMEPAGE="http://bitop.luajit.org"
SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm ~hppa ~mips ppc ppc64 sparc x86"
IUSE=""
RDEPEND=">=dev-lang/lua-5.1.5-r2[${MULTILIB_USEDEP}]"
DEPEND="${RDEPEND}
>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
src_prepare() {
multilib_copy_sources
}
multilib_src_compile()
{
emake CC="$(tc-getCC)" INCLUDES= CCOPT=
}
multilib_src_test() {
# tests use native lua interpreter
multilib_is_native_abi && default
}
multilib_src_install()
{
exeinto "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"
doexe bit.so
}
multilib_src_install_all() {
dodoc README
dohtml -r doc/.
}