blob: ae3efd99edef222383e6fd9676c17a3f57b90da9 (
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
45
46
47
48
49
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
LUA_COMPAT=( lua5-{1..4} luajit )
inherit cmake lua
DESCRIPTION="Simple streaming interface to zlib for Lua"
HOMEPAGE="https://github.com/brimworks/lua-zlib"
SRC_URI="https://github.com/brimworks/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RDEPEND="
sys-libs/zlib
${LUA_DEPS}
"
DEPEND="${RDEPEND}"
lua_src_configure() {
local mycmakeargs=(
-DINSTALL_CMOD="$(lua_get_cmod_dir)"
-DUSE_LUA_VERSION="$(lua_get_version)"
)
if [[ ${ELUA} == luajit ]]; then
mycmakeargs+=( -DUSE_LUAJIT="ON" )
fi
cmake_src_configure
}
src_configure() {
lua_foreach_impl lua_src_configure
}
src_compile() {
lua_foreach_impl cmake_src_compile
}
src_install() {
lua_foreach_impl cmake_src_install
}
|