diff options
author | Dirkjan Ochtman <djc@gentoo.org> | 2010-05-27 08:57:58 +0000 |
---|---|---|
committer | Dirkjan Ochtman <djc@gentoo.org> | 2010-05-27 08:57:58 +0000 |
commit | 3c19a82d20330134f470c9f414354375da25b86c (patch) | |
tree | a65de337196665aad4fab6e7fd0a6ac4cdcc5f82 /dev-libs/luasec | |
parent | rm (diff) | |
download | gentoo-2-3c19a82d20330134f470c9f414354375da25b86c.tar.gz gentoo-2-3c19a82d20330134f470c9f414354375da25b86c.tar.bz2 gentoo-2-3c19a82d20330134f470c9f414354375da25b86c.zip |
Initial version 0.4 of dev-libs/luasec.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/luasec')
-rw-r--r-- | dev-libs/luasec/ChangeLog | 10 | ||||
-rw-r--r-- | dev-libs/luasec/files/luasec-0.4_Makefile.patch | 17 | ||||
-rw-r--r-- | dev-libs/luasec/luasec-0.4.ebuild | 43 | ||||
-rw-r--r-- | dev-libs/luasec/metadata.xml | 10 |
4 files changed, 80 insertions, 0 deletions
diff --git a/dev-libs/luasec/ChangeLog b/dev-libs/luasec/ChangeLog new file mode 100644 index 000000000000..3c41cafde22f --- /dev/null +++ b/dev-libs/luasec/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-libs/luasec +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/luasec/ChangeLog,v 1.1 2010/05/27 08:57:58 djc Exp $ + +*luasec-0.4 (27 May 2010) + + 27 May 2010; Dirkjan Ochtman <djc@gentoo.org> +luasec-0.4.ebuild, + +files/luasec-0.4_Makefile.patch, +metadata.xml: + Initial ebuild by jochen@schalanda.de, bug 290592. + diff --git a/dev-libs/luasec/files/luasec-0.4_Makefile.patch b/dev-libs/luasec/files/luasec-0.4_Makefile.patch new file mode 100644 index 000000000000..02d5247eb763 --- /dev/null +++ b/dev-libs/luasec/files/luasec-0.4_Makefile.patch @@ -0,0 +1,17 @@ +--- src/Makefile.old 2009-10-15 12:59:54.000000000 +0000 ++++ src/Makefile 2009-10-26 14:29:26.000000000 +0000 +@@ -33,10 +33,10 @@ + all: + + install: $(CMOD) $(LMOD) +- mkdir -p $(LUAPATH)/ssl +- cp $(CMOD) $(LUACPATH) +- cp $(LMOD) $(LUAPATH) +- cp https.lua $(LUAPATH)/ssl ++ mkdir -p $(DESTDIR)$(LUAPATH)/ssl $(DESTDIR)$(LUACPATH) ++ cp $(CMOD) $(DESTDIR)$(LUACPATH) ++ cp $(LMOD) $(DESTDIR)$(LUAPATH) ++ cp https.lua $(DESTDIR)$(LUAPATH)/ssl + + linux: + @$(MAKE) $(CMOD) MYCFLAGS="$(LNX_CFLAGS)" MYLDFLAGS="$(LNX_LDFLAGS)" diff --git a/dev-libs/luasec/luasec-0.4.ebuild b/dev-libs/luasec/luasec-0.4.ebuild new file mode 100644 index 000000000000..52f0059c7976 --- /dev/null +++ b/dev-libs/luasec/luasec-0.4.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/luasec/luasec-0.4.ebuild,v 1.1 2010/05/27 08:57:58 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-libs/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}/${P}_Makefile.patch" +} + +src_compile() { + append-flags -fPIC + emake \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC) -shared" \ + linux \ + || die +} + +src_install() { + make DESTDIR="${D}" install || die "Install failed" +} diff --git a/dev-libs/luasec/metadata.xml b/dev-libs/luasec/metadata.xml new file mode 100644 index 000000000000..3481054b7f0f --- /dev/null +++ b/dev-libs/luasec/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>djc@gentoo.org</email> + <description> + Required for net-im/prosody. Feel free to update/fix! + </description> + </maintainer> +</pkgmetadata> |