You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
917 B
45 lines
917 B
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
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"
|
||
6 years ago
|
KEYWORDS="amd64 arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86"
|
||
10 years ago
|
IUSE=""
|
||
|
|
||
4 years ago
|
RDEPEND=">=dev-lang/lua-5.1.5-r2:0[${MULTILIB_USEDEP}]"
|
||
10 years ago
|
DEPEND="${RDEPEND}
|
||
4 years ago
|
virtual/pkgconfig"
|
||
10 years ago
|
|
||
|
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()
|
||
|
{
|
||
8 years ago
|
local instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"
|
||
|
exeinto "${instdir#${EPREFIX}}"
|
||
10 years ago
|
doexe bit.so
|
||
|
}
|
||
|
|
||
|
multilib_src_install_all() {
|
||
|
dodoc README
|
||
|
dohtml -r doc/.
|
||
|
}
|