summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Martins <rafaelmartins@gentoo.org>2010-11-05 21:07:55 +0000
committerRafael Martins <rafaelmartins@gentoo.org>2010-11-05 21:07:55 +0000
commit29da751583fff893170880e312c597ddc699ad0b (patch)
treeadcfd54c458f12db9db1450dd1eafee9425e076e /dev-lua
parentVersion bump. Handle new firmwares and enhance UVC specs compliance. Drop old... (diff)
downloadgentoo-2-29da751583fff893170880e312c597ddc699ad0b.tar.gz
gentoo-2-29da751583fff893170880e312c597ddc699ad0b.tar.bz2
gentoo-2-29da751583fff893170880e312c597ddc699ad0b.zip
Moved from dev-libs to dev-lua. Added myself to metadata.xml.
(Portage version: 2.2.0_alpha3/cvs/Linux x86_64)
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/luasec/ChangeLog21
-rw-r--r--dev-lua/luasec/files/luasec-0.4_Makefile.patch17
-rw-r--r--dev-lua/luasec/luasec-0.4.ebuild43
-rw-r--r--dev-lua/luasec/metadata.xml14
4 files changed, 95 insertions, 0 deletions
diff --git a/dev-lua/luasec/ChangeLog b/dev-lua/luasec/ChangeLog
new file mode 100644
index 000000000000..ce6d4c6445a6
--- /dev/null
+++ b/dev-lua/luasec/ChangeLog
@@ -0,0 +1,21 @@
+# ChangeLog for dev-lua/luasec
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/luasec/ChangeLog,v 1.1 2010/11/05 21:07:54 rafaelmartins Exp $
+
+ 05 Nov 2010; Rafael G. Martins <rafaelmartins@gentoo.org>
+ +luasec-0.4.ebuild, +files/luasec-0.4_Makefile.patch, +metadata.xml:
+ Moved from dev-libs to dev-lua. Added myself to metadata.xml.
+
+ 13 Jul 2010; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org>
+ metadata.xml:
+ Added missing herd tag to metadata.xml
+
+ 27 May 2010; Dirkjan Ochtman <djc@gentoo.org> luasec-0.4.ebuild:
+ Fix up use of bare make, pointed out by ssuominen.
+
+*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-lua/luasec/files/luasec-0.4_Makefile.patch b/dev-lua/luasec/files/luasec-0.4_Makefile.patch
new file mode 100644
index 000000000000..02d5247eb763
--- /dev/null
+++ b/dev-lua/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-lua/luasec/luasec-0.4.ebuild b/dev-lua/luasec/luasec-0.4.ebuild
new file mode 100644
index 000000000000..fe386d64c3df
--- /dev/null
+++ b/dev-lua/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-lua/luasec/luasec-0.4.ebuild,v 1.1 2010/11/05 21:07:54 rafaelmartins 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() {
+ emake DESTDIR="${D}" install || die "Install failed"
+}
diff --git a/dev-lua/luasec/metadata.xml b/dev-lua/luasec/metadata.xml
new file mode 100644
index 000000000000..310bf81ceb27
--- /dev/null
+++ b/dev-lua/luasec/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>djc@gentoo.org</email>
+ <description>
+ Required for net-im/prosody. Feel free to update/fix!
+ </description>
+ </maintainer>
+ <maintainer>
+ <email>rafaelmartins@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>