blob: 45526ae71dcdfd266e77e0d61fd6b4c1fd7b5d80 (
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-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lua/luasec/luasec-0.4.1.ebuild,v 1.6 2014/08/10 20:42:04 slyfox Exp $
EAPI=2
inherit multilib toolchain-funcs flag-o-matic eutils
DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication"
HOMEPAGE="http://www.inf.puc-rio.br/~brunoos/luasec/"
SRC_URI="http://www.inf.puc-rio.br/~brunoos/luasec/download/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm x86"
IUSE=""
RDEPEND=">=dev-lang/lua-5.1[deprecated]
dev-lua/luasocket
dev-libs/openssl"
DEPEND="${RDEPEND}
virtual/pkgconfig"
src_prepare() {
sed -i -e "s#^LUAPATH=.*#LUAPATH=$(pkg-config --variable INSTALL_LMOD lua)#" "${S}/Makefile"
sed -i -e "s#^LUACPATH=.*#LUACPATH=$(pkg-config --variable INSTALL_CMOD lua)#" "${S}/Makefile"
epatch "${FILESDIR}/${PN}-0.4_Makefile.patch"
}
src_compile() {
append-flags -fPIC
emake \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
CC="$(tc-getCC)" \
LD="$(tc-getCC) -shared" \
linux \
|| die
}
src_install() {
emake DESTDIR="${D}" install || die "Install failed"
}
|