diff options
author | William Hubbs <william.hubbs@sony.com> | 2019-10-21 14:15:41 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2019-10-22 10:50:06 -0500 |
commit | 31bbb48431fc0514a990e5a383b9d28cc6c88cfc (patch) | |
tree | 486c54abae164f176123869ebbd58ebcce1fa4de /dev-lua/luaossl/luaossl-20190731.ebuild | |
parent | media-libs/rlottie: disable building examples for now (diff) | |
download | gentoo-31bbb48431fc0514a990e5a383b9d28cc6c88cfc.tar.gz gentoo-31bbb48431fc0514a990e5a383b9d28cc6c88cfc.tar.bz2 gentoo-31bbb48431fc0514a990e5a383b9d28cc6c88cfc.zip |
dev-lua/luaossl: 20190731 bump
Closes: https://bugs.gentoo.org/696534
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-lua/luaossl/luaossl-20190731.ebuild')
-rw-r--r-- | dev-lua/luaossl/luaossl-20190731.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-lua/luaossl/luaossl-20190731.ebuild b/dev-lua/luaossl/luaossl-20190731.ebuild new file mode 100644 index 000000000000..300a08cda740 --- /dev/null +++ b/dev-lua/luaossl/luaossl-20190731.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +MY_P=${PN}-rel-${PV} +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 -> ${MY_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}/${MY_P}" + +src_prepare() { + default + + LUA_VERSION="$($(tc-getPKG_CONFIG) --variable=$(usex luajit abiver V) $(usex luajit luajit lua))" +} + +src_compile() { + emake CC="$(tc-getCC)" prefix="${EPREFIX}/usr" openssl${LUA_VERSION} +} + +src_install() { + emake DESTDIR="${D}" prefix="${EPREFIX}/usr" install${LUA_VERSION} +} |