summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2012-02-16 12:51:32 +0000
committerDirkjan Ochtman <djc@gentoo.org>2012-02-16 12:51:32 +0000
commitbdb4e302316ea56007a50ea7feb9247db6cd018d (patch)
tree096fec2a774066ea4c2ea03c1f9fa967de867ddb /dev-lua/luasec/luasec-0.4.1.ebuild
parentadd keyword ~ppc-aix, relies on package.use.mask 'jit' (diff)
downloadhistorical-bdb4e302316ea56007a50ea7feb9247db6cd018d.tar.gz
historical-bdb4e302316ea56007a50ea7feb9247db6cd018d.tar.bz2
historical-bdb4e302316ea56007a50ea7feb9247db6cd018d.zip
Version bump luasec to 0.4.1 (bug 388799).
Package-Manager: portage-2.1.10.46/cvs/Linux x86_64
Diffstat (limited to 'dev-lua/luasec/luasec-0.4.1.ebuild')
-rw-r--r--dev-lua/luasec/luasec-0.4.1.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-lua/luasec/luasec-0.4.1.ebuild b/dev-lua/luasec/luasec-0.4.1.ebuild
new file mode 100644
index 000000000000..2e1dcd15b868
--- /dev/null
+++ b/dev-lua/luasec/luasec-0.4.1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/luasec/luasec-0.4.1.ebuild,v 1.1 2012/02/16 12:51:32 djc Exp $
+
+EAPI=2
+
+inherit multilib toolchain-funcs flag-o-matic eutils
+
+DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication."
+HOMEPAGE="http://www.inf.puc-rio.br/~brunoos/luasec/"
+SRC_URI="http://www.inf.puc-rio.br/~brunoos/luasec/download/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/lua-5.1[deprecated]
+ dev-lua/luasocket
+ dev-libs/openssl"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+src_prepare() {
+ sed -i -e "s#^LUAPATH=.*#LUAPATH=$(pkg-config --variable INSTALL_LMOD lua)#" "${S}/Makefile"
+ sed -i -e "s#^LUACPATH=.*#LUACPATH=$(pkg-config --variable INSTALL_CMOD lua)#" "${S}/Makefile"
+ epatch "${FILESDIR}/${PN}-0.4_Makefile.patch"
+}
+
+src_compile() {
+ append-flags -fPIC
+ emake \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getCC) -shared" \
+ linux \
+ || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "Install failed"
+}