summaryrefslogtreecommitdiff
blob: c98f525f060e371fa1fe65482137f757ad61eaf6 (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
52
53
54
55
56
57
58
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

VCS="git-r3"
IS_MULTILIB=true

inherit lua

DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication."
HOMEPAGE="http://www.inf.puc-rio.br/~brunoos/luasec/"
#EGIT_REPO_URI="https://github.com/msva/luasec"
#EGIT_REPO_URI="https://github.com/mwild1/luasec"
EGIT_REPO_URI="https://github.com/brunoos/luasec"

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

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

all_lua_prepare() {
	sed -i -r \
		-e 's#(MAKE\)).*(install)#\1 \2#' \
		Makefile
#	epatch "${FILESDIR}/fix_removed_destdir_support.patch" || die "Probably, Upstream finally returned DESTDIR instalation back. Please, report that."
	cd src
	lua_default
}

each_lua_configure() {
	cd src
	myeconfargs=()
	myeconfargs+=(
		LD='$(CC)'
		LUAPATH="\$(DESTDIR)/$(lua_get_pkgvar INSTALL_LMOD)"
		LUACPATH="\$(DESTDIR)/$(lua_get_pkgvar INSTALL_CMOD)"
	)
		lua_default
}

each_lua_compile() {
	lua_default linux
}

#each_lua_install() {
#	dolua ssl.so ssl.lua
#	_dolua_insdir=ssl \
#	dolua https.lua
#}