summaryrefslogtreecommitdiff
blob: db8ac6dc745bd0171c9c01aaaab88d524bd5b2db (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
# Copyright 1999-2019 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="Most comprehensive OpenSSL module in the Lua universe."
HOMEPAGE="https://github.com/wahern/luaossl/"

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@" \
		-i GNUmakefile
	lua_default
}

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

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