diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2015-11-18 02:39:00 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2015-11-19 01:04:08 +0100 |
commit | 85c09ef2853d5cfdbe965a902d2d128ce96c66a7 (patch) | |
tree | 20a23ce3b43a89b512faa74991e4e7684393f99b | |
parent | sys-kernel/vanilla-sources: Linux patch version 3.2.73. Remove 3.2.72. (diff) | |
download | gentoo-85c09ef2853d5cfdbe965a902d2d128ce96c66a7.tar.gz gentoo-85c09ef2853d5cfdbe965a902d2d128ce96c66a7.tar.bz2 gentoo-85c09ef2853d5cfdbe965a902d2d128ce96c66a7.zip |
dev-lua/luaossl: Introduce new ebuild
-rw-r--r-- | dev-lua/luaossl/Manifest | 1 | ||||
-rw-r--r-- | dev-lua/luaossl/luaossl-20150727.ebuild | 44 | ||||
-rw-r--r-- | dev-lua/luaossl/metadata.xml | 16 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-lua/luaossl/Manifest b/dev-lua/luaossl/Manifest new file mode 100644 index 000000000000..5792300d0ab1 --- /dev/null +++ b/dev-lua/luaossl/Manifest @@ -0,0 +1 @@ +DIST luaossl-20150727.tar.gz 355486 SHA256 e5607e380ef1bfb12bfa0e5c97e0088a4b1c22a53f3f9913b9f114bc0e95f0b0 SHA512 de565ff7b9ac07493e771045b05902dd64e8b6c458180dd03d08cf900067d1b9cb88385c69dc29fb45774e4ec36b563cab705b34d37cec2f5cc792cf4f7b5049 WHIRLPOOL 44697a9abbc61fab35392dce3090b05ef7b5fc772e82c79b0be9647525f325f3c71e0cc13146cb2907b5924fdc7dfabe8adb6c98b882a24e92d36baf650aa8a6 diff --git a/dev-lua/luaossl/luaossl-20150727.ebuild b/dev-lua/luaossl/luaossl-20150727.ebuild new file mode 100644 index 000000000000..d1379723dd28 --- /dev/null +++ b/dev-lua/luaossl/luaossl-20150727.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="Most comprehensive OpenSSL module in the Lua universe." +HOMEPAGE="https://github.com/wahern/luaossl" +SRC_URI="https://github.com/wahern/luaossl/archive/rel-${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="luajit" + +RDEPEND=" + luajit? ( dev-lang/luajit:2 ) + !luajit? ( >=dev-lang/lua-5.1:0 ) + dev-libs/openssl:0[-bindist] + !dev-lua/lua-openssl" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S="${WORKDIR}/${PN}-rel-${PV}" + +src_prepare() { + local version_var= + local engine= + + use luajit && engine=luajit || engine=lua + use luajit && version_var=abiver || version_var=V + + LUA_VERSION="$($(tc-getPKG_CONFIG) --variable=${version_var} ${engine})" +} + +src_compile() { + emake CC="$(tc-getCC)" prefix="${EPREFIX}/usr" openssl${LUA_VERSION} +} + +src_install() { + emake DESTDIR="${D}" prefix="${EPREFIX}/usr" install${LUA_VERSION} +} diff --git a/dev-lua/luaossl/metadata.xml b/dev-lua/luaossl/metadata.xml new file mode 100644 index 000000000000..1526957642ba --- /dev/null +++ b/dev-lua/luaossl/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>jakub@jirutka.cz</email> + <name>Jakub Jirutka</name> + </maintainer> + <use> + <flag name="luajit">Use <pkg>dev-lang/luajit</pkg> instead of + <pkg>dev-lang/lua</pkg></flag> + </use> + <upstream> + <remote-id type="github">wahern/luaossl</remote-id> + </upstream> +</pkgmetadata> |