summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2010-05-27 08:57:58 +0000
committerDirkjan Ochtman <djc@gentoo.org>2010-05-27 08:57:58 +0000
commit1a0d95f6ce3c9d5bca8f08b6985802252c429bd3 (patch)
treee38e9709ec6d2f1e11d367321469c30e60e1271b
parentrm (diff)
downloadhistorical-1a0d95f6ce3c9d5bca8f08b6985802252c429bd3.tar.gz
historical-1a0d95f6ce3c9d5bca8f08b6985802252c429bd3.tar.bz2
historical-1a0d95f6ce3c9d5bca8f08b6985802252c429bd3.zip
Initial version 0.4 of dev-libs/luasec.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
-rw-r--r--dev-libs/luasec/ChangeLog10
-rw-r--r--dev-libs/luasec/Manifest5
-rw-r--r--dev-libs/luasec/files/luasec-0.4_Makefile.patch17
-rw-r--r--dev-libs/luasec/luasec-0.4.ebuild43
-rw-r--r--dev-libs/luasec/metadata.xml10
5 files changed, 85 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/Manifest b/dev-libs/luasec/Manifest
new file mode 100644
index 000000000000..4effecfc7ad7
--- /dev/null
+++ b/dev-libs/luasec/Manifest
@@ -0,0 +1,5 @@
+AUX luasec-0.4_Makefile.patch 517 RMD160 e5ee76438fab683d9f5f872d3048b5e54398d6ce SHA1 5ed553921169e61d8ad5d494e0ec2083cd8ab659 SHA256 f157ed946bb3c6c2d7826e5fecc371156c4237a6a897d9f6042912a66cd314c0
+DIST luasec-0.4.tar.gz 27829 RMD160 61b613ac8d767545a327adc88f1dce70ceb8f64b SHA1 b7fe55fd2a75e0233c1d5bd858e48366422901d6 SHA256 111732f0e646120a701d33e7d3a613a9a901c11c0a01d0805d73ef90c3f0abd5
+EBUILD luasec-0.4.ebuild 1147 RMD160 b8f81a033dcb17e15201b0267b456059b49c8b5f SHA1 b6fce6b3932d790d12be4ae213d99485666028e4 SHA256 8234e8710018f5bcf41c501a1bb0b7488787f4846967a8598fffb032cd1dddad
+MISC ChangeLog 400 RMD160 51f790263de91bfae21415d5eee3148409370130 SHA1 ae6110b9e93981f2f6ce3515c8ba6d90bb33876f SHA256 abf05ace40e15a176fa8cbbf742494b7fa96e7ceec08b8f29aec22f91db4fb69
+MISC metadata.xml 301 RMD160 3b3959f03972dff6962e502fb1dd8d4d5158ed06 SHA1 30e2ca7eb3d6d642882988a4b95646ad670aa277 SHA256 46ee512e6a1bd27a4ff043cd493a1b7331df57dc1d265f30eab97a24da56cfe9
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>