blob: 8f50e62451d2ef6cd5662bbc60ea2f0b74b7cdef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild,v 1.2 2014/06/19 08:16:35 mgorny Exp $
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 ~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/.
}
|