mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-07 05:57:07 -08:00
dev-lua/luaossl: Introduce new ebuild
This commit is contained in:
@@ -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}
|
||||
}
|
||||
Reference in New Issue
Block a user