logo

overlay

Personnal gentoo overlay
commit: 8d2120a0a691b74c8d3fb7295f1c6427dfde34f1
parent: 1f81f624397e6a8fbe66cf0c0e518ab9d72c36d4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 28 Aug 2016 13:17:06 +0200

dev-lua/luasec: Add 0.6 version

Diffstat:

dev-lua/luasec/Manifest | 3+++
dev-lua/luasec/luasec-0.6.ebuild | 40++++++++++++++++++++++++++++++++++++++++
dev-lua/luasec/metadata.xml | 10++++++++++
3 files changed, 53 insertions(+), 0 deletions(-)

diff --git a/dev-lua/luasec/Manifest b/dev-lua/luasec/Manifest @@ -0,0 +1,3 @@ +DIST luasec-0.6.tar.gz 51071 SHA256 cef3a35c18beb8a54d9c8ce6260a4cabbd9a386de8711320d084daffad0aed5d SHA512 f7004a329153d0126a3ea27b4986e9d83fb8f2de9c5c2f0c96427c50cc42e1252c69fd8cc69e2e8d423745d2dbfdb5a781b609938f7f502c7aedeb99fd0778cd WHIRLPOOL 4dc5a58adb1a1e38d1301bdd6f9fbb7e551d3b1f2e729d6e9c892ab75188628862369565d1f6699a405c6dc1e19fe448d029a8ca29b857318a3cd44f2da077d1 +EBUILD luasec-0.6.ebuild 1030 SHA256 aff867ac6313e334dea59b81f47064b2e9d8d78e15eb83e364d7949923f6c211 SHA512 79384c4b0792f6719040ef1056b90254968b019e0a94a2053f1746fee7df6bcdafcaebe3b6aec09a363b1420cca8b479331b31f8c996f688808edf6ed0c66242 WHIRLPOOL 9dcc739ebda5cf23a7f6eb5bf4ea4862289d7ea52bbf0c3e232f5d58a0751aeeb6307f7307645676b9f8b837d59eb49ae5faf8cbe64e0fd5c2de6c89efcf9443 +MISC metadata.xml 307 SHA256 1a5a2f73ddece6a7afc40a4470d648228b09077bc768ca145d229a54df6c5afc SHA512 e2f35b9a93877fa224637c84f4ec8ff4feefef0dfbdf9df83c0071866a7ca8966097827de94fc7f40625286cedc2672151a4d08548401b641156305c42021376 WHIRLPOOL 6a95308be5b349ddf2a58d92c2c58d30be515cfd4d984a9c9f1331bacb2009919b5266c2b327575315286fe1d0d421e82952e2c29f76e5ca7e47cfe238264ee6 diff --git a/dev-lua/luasec/luasec-0.6.ebuild b/dev-lua/luasec/luasec-0.6.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit multilib toolchain-funcs + +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[deprecated] + dev-lua/luasocket + libressl? ( dev-libs/libressl:0 ) + !libressl? ( dev-libs/openssl:0 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${PN}-${P} + +src_prepare() { + sed -i -e "s#^LUAPATH.*#LUAPATH=$(pkg-config --variable INSTALL_LMOD lua)#"\ + -e "s#^LUACPATH.*#LUACPATH=$(pkg-config --variable INSTALL_CMOD lua)#" Makefile || die + sed -i -e "s/-O2//g" 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 +} diff --git a/dev-lua/luasec/metadata.xml b/dev-lua/luasec/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + </maintainer> + <upstream> + <remote-id type="github">brunoos/luasec</remote-id> + </upstream> +</pkgmetadata>