summaryrefslogtreecommitdiff
path: root/dev-lua/lua-openssl/lua-openssl-0.4.1-r1.ebuild
diff options
context:
space:
mode:
authorAmy Winston <amynka@gentoo.org>2015-10-24 15:02:30 +0200
committerAmy Winston <amynka@gentoo.org>2015-10-24 15:02:30 +0200
commitdd818a149679fd04f0865d7ebf356986e8fb5678 (patch)
tree9782f9f35a52e8fcf311d68d968c8e35e7c12668 /dev-lua/lua-openssl/lua-openssl-0.4.1-r1.ebuild
parent2e4bb416333b553b0f52b52c6c9456dacd91e3c0 (diff)
downloadgentoo-dd818a149679fd04f0865d7ebf356986e8fb5678.tar.gz
gentoo-dd818a149679fd04f0865d7ebf356986e8fb5678.tar.bz2
gentoo-dd818a149679fd04f0865d7ebf356986e8fb5678.zip
dev-lua/lua-openssl: revbump changed -bindist for openssl
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-lua/lua-openssl/lua-openssl-0.4.1-r1.ebuild')
-rw-r--r--dev-lua/lua-openssl/lua-openssl-0.4.1-r1.ebuild45
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-lua/lua-openssl/lua-openssl-0.4.1-r1.ebuild b/dev-lua/lua-openssl/lua-openssl-0.4.1-r1.ebuild
new file mode 100644
index 000000000000..11897293d2c4
--- /dev/null
+++ b/dev-lua/lua-openssl/lua-openssl-0.4.1-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="OpenSSL binding for Lua"
+HOMEPAGE="https://github.com/zhaozg/lua-openssl"
+SRC_URI="https://github.com/zhaozg/lua-openssl/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT openssl PHP-3"
+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]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-Makefile.patch"
+ use luajit && LUAV=luajit || LUAV=lua
+}
+
+src_compile() {
+ local pkgconfig=$(tc-getPKG_CONFIG)
+ emake \
+ CC="$(tc-getCC) \$(CFLAGS) -Ideps" \
+ PKG_CONFIG="$pkgconfig" \
+ LUA_CFLAGS="$($pkgconfig --cflags $LUAV)" \
+ LUA_LIBS="$($pkgconfig --libs $LUAV)" \
+ LUA_LIBDIR="$($pkgconfig --variable INSTALL_CMOD $LUAV)"
+}
+
+src_install() {
+ emake \
+ LUA_LIBDIR="${D}$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD $LUAV)" \
+ install
+ einstalldocs
+}