logo

overlay

My (experimental) gentoo overlay
commit: 6c5d6c055ccae488bcd5083362d2012791f6ad88
parent: a68153238637ba20fe5d7f366926cb3179836ad5
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  1 Feb 2019 20:07:45 +0100

dev-lua/luasec: New Package (based on ::gentoo & ::lua)

Diffstat:

Adev-lua/luasec/Manifest1+
Adev-lua/luasec/luasec-0.5.1.ebuild54++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adev-lua/luasec/metadata.xml8++++++++
3 files changed, 63 insertions(+), 0 deletions(-)

diff --git a/dev-lua/luasec/Manifest b/dev-lua/luasec/Manifest @@ -0,0 +1 @@ +DIST luasec-0.5.1.tar.gz 46820 BLAKE2B 3b3d33c59c6817a810bb4ab5968657e29d123d5496e9ba28f03636ce389b99fb1e7724d9f2531fc651c86c8252a08973e76ae65ee5ab551cfe4d450519982053 SHA512 c7c92c79d0ec3e12b69f88d810a19397eaf570957d1f13b9695ee435cb6f0f9c31f5bc20a7252aac93d18eed98a5d3fc8a181cd85845a704e469055f215609a8 diff --git a/dev-lua/luasec/luasec-0.5.1.ebuild b/dev-lua/luasec/luasec-0.5.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2016 Gentoo Foundation +# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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/" +SRC_URI="https://github.com/brunoos/luasec/archive/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="examples" + +RDEPEND=" + dev-lua/luasocket + dev-libs/openssl +" +DEPEND=" + ${RDEPEND} +" + +all_lua_prepare() { + sed -i -r \ + -e 's#(MAKE\)).*(install)#\1 \2#' \ + -e '/LIB_PATH.*-L.usr.lib/d' \ + Makefile + + pushd src &>/dev/null + lua_default + popd &>/dev/null +} + +each_lua_configure() { + pushd src &>/dev/null + myeconfargs=() + myeconfargs+=( + LD='$(CC)' + LUAPATH="$(lua_get_pkgvar INSTALL_LMOD)" + LUACPATH="$(lua_get_pkgvar INSTALL_CMOD)" + ) + + lua_default + popd &>/dev/null +} + +each_lua_compile() { + lua_default linux +} diff --git a/dev-lua/luasec/metadata.xml b/dev-lua/luasec/metadata.xml @@ -0,0 +1,8 @@ +<?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> + <name>Haelwenn (lanodan) Monnier</name> +</maintainer> +</pkgmetadata>