Verified Commit 514624e1 authored by flussence's avatar flussence

Temporary dev-lua/luasec-0.7 ebuild

Revbump to make Prosody ECC certs work
parent 63926856
DIST luasec-0.7.tar.gz 47965 BLAKE2B 5bd19cfb5c2529a6fbee221442730c87394f1bf3d5089dd83d18e91ef1a2b88cde19c59988e438eb37e50c02c40a8906ad11ce9b3247b03ea11ed6d9e890b7d6 SHA512 6adf5241aa5a0d92c9dd7fc7f7e426969475548f47979ccc28187471b3bad4132c215de6da1f471d21b05c6558d36309264512c9c4ac70a53d6f6e204cac1358
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit multilib toolchain-funcs eutils
DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication"
HOMEPAGE="https://github.com/brunoos/luasec http://www.inf.puc-rio.br/~brunoos/luasec/"
SRC_URI="https://github.com/brunoos/luasec/archive/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="libressl"
RDEPEND="
>=dev-lang/lua-5.1:0[deprecated]
dev-lua/luasocket
!libressl? ( dev-libs/openssl:0 ) libressl? ( dev-libs/libressl:= )"
DEPEND="${RDEPEND}
virtual/pkgconfig"
S=${WORKDIR}/${PN}-${P}
src_prepare() {
eapply_user
sed -i -e "s/-O2//" src/Makefile || die
lua src/options.lua -g /usr/include/openssl/ssl.h > src/options.h || die
}
src_compile() {
emake \
CC="$(tc-getCC)" \
LD="$(tc-getCC)" \
linux
}
src_install() {
emake \
LUAPATH="${D}/$(pkg-config --variable INSTALL_LMOD lua)" \
LUACPATH="${D}/$(pkg-config --variable INSTALL_CMOD lua)" \
install
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ant+gentoo.bugs@flussence.eu</email>
<name>Anthony Parsons</name>
</maintainer>
</pkgmetadata>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment