summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Martins <rafaelmartins@gentoo.org>2016-11-06 16:17:40 +0100
committerRafael Martins <rafaelmartins@gentoo.org>2016-11-06 16:18:08 +0100
commitc4ecb3a9ab59464a8a80a00b432d4a4778210aa6 (patch)
tree761537a922252cd9c8f534d55500855088c01fe9 /dev-lua
parentkde-apps/kdepimlibs: make configure not die (diff)
downloadgentoo-c4ecb3a9ab59464a8a80a00b432d4a4778210aa6.tar.gz
gentoo-c4ecb3a9ab59464a8a80a00b432d4a4778210aa6.tar.bz2
gentoo-c4ecb3a9ab59464a8a80a00b432d4a4778210aa6.zip
dev-lua/luasec: version bump (bug #595628)
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/luasec/Manifest1
-rw-r--r--dev-lua/luasec/luasec-0.6.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-lua/luasec/Manifest b/dev-lua/luasec/Manifest
index 76a9fc9218fa..50d27e04a7a3 100644
--- a/dev-lua/luasec/Manifest
+++ b/dev-lua/luasec/Manifest
@@ -2,3 +2,4 @@ DIST luasec-0.4.1.tar.gz 28646 SHA256 9a9ea9f23044d41be29aea3de1bd795118a29e7311
DIST luasec-0.4.1_p20130620.tar.gz 45297 SHA256 8bb3e8c5c3a4980f027b7ab41d5a08a2d44834e4230bcb6a2638ba4a7a3dc53f SHA512 914ae2adf7ce48c78d972ae5cbe2b52cbd42083cbe98063c36bd52af52b3bdec4cb389b8599928b2703436fc8eaf70de3212def0adaf936c7bbedf650f9c8c4e WHIRLPOOL 7a7c8e43ae846a8351c39a1dbfaab091a9d12c197538413137c0de807da6d20b894155fd9ec1f4bdefd7090a7b7cdb7ef195165870a6b5addd1ad66ad7208d11
DIST luasec-0.5.1.tar.gz 46820 SHA256 6d5c5f8e0521f3194668d9a839774e079e2fd5c45b15538dc7b8cacc56719406 SHA512 c7c92c79d0ec3e12b69f88d810a19397eaf570957d1f13b9695ee435cb6f0f9c31f5bc20a7252aac93d18eed98a5d3fc8a181cd85845a704e469055f215609a8 WHIRLPOOL 69bc39c8f91a0b4be9fbe9a6531e110cabb25b2f09a1588510a5e993d1f6da7f93154647b8265ee028f4dbc45f65febf0066c3bbb62a59fd3be2761fe5c70798
DIST luasec-0.5.tar.gz 46738 SHA256 6480598f7492ac479b6b608b5fb1488226bfa6ef675e29f6b24dbe9099083523 SHA512 fcf88f2566952c4d12be95531991180a1f3bd60f7dda41997f93c80ccc8d9dfd44b00e3330a07e451489dc9cd0640f7841101c10867e270608187df78549fe2f WHIRLPOOL 46d87a3ee3a6cf1413696c1dee0ea77913e6ffce94789e36f28ca5b2ec737cd1d2c81852c5b96958dcf53c22eee20d24102fb3ceea923692dbfb848b2fc52215
+DIST luasec-0.6.tar.gz 51071 SHA256 cef3a35c18beb8a54d9c8ce6260a4cabbd9a386de8711320d084daffad0aed5d SHA512 f7004a329153d0126a3ea27b4986e9d83fb8f2de9c5c2f0c96427c50cc42e1252c69fd8cc69e2e8d423745d2dbfdb5a781b609938f7f502c7aedeb99fd0778cd WHIRLPOOL 4dc5a58adb1a1e38d1301bdd6f9fbb7e551d3b1f2e729d6e9c892ab75188628862369565d1f6699a405c6dc1e19fe448d029a8ca29b857318a3cd44f2da077d1
diff --git a/dev-lua/luasec/luasec-0.6.ebuild b/dev-lua/luasec/luasec-0.6.ebuild
new file mode 100644
index 000000000000..3a1f33912bc0
--- /dev/null
+++ b/dev-lua/luasec/luasec-0.6.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+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() {
+ 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
+}