summaryrefslogtreecommitdiff
blob: c13c0fbaeec9978d033582ad0c3b5e193e532b7f (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
50
51
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

VCS="git"
GITHUB_A="wahern"
IS_MULTILIB=true

inherit lua

DESCRIPTION="Lua Unix Module"
HOMEPAGE="http://25thandclement.com/~william/projects/lunix.html"

LICENSE="MIT"
SLOT="0"
KEYWORDS=""
IUSE="doc examples"

DEPEND="
	dev-libs/openssl
"
RDEPEND="${DEPEND}"

DOCS=(doc/.)
EXAMPLES=(examples/.)

all_lua_prepare() {
	sed  -r \
		-e "s@(^prefix ).*@\1=/usr@" \
		-e 's@(^libdir .*prefix\)).*@\1/$(LIBDIR)@' \
		-i GNUmakefile
	lua_default
}

each_lua_configure() {
	local myeconfargs=(
		LIBDIR="$(get_libdir)"
	)
	lua_default
}

each_lua_compile() {
	_lua_setFLAGS
	lua_default "all$(lua_get_abi)"
}

each_lua_install() {
	_lua_setFLAGS
	emake DESTDIR="${D}" "install$(lua_get_abi)"
}